/* =============================================
   N Malpani & Associates — Modern Theme
   Color Palette: Deep Navy + Gold
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── ROOT VARIABLES ─── */
:root {
  --navy:          #0f2040;
  --navy-mid:      #1e3a6e;
  --navy-light:    #2d5295;
  --gold:          #c4973a;
  --gold-light:    #e8b84b;
  --gold-pale:     rgba(196,151,58,0.10);
  --bg:            #f5f7fc;
  --bg-alt:        #eef1f8;
  --text:          #1a2540;
  --text-body:     #4a5568;
  --text-muted:    #718096;
  --border:        #dde3ef;
  --white:         #ffffff;
  --shadow-sm:     0 2px 10px rgba(15,32,64,0.08);
  --shadow-md:     0 4px 28px rgba(15,32,64,0.13);
  --shadow-lg:     0 8px 50px rgba(15,32,64,0.20);
  --radius:        0.75rem;
  --radius-sm:     0.375rem;
  --ease:          cubic-bezier(0.4,0,0.2,1);
  --t:             all 0.3s var(--ease);
}

/* ─── GLOBALS ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.75;
  margin: 0;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
  line-height: 1.25;
  margin-top: 0;
}

a { color: var(--navy-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

section { scroll-margin-top: 72px; }

/* ─── NAVBAR ─── */
.navbar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%) !important;
  padding: 0.6rem 0 !important;
  position: sticky !important;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 20px rgba(0,0,0,0.22);
  border-bottom: 3px solid var(--gold) !important;
  transition: padding 0.3s var(--ease);
}

.navbar-brand { padding: 0.1rem 0; margin-right: 2rem; }
.navbar-brand img {
  height: 50px; width: auto;
  border-radius: 6px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  transition: var(--t);
}
.navbar-brand img:hover { transform: scale(1.06); }

.navbar-toggler {
  border-color: rgba(255,255,255,0.2) !important;
  padding: 0.35rem 0.6rem;
}

.navbar-nav .nav-link {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.78) !important;
  padding: 0.55rem 1rem !important;
  border-radius: 4px;
  position: relative;
  transition: color 0.2s;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: left 0.25s var(--ease), right 0.25s var(--ease);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold) !important;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  left: 1rem; right: 1rem;
}

/* ─── PAGE HEADER BANNER ─── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 3rem 0 2.5rem;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(196,151,58,0.08), transparent);
}
.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
  position: relative;
}
.page-header p {
  color: rgba(255,255,255,0.68);
  font-size: 0.95rem;
  position: relative;
  margin: 0;
}
.page-header .gold-line {
  display: block;
  width: 50px; height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin: 0.9rem auto 0;
}

/* ─── HERO (HOME) ─── */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(196,151,58,0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(45,82,149,0.3) 0%, transparent 50%);
}
.hero-img {
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: contain;
  max-height: 480px;
  background: rgba(255,255,255,0.05);
  border: 3px solid rgba(255,255,255,0.1);
  position: relative;
  padding: 0.5rem;
  transition: var(--t);
}
.hero-img:hover { box-shadow: 0 12px 60px rgba(0,0,0,0.35); }

.hero-text { color: var(--white); position: relative; }
.hero-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: rgba(196,151,58,0.12);
  border: 1px solid rgba(196,151,58,0.3);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.hero-text h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.hero-text .subtitle {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ─── BUTTONS ─── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy) !important;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 18px rgba(196,151,58,0.35);
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(196,151,58,0.5);
  color: var(--navy) !important;
}
.btn-outline-gold {
  border: 2px solid rgba(196,151,58,0.7);
  color: var(--gold) !important;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  background: transparent;
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy) !important;
  transform: translateY(-2px);
  border-color: var(--gold);
}

/* ─── SECTION UTILITIES ─── */
.section-padding { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(196,151,58,0.25);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin-top: 10px;
}
.section-title.centered { display: block; text-align: center; }
.section-title.centered::after { margin-left: auto; margin-right: auto; }

.section-lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin-top: 1rem;
}

/* ─── EXPERTISE CARDS (Homepage) ─── */
.expertise-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  transition: var(--t);
  height: 100%;
  text-align: center;
}
.expertise-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--navy-mid);
}
.expertise-card .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--gold);
  font-size: 1.6rem;
  transition: var(--t);
}
.expertise-card:hover .icon-wrap {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
}
.expertise-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.expertise-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}
.expertise-card a {
  color: var(--navy-mid);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.expertise-card a:hover { color: var(--gold); }

/* ─── AWARD BADGE ─── */
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold-pale);
  border: 1px solid rgba(196,151,58,0.35);
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--t);
}
.award-badge:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(196,151,58,0.35);
}

/* ─── SERVICES PAGE ─── */
.service-section-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: contain;
  max-height: 340px;
  background: var(--bg-alt);
  padding: 0.5rem;
  transition: var(--t);
}
.service-section-img:hover {
  box-shadow: var(--shadow-lg);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  transition: var(--t);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.service-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--navy);
}
.service-card .s-icon {
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--t);
}
.service-card:hover .s-icon { color: var(--navy); }
.service-card .card-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

/* ─── ABOUT PAGE ─── */
.about-photo {
  border-radius: var(--radius);
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  object-position: top center;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  background: var(--bg);
}
.about-bio { color: var(--text-body); line-height: 1.9; }
.about-bio strong { color: var(--navy); font-weight: 700; }

