/* ═══════════════════════════════════════════════
   NC Sati and Co — style.css
   Design: Sovereign Ledger (Editorial Premium)
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,600;6..72,700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --surface:              #f7f9fb;
  --surface-low:          #f2f4f6;
  --surface-high:         #e6e8ea;
  --surface-highest:      #e0e3e5;
  --surface-white:        #ffffff;
  --primary-container:    #131b2e;
  --primary-mid:          #3f465c;
  --on-primary:           #ffffff;
  --on-background:        #191c1e;
  --on-surface-variant:   #45464d;
  --on-secondary:         #54647a;
  --tertiary-amber:       #D4AF37;
  --outline-variant:      #c6c6cd;
  --outline:              #76777d;
  --amber-500:            #D4AF37;
  --amber-600:            #B8860B;
  --emerald-dark:         #002113;
  --font-headline: 'Newsreader', serif;
  --font-body:     'Inter', sans-serif;
  --section-pad: 6rem 2rem;
  --max-w: 1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Scroll Progress ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--amber-500); z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Back to Top ── */
#back-to-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  width: 44px; height: 44px;
  background: var(--primary-container);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--amber-600); }
#back-to-top svg { color: #fff; width: 18px; height: 18px; }

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(198,198,205,0.3);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 4px 24px rgba(15,23,42,0.08);
}
.navbar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 66px; gap: 1rem;
}
.navbar-brand-wrap {
  display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0;
  text-decoration: none;
}
.navbar-ca-logo {
  height: 50px; width: auto; flex-shrink: 0;
  border-radius: 4px; padding: 3px 5px;
}
.navbar-brand-text {
  font-family: var(--font-headline);
  font-size: 1.2rem; font-weight: 700;
  color: var(--primary-container); line-height: 1.2;
  display: flex; flex-direction: column;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.6rem; color: var(--on-secondary);
  font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 1px;
}
.nav-links {
  display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 500;
  color: var(--on-surface-variant);
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber-600); }
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--primary-container);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-menu {
  display: none; background: var(--surface-white);
  border-top: 1px solid var(--surface-high);
  padding: 0.5rem 2rem 1rem;
}
.mobile-menu a {
  display: block; padding: 0.6rem 0;
  font-size: 0.85rem; font-weight: 500;
  color: var(--on-surface-variant);
  border-bottom: 1px solid var(--surface-high);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--amber-600); }
.mobile-menu.open { display: block; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 480px) {
  .navbar-brand-text { font-size: 1rem; }
  .navbar-ca-logo { height: 32px; }
  .navbar-inner { padding: 0 1rem; }
}

/* ══════════════════════════════
   SECTION UTILITIES
══════════════════════════════ */
.section { padding: var(--section-pad); }
.section-alt { background: var(--surface-low); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--tertiary-amber);
  margin-bottom: 0.6rem;
}
.section-label.light { color: rgba(255,255,255,0.5); }

.section-headline {
  font-family: var(--font-headline);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--on-background);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-container) 0%, var(--primary-mid) 100%);
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber-500), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.hero-bg-orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(80px);
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: var(--amber-500); opacity: 0.07;
  top: -100px; right: -100px;
  animation: floatOrb 9s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: #274a78; opacity: 0.15;
  bottom: -80px; left: -80px;
  animation: floatOrb 7s ease-in-out infinite 2s;
}
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-firm-name {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700; color: var(--on-primary);
  letter-spacing: -0.02em; line-height: 0.95;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}

/* FIX: "Chartered Accountants" — normal (not italic) */
.hero-designation {
  font-family: var(--font-headline);
  font-style: normal;
  font-size: clamp(1.65rem, 3.75vw, 2.4rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s forwards;
}
.hero-cta-row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: center;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.65s forwards;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.btn-primary {
  padding: 0.9rem 2.2rem;
  background: var(--amber-600); color: #fff;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 0.25rem;
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(217,119,6,0.45); }
.btn-outline {
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.85);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 0.25rem;
  backdrop-filter: blur(4px);
  transition: background 0.25s, border-color 0.25s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
.about-content p {
  margin-left: auto;
  margin-right: auto;
  color: var(--on-surface-variant);
  font-size: 0.97rem; line-height: 1.9;
  margin-bottom: 1.1rem;
  max-width: 800px;
}
.about-content strong { color: var(--on-background); }

/* ══════════════════════════════
   SERVICES CAROUSEL
══════════════════════════════ */
.services-header {
  max-width: var(--max-w); margin: 0 auto 2.5rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.view-all-btn {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--tertiary-amber);
  transition: gap 0.2s;
  white-space: nowrap;
}
.view-all-btn:hover { gap: 0.7rem; }
.view-all-btn .material-symbols-outlined { font-size: 1rem; }

.carousel-wrapper {
  max-width: var(--max-w); margin: 0 auto;
  overflow: hidden; position: relative;
}
.services-carousel {
  display: flex; gap: 1.5rem;
  /* transition is set dynamically by JS */
  will-change: transform;
}
.service-card-new {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  background: var(--surface-white);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: default;
}
.service-card-new:hover {
  box-shadow: 0 12px 32px -4px rgba(15,23,42,0.1);
  transform: translateY(-4px);
}
.service-icon-box {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-low);
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}
.service-icon-box .material-symbols-outlined {
  font-size: 1.4rem;
  color: var(--primary-mid);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.service-card-new h3 {
  font-family: var(--font-headline);
  font-size: 1.15rem; font-weight: 700;
  color: var(--primary-container); margin-bottom: 0.6rem;
  line-height: 1.3;
}
.service-card-new p {
  font-size: 0.85rem; color: var(--on-surface-variant);
  line-height: 1.75; margin-bottom: 1rem;
}
.service-bullets { list-style: none; }
.service-bullets li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--on-secondary);
  font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.4rem;
}
.bullet {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--amber-500); flex-shrink: 0;
}

