/* ==========================================================================
   Andrew Zealand Therapy — design tokens
   Palette:
     --ocean    #0080C6  brand blue (from brief)
     --ocean-d  #045D8F  deeper ocean, for hover/emphasis
     --deep     #0B2B3C  ink / grounding, body copy + dark sections
     --gold     #D98F2B  warm accent, "energy" note, used sparingly
     --mist     #F3F7F7  cool off-white background
     --line     #CFE0E6  hairline / divider

   Type: Poppins (display, geometric sans matching the brief's font sample)
         Inter (body, readable workhorse)

   Signature: a slow "breathing ring" — concentric circles derived from the
   Zen Circle logo — used in the hero and as an ambient motif. Chakra-symbol
   dividers break up long text sections, echoing the brief's own note about
   using chakra symbols as a graphic device.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ocean: #0080C6;
  --ocean-d: #045D8F;
  --ocean-soft: #E4F1F8;
  --deep: #0B2B3C;
  --gold: #D98F2B;
  --mist: #F3F7F7;
  --line: #CFE0E6;
  --white: #FFFFFF;

  --display: 'Poppins', sans-serif;
  --body: 'Inter', sans-serif;

  --container: 1140px;
  --radius: 22px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--deep);
  background: var(--mist);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocean);
  font-weight: 600;
  margin-bottom: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ocean);
  display: inline-block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 84px 0; }
@media (max-width: 700px) { section { padding: 56px 0; } }

.lede {
  font-size: 1.18rem;
  color: #23495B;
  max-width: 640px;
}

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ocean); color: var(--white); }
.btn-primary:hover { background: var(--ocean-d); }
.btn-ghost { border-color: var(--ocean); color: var(--ocean); background: transparent; }
.btn-ghost:hover { background: var(--ocean); color: var(--white); }
.btn-light { background: var(--white); color: var(--ocean-d); }
.btn-light:hover { background: var(--ocean-soft); }

/* Header / Nav ----------------------------------------------------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 247, 247, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--deep);
  line-height: 1.15;
}
.brand-text span { display: block; font-family: var(--body); font-weight: 400; font-size: 0.72rem; color: var(--ocean); letter-spacing: 0.08em; text-transform: uppercase; }

nav.primary-nav { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-item > a.top-link {
  display: block;
  padding: 10px 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  color: var(--deep);
}
.nav-item > a.top-link:hover,
.nav-item.active > a.top-link { color: var(--ocean); background: var(--ocean-soft); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: 0 18px 40px -18px rgba(11,43,60,0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--deep);
}
.dropdown a:hover { background: var(--ocean-soft); color: var(--ocean-d); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  nav.primary-nav {
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--mist);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  nav.primary-nav.open { transform: translateX(0); }
  .nav-item > a.top-link { font-size: 1.05rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; margin: 4px 0 8px 10px; }
  .nav-item.open .dropdown { display: block; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--white);
    cursor: pointer;
  }
  .nav-cta .btn-primary.header-book { display: none; }
}

/* Breathing ring hero ---------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

.ring-field {
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 780px;
  height: 780px;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 860px) { .ring-field { right: -260px; opacity: 0.55; } }
.ring-field circle {
  fill: none;
  stroke: var(--ocean);
  opacity: 0.16;
}
.ring-field .r1 { animation: breathe 9s ease-in-out infinite; }
.ring-field .r2 { animation: breathe 9s ease-in-out infinite 1.2s; }
.ring-field .r3 { animation: breathe 9s ease-in-out infinite 2.4s; }
.ring-field .r4 { animation: breathe 9s ease-in-out infinite 3.6s; }
@keyframes breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.10; }
  50% { transform: scale(1.03); opacity: 0.24; }
}
@media (prefers-reduced-motion: reduce) {
  .ring-field circle { animation: none !important; }
}

.hero-copy { position: relative; z-index: 1; }
.hero-photo {
  position: relative; z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(11,43,60,0.4);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* Homepage hero photo only — smaller and right-aligned in its column */
