/* =========================================================
   Climb Toowoomba – site styles
   Mobile-first. Change brand colours in :root below.
   ========================================================= */

:root {
  /* ---- Brand: eucalyptus green, pine wood, white ---- */
  --accent: #4e7565;       /* eucalyptus – buttons, links, highlights */
  --accent-dark: #3d5e51;  /* eucalyptus hover */
  --accent-light: #9cbfb0; /* eucalyptus on dark backgrounds */
  --accent-soft: #e8f0ec;  /* pale eucalyptus tint */
  --accent-faint: #f4f8f6; /* very pale eucalyptus (today in calendar) */
  --pine: #c9a46b;         /* pine wood – secondary accent */
  --pine-dark: #8f6430;    /* darker pine (readable with white text) */
  --pine-soft: #f6eedf;    /* pale pine tint */

  --ink: #1f2d27;          /* main text & dark sections (deep eucalyptus) */
  --ink-hover: #14201b;
  --on-dark: #e6ede9;      /* body text on dark sections */
  --on-dark-muted: #b7c7bf;
  --paper: #fbf8f2;        /* page background (warm white) */
  --card: #ffffff;
  --line: #ebe2d2;
  --muted: #59665f;
  --green: #2f9e66;        /* "open now" dot */
  --red: #c8423a;          /* "closed" dot, current-time line */

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --header-h: 64px;
  --bar-h: 68px;           /* mobile bottom action bar */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 8vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); font-weight: 850; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .muted { color: var(--on-dark-muted); }
.section-dark .eyebrow, .page-hero .eyebrow { color: var(--pine); }
.section-white { background: var(--card); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-hover); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: rgba(127,127,127,.12); }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
.desk-nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions .btn { display: none; white-space: nowrap; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; background: var(--paper); white-space: nowrap;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-pill.is-open::before { background: var(--green); box-shadow: 0 0 0 3px rgba(47,158,102,.22); }
.status-pill.is-closed::before { background: var(--red); }
.menu-btn {
  width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--ink); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; }

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer-top strong { font-size: 1.1rem; }
.drawer .menu-btn { background: rgba(255,255,255,.1); }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.drawer-nav { list-style: none; margin: 0; padding: 0 16px; }
.drawer-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; font-size: 1.3rem; font-weight: 800; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.drawer-nav a[aria-current="page"] { color: var(--pine); }
.drawer-nav a::after { content: "→"; opacity: .4; font-weight: 400; }
.drawer-info { padding: 20px 16px 40px; color: var(--on-dark-muted); font-size: .95rem; }
.drawer-info a { color: #fff; }
body.no-scroll { overflow: hidden; }

/* ---------- Mobile bottom action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr;
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  gap: 6px; box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; border-radius: 12px; text-decoration: none; font-size: .74rem; font-weight: 800;
}
.action-bar a svg { width: 22px; height: 22px; }
.action-bar a.primary { background: var(--accent); color: #fff; flex-direction: row; gap: 6px; font-size: .92rem; white-space: nowrap; }
.action-bar a.primary svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--ink);
  min-height: min(82vh, 640px); display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,45,39,.1) 0%, rgba(31,45,39,.88) 75%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 40px; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 36ch; color: var(--on-dark); }
.hero .status-pill { background: rgba(255,255,255,.14); color: #fff; margin-bottom: 16px; }
.hero .btn-row .btn { flex: 1 1 200px; }

.page-hero { background: var(--ink); color: #fff; padding: 40px 0 36px; }
.page-hero p { color: var(--on-dark-muted); max-width: 60ch; margin: 0; }
.page-hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); }

/* ---------- Quick info strip ---------- */
.quick { display: grid; gap: 12px; margin-top: -28px; position: relative; z-index: 2; }
.quick-item {
  background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; gap: 14px; align-items: center; text-decoration: none;
}
.quick-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.quick-item .ico svg { width: 22px; height: 22px; }
.quick-item small { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.quick-item strong { font-size: 1.05rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card-img { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; }
.card-img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-img .card-body { padding: 18px 20px 22px; }
.card-img .card-body p { color: var(--muted); margin: 0; }
.card-link { font-weight: 800; color: var(--accent); }

.steps { counter-reset: step; display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; background: var(--card); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--pine); color: var(--ink); font-weight: 900; display: grid; place-items: center;
}
.steps h3 { margin: 6px 0 2px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; gap: 6px; position: relative; }
.price-card .price { font-size: 2.6rem; font-weight: 900; line-height: 1; margin: 6px 0; }
.price-card .price small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.price-card ul { padding-left: 1.1em; margin: 6px 0 14px; color: var(--muted); }
.price-card .btn { margin-top: auto; }
.price-card.featured { outline: 3px solid var(--accent); }
.badge {
  display: inline-block; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; align-self: flex-start;
}
.badge-dark { background: var(--ink); }
.badge-pine { background: var(--pine); color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 900; }

.note {
  background: var(--pine-soft); border-left: 4px solid var(--pine); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: .95rem;
}

/* ---------- Hours ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.today td { color: var(--accent); font-weight: 800; }
.section-dark .hours td { border-color: rgba(255,255,255,.12); }

.map { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); background: var(--line); }

/* ---------- Week calendar (class timetable) ---------- */
:root { --c-kids: var(--accent); --c-adult: var(--pine-dark); --c-comp: var(--ink); }
.wc-kids { background: var(--c-kids); }
.wc-adult { background: var(--c-adult); }
.wc-comp { background: var(--c-comp); }
.wc-closed, .wc-day { background: repeating-linear-gradient(45deg, var(--pine-soft) 0 6px, var(--paper) 6px 12px); }

.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; font-size: .88rem; font-weight: 700; }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.06); }