/* Dots */
.carousel-dots {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 1.75rem;
}
.carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--outline-variant); cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
}
.carousel-dot.active { background: var(--amber-600); transform: scale(1.4); }

/* All Services Grid */
.all-services-grid {
  display: none;
  max-width: var(--max-w); margin: 2rem auto 0;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  opacity: 0; height: 0; overflow: hidden;
  transition: opacity 0.5s ease;
}
.all-services-grid.visible { height: auto; opacity: 1; overflow: visible; }
.all-services-grid .service-card-new { flex: none; }

@media (max-width: 900px) {
  .service-card-new { flex: 0 0 calc(50% - 0.75rem); min-width: 240px; }
  .all-services-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .service-card-new { flex: 0 0 85vw; min-width: unset; }
  .all-services-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════
   LEADERSHIP
══════════════════════════════ */
.leadership-section { background: var(--surface-white); }
.leadership-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 5fr 6fr;
  gap: 5rem; align-items: center;
}
.leadership-photo-col { position: relative; }
.leadership-photo-wrap { position: relative; }

/* FIX: slightly smaller photo */
.leadership-photo {
  width: 65%;
  aspect-ratio: 4/5; object-fit: cover; object-position: top;
  border-radius: 0.5rem;
  box-shadow: 0 24px 64px rgba(15,23,42,0.15);
}

.leadership-name {
  font-family: var(--font-headline);
  font-size: 2.75rem; font-weight: 700;
  color: var(--on-background); line-height: 1.1;
  margin-bottom: 0.4rem;
}
.leadership-body p {
  font-size: 0.92rem; color: var(--on-surface-variant);
  line-height: 1.85; margin-bottom: 1rem;
}
.leadership-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  padding-top: 1.5rem; margin-top: 1rem;
  border-top: 1px solid var(--surface-high);
}

@media (max-width: 900px) {
  .leadership-grid { grid-template-columns: 1fr; gap: 3rem; }
  .leadership-photo-wrap { max-width: 320px; margin: 0 auto; }
  .leadership-photo { width: 100%; }
  .leadership-name { font-size: 2rem; }
}

/* ══════════════════════════════
   CONTACT — redesigned
══════════════════════════════ */
.contact-wrap {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 0.5rem; overflow: hidden;
  box-shadow: 0 24px 64px rgba(15,23,42,0.14);
}
.contact-left {
  background: linear-gradient(135deg, var(--primary-container) 0%, var(--primary-mid) 100%);
  padding: 3rem 2.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 2rem;
}
.contact-headline {
  font-family: var(--font-headline);
  font-size: 2.2rem; font-weight: 700;
  color: var(--on-primary); line-height: 1.2;
  margin: 0 0 0.5rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-row { display: flex; align-items: flex-start; gap: 1rem; }
.contact-row .material-symbols-outlined {
  font-size: 1.2rem; color: rgba(255,255,255,0.45);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  flex-shrink: 0; margin-top: 2px;
}
.contact-detail-label {
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4); margin-bottom: 0.25rem;
}
.contact-detail-val { font-size: 0.85rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.contact-link:hover { color: var(--amber-500); }

/* Social buttons in contact */
.contact-social-row {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-social-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.35rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s, color 0.2s;
}
.contact-social-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.contact-social-btn:hover { background: #25D366; color: #fff; border-color: #25D366; }
.contact-social-btn--linkedin:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }

.contact-right {
  background: var(--surface-white);
  padding: 3rem 2.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.75rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label {
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--primary-container);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem; color: var(--on-background);
  background: transparent;
  border: none; border-bottom: 1px solid rgba(198,198,205,0.5);
  padding: 0.55rem 0; outline: none;
  transition: border-color 0.25s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom: 2px solid var(--emerald-dark); }
.form-group textarea { resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(198,198,205,0.7); }
.form-submit-btn {
  width: 100%; padding: 0.9rem;
  background: var(--primary-container); color: var(--on-primary);
  font-family: var(--font-body); font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  border: none; border-radius: 0.25rem; cursor: pointer;
  box-shadow: 0 8px 24px rgba(19,27,46,0.25);
  transition: opacity 0.2s, transform 0.2s;
}
.form-submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }

@media (max-width: 720px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-left { padding: 2.5rem 1.75rem; }
  .contact-right { padding: 2.5rem 1.75rem; }
}

/* ══════════════════════════════
   MAP
══════════════════════════════ */
.map-section {
  width: 100%; overflow: hidden;
  border-top: 1px solid var(--surface-high);
}
.map-section iframe { display: block; }

/* ══════════════════════════════
   FOOTER — compact
══════════════════════════════ */
.footer { background: #03070f; color: #94a3b8; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: #a1a8b1;
}
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { color: #a1a8b1; transition: color 0.2s; }
.footer-social a:hover { color: var(--amber-500); }

/* ══════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════ */
.js-ready .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.js-ready .reveal.reveal-left  { transform: translateX(-32px); }
.js-ready .reveal.reveal-right { transform: translateX(32px); }
.js-ready .reveal.visible { opacity: 1; transform: none; }
