:root{
  --blue:#78aee6; --blue-dark:#4d82bf; --lav:#a8a7ee; --ink:#243244;
  --muted:#66758a; --cream:#f7f9fc; --white:#fff; --purple:#8e2d83; --line:#dce6f2;
  --shadow:0 18px 50px rgba(45,80,120,.13); --radius:24px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.6}
a{color:inherit;text-decoration:none}img{display:block;max-width:100%}.container{width:min(1180px,calc(100% - 40px));margin:auto}
.topline{font-size:13px;text-align:center;padding:8px 16px;background:#f6f9fd;color:#52657a;border-bottom:1px solid var(--line)}
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid rgba(210,225,240,.8)}
.navbar{display:flex;align-items:center;justify-content:space-between;gap:26px;min-height:82px}.brand{display:flex;align-items:center;gap:12px;min-width:max-content}.brand-mark{width:48px;height:48px;border-radius:50%;background:linear-gradient(145deg,#ecf5ff,#a5cbf2);display:grid;place-items:center;color:var(--purple);font-size:22px;border:1px solid #d5e7f8}.brand-text strong{display:block;font-family:Georgia,serif;font-size:20px;line-height:1.05}.brand-text span{font-size:12px;color:var(--muted)}
nav{display:flex;align-items:center;gap:25px;font-size:14px}.nav-cta,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:999px;font-weight:700;transition:.2s}.nav-cta,.btn-primary{background:linear-gradient(135deg,var(--blue-dark),var(--lav));color:#fff;box-shadow:0 8px 24px rgba(78,127,185,.24)}.btn-secondary{background:#fff;color:var(--blue-dark);border:1px solid #bad4ee}.btn:hover,.nav-cta:hover{transform:translateY(-1px)}
.mobile-toggle{display:none;border:0;background:none;font-size:24px}
.hero{position:relative;overflow:hidden;padding:78px 0 84px;background:radial-gradient(circle at 80% 20%,#edf4ff 0,rgba(237,244,255,0) 42%),linear-gradient(180deg,#fff,#f7fbff)}.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:58px;align-items:center}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--purple);font-weight:800;font-size:13px;letter-spacing:.08em;text-transform:uppercase}.hero h1,.page-hero h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(44px,5vw,72px);line-height:1.02;margin:14px 0 22px;color:#26303e}.hero p{font-size:19px;color:var(--muted);max-width:650px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.trust-row{display:flex;gap:22px;flex-wrap:wrap;margin-top:30px;font-size:13px;color:#607085}.trust-row span{display:flex;gap:7px;align-items:center}.trust-dot{width:8px;height:8px;border-radius:50%;background:var(--blue)}
.hero-card{position:relative;border-radius:32px;overflow:hidden;box-shadow:var(--shadow);min-height:520px;background:#dfeaf7}.hero-card img{width:100%;height:100%;min-height:520px;object-fit:cover;object-position:center}.hero-card:after{content:"";position:absolute;inset:auto 0 0 0;height:38%;background:linear-gradient(transparent,rgba(20,37,58,.48))}.hero-badge{position:absolute;z-index:2;left:24px;bottom:24px;background:rgba(255,255,255,.94);padding:16px 18px;border-radius:18px;max-width:310px;box-shadow:0 12px 30px rgba(0,0,0,.12)}.hero-badge strong{display:block;font-family:Georgia,serif;font-size:20px}.hero-badge span{font-size:13px;color:var(--muted)}
.section{padding:86px 0}.section.alt{background:var(--cream)}.section-head{display:flex;justify-content:space-between;gap:40px;align-items:end;margin-bottom:36px}.section-head h2{font-family:Georgia,serif;font-size:clamp(34px,4vw,50px);font-weight:500;line-height:1.1;margin:8px 0}.section-head p{max-width:580px;color:var(--muted);margin:0}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.service-card{position:relative;min-height:430px;border-radius:24px;overflow:hidden;color:#fff;box-shadow:var(--shadow)}.service-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.service-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,24,36,.05),rgba(16,24,36,.84))}.service-content{position:absolute;z-index:2;left:24px;right:24px;bottom:26px}.service-content h3{font-family:Georgia,serif;font-size:29px;line-height:1;margin:0 0 12px}.service-content p{font-size:14px;margin:0 0 15px;color:#edf2f7}.text-link{font-weight:800;font-size:13px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:58px;align-items:center}.split img{border-radius:28px;box-shadow:var(--shadow);height:520px;width:100%;object-fit:cover}.kicker{color:var(--purple);font-weight:800;font-size:13px;letter-spacing:.08em;text-transform:uppercase}.split h2,.content h2{font-family:Georgia,serif;font-size:44px;line-height:1.1;font-weight:500;margin:10px 0 18px}.split p,.content p{color:var(--muted)}.check-list{display:grid;gap:14px;margin:24px 0}.check{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start}.check i{font-style:normal;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#e8f2fd;color:var(--blue-dark);font-weight:800}
.cta-band{padding:42px;border-radius:30px;background:linear-gradient(135deg,#6f9fd6,#9c9ce9);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:30px;box-shadow:var(--shadow)}.cta-band h2{font-family:Georgia,serif;font-weight:500;font-size:38px;line-height:1.1;margin:0 0 8px}.cta-band p{margin:0;color:#eef5ff}.cta-band .btn{background:#fff;color:#4f76ac}
.page-hero{padding:72px 0 54px;background:linear-gradient(180deg,#f8fbff,#fff)}.page-hero .wrap{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:center}.page-hero img{width:100%;height:440px;object-fit:cover;border-radius:28px;box-shadow:var(--shadow)}.page-hero p{font-size:18px;color:var(--muted)}
.content{max-width:820px;margin:auto}.content h3{font-family:Georgia,serif;font-size:28px;margin-top:32px}.notice{border:1px solid #cfe2f5;background:#f4f9fe;padding:18px 20px;border-radius:16px;color:#52677e;font-size:14px}.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}.fact{padding:20px;border-radius:18px;background:#fff;border:1px solid var(--line)}.fact strong{display:block;font-family:Georgia,serif;font-size:24px}.fact span{font-size:13px;color:var(--muted)}
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:30px}.contact-card{padding:34px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow)}.contact-card h3{font-family:Georgia,serif;font-size:30px;margin-top:0}.contact-list{display:grid;gap:18px}.contact-item strong{display:block}.contact-item span,.contact-item a{color:var(--muted)}form{display:grid;gap:14px}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{font-size:13px;font-weight:700}input,textarea,select{width:100%;margin-top:6px;padding:13px 14px;border-radius:12px;border:1px solid #cbd9e8;font:inherit;background:#fbfdff}textarea{min-height:130px;resize:vertical}
footer{background:#25354a;color:#dce7f4;padding:58px 0 24px;margin-top:70px}.footer-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:36px}.footer-grid h4{color:#fff;margin-top:0}.footer-grid a,.footer-grid p{color:#b9c9dc;font-size:14px}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:36px;padding-top:20px;font-size:12px;color:#94a9bf}
@media(max-width:900px){nav{display:none;position:absolute;top:82px;left:0;right:0;background:#fff;padding:20px;box-shadow:0 15px 30px rgba(30,50,75,.12);flex-direction:column;align-items:flex-start}.navbar.open nav{display:flex}.mobile-toggle{display:block}.hero-grid,.split,.page-hero .wrap,.contact-grid{grid-template-columns:1fr}.hero{padding-top:48px}.hero-card,.hero-card img{min-height:430px}.grid-3,.facts{grid-template-columns:1fr}.section-head{display:block}.split img{height:400px}.footer-grid{grid-template-columns:1fr 1fr}.row{grid-template-columns:1fr}}
@media(max-width:600px){.container{width:min(100% - 26px,1180px)}.hero h1,.page-hero h1{font-size:43px}.section{padding:64px 0}.cta-band{padding:28px;display:block}.cta-band .btn{margin-top:22px}.footer-grid{grid-template-columns:1fr}.brand-text span{display:none}}

/* Official Addicted and Pregnant logo */
.brand-logo{display:flex;align-items:center;text-decoration:none}
.brand-logo img{display:block;width:220px;max-width:32vw;height:auto;object-fit:contain}
footer .footer-logo img{width:240px;max-width:100%;filter:none}
@media(max-width:760px){.brand-logo img{width:170px;max-width:58vw}footer .footer-logo img{width:210px}}

/* Responsive artwork */
.responsive-picture{display:block;width:100%;height:100%;}
.hero-image{display:block;width:100%;height:100%;object-fit:cover;}
.hero-card .responsive-picture{min-height:520px;}
.split-picture{height:520px;border-radius:28px;overflow:hidden;box-shadow:var(--shadow);}
.page-hero-picture{height:440px;border-radius:28px;overflow:hidden;box-shadow:var(--shadow);}
.page-hero-picture .hero-image,.split-picture .hero-image{border-radius:0;box-shadow:none;}
@media(max-width:900px){.hero-card .responsive-picture{min-height:430px}.split-picture{height:400px}.page-hero-picture{height:auto;aspect-ratio:4/5}.page-hero-picture .hero-image{height:100%;}}
@media(max-width:600px){.hero-card{min-height:0}.hero-card .responsive-picture{min-height:0;height:auto}.hero-card .hero-image{height:auto;min-height:0;object-fit:contain}.split-picture{height:auto;aspect-ratio:3/4}.split-picture .hero-image{height:100%;}.page-hero-picture{aspect-ratio:3/4}}

.topline a { color: inherit; text-decoration: none; font-weight: inherit; }
.topline a:hover, .topline a:focus { text-decoration: underline; }

/* Responsive card system -------------------------------------------------- */
/* Keep every card usable at desktop, tablet, and phone widths. */
.service-card,
.fact,
.contact-card,
.hero-badge,
.cta-band {
  min-width: 0;
}

.service-content,
.fact,
.contact-card,
.hero-badge,
.cta-band {
  overflow-wrap: anywhere;
}

/* Service cards: 3 columns on large screens, 2 on tablets, 1 on phones. */
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.service-card {
  display: block;
  width: 100%;
  min-height: clamp(390px, 34vw, 460px);
  isolation: isolate;
}

.service-card img {
  min-width: 100%;
  min-height: 100%;
}

.service-content {
  left: clamp(18px, 2.2vw, 28px);
  right: clamp(18px, 2.2vw, 28px);
  bottom: clamp(20px, 2.4vw, 30px);
}

.service-content h3 {
  font-size: clamp(24px, 2.3vw, 30px);
}

.service-content p {
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.55;
}

/* Informational cards and contact cards also scale without overflow. */
.facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact,
.contact-card {
  width: 100%;
  height: 100%;
}

.contact-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

/* Flexible card-like CTA and badge layouts. */
.cta-band > * {
  min-width: 0;
}

.hero-badge {
  width: min(310px, calc(100% - 48px));
}

@media (max-width: 1050px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-card {
    padding: clamp(24px, 5vw, 34px);
  }

  .cta-band {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .grid-3,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 .service-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .service-card {
    min-height: clamp(340px, 105vw, 430px);
    border-radius: 20px;
  }

  .service-content {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }

  .fact {
    padding: 18px;
  }

  .contact-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .hero-badge {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .service-card {
    min-height: 330px;
  }

  .service-content h3 {
    font-size: 23px;
  }

  .service-content p {
    font-size: 14px;
  }

  .contact-card h3 {
    font-size: 26px;
  }
}


/* Service cards v2: responsive media + text layout ------------------------ */
/* Images now occupy their own responsive media area instead of being
   absolutely positioned behind the text. This keeps both image and copy
   readable at every viewport width. */
#services .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
  align-items: stretch;
}

#services .service-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

#services .service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(45,80,120,.18);
}

#services .service-card::after {
  display: none;
}

#services .service-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #e8eef6;
  flex: 0 0 auto;
}

#services .service-media img {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

#services .service-content {
  position: static;
  inset: auto;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 28px);
  color: var(--ink);
  overflow-wrap: normal;
}

#services .service-content h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.12;
}

#services .service-content p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
}

#services .service-content .text-link {
  margin-top: auto;
  color: var(--blue-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  #services .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #services .grid-3 .service-card:last-child {
    grid-column: 1 / -1;
    max-width: none;
  }

  #services .grid-3 .service-card:last-child .service-media {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 640px) {
  #services .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #services .grid-3 .service-card:last-child {
    grid-column: auto;
  }

  #services .service-card {
    border-radius: 20px;
  }

  #services .service-media,
  #services .grid-3 .service-card:last-child .service-media {
    aspect-ratio: 4 / 3;
  }

  #services .service-content {
    padding: 21px 20px 23px;
  }
}

@media (max-width: 420px) {
  #services .service-media,
  #services .grid-3 .service-card:last-child .service-media {
    aspect-ratio: 1 / 1;
  }
}

/* Service card responsive art direction ----------------------------------- */
/* Each service card now selects a desktop, tablet, or mobile image file
   using <picture>, matching the responsive strategy used by the hero. */
#services .service-picture {
  display: block;
  width: 100%;
  height: 100%;
}

