/* ===========================================================
   ErectionWave — shared stylesheet
   Clinical aesthetic: deep navy + bright clinical blue
   =========================================================== */

:root {
  --navy:        #0e2233;
  --navy-deep:   #081722;
  --navy-soft:   #16344c;
  --gold:        #0ea5b7;   /* clinical blue accent */
  --gold-light:  #22c9da;   /* bright blue (for navy bg) */
  --paper:       #f4f7f9;
  --paper-warm:  #e8eef2;
  --ink:         #1c1c1c;
  --ink-soft:    #46484a;
  --white:       #ffffff;
  --line:        #d3dde3;
  --shadow:      0 18px 50px -20px rgba(8, 23, 34, 0.45);
  --radius:      4px;
  --maxw:        1340px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1.05rem; color: var(--ink-soft); }

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: "Source Sans 3", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 15px 32px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
  background: var(--gold);
  color: var(--navy-deep);
  cursor: pointer;
  transition: all .22s ease;
  font-size: 0.97rem;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); }
.btn-dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--white); }

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cbd6df;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 13px; padding-bottom: 13px; gap: 18px; flex-wrap: wrap; }
.topbar a { color: var(--gold-light); }
.topbar a:hover { color: var(--white); }
.topbar .ti { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,238,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 32px; }
.brand { font-family: "Cormorant Garamond", serif; font-size: 1.7rem; font-weight: 700; color: var(--navy); letter-spacing: 0.5px; }
.brand span { color: var(--gold); }
.brand .tm { font-size: 0.7rem; vertical-align: super; color: var(--gold); }

.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 60px; width: auto; display: block; }
.footer-logo { height: 56px; width: auto; margin-bottom: 14px; }

.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-list > li { position: relative; }

.nav-list > li > a,
.nav-top {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.02rem; font-weight: 600; color: var(--navy);
  letter-spacing: 0.3px; padding: 8px 15px; position: relative;
  background: none; border: none; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1;
}
.nav-list > li > a:hover,
.nav-top:hover { color: var(--gold); }
.nav-list > li > a.active { color: var(--gold); }

.caret {
  width: 0; height: 0; display: inline-block;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .2s ease;
}
.has-dropdown:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; padding: 8px 0; margin-top: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
/* hover bridge so the menu doesn't close in the gap */
.has-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 0;
  width: 100%; height: 12px;
}
.dropdown li a {
  display: block; padding: 9px 18px; font-size: 0.9rem;
  font-weight: 500; color: var(--navy); white-space: nowrap;
}
.dropdown li a:hover { background: var(--paper-warm); color: var(--gold); }
.dropdown li a.active { color: var(--gold); }

