/* ============================================================
   NSC Advisory Group — styles.css
   Colour palette derived from brand logo
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --purple:        #7B3590;
  --purple-dark:   #5C2570;
  --purple-light:  #9B55B0;
  --green:         #2E7D32;
  --green-light:   #4CAF50;
  --charcoal:      #2C2C3A;
  --charcoal-mid:  #3A3A4A;
  --slate:         #555566;
  --grey-light:    #F5F5F7;
  --grey-mid:      #E8E8EC;
  --grey-border:   #D8D8E0;
  --white:         #FFFFFF;
  --text-body:     #3A3A4A;
  --text-muted:    #6B6B7B;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', 'Helvetica Neue', sans-serif;

  --radius:        4px;
  --radius-lg:     8px;
  --transition:    0.25s ease;
  --shadow-sm:     0 2px 8px rgba(44,44,58,0.08);
  --shadow-md:     0 6px 24px rgba(44,44,58,0.12);
  --shadow-lg:     0 16px 48px rgba(44,44,58,0.16);

  --max-w:         1200px;
  --header-h:      80px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; }

p { line-height: 1.75; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}

.section { padding-block: 6rem; }
.section--alt { background: var(--grey-light); }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.8rem;
}

.label--light { color: var(--purple-light); }
.label--green { color: var(--green); }

.section-header {
  max-width: 600px;
  margin-bottom: 3.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
}

.section-header--center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.btn--primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(123,53,144,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn--ghost {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}
.btn--ghost:hover {
  background: var(--purple);
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.header--scrolled {
  border-color: var(--grey-border);
  box-shadow: var(--shadow-sm);
}

.header--hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
  gap: 2rem;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; outline: none; }
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  border: none;
}
/* Header is white — multiply blends away the PNG's white background cleanly */
.site-header .logo-img {
  mix-blend-mode: multiply;
}
/* Footer is dark — keep normal blend so logo stays visible */
.site-footer .footer-logo {
  mix-blend-mode: normal;
  opacity: 0.9;
}

.nav-primary { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item--has-dropdown { position: relative; }
.nav-item--has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--slate);
  border-radius: var(--radius);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1.5px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--charcoal);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link--active {
  color: var(--purple);
  font-weight: 600;
}

.nav-link--active::after {
  transform: scaleX(1);
}

.chevron {
  transition: transform var(--transition);
  opacity: 0.6;
}

.nav-item--has-dropdown:hover .chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(44,44,58,0.14);
  /* Top padding acts as an invisible hover bridge — no gap means no accidental close */
  padding: 1rem 0.5rem 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  pointer-events: none;
}

.nav-item--has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--slate);
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.dropdown a:hover {
  background: var(--grey-light);
  color: var(--purple);
  padding-left: 1.2rem;
}

.header-cta {
  margin-left: 1.5rem;
  flex-shrink: 0;
  font-size: 0.8rem;
  padding: 0.6rem 1.4rem;
  letter-spacing: 0.05em;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger--open span:nth-child(2) { opacity: 0; }
.hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(123,53,144,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(46,125,50,0.15) 0%, transparent 60%),
    var(--charcoal);
}

/* Subtle grid texture */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
  padding-block: 6rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-content { max-width: 560px; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--purple-light);
}

.hero-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-credentials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-cred-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.hero-cred-item svg { color: var(--green-light); flex-shrink: 0; }

.hero-cred-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-direction: row;
  gap: 3rem;
}

.stat-item {}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-num span { color: var(--purple-light); }
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* Hero visual card */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  backdrop-filter: blur(8px);
}

.hero-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: background var(--transition);
}

.service-pill:hover { background: rgba(255,255,255,0.08); }

.pill-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-icon--purple { background: rgba(123,53,144,0.3); }
.pill-icon--green  { background: rgba(46,125,50,0.3); }

.pill-icon svg { color: var(--white); }

.pill-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.pill-arrow {
  margin-left: auto;
  color: rgba(255,255,255,0.3);
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--charcoal-mid);
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.trust-bar-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.trust-item svg { color: var(--green-light); flex-shrink: 0; }
.trust-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.12); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
  background: rgba(123,53,144,0.08);
  color: var(--purple);
}

.service-card-icon--green {
  background: rgba(46,125,50,0.08);
  color: var(--green);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  transition: gap var(--transition);
}
.service-card-link:hover { gap: 0.7rem; }

