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

:root {
  --color-primary: #2F6FAE;
  --color-primary-dark: #1E4E7A;
  --color-primary-light: #4A8CC8;
  --color-secondary: #3A6B7A;
  --color-accent: #D7E6F2;
  --color-brand-red: #B41617;
  --color-brand-red-dark: #8F1112;
  --color-bg: #FFFFFF;
  --color-text: #0F172A;
  --color-footer-bg: #0F172A;
  --color-footer-text: #c8d5e0;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
  --container-max: 1140px;
  --section-pad: clamp(50px, 6vw, 70px);
  --footer-bg: #0F172A;
  --footer-text: #c8d5e0;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); text-wrap: balance; line-height: 1.2; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fefefe;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  height: 90px;
  transition: box-shadow 0.3s ease, height 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(15,23,42,0.08);
  height: 74px;
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-brand {
  flex-shrink: 0;
  line-height: 0;
  padding: 0;
  margin: 0;
  margin-right: 20px;
  position: relative;
}
.nav-brand::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(58,107,122,0.25), transparent);
}
.nav-brand img {
  height: 72px;
  width: auto;
  display: block;
  padding: 6px 0;
  transition: height 0.3s ease, padding 0.3s ease;
}
.nav.scrolled .nav-brand img {
  height: 58px;
  padding: 5px 0;
}
.nav-links {
  display: flex; align-items: center; gap: 20px;
  list-style: none;
  flex-shrink: 0;
}
.nav-links > li {
  display: flex;
  align-items: center;
  height: 90px;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-brand-red); }
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--color-brand-red);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.dropdown { position: relative; }
.dropdown > a {
  display: flex; align-items: center; gap: 5px;
}
.dropdown > a .chevron {
  display: inline-block; width: 6px; height: 6px;
  border-right: 1.5px solid var(--color-secondary);
  border-bottom: 1.5px solid var(--color-secondary);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.dropdown:hover > a .chevron { transform: rotate(-135deg); }

/* Kill the underline ::after on dropdown parent links */
.nav-links .dropdown > a::after {
  display: none !important;
}
/* Chevron indicator via ::before (avoids ::after underline conflict) */
.nav-links .dropdown > a::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid var(--color-secondary);
  border-bottom: 1.5px solid var(--color-secondary);
  transform: rotate(45deg);
  margin-left: 6px;
  order: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.nav-links .dropdown:hover > a::before {
  transform: rotate(-135deg);
  border-color: var(--color-primary);
}
.dropdown-menu {
  position: absolute; top: 100%; left: -12px;
  background: white; min-width: 240px;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(15,23,42,0.1);
  padding: 10px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: all 0.25s ease;
  list-style: none;
}
.dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: block; padding: 8px 20px;
  font-size: 0.84rem; text-transform: none;
  letter-spacing: 0;
}
.dropdown-menu a:hover { background: var(--color-accent); }
.nav-phone {
  font-size: 0.85rem; font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-brand-red);
  color: white !important;
  padding: 6px 16px;
  height: auto !important;
  border-radius: 4px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--color-brand-red-dark); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Mobile nav */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-text); transition: all 0.3s ease; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 90px; left: 0; right: 0; bottom: 0;
    flex-direction: column; background: white;
    padding: 30px 24px; gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { border-bottom: 1px solid var(--color-accent); }
  .nav-links > li > a { display: block; padding: 14px 0; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none;
    padding: 0 0 10px 20px;
    display: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .nav-phone { padding: 14px 0; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex; align-items: center;
  margin-top: 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.65) 0%, rgba(47,111,174,0.45) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 680px;
  padding: 70px 0;
  margin-left: clamp(24px, 8vw, 120px);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  color: white;
  margin-bottom: 18px;
  line-height: 1.15;
}
.hero .subhead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  margin-bottom: 8px;
  line-height: 1.6;
}
.hero .detail {
  font-size: 0.85rem;
  color: rgba(215,230,242,0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 30px;
}
.btn-primary {
  display: inline-block;
  background: var(--color-brand-red);
  color: white;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none; border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: var(--color-brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180,22,23,0.3);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

/* ===== PAIN PANELS ===== */
.pain-panel {
  padding: var(--section-pad) 0;
}
.pain-panel .panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.pain-panel.reverse .panel-grid { direction: rtl; }
.pain-panel.reverse .panel-grid > * { direction: ltr; }
.pain-panel .panel-text { max-width: 520px; }
.pain-panel .panel-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 24px;
}
.pain-panel .panel-text p {
  margin-bottom: 16px;
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
}
.pain-panel .panel-text p:last-child { margin-bottom: 0; }
.pull-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--color-secondary);
  padding: 20px 0;
  margin: 20px 0;
  border-top: 1px solid rgba(58,107,122,0.2);
  border-bottom: 1px solid rgba(58,107,122,0.2);
  line-height: 1.5;
}
.pain-panel .panel-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15,23,42,0.1);
}
.pain-panel .panel-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 550px;
  object-position: center top;
}
.bg-accent { background: var(--color-accent); }
.bg-white { background: var(--color-bg); }

