/* ==========================================================================
   Be Your Best Chiropractic Studio — shared styles
   Change a colour once here and it updates on every page.
   ========================================================================== */

:root {
  --ground: #FFFDF5;      /* page background */
  --honey: #F5B81C;       /* main yellow (buttons, call-to-action band) */
  --honey-pale: #FFF3C9;  /* pale yellow tiles */
  --honey-wash: #FFF8DF;  /* very pale yellow section background */
  --comb: #FBE08A;
  --ink: #2B2A1E;         /* main text */
  --ink-mid: #3F3D2E;
  --ink-soft: #55523F;    /* secondary text */
  --leaf: #4C6A3A;        /* green accent (links, small labels) */
  --leaf-deep: #3D5A2C;
  --leaf-mid: #DCE7CC;
  --leaf-pale: #EEF3E4;   /* pale green section background */
  --line: #EFE3B5;        /* card borders */
  --white: #FFFFFF;
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { margin: 0; }
a { color: var(--leaf); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
address { font-style: normal; }
[id] { scroll-margin-top: 24px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: var(--ground); padding: 12px 16px; border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf); }
.lead { font-size: 1.1875rem; color: var(--ink-soft); max-width: 36rem; }
.muted { color: var(--ink-soft); }
.stack { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; max-width: 40rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  border: 2px solid transparent; color: var(--ink);
  font-weight: 700; text-decoration: none;
}
.btn-small { min-height: 48px; padding: 0 22px; }
.btn-honey { background: var(--honey); }
.btn-honey:hover { background: #E5A90C; color: var(--ink); }
.btn-outline { border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ground); }
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-ink:hover { background: #000; color: var(--ground); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { display: inline-block; padding: 10px 0; font-weight: 700; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-family: var(--serif); font-weight: 400; font-size: 1.4375rem; }
.brand-name span { margin-top: 3px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav-link { padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.nav-link:hover { border-bottom-color: var(--comb); }
.nav-link[aria-current="page"] { font-weight: 700; border-bottom-color: var(--honey); }

/* ---------- Home hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-block: 72px 80px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-art { flex: 1 1 340px; min-width: 0; }
.hero-comb { position: relative; max-width: 440px; margin: 0 auto; }
.hex { aspect-ratio: 0.866; clip-path: var(--hex); }
.hero-photo { display: block; width: 80%; height: auto; object-fit: cover; object-position: 50% 30%; background: var(--honey-pale); }
.hero-comb .hex-a { position: absolute; right: 0; top: 6%; width: 30%; background: var(--honey); }
.hero-comb .hex-b { position: absolute; right: 7%; bottom: 4%; width: 24%; background: var(--leaf-mid); display: flex; align-items: center; justify-content: center; }
.hero-comb .hex-b svg { width: 38%; }

/* ---------- Page banner (Services, Contact) ---------- */
.banner { background: var(--honey-wash); }
.banner .wrap { padding-block: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; }
.banner h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.1; max-width: 48rem; }
.banner .stack { flex: 1 1 460px; min-width: 0; }

/* ---------- Sections ---------- */
.section { padding-block: 80px; }
.section-tight { padding-block: 0 88px; }
.band-leaf { background: var(--leaf-pale); }
.band-wash { background: var(--honey-wash); }
.band-honey { background: var(--honey); }

/* ---------- Cards ---------- */
.card-row { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 280px; min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--line);
}
.card .text-link { margin-top: auto; }
.card-plain { border: 0; }
.icon-tile { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--honey-pale); display: flex; align-items: center; justify-content: center; }
.icon-tile.is-leaf { background: var(--leaf-mid); }
.icon-tile svg { width: 28px; height: 28px; }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; }
.about-art { flex: 0 1 320px; min-width: 0; margin: 0 auto; }
.about-art svg { display: block; width: 100%; max-width: 320px; }
.about-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.about-text p { color: var(--ink-mid); }
.about-text .about-creds { font-size: 0.9375rem; font-weight: 600; color: var(--leaf-deep); }
.about-text .about-lead { font-family: var(--serif); font-size: 1.375rem; line-height: 1.4; color: var(--ink); }

/* ---------- Testimonials ---------- */
.quote { margin: 0; flex: 1 1 340px; gap: 18px; }
.quote-mark { font-family: var(--serif); font-size: 4.5rem; line-height: 0.6; height: 28px; color: var(--honey); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 1.125rem; color: var(--ink-mid); }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; }
.quote figcaption span { font-size: 0.9375rem; color: var(--ink-soft); }

.chips { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--ground); font-size: 0.9375rem; font-weight: 600; }

