/* ============================================================
   Maple House Therapy — style.css
   Contemporary, clean, welcoming
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Serif+Display:ital@0;1&family=Work+Sans:wght@300;400;500;600&family=Edu+SA+Beginner:wght@400;500&family=Jost:wght@300;400;500;600&family=Playwrite+NZ&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --sage:       #7a9e87;
  --sage-light: #c8dbc0;
  --sage-dark:  #4e7260;
  --cream:      #faf8f4;
  --warm-white: #ffffff;
  --charcoal:   #2c2c2c;
  --mid-grey:   #6b6b6b;
  --light-grey: #ebebeb;
  --accent:     #c17f5a;

  --font-body:    'DM Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;

  --max-width: 860px;
  --radius: 8px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--light-grey);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  padding: 0.75rem 0;
}

.site-title {
  font-family: 'Jost', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sage-dark);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-title span {
  color: var(--accent);
}

.site-logo {
  height: 85px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.6rem;
}

/* ── Navigation ─────────────────────────────────────────────── */

/* ── Page Layout ────────────────────────────────────────────── */
main {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 2rem;
}

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1rem;
}

.page-hero h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--sage-dark);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

/* ── Typography ─────────────────────────────────────────────── */
h2 {
  font-family: 'Playwrite NZ', cursive;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--sage-dark);
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.01em;
}

h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--mid-grey);
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

p {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  color: var(--charcoal);
}

/* ── Lists ──────────────────────────────────────────────────── */
ul {
  margin: 0.75rem 0 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

ul li {
  padding: 0.05rem 0 0.05rem 1.5rem;
  position: relative;
  color: var(--charcoal);
  line-height: 1.5;
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
}

ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

/* ── Diagram images ──────────────────────────────────────────── */
.diagram-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.diagram {
  width: 400px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* ── Nature circle callout ───────────────────────────────────── */
.nature-circle {
  background: var(--sage-light);
  color: var(--sage-dark);
  border-radius: 50%;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  margin: 2rem auto;
  text-align: center;
}

.nature-circle-sm {
  background: var(--sage-light);
  color: var(--sage-dark);
  border-radius: 50%;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  margin: 2rem auto;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.nature-circle p,
.nature-circle-sm p {
  color: var(--sage-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Green box paragraph ─────────────────────────────────────── */
.green-box {
  background: var(--sage-light);
  color: var(--sage-dark);
  border-radius: var(--radius);
  padding: 0.5rem 1.1rem;
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  margin: 1rem 2rem;
}

/* ── Accreditation logos ─────────────────────────────────────── */
.accreditation-logos {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 1.25rem 0 0.5rem;
}

.accreditation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 160px;
}

.accreditation-logo {
  height: 100px !important;
  width: auto !important;
  margin: 0 0 0.5rem 0 !important;
  border-radius: 0 !important;
}

.accreditation-item p {
  font-size: 0.75rem;
  color: var(--mid-grey);
  line-height: 1.4;
  margin: 0;
}

/* ── Credential pills (index page) ─────────────────────────── */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.credentials li {
  padding: 0.35rem 0.9rem;
  background: var(--sage-light);
  color: var(--sage-dark);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

.credentials li::before { display: none; }

/* ── Profile image ──────────────────────────────────────────── */
.profile-img {
  width: 330px;
  height: 420px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 4px solid var(--sage-light);
  display: block;
  flex-shrink: 0;
}

/* ── General images ─────────────────────────────────────────── */
img:not(.profile-img):not(.site-logo) {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  display: block;
}

/* ── Links ──────────────────────────────────────────────────── */
a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

/* ── Info / callout box ─────────────────────────────────────── */
.callout {
  background: var(--warm-white);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout.warning {
  border-left-color: var(--accent);
  background: #fff8f4;
}

/* ── Fee cards ──────────────────────────────────────────────── */
.fee-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.fee-list li {
  background: var(--warm-white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.fee-list li::before { display: none; }

/* ── Contact details ────────────────────────────────────────── */
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  font-size: 1.05rem;
}

.contact-label {
  font-weight: 500;
  color: var(--mid-grey);
  min-width: 60px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Numbered FAQ ────────────────────────────────────────────── */
.faq-numbered {
  margin: 1rem 0;
}

.faq-numbered-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.faq-number {
  font-weight: 600;
  color: var(--sage-dark);
  min-width: 1.5rem;
  flex-shrink: 0;
}

.faq-content {
  flex: 1;
}

.faq-content strong {
  display: block;
  color: var(--sage-dark);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.faq-content p {
  margin: 0;
}

/* ── FAQ style ──────────────────────────────────────────────── */
.faq-item {
  border-top: 1px solid var(--light-grey);
  padding: 1.25rem 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--light-grey); }

.faq-item strong {
  display: block;
  color: var(--sage-dark);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* ── Section divider ────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--light-grey);
  margin: 2.5rem 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  margin-top: 5rem;
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--mid-grey);
  border-top: 1px solid var(--light-grey);
  background: var(--warm-white);
}

/* ── Clearfix ───────────────────────────────────────────────── */
.clearfix::after { content: ''; display: table; clear: both; }

/* ── Two nav approach: desktop-nav and mobile-nav ────────────── */
.mobile-nav {
  display: none;
}

.desktop-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.desktop-nav a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--mid-grey);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}

.desktop-nav a:hover {
  background: var(--sage-light);
  color: var(--sage-dark);
}

.desktop-nav a.active {
  background: var(--sage);
  color: var(--warm-white);
  font-weight: 500;
}

@media (max-width: 600px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--light-grey);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 0.4rem 1.25rem 0.75rem;
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav a {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--mid-grey);
    text-decoration: none;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--light-grey);
    display: block;
    border-radius: var(--radius);
    margin: 0.1rem 0;
    transition: background 0.2s, color 0.2s;
  }

  .mobile-nav a:last-child {
    border-bottom: none;
  }

  .mobile-nav a:hover {
    background: var(--sage-light);
    color: var(--sage-dark);
  }

  .mobile-nav a.active {
    background: var(--sage);
    color: var(--warm-white);
    font-weight: 500;
  }
}

/* ── Mobile nav container (no longer needed) ─────────────────── */
#mobile-nav-container { display: none; }

/* ── Hamburger (hidden on desktop) ───────────────────────────── */
@media (min-width: 601px) {
  .hamburger { display: none !important; }
}

/* ── Header right column (title above nav) ───────────────────── */
.header-top-row {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  width: 100%;
}

.header-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Mobile header ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-title { font-size: 1.1rem; }
  h2 { font-size: 1.3rem; }
  .profile-img { width: 100%; height: auto; }
  main { padding: 0 1.25rem; margin: 2rem auto; }

  .site-header {
    padding: 0 1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
  }

  .header-top-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0;
  }

  .site-logo {
    height: 50px;
    flex-shrink: 0;
  }

  .header-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
  }

  .header-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
  }

  .site-title {
    font-size: 1.1rem;
    white-space: normal;
  }

  .page-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
  }

  .credentials {
    flex-direction: column;
    margin-top: 1rem;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--sage-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid var(--light-grey);
    padding: 0.4rem 0.75rem;
    gap: 0;
    flex-wrap: nowrap;
  }

  nav.open { display: flex; }

  nav a {
    font-size: 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius);
    border-bottom: 1px solid var(--light-grey);
    display: block;
    margin: 0.15rem 0;
  }

  nav a.active {
    display: inline-block;
    border-radius: var(--radius) !important;
  }

  nav a:last-child { border-bottom: none; }
}