/* Text-only pain panels */
.pain-panel-text {
  padding: var(--section-pad) 0;
}
.panel-text-only {
  max-width: 640px;
  margin: 0 auto;
}
.panel-text-only h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 24px;
}
.panel-subhead {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 24px;
}
.panel-text-only p {
  margin-bottom: 16px;
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
}
.panel-emphasis {
  font-family: var(--font-heading) !important;
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  color: var(--color-secondary) !important;
  margin-top: 8px !important;
}

@media (max-width: 768px) {
  .pain-panel .panel-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pain-panel.reverse .panel-grid { direction: ltr; }
  .pain-panel .panel-img { max-height: 350px; }
}



/* ===== BRIDGE CTA ===== */
.bridge-cta {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  /* bg image set inline on section element */
  background-size: cover;
  background-position: center;
  background-color: #0F172A;
}
.bridge-cta .bridge-bg {
  position: absolute; inset: 0;
  background: rgba(15,23,42,0.72);
  z-index: 0;
}
.bridge-cta .bridge-content {
  position: relative; z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.bridge-cta .bridge-stripe {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 500;
  color: white;
  margin-bottom: 10px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(215,230,242,0.4);
}
.bridge-cta .bridge-body {
  color: rgba(255,255,255,0.88);
  font-size: 1.02rem;
  line-height: 1.8;
}
.bridge-cta .bridge-body p {
  color: rgba(255,255,255,0.88);
  font-size: 1.02rem;
  margin-bottom: 16px;
  line-height: 1.8;
}
.bridge-cta .bridge-body p:last-child {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: white;
  font-style: italic;
}

/* ===== BIO ===== */
.bio {
  padding: var(--section-pad) 0;
  background: var(--color-accent);
}
.bio-inner {
  max-width: var(--container-max);
  margin: 0 auto; padding: 0 24px;
}
.bio-logo-mark {
  text-align: center;
  margin-bottom: 8px;
}
.bio-logo-img {
  width: 140px;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 2px 12px rgba(192, 32, 32, 0.1));
}
@media (max-width: 480px) {
  .bio-logo-img { width: 110px; }
}
.bio-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--color-brand-red);
  text-align: center;
  margin-bottom: 40px;
}
.bio-headshots {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 36px;
}
.bio-headshot {
  text-align: center;
}
.bio-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.bio-link img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.bio-link:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 35px rgba(47,111,174,0.2);
}
.bio-link-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bio-link:hover .bio-link-label {
  opacity: 1;
  transform: translateY(0);
}
.bio-buttons {
  display: flex;
  gap: 36px;
  justify-content: center;
  margin-top: 12px;
}
.bio-headshot img {
  width: 260px; height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 6px 24px rgba(15,23,42,0.1);
  margin-bottom: 14px;
}
.bio-headshot .bio-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}
.bio-headshot .bio-cred {
  font-size: 0.85rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.bio-copy {
  max-width: 700px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 3px solid var(--color-primary);
  text-align: left;
}
.bio-copy p {
  margin-bottom: 18px;
  color: #334155;
  font-size: 1rem;
  line-height: 1.85;
}
.bio-copy p:first-child {
  font-size: 1.12rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.bio-copy .btn-secondary {
  margin-top: 8px;
}

@media (max-width: 480px) {
  .bio-headshots { gap: 20px; }
  .bio-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.bio-link img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.bio-link:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 35px rgba(47,111,174,0.2);
}
.bio-link-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bio-link:hover .bio-link-label {
  opacity: 1;
  transform: translateY(0);
}
.bio-buttons {
  display: flex;
  gap: 36px;
  justify-content: center;
  margin-top: 12px;
}
.bio-headshot img { width: 160px; height: 160px; }
}

/* ===== SERVICES ===== */
.services {
  padding: var(--section-pad) 0;
  background: var(--color-secondary);
}
.services-stripe {
  position: relative;
  padding: 30px 0;
  margin-bottom: 50px;
  text-align: center;
  overflow: hidden;
}
.services-stripe-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.services-stripe h2 {
  position: relative; z-index: 1;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.services-grid {
  max-width: var(--container-max);
  margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 36px 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: var(--color-brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(15,23,42,0.2);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  margin-bottom: 14px;
}
.service-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ===== FINAL CTA ===== */
.final-cta {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  /* bg image set inline on the section element */
  background-size: cover;
  background-position: center;
  background-color: #0F172A;
}
.final-cta .cta-overlay {
  position: absolute; inset: 0;
  background: rgba(15,23,42,0.78);
  z-index: 0;
}
.final-cta .cta-inner {
  position: relative; z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.final-cta .cta-text { color: white; }
.final-cta .cta-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  color: white;
  margin-bottom: 20px;
}
.final-cta .cta-text p {
  color: rgba(255,255,255,0.85);
  font-size: 1.02rem;
  margin-bottom: 16px;
  line-height: 1.8;
}
.final-cta .cta-contact-info {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.final-cta .cta-contact-info a {
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.final-cta .cta-contact-info a:hover { color: white; }

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 32px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: white;
  margin-bottom: 14px;
  transition: border-color 0.3s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.45);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .captcha {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}
.contact-form .captcha input { width: 70px; margin-bottom: 0; }
.contact-form .btn-primary { width: 100%; }

@media (max-width: 768px) {
  .final-cta .cta-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-footer-bg);
  padding: 40px 0 24px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto; padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-footer-text);
  font-weight: 500;
}
.footer-center {
  display: flex; align-items: center; gap: 20px;
}
.footer-pt {
  display: flex; align-items: center; gap: 10px;
}
.footer-pt a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-footer-text);
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.footer-pt a:hover { opacity: 1; }
.footer-pt svg { width: 18px; height: 18px; fill: currentColor; }
.footer-legal {
  display: flex; align-items: center; gap: 16px;
}
.footer-legal a {
  font-size: 0.78rem;
  color: var(--color-footer-text);
  opacity: 0.5;
}
.footer-legal a:hover { opacity: 0.8; }
.footer-copyright {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-footer-text);
  opacity: 0.4;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav {
  position: fixed;
  top: 90px; left: 0; right: 0; bottom: 0;
  background: white;
  z-index: 999;
  padding: 30px 24px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-links {
  list-style: none;
  padding: 0; margin: 0;
}
.mobile-nav-links li {
  border-bottom: 1px solid var(--color-accent);
}
.mobile-nav-links a {
  display: block;
  padding: 14px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mobile-nav-links a:hover { color: var(--color-primary); }
.mobile-nav-links .sub-menu {
  list-style: none;
  padding: 0 0 10px 20px;
}
.mobile-nav-links .sub-menu a {
  font-size: 0.88rem;
  text-transform: none;
  padding: 8px 0;
  font-weight: 400;
}
.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-accent);
}
.mobile-nav-cta .nav-phone {
  text-align: center;
  display: block;
}
.mobile-nav-cta .btn-primary {
  text-align: center;
}

@media (min-width: 769px) {
  .mobile-nav { display: none !important; }
  .nav-toggle { display: none !important; }
}
@media (max-width: 768px) {
  .nav-links { display: none !important; }
}

/* ===== INNER PAGE HERO ===== */
.inner-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: #0F172A;
  overflow: hidden;
}
.inner-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.7) 0%, rgba(47,111,174,0.5) 100%);
  z-index: 0;
}
.inner-hero-content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 60px 24px;
}
.inner-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: white;
  text-wrap: balance;
}

