/* ═══════════════════════════════════════════════════════════
   Harmony and Healing Counselling Services
   Serene Blue palette — all colours WCAG AA verified
   ─────────────────────────────────────────────────────────
   Contrast ratios (tested):
     --col-text   on white/bg:  13.0 / 12.4  ✓
     --col-muted  on white/bg/lightest: 6.8 / 6.4 / 6.0  ✓
     --col-accent on white/bg/lightest: 5.5 / 5.2 / 4.9  ✓
     --col-deep   on white/bg/lightest: 7.9 / 7.5 / 7.0  ✓
     white on --col-deep (buttons): 7.9  ✓
     white on --col-accent (hover): 5.5  ✓
     --col-light  on --col-deep (footer): 5.2  ✓
   ─────────────────────────────────────────────────────────── */

:root {
  /* Palette */
  --col-bg:       #F7F9FB;   /* page background */
  --col-white:    #FFFFFF;
  --col-lightest: #EAF2F8;   /* card / panel tint */
  --col-light:    #BBD5E6;   /* borders, decorative */
  --col-accent:   #3f6e8a;   /* AA-accessible mid blue (replaces #6D96B3 for text) */
  --col-deep:     #2E5572;   /* primary dark blue */
  --col-text:     #1a3348;   /* body headings — 13:1 on white */
  --col-muted:    #3d5f75;   /* body paragraphs — 6.8:1 on white */

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;

  /* Misc */
  --radius-lg:    16px;
  --shadow:       0 4px 24px rgba(46, 85, 114, 0.10);
  --shadow-hover: 0 8px 40px rgba(46, 85, 114, 0.18);
  --max-w:        1100px;
  --nav-h:        72px;

  font-size: 18px;
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--col-bg);
  color: var(--col-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* ─── ACCESSIBILITY ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--col-deep);
  color: var(--col-white);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 6px 6px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--col-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── UTILITY ────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--col-accent);   /* 5.5:1 on white ✓ */
  margin-bottom: 0.75rem;
  text-align: center;
}
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.2;
  color: var(--col-deep);
  margin-bottom: 1.25rem;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--col-deep);
  margin-bottom: 0.5rem;
}
p         { color: var(--col-muted); font-size: 1rem; }
strong    { color: var(--col-deep); font-weight: 600; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  background: var(--col-deep);     /* white on deep = 7.9:1 ✓ */
  color: var(--col-white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 40px;
  border: 2px solid var(--col-deep);
  cursor: pointer;
  min-height: 48px;
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--col-accent);   /* white on accent = 5.5:1 ✓ */
  border-color: var(--col-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ─── NAV ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(247, 249, 251, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  border-bottom-color: var(--col-lightest);
  box-shadow: 0 2px 20px rgba(46, 85, 114, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo-main {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--col-deep);
}
.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--col-accent);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--col-deep);    /* 7.9:1 on bg ✓ */
  position: relative;
  padding: 0.35rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--col-accent);
  border-radius: 2px;
  transition: width 0.25s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--col-accent); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.nav-toggle:focus-visible { border-color: var(--col-accent); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--col-deep);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-location {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--col-muted);
}

/* ─── HERO ───────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 5% 6rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(63,110,138,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 10% 20%,  rgba(187,213,230,0.22) 0%, transparent 60%),
    var(--col-bg);
}
.hero-decoration {
  position: absolute;
  top: -10%; right: -8%;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 80px solid rgba(187,213,230,0.15);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  width: 100%;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease forwards 0.2s;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--col-accent);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--col-deep);
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--col-accent);
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-style: italic;
  font-weight: 300;
  color: var(--col-muted);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* ─── ABOUT ──────────────────────────────────────────────── */
#about {
  padding: 7rem 0;
  background: var(--col-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem;
  align-items: start;
}
.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}
.about-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(187,213,230,0.15) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}
.about-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.5s ease;
}
.about-image-frame:hover .about-photo { transform: scale(1.03); }