.nav-list > li > a.nav-cta {
  background: var(--navy) !important; color: var(--white) !important;
  padding: 11px 22px !important; border-radius: var(--radius);
  white-space: nowrap; margin-left: 8px;
}
.nav-list > li > a.nav-cta:hover { background: var(--navy-soft) !important; color: var(--white) !important; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--navy); display: block; }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(rgba(8,23,34,.82), rgba(8,23,34,.88)),
    url("../images/hero.jpg") center/cover no-repeat;
  color: var(--white);
  position: relative;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 30%, rgba(199,154,75,.18), transparent 60%);
  pointer-events: none;
}
.hero .wrap { padding-top: 30px; padding-bottom: 38px; position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero p { color: #d4dde4; font-size: 1.18rem; max-width: 48ch; margin-top: 14px; margin-bottom: 24px; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-sub {
  margin-top: 30px; display: flex; gap: 38px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px;
}
.hero-sub .stat .n { font-family: "Cormorant Garamond", serif; font-size: 2.3rem; color: var(--gold-light); line-height: 1; }
.hero-sub .stat .l { font-size: 0.84rem; letter-spacing: 1.5px; text-transform: uppercase; color: #aebcc6; margin-top: 6px; }

/* page hero (interior pages) */
.page-hero {
  background: linear-gradient(rgba(8,23,34,.9), rgba(8,23,34,.93)), url("../images/hero.jpg") center/cover;
  color: var(--white); text-align: center;
}
.page-hero .wrap { padding: 76px 40px; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #c9d3db; max-width: 56ch; margin: 14px auto 0; }
.crumb { font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 12px; }
.crumb a { color: var(--gold-light); }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 760px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.16rem; color: var(--ink-soft); }

.bg-paper-warm { background: var(--paper-warm); }
.bg-navy { background: var(--navy); color: #d4dde4; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .eyebrow { color: var(--gold-light); }
.bg-navy p { color: #b9c6d0; }

/* ---------- benefit / card grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .ic {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper-warm); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card .ic svg {
  width: 26px; height: 26px;
  display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; margin-bottom: 0; }

/* tick list */
.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-soft); font-weight: 500; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--navy-deep);
  font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.bg-navy .ticks li { color: #cdd8e0; }

/* split feature */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 58px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media {
  border-radius: var(--radius); min-height: 380px;
  background: var(--navy-soft) center/cover;
  box-shadow: var(--shadow);
}

/* steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step {
  display: grid; grid-template-columns: 68px 1fr; gap: 22px; align-items: start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: "Cormorant Garamond", serif; font-size: 2rem; font-weight: 700;
  color: var(--gold);
}
.step h3 { margin-bottom: 6px; color: var(--navy); }
.step p { margin-bottom: 0; font-size: 0.98rem; color: var(--ink-soft); }

/* testimonial */
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.quote {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px; position: relative;
}
.quote::before {
  content: "“"; font-family: "Cormorant Garamond", serif;
  font-size: 4.5rem; color: var(--gold); line-height: .5;
  position: absolute; top: 32px; left: 26px; opacity: .35;
}
.quote p { font-style: italic; font-size: 1.05rem; color: var(--ink); padding-top: 26px; }
.quote .who { font-weight: 700; color: var(--navy); font-style: normal; font-size: 0.95rem; }
.bg-navy .quote { background: var(--navy-soft); border-color: rgba(255,255,255,.1); }
.bg-navy .quote p { color: #e7edf1; }
.bg-navy .quote .who { color: var(--gold-light); }

/* media logos strip */
.media-strip { display: flex; gap: 20px 34px; align-items: center; justify-content: center; flex-wrap: wrap; }
.media-strip a { display: inline-flex; align-items: center; }
.media-strip img {
  height: 26px; width: auto; display: block;
  opacity: .55; transition: opacity .2s ease;
}
.media-strip a:hover img { opacity: 1; }
/* taller/square marks need a touch more height to balance */
.media-strip img[alt="CNN"],
.media-strip img[alt="NBC News"],
.media-strip img[alt="New York Post"],
.media-strip img[alt="The New York Times"] { height: 36px; }

/* cta band */
.cta-band { background: var(--navy-deep); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .phone {
  font-family: "Cormorant Garamond", serif; font-size: clamp(2rem,4vw,3rem);
  color: var(--gold-light); display: inline-block; margin: 10px 0 22px;
}
.cta-band .phone:hover { color: var(--white); }

/* faq */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: "Cormorant Garamond", serif; font-size: 1.3rem; font-weight: 600;
  color: var(--navy); padding: 24px 40px 24px 0; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--gold); transition: transform .2s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 24px; margin-bottom: 0; }

/* prose */
.prose { max-width: 82ch; }
.prose h2 { margin: 38px 0 14px; }
.prose h3 { margin: 28px 0 10px; }
.prose ul { margin: 0 0 18px 22px; }
.prose ul li { color: var(--ink-soft); margin-bottom: 7px; }

/* disclaimer note */
.note {
  background: var(--paper-warm); border-left: 3px solid var(--gold);
  padding: 18px 22px; font-size: 0.92rem; color: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0; margin: 26px 0;
}
.note strong { color: var(--navy); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #9fb0bd; padding-top: 64px; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; letter-spacing: 0.5px; }
.site-footer a { color: #9fb0bd; }
.site-footer a:hover { color: var(--gold-light); }

.footer-top {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 6px; max-width: 42ch; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.loc { font-size: 0.92rem; line-height: 1.55; }
.loc strong { color: var(--white); display: block; margin-bottom: 4px; font-size: 0.95rem; }
.footer-reach { margin-top: 16px; font-size: 0.92rem; }

.footer-links {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding: 26px 0; border-top: 1px solid rgba(255,255,255,.1);
}
.footer-links a {
  font-size: 0.88rem; font-weight: 500; white-space: nowrap;
}

.footer-press {
  display: flex; align-items: center; gap: 10px 28px; flex-wrap: wrap;
  padding: 26px 0; border-top: 1px solid rgba(255,255,255,.1);
}
.fp-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-light); white-space: nowrap;
}
.fp-logos { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.fp-logos a { display: inline-flex; align-items: center; }
.fp-logos img {
  height: 26px; width: auto; opacity: 0.6;
  transition: opacity .2s ease; display: block;
}
.fp-logos a:hover img { opacity: 1; }
/* logos with tall/square marks need a touch more height to balance */
.fp-logos img[alt="CNN"],
.fp-logos img[alt="NBC News"],
.fp-logos img[alt="New York Post"],
.fp-logos img[alt="The New York Times"] { height: 34px; }

.press-logo-grid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 38px 54px; margin-top: 10px;
}
.press-logo-grid img {
  height: 38px; width: auto; opacity: 0.72;
  transition: opacity .2s ease;
}
.press-logo-grid img:hover { opacity: 1; }
.press-logo-grid img[alt="CNN"],
.press-logo-grid img[alt="NBC News"],
.press-logo-grid img[alt="New York Post"],
.press-logo-grid img[alt="The New York Times"] { height: 52px; }
/* full-colour logos: shown at full opacity so brand colours read true */
.press-logo-grid img.logo-color { opacity: 0.92; }
.press-logo-grid img.logo-color:hover { opacity: 1; }
/* square-format colour logos need extra height to balance wide wordmarks */
.press-logo-grid img.logo-square { height: 70px; }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0;
  font-size: 0.82rem; display: flex; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; color: #7e909e;
}

/* reveal animation — only hides when JS is active (js-on class on <html>) */
.js-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-on .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 82%;
    max-width: 340px; background: var(--navy-deep);
    transition: right .3s ease; z-index: 60;
    overflow-y: auto; padding: 86px 0 40px;
  }
  .nav.open { right: 0; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list > li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-list > li > a,
  .nav-top {
    color: var(--white); font-size: 1.02rem; width: 100%;
    padding: 16px 32px; justify-content: space-between;
  }
  .nav-list > li > a.active,
  .nav-top.active { color: var(--gold-light); }
  .nav-top:hover, .nav-list > li > a:hover { color: var(--gold-light); }
  .caret { border-top-color: var(--gold-light); }
  /* dropdowns expand inline on mobile */
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none;
    margin: 0; padding: 0; min-width: 0;
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .has-dropdown.open .dropdown { max-height: 600px; }
  .has-dropdown::after { display: none; }
  .has-dropdown.open .caret { transform: rotate(180deg); }
  .dropdown li a {
    color: #c4d0d8; font-size: 0.95rem; padding: 12px 32px 12px 46px;
  }
  .dropdown li a:hover, .dropdown li a.active { background: rgba(255,255,255,.05); color: var(--gold-light); }
  .nav-cta { color: var(--white) !important; margin: 18px 32px 0; display: inline-block; }
  .menu-toggle { display: flex; z-index: 70; }
  .grid-3, .grid-2, .quote-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .ticks { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero .wrap { padding-top: 34px; padding-bottom: 44px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .topbar .wrap { justify-content: center; }
}

@media (max-width: 560px) {
  .loc-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-links { gap: 8px 18px; }
  .footer-press { flex-direction: column; align-items: flex-start; gap: 14px; }
  .fp-logos { gap: 20px; }
  .fp-logos img { height: 18px; }
  .fp-logos img[alt="CNN"],
  .fp-logos img[alt="NBC News"],
  .fp-logos img[alt="New York Post"],
  .fp-logos img[alt="The New York Times"] { height: 24px; }
  .press-logo-grid { gap: 26px 32px; }
  .press-logo-grid img { height: 26px; }
  .press-logo-grid img[alt="CNN"],
  .press-logo-grid img[alt="NBC News"],
  .press-logo-grid img[alt="New York Post"],
  .press-logo-grid img[alt="The New York Times"] { height: 36px; }
  .press-logo-grid img.logo-square { height: 50px; }
  /* compact top bar - smaller text, less padding */
  .topbar { font-size: 0.76rem; }
  .topbar .wrap { padding-top: 7px; padding-bottom: 7px; gap: 4px; line-height: 1.4; }
  /* tighten hero typography so it doesn't dominate the screen */
  h1 { font-size: 2.05rem; line-height: 1.18; }
  h2 { font-size: 1.62rem; }
  .hero p { font-size: 1.04rem; }
  .hero .wrap { padding-top: 28px; padding-bottom: 38px; }
  .hero-sub { gap: 22px; }
  .hero-sub .stat .n { font-size: 1.9rem; }
  .hero .actions { flex-direction: column; gap: 12px; }
  .hero .actions .btn { width: 100%; text-align: center; }
  /* full-width CTA buttons read better on phones */
  section { padding: 48px 0; }
  .wrap { padding: 0 20px; }
  .card { padding: 26px 22px; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 20px; }
  .step::before { font-size: 1.5rem; }
  .cta-band .phone { font-size: 2rem; }
  .page-hero .wrap { padding: 54px 20px; }
  .brand-logo img { height: 42px; }
  .eyebrow { letter-spacing: 2.5px; font-size: 0.72rem; }
  .media-strip { gap: 24px 32px; }
  .media-strip img { height: 22px; }
  .media-strip img[alt="CNN"],
  .media-strip img[alt="NBC News"],
  .media-strip img[alt="New York Post"],
  .media-strip img[alt="The New York Times"] { height: 30px; }
}