/* ===== INNER CONTENT ===== */
.inner-content {
  padding: var(--section-pad) 0;
}
.inner-content .container {
  max-width: var(--container-max);
}
.inner-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 20px;
  margin-top: 36px;
}
.inner-content h2:first-child { margin-top: 0; }
.inner-content h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 14px;
  margin-top: 28px;
}
.inner-content p {
  margin-bottom: 16px;
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
}
.inner-content ul, .inner-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: #334155;
  line-height: 1.8;
}
.inner-content li { margin-bottom: 6px; }
.inner-content em { color: var(--color-secondary); }

/* ===== SERVICE BODY (image-text grids) ===== */
.service-body {
  padding: var(--section-pad) 0;
}
.service-body .container {
  max-width: var(--container-max);
}
.service-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 20px;
  margin-top: 36px;
}
.service-body h2:first-child { margin-top: 0; }
.service-body p {
  margin-bottom: 16px;
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
}
.svc-img-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin: 36px 0;
}
.svc-img-section--reverse { direction: rtl; }
.svc-img-section--reverse > * { direction: ltr; }
.svc-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .svc-img-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .svc-img-section--reverse { direction: ltr; }
  .svc-img-col img { max-height: 350px; }
}

/* ===== SERVICE PAGE CONTENT DESIGN ===== */

