/* =====================================================================
   OAK ROOTS ACUPUNCTURE - STYLESHEET
   This one file controls the look of every page.
   To change a colour or font for the whole site, change it in the
   "SETTINGS" block just below. You do not need to touch anything else.
   ===================================================================== */

/* ---------- SETTINGS (colours and fonts) ---------- */
:root {
  --ink: #1b1b1b;            /* main text (black) */
  --paper: #ffffff;          /* page background (white) */
  --olive: #4b5428;          /* green used for the logo, links and headings accents */
  --olive-dark: #5f6c36;     /* green used for the page title bands and the footer */
  --footer: #2f3619;         /* the darker green used for the footer */
  --band: #6b7840;           /* slightly lighter green for the button band above the footer */
  --sage: #f1f2e8;           /* very pale green for soft background sections */
  --copper: #a8531a;         /* the button colour */
  --copper-dark: #8a4214;    /* button colour when the mouse is over it */
  --line: #d9dccb;           /* thin dividing lines */

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- FONTS (stored on the website itself, nothing loads from Google) ---------- */
@font-face {
  font-family: "Quicksand";
  src: url("fonts/quicksand-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

/* ---------- BASICS ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-underline-offset: 3px; }
a:hover { color: var(--copper-dark); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; max-width: 42rem; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.narrow { max-width: 42rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--olive-dark); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- BUTTON ---------- */
.button {
  display: inline-block;
  background: var(--copper);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: .9rem 1.6rem;
  border-radius: 6px;
  border: 0;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .2s;
}
.button:hover { background: var(--copper-dark); color: #fff; }

/* ---------- HEADER AND DROP-DOWN MENU ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .5rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand img { height: 88px; width: auto; }
@media (max-width: 40rem) { .brand img { height: 70px; } }
.brand-name { font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.05rem, 4.6vw, 1.4rem); line-height: 1.15; text-transform: none; }

.menu-wrap { position: relative; }
.menu-button {
  font-family: inherit; font-size: 1rem; font-weight: 600;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--olive); border-radius: 6px;
  padding: .55rem 1rem; cursor: pointer;
  display: none; align-items: center; gap: .6rem;
}
.menu-button:hover { background: var(--sage); }
.menu-button .bars, .menu-button .bars::before, .menu-button .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; content: ""; position: relative;
}
.menu-button .bars::before { position: absolute; top: -6px; }
.menu-button .bars::after  { position: absolute; top: 6px; }

.menu-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
}
.menu-list a { display: block; padding: .4rem 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu-list a:hover { color: var(--copper-dark); text-decoration: underline; }
.menu-list a[aria-current="page"] { color: var(--olive); font-weight: 700; text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; }

/* When JavaScript is on, the menu becomes a drop-down */
.js .menu-button { display: inline-flex; }
.js .menu-list {
  display: none;
  position: absolute; right: 0; top: calc(100% + .5rem);
  flex-direction: column; gap: 0;
  min-width: 15rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  padding: .5rem 0;
}
.js .menu-list.open { display: flex; }
.js .menu-list a { padding: .7rem 1.2rem; }
.js .menu-list a:hover { background: var(--sage); text-decoration: none; }

/* ---------- HOME PAGE BANNER (big photo) ---------- */
.hero {
  position: relative; color: #fff;
  min-height: min(82vh, 46rem);
  display: flex; align-items: flex-end;
  background: var(--olive-dark);
  overflow: hidden;
}
.hero picture, .hero img.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero img.hero-img { object-fit: cover; object-position: 30% 60%; }
.hero::after {   /* darkens the photo so the writing is easy to read */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,26,10,.66) 0%, rgba(20,26,10,.34) 55%, rgba(20,26,10,.08) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: 3rem 3.5rem; }
.hero-text { max-width: 33rem; }
.hero h1 { color: #fff; margin-bottom: .5em; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero p { font-size: 1.15rem; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero .button { margin-top: .6rem; }

@media (min-width: 52rem) {
  .hero { align-items: center; }
  .hero::after { background: linear-gradient(270deg, rgba(20,26,10,.58) 0%, rgba(20,26,10,.40) 45%, rgba(20,26,10,0) 80%); }
  .hero .wrap { display: flex; justify-content: flex-end; }
  .hero img.hero-img { object-position: center 55%; }
}

/* ---------- GENERAL SECTIONS ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.tint { background: var(--sage); }

/* the "things people come for" list */
.support-list {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  columns: 1; column-gap: 3rem; max-width: 50rem;
}
@media (min-width: 40rem) { .support-list { columns: 2; } }
.support-list li {
  position: relative; padding: .35rem 0 .35rem 1.6rem;
  break-inside: avoid;
}
.support-list li::before {   /* small copper leaf */
  content: ""; position: absolute; left: 0; top: .85rem;
  width: 11px; height: 11px; background: var(--copper);
  border-radius: 0 100% 0 100%;
}

.lead { font-size: 1.3rem; line-height: 1.55; }

/* photo beside text */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 5fr 6fr; gap: 4rem; }
  .split.photo-right { grid-template-columns: 6fr 5fr; }
  .split.photo-right .split-photo { order: 2; }
  .split.top { align-items: start; }
}
.split-photo img { width: 100%; border-radius: 10px; }
.text-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: .5rem; font-weight: 600; }

/* dark green band with a button (bottom of pages) */
.cta-band { background: var(--band); color: #fff; text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band p { margin-inline: auto; font-size: 1.15rem; }
.cta-band h2 { color: #fff; }

/* ---------- INNER PAGE TITLE ---------- */
.page-title { background: var(--olive-dark); color: #fff; padding-block: clamp(2rem, 5vw, 3.2rem); }
.page-title h1 { margin: 0; color: #fff; }
.page-sub { margin: .6rem 0 0; font-size: 1.3rem; font-family: var(--font-heading); color: #fff; }

/* ---------- ABOUT ACUPUNCTURE ---------- */
.article h2 { margin-top: 2.2rem; }
.article h2:first-child { margin-top: 0; }

/* ---------- FEES ---------- */
.fees-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.fees-table th, .fees-table td { text-align: left; padding: 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees-table th { font-weight: 500; padding-right: 1.5rem; padding-top: 1.15rem; }
.fees-table td { text-align: right; white-space: nowrap; font-family: var(--font-heading); font-size: 1.35rem; }
.fees-table td span { display: block; font-family: var(--font-body); font-size: .95rem; color: #555; }
.offer-box { background: var(--sage); border-left: 5px solid var(--copper); border-radius: 0 8px 8px 0; padding: 1.4rem 1.6rem; margin-bottom: 2rem; }
.offer-box h2 { font-size: 1.35rem; margin-bottom: .4em; }
.offer-box p { margin-bottom: 0; }
.offer-box .price { font-family: var(--font-heading); font-size: 1.5rem; }

/* ---------- CONTACT ---------- */
.contact-details { margin: 0 0 2rem; }
.contact-details div { display: flex; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.contact-details dt { font-weight: 700; min-width: 6rem; }
.contact-details dd { margin: 0; overflow-wrap: anywhere; }

.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form-field .hint { font-weight: 400; color: #555; }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid #8b8f7a; border-radius: 6px; background: #fff;
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-note { font-size: .95rem; color: #444; max-width: 32rem; }
.form-error { background: #fbeee6; border-left: 5px solid var(--copper); padding: 1rem 1.2rem; border-radius: 0 6px 6px 0; margin-bottom: 1.5rem; }
.form-error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }  /* spam trap, keep hidden */

/* ---------- FOOTER ---------- */
.site-footer { background: var(--footer); color: #fff; padding-block: 2.2rem; font-size: .98rem; }
.site-footer p { margin: 0 0 .3em; max-width: none; }
.site-footer a { color: #fff; }
.site-footer .footer-place { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; }

/* ---------- RESPECT "REDUCED MOTION" SETTINGS ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* =====================================================================
   PAGE HEADER (used on every page)
   Green header at the very top, the logo on a white tab, the menu at the
   side and the page title underneath, in a softer rounded font.
   On the home page the header sits on top of the big photo instead.
   ===================================================================== */
body.v2 { --font-heading: "Quicksand", "Nunito", "Segoe UI", Helvetica, Arial, sans-serif; }
body.v2 h1, body.v2 h2, body.v2 h3 { font-weight: 700; letter-spacing: .005em; }

body.v2 .site-header { background: var(--olive-dark); border-bottom: 0; }
body.v2 .site-header .wrap { display: block; padding-block: 0 clamp(1.6rem, 4vw, 2.6rem); }
body.v2 .header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
body.v2 .brand {
  background: #fff; display: block;
  padding: clamp(.7rem, 1.6vw, 1rem) clamp(1rem, 2.4vw, 1.7rem) clamp(.8rem, 1.8vw, 1.1rem);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
body.v2 .brand img { height: clamp(88px, 12vw, 140px); width: auto; }
body.v2 .menu-wrap { padding-top: 1.1rem; }
body.v2 .menu-button { background: transparent; color: #fff; border-color: rgba(255,255,255,.9); font-family: var(--font-heading); font-weight: 700; }
body.v2 .menu-button:hover { background: rgba(255,255,255,.16); }
body.v2 .menu-list a { color: #fff; font-family: var(--font-heading); font-weight: 600; }
.js body.v2 .menu-list a { color: var(--ink); }
body.v2 .menu-list a:hover { color: #fff; }
.js body.v2 .menu-list a:hover { color: var(--ink); }
.js body.v2 .menu-list a[aria-current="page"] { color: var(--olive); }
body.v2 .header-title { margin: clamp(1.2rem, 3vw, 2rem) 0 0; color: #fff; font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.1; }
body.v2 .button, body.v2 .menu-button, body.v2 .fees-table td { font-family: var(--font-heading); }
body.v2 .button { font-weight: 700; }
body.v2 .fees-table td { font-weight: 600; }

body.v2 .header-sub { margin: .5rem 0 0; font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 1.5rem); color: #fff; }

/* ----- home page: the logo tab and menu sit on top of the big photo ----- */
body.home .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; z-index: 60; }
body.home .site-header .wrap { padding-bottom: 0; }
body.home .menu-button { background: rgba(20,26,10,.38); }
body.home .menu-button:hover { background: rgba(20,26,10,.55); }
body.home .hero { min-height: min(92vh, 54rem); }
body.home .hero::before {   /* soft shade behind the menu button so it is easy to see */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9rem; z-index: 1;
  background: linear-gradient(180deg, rgba(20,26,10,.38), rgba(20,26,10,0));
}
body.home .hero .wrap { padding-top: 9rem; }