#services .service-picture img {
/* Opiates navigation dropdown — mouse and keyboard friendly */
.nav-dropdown{
  position:relative;
  display:flex;
  align-items:stretch;
}

/* Make the trigger a generous target instead of requiring precise pointer movement. */
.nav-dropdown-toggle{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:7px;
  padding:14px 10px;
  margin:-14px -10px;
  border-radius:10px;
  line-height:1;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown.is-open .nav-dropdown-toggle{
  background:#eef6ff;
  color:var(--blue-dark);
  outline:none;
}

.nav-caret{
  font-size:11px;
  transition:transform .18s ease;
}

.nav-dropdown.is-open .nav-caret,
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret{
  transform:rotate(180deg);
}

/*
  The submenu touches the trigger at top:100%, so there is no "dead zone"
  that can make the menu disappear while the mouse travels downward.
*/
.nav-dropdown-menu{
  display:none;
  position:absolute;
  top:100%;
  left:-14px;
  transform:none;
  min-width:230px;
  padding:10px;
  margin-top:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 16px 35px rgba(30,50,75,.16);
  z-index:1000;
}

/* A transparent hover bridge adds extra forgiveness at the menu boundary. */
.nav-dropdown-menu::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-12px;
  height:12px;
}

.nav-dropdown-menu a{
  display:block;
  padding:12px 14px;
  border-radius:9px;
  white-space:nowrap;
  line-height:1.2;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus{
  background:#eef6ff;
  color:var(--blue-dark);
  outline:none;
}

/* Desktop users can hover naturally or click to lock the menu open. */
@media(min-width:901px){
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu{
    display:block;
  }
}

/* Mobile/tablet navigation: submenu is accordion-style rather than always expanded. */
@media(max-width:900px){
  .nav-dropdown{
    width:100%;
    display:block;
  }

  .nav-dropdown-toggle{
    width:100%;
    justify-content:space-between;
    margin:0;
    padding:10px 0;
    border-radius:0;
    text-align:left;
  }

  .nav-dropdown-menu{
    display:none;
    position:static;
    min-width:0;
    transform:none;
    padding:5px 0 5px 16px;
    margin:2px 0 4px;
    border:0;
    border-left:2px solid var(--line);
    border-radius:0;
    box-shadow:none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu{
    display:block;
  }

  .nav-dropdown-menu::before{
    display:none;
  }

  .nav-dropdown-menu a{
    padding:9px 10px;
  }
}

.substance-links{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin:28px 0;
}

.substance-item{
  scroll-margin-top:120px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}

.substance-item h3{margin-top:0}

@media(max-width:900px){
  .substance-links{grid-template-columns:1fr}
}


/* Production-safe desktop navigation alignment */
@media(min-width:901px){
  nav{
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
  }

  nav > a,
  nav > .nav-dropdown{
    flex:0 0 auto;
  }

  .nav-dropdown{
    align-self:stretch;
    display:flex;
    align-items:center;
  }

  .nav-dropdown-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:auto;
    padding:8px 10px;
    margin:-8px -10px;
    white-space:nowrap;
    vertical-align:middle;
  }
}