/* ---------- Fees ---------- */
.fees-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.fee-row { display: flex; flex-wrap: wrap; gap: 20px; }
.fee-tile { flex: 1 1 210px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: 20px; background: var(--honey-pale); }
.fee-tile .amount { font-family: var(--serif); font-size: 2.75rem; line-height: 1; }
.fee-tile .label { font-weight: 700; }
.fee-note { margin-top: 20px; color: var(--ink-soft); }

.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.fee-table { width: 100%; min-width: 480px; border-collapse: collapse; text-align: left; }
.fee-table th, .fee-table td { padding: 16px 24px; }
.fee-table thead tr { background: var(--honey-pale); }
.fee-table tbody tr { border-top: 1px solid var(--line); }
.fee-table td:first-child { font-weight: 600; }
.fee-table td:nth-child(2) { color: var(--ink-soft); }
.fee-table th:last-child, .fee-table td:last-child { text-align: right; font-weight: 700; }

/* ---------- Locations ---------- */
.location { flex: 1 1 340px; }
.location h3 { font-size: 1.75rem; }
.tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--honey-pale); font-size: 0.875rem; font-weight: 700; }
.tag.is-leaf { background: var(--leaf-mid); }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact svg { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.location .btn { align-self: flex-start; margin-top: auto; }

.card-actions { margin-top: auto; align-items: center; gap: 8px 24px; }
.card-actions .btn, .card-actions .text-link { margin-top: 0; }

/* ---------- Studio pages (Meaford, Owen Sound) ---------- */
.contact-card address + .label, .contact-card div + .label { margin-top: 10px; }
.map-box { flex: 2 1 480px; min-width: 0; min-height: 340px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--leaf-pale); }
.map-box iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
.card h2 { font-size: 1.5rem; line-height: 1.2; }
.link-list { margin: 0; padding: 0; list-style: none; }
.link-list a { display: block; padding: 9px 0; font-weight: 600; }
.other-location { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 24px; padding: 28px 32px; border-radius: 20px; background: var(--honey-wash); }
.other-location p { flex: 1 1 320px; min-width: 0; }

/* ---------- Services list ---------- */
.service-list { display: flex; flex-direction: column; gap: 24px; padding-block: 72px 40px; }
.service { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; padding: 32px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.service .icon-tile { width: 64px; height: 64px; border-radius: 18px; }
.service .icon-tile svg { width: 30px; height: 30px; }
.service-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.service-body h2 { font-size: 1.75rem; line-height: 1.2; }
.service-body p { color: var(--ink-soft); }
.service-aside { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-radius: 16px; background: var(--honey-wash); }
.service-aside.is-leaf { background: var(--leaf-pale); }
.service-aside .line { display: flex; justify-content: space-between; gap: 16px; }
.service-aside strong { font-weight: 700; }
.service-aside small { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; background: var(--ground); }
.faq h3 { font-family: var(--sans); font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.faq p { color: var(--ink-mid); }

/* ---------- Contact card ---------- */
.contact-card { flex: 0 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 28px 32px; border-radius: 20px; background: var(--white); }
.contact-card .label { font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); }
.contact-card .label + * + .label { margin-top: 10px; }
.contact-card .phone { font-family: var(--serif); font-size: 2rem; line-height: 1.3; color: var(--ink); text-decoration: none; }
.contact-card .js-email { font-size: 1.125rem; padding: 6px 0; overflow-wrap: anywhere; }
.contact-card .js-email a { color: var(--leaf-deep); font-weight: 600; }

/* Email is written backwards in the HTML so spam bots can't read it;
   this flips it the right way round on screen. js/site.js then turns it
   into a normal clickable link. */
.rev { unicode-bidi: bidi-override; direction: rtl; }

/* ---------- Call-to-action band ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: 64px; }
.cta-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta-text p { font-size: 1.125rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ground); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 36px; padding-block: 56px 32px; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; }
.footer-about { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; color: #DDD7BD; }
.footer-about strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--ground); }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 2px; }
.site-footer a { padding: 8px 0; color: var(--ground); }
.site-footer a:hover { color: var(--honey); }
.site-footer .phone { color: var(--honey); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.site-footer .js-email { padding: 8px 0; overflow-wrap: anywhere; }
.site-footer .js-email a { padding: 0; }
.footer-legal { border-top: 1px solid var(--ink-soft); padding-top: 20px; font-size: 0.9375rem; color: #DDD7BD; }

@media (max-width: 520px) {
  .wrap { padding-inline: 20px; }
  .hero { padding-block: 48px 56px; }
  .section { padding-block: 56px; }
  .card, .service { padding: 24px; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