.week-cal {
  position: relative; overflow-x: auto; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.wc-grid { display: grid; grid-template-columns: 46px repeat(7, minmax(102px, 1fr)); min-width: calc(46px + 7 * 102px); }
.wc-corner, .wc-times { position: sticky; left: 0; z-index: 4; background: var(--card); border-right: 1px solid var(--line); }
.wc-corner { border-bottom: 1px solid var(--line); }
.wc-head { padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); scroll-snap-align: start; scroll-margin-left: 46px; }
.wc-head strong { display: block; text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; }
.wc-head span { display: block; font-size: .68rem; line-height: 1.2; color: var(--pine-dark); font-weight: 800; margin-top: 2px; }
.wc-head.is-today { background: var(--ink); color: #fff; }
.wc-head.is-today span { color: var(--pine); }
.wc-times { height: calc(var(--rows) * var(--hour)); }
.wc-times span { position: absolute; right: 6px; font-size: .68rem; font-weight: 700; color: var(--muted); transform: translateY(3px); white-space: nowrap; }
.wc-day { position: relative; height: calc(var(--rows) * var(--hour)); border-left: 1px solid var(--line); }
.wc-day::after { /* hour lines */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hour));
}
.wc-open { position: absolute; left: 0; right: 0; background: var(--card); }
.wc-day.is-today .wc-open { background: var(--accent-faint); }
.wc-class {
  position: absolute; left: 4px; right: 4px; z-index: 2; overflow: hidden;
  border-radius: 8px; padding: 4px 7px; color: #fff; font-size: .72rem; line-height: 1.25;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.wc-class strong { display: block; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-class span { display: block; white-space: nowrap; }
.wc-who { opacity: .85; }
.wc-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 3; }
.wc-now::before { content: ""; position: absolute; left: -1px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.cal-hint { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
@media (min-width: 900px) { .cal-hint { display: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 48px 18px 18px; font-weight: 800; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 18px 18px; color: var(--muted); }
.faq .answer ul { padding-left: 1.1em; margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  padding: 13px 14px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: #fff; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 130px; resize: vertical; }
.form-msg { display: none; padding: 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.form-msg.show { display: block; }
.zoho-form { padding: 8px; min-height: 420px; overflow: hidden; } /* Zoho Desk widget box */

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 28px 22px; display: grid; gap: 16px; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 0; opacity: .92; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 48px 0 28px; font-size: .95rem; }
.site-footer h4 { color: var(--pine); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand strong { color: #fff; font-size: 1.4rem; font-weight: 900; display: block; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer .status-pill { background: rgba(255,255,255,.1); color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.socials svg { width: 20px; height: 20px; }

/* ---------- Utilities ---------- */
.split { display: grid; gap: 28px; align-items: center; }
.rounded-img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
  .quick { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 36px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions .btn { display: inline-flex; }
  .header-actions .status-pill { display: none; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  :root { --header-h: 76px; }
  .action-bar { display: none; }
  .section { padding: 88px 0; }
  .brand img { height: 52px; }
}

/* Full desktop menu – only when there's room for it */
@media (min-width: 1200px) {
  .desk-nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
  .menu-btn { display: none; }
  .desk-nav > a, .more > button {
    font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; padding: 10px 12px; border-radius: 10px;
    background: none; border: 0; cursor: pointer; color: var(--ink); white-space: nowrap;
  }
  .header-actions .btn { white-space: nowrap; }
  .desk-nav > a:hover, .more > button:hover { background: var(--paper); }
  .desk-nav > a[aria-current="page"] { color: var(--accent); }
  .more { position: relative; }
  .more-menu {
    position: absolute; top: calc(100% + 6px); right: 0; min-width: 220px; background: #fff; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.14); padding: 8px; display: none;
  }
  .more.open .more-menu, .more:focus-within .more-menu { display: block; }
  .more-menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 700; }
  .more-menu a:hover { background: var(--paper); }
}

@media (min-width: 1000px) {
  .hero { min-height: 680px; }
  .hero .wrap { padding-bottom: 96px; }
  .hero .btn-row .btn { flex: 0 0 auto; }
  .page-hero { padding: 72px 0 64px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { flex-direction: column; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