/* Text column readability */
.svc-text-col {
  max-width: 640px;
}
.svc-text-col h2 {
  margin-top: 0;
}
.svc-text-col p,
.service-body .container > p {
  line-height: 1.85;
  margin-bottom: 18px;
}

/* H3 subheadings — designed, not just bold */
.service-body h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-primary), var(--color-secondary)) 1;
  border-image-width: 3px 0 0 0;
}

/* Visual block — approach/phase descriptions */
.svc-visual-block {
  background: var(--color-accent);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
  margin: 32px 0;
}
.svc-visual-block h3 {
  margin-top: 0;
  border-top: none;
  border-image: none;
  padding-top: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--color-text);
}
.svc-visual-block h3 + h3 {
  margin-top: 28px;
}
.svc-visual-block p {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 14px;
}
.svc-visual-block p:last-child { margin-bottom: 0; }

/* Strong tags — subtle emphasis */
.service-body strong {
  color: var(--color-secondary);
  font-weight: 700;
}

/* H2 spacing within service content */
.service-body .container > h2 {
  margin-top: 48px;
  margin-bottom: 20px;
}
.service-body .container > h2:first-child { margin-top: 0; }

@media (max-width: 768px) {
  .svc-visual-block {
    padding: 22px 20px;
    margin: 24px 0;
  }
  .svc-text-col { max-width: 100%; }
}

