/* ==========================================================================
   Alembic Therapy - Campaign Landing Pages
   Design language matched to alembictherapy.ca (theme.json + compiled CSS)
   - Fonts: Neue Haas Unica Pro (body) + Degular (headings), self-hosted
   - Palette: teal #1E5470, dark teal #003E5F, ivory #FDFCF7, pastels
   - Body 18px, weight 400, tight line heights
   - Small fully-rounded buttons, two-column content where possible
   ========================================================================== */

/* Fonts - hot-linked from the Alembic theme (same origin as page images) */
@font-face {
  font-family: 'Neue Haas Unica Pro';
  src: url('https://alembictherapy.ca/wp-content/themes/alembic/fonts/neue-haas-unica-pro/regular/font.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Haas Unica Pro';
  src: url('https://alembictherapy.ca/wp-content/themes/alembic/fonts/neue-haas-unica-pro/light/font.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Degular';
  src: url('https://alembictherapy.ca/wp-content/themes/alembic/fonts/degular/Degular-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Degular';
  src: url('https://alembictherapy.ca/wp-content/themes/alembic/fonts/degular/Degular-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #1E5470;
  --teal-dk: #003E5F;
  --ivory: #FDFCF7;
  --pastel: #D3DEE1;
  --pastel-blue: #D8E9F4;
  --pastel-blue2: #E7EFF4;
  --yellow: #FFE8C4;
  --pink: #FFE8DC;
  --black: #000000;
  --white: #ffffff;
  --main: 'Neue Haas Unica Pro', 'Segoe UI', Roboto, Helvetica Neue, Arial, sans-serif;
  --secondary: Degular, 'Trebuchet MS', sans-serif;
}

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

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

body {
  font-family: var(--main);
  font-size: 18px; /* true 18px body */
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  animation: fadein 1s ease;
}

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

::selection { color: var(--white); background: var(--teal-dk); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Motion ---------- */
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes riseUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal: add .reveal + JS toggles .visible */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Staggered hero entrance */
.hero .eyebrow, .hero h1, .hero .sub, .hero .cta-btn {
  opacity: 0;
  animation: riseUp 0.8s ease forwards;
}
.hero .eyebrow { animation-delay: 0.15s; }
.hero h1 { animation-delay: 0.3s; }
.hero .sub { animation-delay: 0.45s; }
.hero .cta-btn { animation-delay: 0.6s; }

/* ---------- Header: centered logo only ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--ivory);
  border-bottom: 1px solid rgba(0, 62, 95, 0.08);
  box-shadow: 0 0 4px rgba(118, 115, 90, 0.2);
  transition: background 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}
.site-header.scrolled {
  background: var(--ivory);
  box-shadow: 0 0 4px rgba(118, 115, 90, 0.31);
  padding: 12px 24px;
}
.site-header .container {
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-header img.logo { height: 66px; width: auto; }

/* ---------- Hero: fully centered ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center bottom;
  color: var(--white);
  padding: 120px 0 60px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 62, 95, 0.35) 0%, rgba(0, 62, 95, 0.55) 100%);
}
.hero .container { position: relative; z-index: 1; max-width: 880px; }
.hero .eyebrow {
  font-family: var(--secondary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero h1 {
  font-family: var(--secondary);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 auto 16px;
  max-width: 820px;
  text-shadow: 0 2px 18px rgba(0, 62, 95, 0.45);
}
.hero p.sub {
  font-size: 20px;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 28px;
  opacity: 0.95;
  text-shadow: 0 1px 12px rgba(0, 62, 95, 0.4);
}

/* Buttons: small, fully rounded, matching original site */
.cta-btn {
  display: inline-block;
  background: var(--white);
  color: var(--teal-dk);
  font-family: var(--main);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.3px;
  padding: 12px 30px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.cta-btn:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 62, 95, 0.35);
}

/* ---------- Icon value props (3 columns) ---------- */
.icon-cols { text-align: center; padding: 80px 0 72px; }
.icon-cols h2 {
  font-family: var(--secondary);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--teal);
  margin-bottom: 36px;
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.col {
  text-align: center;
  padding: 28px 20px;
  border-radius: 20px;
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.col:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 62, 95, 0.12);
}
.col svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: block;
  animation: floaty 5s ease-in-out infinite;
}
.col:nth-child(2) svg { animation-delay: 0.6s; }
.col:nth-child(3) svg { animation-delay: 1.2s; }
.col h3 {
  font-family: var(--secondary);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--teal-dk);
  margin-bottom: 8px;
}
.col p {
  color: #444;
  font-size: 16px;
  line-height: 1.45;
  max-width: 260px;
  margin: 0 auto 12px;
}
.col a {
  color: var(--teal-dk);
  font-family: var(--main);
  font-weight: 400;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.col a:hover { color: var(--teal); }

/* ---------- Split experiencing/help (2 col) ---------- */
.split { padding: 80px 0 72px; }
.split-title {
  font-family: var(--secondary);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--teal);
  margin-bottom: 18px;
}
section.alt .split-title { color: var(--teal); }
.split .two-col { align-items: start; gap: 48px; }
.split .two-col > div:first-child { padding-right: 40px; border-right: 1px solid var(--pastel); }
.split .two-col > div:last-child { padding-left: 16px; }
.split h2 {
  font-family: var(--secondary);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--teal);
  margin-bottom: 16px;
}
.split ul { padding-left: 20px; }
.split li {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.45;
}
.split li::marker { color: var(--teal); }
.split-cta { text-align: center; margin-top: 36px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.two-col h3 { margin-top: 0; }

/* ---------- Couple section (2 col: photo + copy) ---------- */
.couple-section { padding: 80px 0 72px; }
.couple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.couple-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.couple-img:hover {
  transform: scale(1.015);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}
.couple-copy h2 { margin-bottom: 14px; }
.couple-copy p { font-size: 17px; }
.couple-copy .cta-btn { margin-top: 12px; }
/* Dark CTA variant for light sections */
.cta-btn.dark {
  background: var(--teal-dk);
  color: var(--white);
}
.cta-btn.dark:hover {
  background: var(--teal);
  color: var(--white);
}

/* ---------- Content images ---------- */
.content-img {
  width: 100%;
  border-radius: 20px;
  margin: 48px 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.content-img:first-of-type { margin-top: 24px; }
.content-img:last-of-type { margin-bottom: 0; }
.content-img:hover {
  transform: scale(1.015);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

/* ---------- Sections ---------- */
section { padding: 80px 0 72px; }
section.alt {
  background: linear-gradient(180deg, #DBEBF8 27.5%, #F5F8FC 77.5%);
}

h2 {
  font-family: var(--secondary);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--teal);
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-family: var(--secondary);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.3px;
  color: var(--teal-dk);
  margin: 24px 0 8px;
  line-height: 1.25;
}
section.alt h3 { color: var(--teal-dk); }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 18px 0; }
li { margin-bottom: 8px; }

/* Two-column text blocks */
.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 56px;
  align-items: start;
}
.two-col-text h3 { margin-top: 0; }
.two-col-text .content-img { grid-column: 1 / -1; }

/* ---------- CTA section ---------- */
.cta-section {
  background: linear-gradient(180deg, var(--teal-dk) 0%, #0a4a6e 100%);
  color: var(--white);
  text-align: center;
}
.cta-section h2 {
  color: var(--white);
  font-size: 32px;
}
.cta-section p { font-size: 18px; font-weight: 300; max-width: 620px; margin: 0 auto 20px; }
.form-placeholder {
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 20px;
  margin: 24px 0;
  text-align: center;
}
/* Phone fallback below the form: visible but secondary */
.cta-phone {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}
.cta-phone a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.cta-phone a:hover { opacity: 0.8; }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0 72px; }
.faq h2 { text-align: center; margin-bottom: 36px; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--pastel);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--secondary);
  font-size: 19px;
  font-weight: 400;
  color: var(--teal-dk);
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal); }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  line-height: 1;
  color: var(--teal);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 22px 18px;
  font-size: 17px;
  color: #444;
}
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Sticky mobile CTA bar ---------- */
.cta-sticky {
  display: none;
}
@media (max-width: 640px) {
  .cta-sticky {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--ivory);
    border-top: 1px solid rgba(0, 62, 95, 0.15);
    box-shadow: 0 -6px 20px rgba(0, 62, 95, 0.12);
    transform: translateY(110%);
    transition: transform 0.35s ease;
  }
  .cta-sticky.show { transform: translateY(0); }
  .cta-sticky p {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--teal-dk);
  }
  .cta-sticky .cta-btn {
    font-size: 14px;
    padding: 10px 22px;
    margin: 0;
    white-space: nowrap;
  }
  body.has-sticky-bar { padding-bottom: 76px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ivory);
  border-top: 1px solid #eee;
  padding: 24px 0;
  text-align: center;
  color: #5d5d5d;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; gap: 20px; }
  .two-col, .couple-grid, .two-col-text { grid-template-columns: 1fr; }
  .split .two-col > div:first-child { border-right: none; padding-right: 0; }
  .split .two-col > div:last-child { padding-left: 0; }
  .couple-img { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .hero { min-height: 100vh; padding: 110px 0 44px; }
  .hero h1 { font-size: clamp(30px, 7vw, 40px); }
  .hero p.sub { font-size: 18px; }
  h2, .icon-cols h2 { font-size: 24px; }
  .cta-btn { font-size: 15px; padding: 11px 26px; }
  .site-header { padding: 10px 12px; }
  .site-header img.logo { height: 48px; }
  section, .icon-cols, .split, .couple-section { padding: 56px 0 48px; }
  .content-img { margin: 32px 0; }
}