/* Credentials */
.credentials-block {
  margin-top: 1.5rem;
  background: var(--col-lightest);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--col-light);
}
.credentials-heading {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--col-accent);   /* 4.9:1 on lightest ✓ */
  margin-bottom: 1rem;
}
.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
.credentials-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.cred-abbr {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--col-deep);     /* 7.0:1 on lightest ✓ */
  min-width: 2.8rem;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.cred-full {
  font-size: 0.9rem;
  color: var(--col-muted);    /* 6.0:1 on lightest ✓ */
  font-weight: 400;
  line-height: 1.4;
}
.cred-note {
  font-size: 0.8rem;
  color: var(--col-accent);
}
.cred-assessment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.65rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--col-light);
}
.cred-assessment svg { color: var(--col-accent); flex-shrink: 0; }
.cred-assessment span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--col-deep);
  line-height: 1.4;
}
.credentials-location {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--col-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--col-light);
  margin-top: 0.5rem;
}
.credentials-location svg { color: var(--col-accent); flex-shrink: 0; }

/* About text */
.about-text { padding-top: 0.25rem; }
.about-intro {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--col-deep);
  margin-bottom: 1rem;
  line-height: 1.65;
}
.about-text p { margin-bottom: 1rem; }
.about-modalities {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--col-lightest);
  border-left: 3px solid var(--col-accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.modalities-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--col-accent);
  margin-bottom: 0.85rem;
}
.about-modalities ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}
.about-modalities li {
  font-size: 0.95rem;
  color: var(--col-deep);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.about-modalities li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--col-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── SERVICES ───────────────────────────────────────────── */
#services {
  padding: 7rem 0;
  background: var(--col-bg);
}
.services-heading { text-align: center; }
.services-intro {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--col-white);
  border: 1px solid var(--col-lightest);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--col-light);
}
.service-icon {
  width: 48px; height: 48px;
  color: var(--col-accent);
  margin-bottom: 1.1rem;
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p  { font-size: 0.95rem; line-height: 1.7; }

/* ─── CONTACT ────────────────────────────────────────────── */
#contact {
  padding: 7rem 0;
  background: var(--col-white);
  text-align: center;
}
.contact-inner { max-width: 620px; margin-inline: auto; }
#contact h2    { margin-bottom: 1rem; }
.contact-text  { margin-bottom: 2.5rem; font-size: 1.05rem; line-height: 1.85; }
.btn-email {
  font-size: 1rem;
  padding: 1rem 2.5rem;
  margin-bottom: 1.25rem;
}
.contact-note {
  font-size: 0.88rem;
  color: var(--col-muted);
  font-style: italic;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--col-deep);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-logo-img {
  width: 40px; height: 40px;
  object-fit: contain;
}
footer .nav-logo-main { color: var(--col-white); font-size: 1rem; }
footer .nav-logo-sub  { color: var(--col-light); }  /* 5.2:1 on deep ✓ */
.footer-copy {
  font-size: 0.82rem;
  color: var(--col-light);   /* 5.2:1 on deep ✓ */
  letter-spacing: 0.02em;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .service-card { opacity: 1; transform: none; }
  .hero-content { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 900px) ─────────────────────────────────────── */
@media (max-width: 900px) {
  #about, #services, #contact { padding: 5rem 0; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image-frame {
    max-width: 340px;
    margin-inline: auto;
  }
  .about-modalities ul { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (≤ 640px) ─────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --nav-h: 62px;
    font-size: 17px;
  }

  /* Nav hamburger */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--col-white);
    flex-direction: column;
    align-items: stretch;
    padding: 0.25rem 5% 1.25rem;
    gap: 0;
    border-top: 1px solid var(--col-lightest);
    box-shadow: 0 8px 24px rgba(46, 85, 114, 0.12);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--col-lightest);
    font-size: 1rem;
    min-height: 52px;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-logo-img { width: 40px; height: 40px; }

  /* Hero */
  #hero { padding: calc(var(--nav-h) + 2.5rem) 5% 4rem; }
  .hero-title    { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-tagline  { font-size: 1.05rem; margin-bottom: 2rem; }
  .hero-decoration { width: 200px; height: 200px; border-width: 35px; top: 5%; right: -10%; }
  .btn-primary   { width: 100%; padding: 1rem; }

  /* About */
  #about { padding: 4rem 0; }
  .about-image-frame { max-width: 260px; margin-inline: auto; }
  .credentials-block { padding: 1rem 1.1rem; }
  .about-modalities ul { grid-template-columns: 1fr; }

  /* Services */
  #services { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card  { padding: 1.5rem 1.25rem; }

  /* Contact */
  #contact { padding: 4rem 0; }
  .btn-email { width: 100%; padding: 1rem 1.25rem; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