/* ===== ABOUT PAGE ===== */
.about-page .svc-img-section {
  align-items: start;
}
.about-page .svc-img-col img {
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.about-intro-grid .about-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 20px;
}
.about-intro-grid .about-text p {
  margin-bottom: 16px;
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
}
.about-intro-grid .about-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(15,23,42,0.1);
}
@media (max-width: 768px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: var(--section-pad) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 16px;
}
.contact-info > p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 28px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #334155;
}
.contact-detail svg {
  flex-shrink: 0;
  color: var(--color-primary);
}
.contact-detail a {
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.3s ease;
}
.contact-detail a:hover { color: var(--color-primary-dark); }
.contact-form-wrap {
  background: var(--color-accent);
  border-radius: 8px;
  padding: 36px;
}
.contact-form-wrap input,
.contact-form-wrap textarea {
  width: 100%;
  background: white;
  border: 1px solid rgba(15,23,42,0.15);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 14px;
  transition: border-color 0.3s ease;
}
.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder {
  color: rgba(15,23,42,0.4);
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.contact-form-wrap textarea { resize: vertical; min-height: 120px; }
.contact-form-wrap .btn-primary { width: 100%; }

/* Contact page WPForms — compact form */
.contact-section .wpforms-container,
.contact-form-wrap .wpforms-container { padding: 0 !important; margin: 0 !important; }
.contact-section .wpforms-container .wpforms-form,
.contact-form-wrap .wpforms-container .wpforms-form { padding: 0 !important; }
.contact-section .wpforms-field,
.contact-form-wrap .wpforms-field { margin-bottom: 10px !important; padding: 0 !important; }
.contact-section .wpforms-field-label,
.contact-form-wrap .wpforms-field-label {
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary) !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}
.contact-section .wpforms-field input[type="text"],
.contact-section .wpforms-field input[type="email"],
.contact-section .wpforms-field input[type="tel"],
.contact-section .wpforms-field textarea,
.contact-form-wrap .wpforms-field input[type="text"],
.contact-form-wrap .wpforms-field input[type="email"],
.contact-form-wrap .wpforms-field input[type="tel"],
.contact-form-wrap .wpforms-field textarea {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid rgba(15,23,42,0.15) !important;
  border-radius: 0 !important;
  padding: 6px 2px !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  color: var(--color-text) !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-section .wpforms-field input:focus,
.contact-section .wpforms-field textarea:focus,
.contact-form-wrap .wpforms-field input:focus,
.contact-form-wrap .wpforms-field textarea:focus {
  outline: none !important;
  border-bottom-color: var(--color-secondary) !important;
  box-shadow: 0 2px 0 0 var(--color-secondary) !important;
}
.contact-section .wpforms-field textarea,
.contact-form-wrap .wpforms-field textarea {
  min-height: 65px !important;
  max-height: 80px !important;
  resize: none !important;
}
.contact-section .wpforms-submit-container,
.contact-form-wrap .wpforms-submit-container {
  margin-top: 4px !important;
  padding: 0 !important;
}
.contact-section .wpforms-submit-container .wpforms-submit,
.contact-section .wpforms-container .wpforms-form button[type="submit"],
.contact-form-wrap .wpforms-submit-container .wpforms-submit,
.contact-form-wrap .wpforms-container .wpforms-form button[type="submit"] {
  display: block;
  width: 100%;
  background: var(--color-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 8px 24px !important;
  font-family: var(--font-body) !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  transition: all 0.3s ease;
}
.contact-section .wpforms-submit-container .wpforms-submit:hover,
.contact-section .wpforms-container .wpforms-form button[type="submit"]:hover,
.contact-form-wrap .wpforms-submit-container .wpforms-submit:hover,
.contact-form-wrap .wpforms-container .wpforms-form button[type="submit"]:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47,111,174,0.3);
}
/* Remove extra top gap inside form wrapper on contact page */
.contact-form-wrap .wpforms-container { margin-top: 0; padding-top: 0; }
.contact-form-wrap .wpforms-form { margin-top: 0; padding-top: 0; }

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