.hero .hero-photo { max-width: 340px; margin-left: auto; }
@media (max-width: 860px) { .hero .hero-photo { max-width: 280px; margin: 0 auto; } }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.hero-stats { display: flex; gap: 34px; margin-top: 2.6em; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--ocean-d); }
.hero-stats div span { font-size: 0.82rem; color: #4B7385; }

/* Page header (non-home hero) -------------------------------------------- */
.page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--ocean-soft), var(--mist));
  border-bottom: 1px solid var(--line);
}
.page-hero .lede { max-width: 700px; }

/* Chakra divider ----------------------------------------------------------*/
.chakra-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 8px 0 4px;
  opacity: 0.85;
}
.chakra-divider svg { width: 26px; height: 26px; }
.chakra-divider .stroke { stroke: var(--ocean); }
.chakra-divider .fill-line { stroke: var(--gold); }
.chakra-divider::before, .chakra-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 160px;
  background: var(--line);
}

/* Service / feature cards ------------------------------------------------ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(11,43,60,0.22); }
.card .icon-ring {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ocean-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon-ring svg { width: 26px; height: 26px; stroke: var(--ocean-d); fill: none; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: #3A5C6C; margin-bottom: 0.6em; font-size: 0.96rem; }
.card a.card-link { color: var(--ocean-d); font-family: var(--display); font-weight: 500; font-size: 0.9rem; }

/* Dark band ---------------------------------------------------------------*/
.band-deep {
  background: var(--deep);
  color: var(--white);
}
.band-deep .eyebrow { color: #7FC6EA; }
.band-deep .eyebrow::before { background: #7FC6EA; }
.band-deep .lede { color: #C7DCE6; }

/* Testimonials ------------------------------------------------------------*/
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
}
.quote-card .mark { font-family: var(--display); font-size: 3rem; color: var(--ocean-soft); line-height: 0; position: absolute; top: 26px; right: 26px; }
.quote-card p.quote { font-size: 1.05rem; color: #22414E; margin-bottom: 1.2em; }
.quote-card .who { font-family: var(--display); font-weight: 600; color: var(--ocean-d); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.82rem; }

/* Keyword strip ------------------------------------------------------------*/
.keyword-strip {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.keyword-strip span {
  border: 1px solid var(--line);
  color: var(--ocean-d);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: var(--display);
  background: var(--white);
}

/* CTA band -----------------------------------------------------------------*/
.cta-band {
  background: var(--ocean);
  color: var(--white);
  border-radius: var(--radius);
  padding: 54px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.2em; }
.cta-band p { color: #DCEFF9; margin: 0; }

/* Footer ---------------------------------------------------------------- */
footer.site-footer {
  background: var(--deep);
  color: #C7DCE6;
  padding: 56px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1em; }
.footer-grid a, .footer-grid p { color: #A9C6D3; font-size: 0.92rem; display: block; margin-bottom: 0.7em; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 36px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: 0.8rem; color: #6E93A2; flex-wrap: wrap; gap: 10px; }

/* Utility ------------------------------------------------------------------*/
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.small-note { font-size: 0.82rem; color: #4B7385; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Booking modal ----------------------------------------------------------*/
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 43, 60, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 540px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.25s ease;
  box-shadow: 0 40px 90px -30px rgba(11, 43, 60, 0.55);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  transition: background .2s ease;
}
.modal-close:hover { background: var(--ocean-soft); }
.modal h2 { margin-bottom: 0.3em; }
.modal-quick-actions { display: flex; gap: 10px; margin: 16px 0 24px; flex-wrap: wrap; }
.booking-form { display: grid; gap: 15px; }
.booking-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--deep);
}
.booking-form input,
.booking-form select,
.booking-form textarea {
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--mist);
  color: var(--deep);
  width: 100%;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: 2px solid var(--ocean);
  outline-offset: 1px;
  background: var(--white);
}
.booking-form textarea { min-height: 84px; resize: vertical; font-family: var(--body); }
.booking-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .booking-form .two-col { grid-template-columns: 1fr; } }
.booking-form button[type="submit"] { margin-top: 4px; justify-content: center; }
.modal-note { font-size: 0.78rem; color: #4B7385; margin: 10px 0 0; text-align: center; }
.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form-success.show { display: block; }
.form-success .icon-ring { margin: 0 auto 16px; }