/* ---------- Why NSC ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-content {}

.why-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.why-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(123,53,144,0.08);
  color: var(--purple);
  margin-top: 2px;
}

.why-item h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
  text-transform: none;
  letter-spacing: 0;
}

.why-item p { font-size: 0.9rem; color: var(--text-muted); }

/* Why visual */
.why-visual {
  position: relative;
}

.why-panel {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why-panel::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(123,53,144,0.2);
}

.why-panel-stat {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.why-panel-stat span { color: var(--purple-light); }

.why-panel-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.4rem;
  margin-bottom: 2rem;
}

.why-panel-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.why-panel-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.why-mini-stat {}
.why-mini-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--green-light);
  line-height: 1;
}
.why-mini-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.2rem;
}

/* ---------- Reviews ---------- */
.reviews-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.reviews-content { max-width: 520px; }

.google-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
}

.google-badge-text {
  display: flex;
  flex-direction: column;
}

.google-badge-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.google-badge-brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 0.15rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--purple);
  padding-block: 5rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(46,125,50,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 50%, rgba(0,0,0,0.2) 0%, transparent 60%);
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.cta-banner-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn--white {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--grey-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-logo { height: 48px; width: auto; margin-bottom: 1.2rem; display: block; mix-blend-mode: normal; }

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.social-link:hover {
  color: var(--white);
  border-color: var(--purple);
  background: rgba(123,53,144,0.2);
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  font-family: var(--font-body);
  margin-bottom: 1.2rem;
}

.footer-links li + li { margin-top: 0.6rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-address p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.footer-address a {
  transition: color var(--transition);
}
.footer-address a:hover { color: var(--purple-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 2rem;
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { max-width: 480px; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }

  .header-cta { display: none; }
  .hamburger { display: flex; }

  .nav-primary {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    overflow-y: auto;
  }

  .nav--open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-link { padding: 1rem 0; font-size: 1.1rem; width: 100%; border-bottom: 1px solid var(--grey-mid); border-radius: 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 1rem; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-stats { flex-wrap: wrap; gap: 2rem; }

  .section { padding-block: 4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .trust-divider { display: none; }
  .trust-bar-inner { gap: 1rem; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1.25rem; }
  .cta-banner-actions { flex-direction: column; align-items: center; }
}


/* ============================================================
   Page-specific styles
   ============================================================ */
/* ---- about.html page styles ---- */
    .page-hero {
      background: var(--charcoal);
      padding-top: calc(var(--header-h) + 4rem);
      padding-bottom: 4rem;
      position: relative;
      overflow: hidden;
    }
    .page-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 55% 70% at 85% 50%, rgba(46,125,50,0.18) 0%, transparent 65%);
    }
    .page-hero-inner {
      position: relative;
      z-index: 1;
      max-width: var(--max-w);
      margin-inline: auto;
      padding-inline: 2rem;
    }
    .page-hero h1 { color: var(--white); }
    .page-hero p { color: rgba(255,255,255,0.6); max-width: 560px; margin-top: 1rem; font-size: 1.05rem; }

    /* Story */
    .story-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: start;
    }
    .story-content h2 { margin-bottom: 1.2rem; }
    .story-content p { color: var(--text-muted); margin-bottom: 1rem; }

    .story-visual {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .story-stat-card {
      background: var(--charcoal);
      border-radius: var(--radius-lg);
      padding: 2rem;
      color: var(--white);
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .story-num {
      font-family: var(--font-display);
      font-size: 2.8rem;
      font-weight: 700;
      color: var(--purple-light);
      line-height: 1;
      flex-shrink: 0;
    }

    .story-stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.4; }

    /* Values */
    .values-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .value-card {
      padding: 2rem;
      border-radius: var(--radius-lg);
      border: 1px solid var(--grey-border);
      background: var(--white);
      transition: box-shadow var(--transition), border-color var(--transition);
    }
    .value-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }

    .value-icon {
      width: 48px; height: 48px;
      border-radius: var(--radius);
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 1.2rem;
    }
    .value-icon--purple { background: rgba(123,53,144,0.08); color: var(--purple); }
    .value-icon--green  { background: rgba(46,125,50,0.08); color: var(--green); }
    .value-icon--grey   { background: var(--grey-light); color: var(--slate); }

    .value-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
    .value-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

    /* Team */
    .team-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 2rem;
    }

    .team-card {
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid var(--grey-border);
      background: var(--white);
      transition: box-shadow var(--transition);
    }
    .team-card:hover { box-shadow: var(--shadow-md); }

    .team-avatar {
      height: 220px;
      background: var(--charcoal);
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-display);
      font-size: 4rem;
      font-weight: 600;
      color: rgba(255,255,255,0.15);
      position: relative;
      overflow: hidden;
    }

    .team-avatar::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 60%;
      background: linear-gradient(to top, rgba(44,44,58,0.6), transparent);
    }

    .team-avatar--a { background: linear-gradient(135deg, #3C1A50, var(--charcoal)); }
    .team-avatar--b { background: linear-gradient(135deg, #1A3C20, var(--charcoal)); }
    .team-avatar--c { background: linear-gradient(135deg, #1A2A3C, var(--charcoal)); }

    .team-initials {
      font-family: var(--font-display);
      font-size: 3rem;
      font-weight: 600;
      color: rgba(255,255,255,0.3);
      z-index: 1;
    }

    .team-info { padding: 1.5rem; }
    .team-name { font-size: 1.1rem; font-family: var(--font-display); font-weight: 600; color: var(--charcoal); margin-bottom: 0.25rem; }
    .team-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple); font-weight: 600; margin-bottom: 0.75rem; }
    .team-bio { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; }

    @media (max-width: 768px) {
      .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .values-grid { grid-template-columns: 1fr; }
      .team-grid { grid-template-columns: 1fr; }
    }
/* ---- services.html page styles ---- */
    .page-hero {
      background: var(--charcoal);
      padding-top: calc(var(--header-h) + 4rem);
      padding-bottom: 4rem;
      position: relative;
      overflow: hidden;
    }
    .page-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(123,53,144,0.2) 0%, transparent 65%);
    }
    .page-hero-inner {
      position: relative;
      z-index: 1;
      max-width: var(--max-w);
      margin-inline: auto;
      padding-inline: 2rem;
    }
    .page-hero h1 { color: var(--white); }
    .page-hero p { color: rgba(255,255,255,0.65); max-width: 560px; margin-top: 1rem; font-size: 1.1rem; }

    .service-detail {
      padding-block: 5rem;
      border-bottom: 1px solid var(--grey-border);
    }
    .service-detail:last-of-type { border-bottom: none; }
    .service-detail-inner {
      max-width: var(--max-w);
      margin-inline: auto;
      padding-inline: 2rem;
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 5rem;
      align-items: start;
    }
    .service-detail:nth-child(even) .service-detail-inner { direction: rtl; }
    .service-detail:nth-child(even) .service-detail-inner > * { direction: ltr; }

    .service-detail-icon {
      width: 56px; height: 56px;
      border-radius: var(--radius);
      display: flex; align-items: center; justify-content: center;
      background: rgba(123,53,144,0.08);
      color: var(--purple);
      margin-bottom: 1.5rem;
    }
    .service-detail-icon--green { background: rgba(46,125,50,0.08); color: var(--green); }

    .service-detail h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
    .service-detail p { color: var(--text-muted); margin-bottom: 1rem; }

    .feature-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
    .feature-item {
      display: flex; gap: 0.75rem; align-items: flex-start;
      font-size: 0.92rem; color: var(--text-body);
    }
    .feature-item::before {
      content: '';
      display: block;
      width: 18px; height: 18px;
      flex-shrink: 0;
      background: var(--green);
      border-radius: 50%;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: center;
      background-size: 10px;
      margin-top: 2px;
    }

    .service-panel {
      background: var(--grey-light);
      border-radius: var(--radius-lg);
      padding: 2.5rem;
      border: 1px solid var(--grey-border);
    }
    .service-panel h4 { margin-bottom: 1.5rem; }

    @media (max-width: 768px) {
      .service-detail-inner { grid-template-columns: 1fr; direction: ltr !important; gap: 2rem; }
    }
/* ---- contact.html page styles ---- */
    .page-hero {
      background: var(--charcoal);
      padding-top: calc(var(--header-h) + 4rem);
      padding-bottom: 4rem;
      position: relative;
      overflow: hidden;
    }
    .page-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(123,53,144,0.22) 0%, transparent 65%);
    }
    .page-hero-inner {
      position: relative;
      z-index: 1;
      max-width: var(--max-w);
      margin-inline: auto;
      padding-inline: 2rem;
    }
    .page-hero h1 { color: var(--white); }
    .page-hero p { color: rgba(255,255,255,0.6); max-width: 520px; margin-top: 1rem; font-size: 1.05rem; }

    /* Contact layout */
    .contact-section {
      padding-block: 5rem;
    }
    .contact-grid {
      max-width: var(--max-w);
      margin-inline: auto;
      padding-inline: 2rem;
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      gap: 5rem;
      align-items: start;
    }

    /* Form */
    .contact-form-wrap { }
    .form-heading { margin-bottom: 0.5rem; }
    .form-subhead { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2.5rem; }

    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

    .field {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-bottom: 1.4rem;
    }
    .field:last-of-type { margin-bottom: 0; }

    label {
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      color: var(--charcoal);
    }

    input, select, textarea {
      font-family: var(--font-body);
      font-size: 0.92rem;
      padding: 0.8rem 1rem;
      border: 1.5px solid var(--grey-border);
      border-radius: var(--radius);
      color: var(--text-body);
      background: var(--white);
      transition: border-color var(--transition), box-shadow var(--transition);
      width: 100%;
      appearance: none;
    }

    input:focus, select:focus, textarea:focus {
      outline: none;
      border-color: var(--purple);
      box-shadow: 0 0 0 3px rgba(123,53,144,0.1);
    }

    textarea { resize: vertical; min-height: 130px; }

    .form-submit { margin-top: 1.8rem; }
    .form-submit .btn { width: 100%; justify-content: center; padding-block: 1rem; }

    .form-note {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-top: 0.8rem;
      text-align: center;
    }

    /* Success state */
    .form-success {
      display: none;
      background: rgba(46,125,50,0.07);
      border: 1px solid rgba(46,125,50,0.25);
      border-radius: var(--radius-lg);
      padding: 2rem;
      text-align: center;
      margin-top: 1rem;
    }
    .form-success h3 { color: var(--green); margin-bottom: 0.5rem; font-size: 1.2rem; }
    .form-success p { font-size: 0.9rem; color: var(--text-muted); }

    /* Info panel */
    .contact-info { }
    .info-panel {
      background: var(--charcoal);
      border-radius: var(--radius-lg);
      padding: 2.5rem;
      color: var(--white);
      margin-bottom: 1.5rem;
    }

    .info-heading {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.4);
      margin-bottom: 1.5rem;
    }

    .info-item {
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      margin-bottom: 1.5rem;
    }
    .info-item:last-child { margin-bottom: 0; }

    .info-icon {
      width: 40px; height: 40px;
      border-radius: var(--radius);
      background: rgba(123,53,144,0.2);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      color: var(--purple-light);
    }

    .info-label {
      font-size: 0.75rem;
      color: rgba(255,255,255,0.4);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 0.25rem;
    }

    .info-value {
      font-size: 0.92rem;
      color: rgba(255,255,255,0.85);
      line-height: 1.5;
    }
    .info-value a { transition: color var(--transition); }
    .info-value a:hover { color: var(--purple-light); }

    /* Hours */
    .hours-panel {
      background: var(--grey-light);
      border: 1px solid var(--grey-border);
      border-radius: var(--radius-lg);
      padding: 2rem;
    }
    .hours-heading {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 1.2rem;
    }
    .hours-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.88rem;
      padding-block: 0.5rem;
      border-bottom: 1px solid var(--grey-border);
    }
    .hours-row:last-child { border-bottom: none; }
    .hours-day { color: var(--text-body); font-weight: 500; }
    .hours-time { color: var(--text-muted); }
    .hours-closed { color: var(--grey-border); }

    /* Map */
    .map-section { padding-bottom: 0; }
    .map-wrap {
      width: 100%;
      height: 360px;
      background: var(--grey-mid);
      position: relative;
      overflow: hidden;
    }
    .map-wrap iframe {
      width: 100%; height: 100%; border: none;
      filter: grayscale(0.3) contrast(1.05);
    }

    @media (max-width: 768px) {
      .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
      .form-row { grid-template-columns: 1fr; }
    }