/* ===== FAQ PAGE ===== */
.faq-section {
  padding: var(--section-pad) 0;
}
.faq-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.faq-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 12px;
}
.faq-intro p {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
}
.faq-accordion {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  background: white;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.faq-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--color-brand-red) 0%, var(--color-brand-red-dark) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.faq-item.active {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180,22,23,0.12);
}
.faq-item.active::before {
  opacity: 1;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  gap: 16px;
  transition: color 0.3s ease;
}
.faq-question:hover { color: var(--color-brand-red); }
.faq-item.active .faq-question { color: var(--color-brand-red); }
.faq-chevron {
  display: inline-block;
  width: 12px; height: 12px;
  flex-shrink: 0;
  position: relative;
}
.faq-chevron::before,
.faq-chevron::after {
  content: '';
  position: absolute;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s ease;
}
.faq-chevron::before {
  width: 12px; height: 2px;
  top: 50%; left: 0;
  transform: translateY(-50%);
}
.faq-chevron::after {
  width: 2px; height: 12px;
  top: 0; left: 50%;
  transform: translateX(-50%);
}
.faq-item.active .faq-chevron::before {
  background: var(--color-brand-red);
}
.faq-item.active .faq-chevron::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-answer-inner {
  padding: 0 24px 24px;
  padding-left: 28px;
  border-top: 1px solid rgba(15,23,42,0.06);
}
.faq-answer-inner p {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.8;
  margin-top: 16px;
  margin-bottom: 0;
}
.faq-answer-inner p + p {
  margin-top: 12px;
}

/* Service cards as links */
a.service-card {
  text-decoration: none;
  display: block;
  color: inherit;
}

/* ===== WPForms integration — compact forms ===== */
.final-cta .wpforms-container { padding: 0 !important; margin: 0 !important; }
.final-cta .wpforms-container .wpforms-form { padding: 0 !important; }
.final-cta .wpforms-field { margin-bottom: 14px !important; padding: 0 !important; }
.final-cta .wpforms-field-label {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.78rem !important;
  margin-bottom: 4px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}
.final-cta .wpforms-field input,
.final-cta .wpforms-field textarea {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 4px !important;
  color: white !important;
  padding: 10px 12px !important;
  font-size: 0.92rem !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.5 !important;
}
.final-cta .wpforms-field input::placeholder,
.final-cta .wpforms-field textarea::placeholder {
  color: rgba(255,255,255,0.45) !important;
}
.final-cta .wpforms-field textarea {
  min-height: 80px !important;
  max-height: 100px !important;
  resize: none !important;
}
.final-cta .wpforms-submit-container {
  margin-top: 4px !important;
  padding: 0 !important;
}
.final-cta .wpforms-submit-container .wpforms-submit,
.final-cta .wpforms-container button[type="submit"] {
  background: var(--color-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 12px 28px !important;
  font-family: var(--font-body) !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  transition: all 0.3s ease;
}
.final-cta .wpforms-submit-container .wpforms-submit:hover,
.final-cta .wpforms-container button[type="submit"]:hover {
  background: var(--color-primary-dark) !important;
}
.final-cta .contact-form {
  padding: 28px;
}
.contact-form input,
.contact-form textarea {
  padding: 4px 10px;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.contact-form textarea { min-height: 50px; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* forceVisible safety net */
@keyframes forceVisible { to { opacity: 1; transform: none; } }

/* Above-fold: hero must never be invisible */
.hero .fade-in,
.inner-hero-content {
  animation: forceVisible 0s 2.5s forwards;
}

/* Inner page elements without scroll animation — forceVisible at 8s */
.inner-content,
.contact-grid,
.about-intro-grid,
.faq-accordion,
.faq-intro,
.service-body .container {
  animation: forceVisible 0s 8s forwards;
}

/* .visible MUST override forceVisible for scroll-reveal */
.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

/* ========== MOBILE RESPONSIVE INVARIANTS — DO NOT REMOVE ========== */
/* Required by tpa-scaffold Step 4.5 / validator Check 15.
   Prevents brand text from pushing the hamburger off-screen, submenu items
   from overflowing, and phantom horizontal scroll on iOS. */
html, body { overflow-x: clip; }

@media (max-width: 768px) {
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand-text, .brand-text small { white-space: normal; min-width: 0; }
  .mobile-toggle { flex-shrink: 0; margin-left: auto; }
  .nav-links > li { white-space: normal; }
  .dropdown-menu,
  .dropdown-menu li,
  .dropdown-menu a { white-space: normal; }
}