.skill-tag {
  display: inline-block;
  background: rgba(30,58,110,0.07);
  color: var(--navy-mid);
  border: 1px solid rgba(30,58,110,0.18);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0.25rem;
  transition: var(--t);
}
.skill-tag:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ─── ASSIGNMENTS GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 0;
}
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--t);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
  filter: grayscale(60%);
  transition: var(--t);
  display: block;
  background: var(--white);
}
.gallery-item:hover img {
  filter: grayscale(0%);
}
.gallery-caption {
  width: 100%;
  padding: 0.5rem 0.75rem 0.65rem;
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
  line-height: 1.35;
  border-top: 2px solid var(--gold);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-category-header {
  grid-column: 1 / -1;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 0.25rem;
}
.gallery-category-header h4 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.gallery-category-header .badge-count {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ─── CONTACT PAGE ─── */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gold);
  height: 100%;
}
.contact-card h2 { font-size: 1.85rem; margin-bottom: 0.2rem; }
.contact-subtitle {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 0.75rem;
  transition: var(--t);
}
.contact-item:hover { background: rgba(196,151,58,0.07); }
.contact-item .ci-icon {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.contact-item p, .contact-item a {
  font-size: 0.9rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}
.contact-item a:hover { color: var(--gold); }
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 360px;
}
.map-wrapper iframe {
  width: 100%; height: 100%;
  min-height: 360px;
  border: 0; display: block;
}

/* ─── FOOTER ─── */
footer.site-footer {
  background: linear-gradient(170deg, var(--navy) 0%, #090f1f 100%);
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 1.5rem;
}
.footer-logo { height: 46px; width: auto; border-radius: 5px; margin-bottom: 1rem; }
.footer-brand-name {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin: 0; line-height: 1.6; }
.footer-col-title {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.58);
  font-size: 0.875rem;
  padding: 0.22rem 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.footer-address a {
  color: rgba(255,255,255,0.58);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-address a:hover { color: var(--gold); }
.footer-divider {
  border-color: rgba(255,255,255,0.08) !important;
  margin: 2rem 0 1.25rem;
}
.footer-bottom {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}
.footer-bottom span { color: var(--gold); }

/* ─── SCROLL ANIMATIONS ─── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.animate-on-scroll.from-left  { transform: translateX(-30px); }
.animate-on-scroll.from-right { transform: translateX(30px); }
.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Hero content: auto-animate on load via CSS, no JS observer needed */
.hero-animate {
  animation: heroFadeIn 0.7s var(--ease) both;
}
.hero-animate.delay-1 { animation-delay: 0.15s; }
.hero-animate.delay-2 { animation-delay: 0.3s; }
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── STAT NUMBERS ─── */
.stat-item { text-align: center; padding: 1rem; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ─── RESPONSIVE ─── */

/* ─ Tablet (≤ 991px) ─ */
@media (max-width: 991px) {
  .hero-section { min-height: auto; padding: 3rem 0; }
  .hero-img { max-height: 300px; }
  .hero-text h1 { font-size: 2.1rem; }
  .section-padding { padding: 3.5rem 0; }
  .stat-number { font-size: 2.1rem; }
  .expertise-card { padding: 1.75rem 1.25rem; }

  /* Mobile nav collapse — dark tray drop */
  .navbar-nav { gap: 0 !important; padding: 0.25rem 0; }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-collapse {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.5rem;
    padding: 0.35rem 0 0.5rem;
    background: var(--navy);
    border-radius: 0 0 0.6rem 0.6rem;
  }
  .navbar-nav .nav-link {
    border-radius: 4px;
    padding: 0.65rem 1rem !important;
  }
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background: rgba(196,151,58,0.12);
  }
}

/* ─ Mobile landscape (≤ 767px) ─ */
@media (max-width: 767px) {
  .hero-section { padding: 2.5rem 0; }
  .hero-text h1 { font-size: 1.85rem; }
  .section-padding { padding: 2.75rem 0; }
  .section-title { font-size: 1.6rem; }
  .stat-number { font-size: 1.9rem; }
  .stat-item { padding: 0.75rem 0.5rem; }
  .contact-card { padding: 1.75rem 1.25rem; }
  .gallery-grid { gap: 0.75rem; }
  .page-header { padding: 2.25rem 0 2rem; }
  .about-photo { max-height: 55vh; }
}

/* ─ Mobile portrait (≤ 575px) ─ */
@media (max-width: 575px) {
  .hero-section { padding: 2rem 0; }
  .hero-text h1 { font-size: 1.65rem; line-height: 1.15; }
  .hero-text .subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
  .hero-eyebrow { font-size: 0.68rem; letter-spacing: 1.5px; }
  .hero-img { max-height: 230px; }

  .stat-number { font-size: 1.55rem; }
  .stat-label { font-size: 0.7rem; }
  .stat-item { padding: 0.6rem 0.25rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .gallery-item img { height: 120px; }

  .section-padding { padding: 2.25rem 0; }
  .section-title { font-size: 1.45rem; }
  .page-header { padding: 1.75rem 0 1.5rem; }
  .page-header h1 { font-size: 1.5rem; }

  .expertise-card { padding: 1.5rem 1rem; }
  .contact-card { padding: 1.5rem 1rem; }
  .service-card { padding: 1rem 1.1rem; }

  footer.site-footer { padding: 2.5rem 0 1.25rem; }
  .footer-logo { height: 38px; }

  .btn-gold, .btn-outline-gold {
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
    min-height: 44px;
  }
  .award-badge { font-size: 0.78rem; padding: 0.5rem 1rem; }

  .map-wrapper, .map-wrapper iframe { min-height: 260px; }
  .about-photo { max-height: 45vh; }
}

/* ─ Touch devices: gallery caption always visible ─ */
@media (hover: none) {
  .gallery-caption { transform: translateY(0); }
  .gallery-item img { filter: grayscale(0%); }
}
