/* ============================================================
   The Bio Mechanix Ipswich. Chiropractic and wellness centre.
   Bespoke brand build grounded in the real identity:
   pale blue #BDE9FB + navy #062140 + accent blue #008AFC,
   Poppins headings, pill shaped buttons (their own theme).
   Clean, clinical, credible. Not another generic Wix template.
   ============================================================ */

:root {
  --navy:       #062140;   /* their secondary/navy */
  --navy-soft:  #123A5F;
  --sky:        #BDE9FB;   /* their primary pale blue */
  --sky-pale:   #EAF8FE;   /* washes */
  --accent:     #008AFC;   /* their CTA blue */
  --accent-deep:#0068C4;
  --paper:      #FCFDFE;   /* page base */
  --ink:        #17232E;
  --muted:      #57677A;
  --white:      #FFFFFF;

  --line:       rgba(6, 33, 64, .14);
  --line-soft:  rgba(6, 33, 64, .07);

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Arial", "Helvetica", sans-serif;

  --radius: 12px;          /* their base radius */
  --radius-pill: 40px;     /* their pill buttons */
  --shadow: 0 20px 44px rgba(6, 33, 64, .13);
  --shadow-soft: 0 10px 24px rgba(6, 33, 64, .08);
  --wrap: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.72;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.8vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.14rem; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: 10px 18px; }
.skip-link:focus { left: 0; }

.demo-ribbon { background: var(--navy); color: #C9E4F5; font-size: .82rem; text-align: center; padding: 7px 14px; letter-spacing: .02em; }
.demo-ribbon strong { color: var(--sky); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(252, 253, 254, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.02rem; line-height: 1.2; }
.brand-name small { display: block; font-weight: 400; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }

.site-nav ul { display: flex; gap: 24px; list-style: none; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta { background: var(--accent); color: #fff; padding: 11px 26px; border-radius: var(--radius-pill); font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--accent-deep); color: #fff; }

.nav-toggle { display: none; background: none; border: 2px solid var(--navy); border-radius: 10px; padding: 7px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .site-nav li { width: 100%; text-align: center; }
  .site-nav a { display: block; padding: 13px 0; }
  .site-nav .nav-cta { margin: 10px auto; display: inline-block; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,33,64,.94) 15%, rgba(6,33,64,.55) 70%, rgba(0,138,252,.25) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: clamp(70px, 11vw, 140px) 22px; }
.hero-kicker { font-family: var(--font-head); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; font-size: .78rem; color: var(--sky); }
.hero h1 { color: #fff; margin: 14px 0 16px; max-width: 700px; }
.hero p.lead { max-width: 580px; color: #B9CBDC; font-size: 1.12rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.btn { display: inline-block; text-decoration: none; font-family: var(--font-head); font-weight: 600; letter-spacing: .01em; padding: 15px 32px; border-radius: var(--radius-pill); transition: transform .15s ease, background .15s ease; font-size: .95rem; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { border: 2px solid var(--sky); color: #fff; }
.btn-ghost:hover { background: var(--sky); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }

.hero-stats { position: relative; z-index: 2; display: flex; gap: clamp(20px, 5vw, 60px); flex-wrap: wrap; max-width: var(--wrap); margin: 0 auto; padding: 0 22px 56px; }
.hero-stat b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--sky); }
.hero-stat span { font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: #8FA5BA; }

/* phone strip */
.phone-strip { background: var(--sky); color: var(--navy); text-align: center; padding: 13px 22px; font-family: var(--font-head); font-weight: 600; }
.phone-strip a { color: var(--navy); }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 98px) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head .eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; font-size: .76rem; color: var(--accent); }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 12px; color: var(--muted); }

.band-sky { background: var(--sky-pale); }
.band-navy { background: var(--navy); }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy p { color: #B9CBDC; }
.band-navy .eyebrow { color: var(--sky); }

/* split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 840px) { .split { grid-template-columns: 1fr; } }

.tick-list { list-style: none; margin-top: 18px; }
.tick-list li { padding: 8px 0 8px 34px; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: var(--sky); border: 2px solid var(--accent); }

/* service cards */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); text-decoration: none; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.service-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-body h3 { color: var(--navy); }
.service-body p { color: var(--muted); font-size: .95rem; }
.service-body .more { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .88rem; color: var(--accent); letter-spacing: .02em; }

/* service detail rows */
.service-row { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line-soft); }
.service-row:last-child { border-bottom: none; }
@media (max-width: 780px) { .service-row { grid-template-columns: 1fr; } }
.service-row img { border-radius: var(--radius); box-shadow: var(--shadow-soft); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.service-row h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-row p { color: var(--muted); }
.service-row .mini-price { margin-top: 14px; font-family: var(--font-head); font-weight: 700; color: var(--accent-deep); font-size: .95rem; }
.service-row .booking-note { margin-top: 8px; font-size: .86rem; color: var(--muted); font-style: italic; }

/* price tables */
.price-block { max-width: 760px; margin: 0 auto 34px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.price-block h3 { background: var(--navy); color: #fff; padding: 16px 26px; font-size: 1.05rem; }
.price-block table { width: 100%; border-collapse: collapse; }
.price-block th, .price-block td { padding: 14px 26px; text-align: left; border-bottom: 1px solid var(--line-soft); font-weight: 400; }
.price-block th small { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; margin-top: 2px; }
.price-block td:last-child { text-align: right; font-family: var(--font-head); font-weight: 700; color: var(--navy); white-space: nowrap; }
.price-block tr:last-child td, .price-block tr:last-child th { border-bottom: none; }
.book-pill { display: inline-block; background: var(--sky-pale); color: var(--accent-deep); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: 3px 12px; border-radius: var(--radius-pill); margin-top: 4px; }
.enquire-pill { display: inline-block; background: #FDF0DB; color: #A8641A; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: 3px 12px; border-radius: var(--radius-pill); margin-top: 4px; }
.price-note { max-width: 760px; margin: 0 auto; font-size: .9rem; color: var(--muted); text-align: center; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team-card .initial { width: 100%; aspect-ratio: 1; background: var(--sky-pale); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; }
.team-body { padding: 20px 22px 22px; }
.team-body h3 { margin-bottom: 4px; }
.team-body .role { color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: .85rem; }
.team-body p { color: var(--muted); font-size: .92rem; margin-top: 10px; }

/* reviews */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 780px) { .review-grid { grid-template-columns: 1fr; } }
.review-card { background: var(--white); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-soft); border-left: 4px solid var(--accent); }
.review-card blockquote { color: var(--ink); font-size: .99rem; }
.review-card cite { display: block; margin-top: 14px; font-style: normal; font-weight: 600; color: var(--navy); font-size: .9rem; }

/* info cards */
.info-card { background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-soft); }
.info-card h3 { margin-bottom: 12px; }
.info-card + .info-card { margin-top: 22px; }
.info-card ul { list-style: none; }
.info-card li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.info-card li:last-child { border-bottom: none; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 9px 0; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .96rem; font-weight: 400; }
.hours-table td { text-align: right; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 54px); }
@media (max-width: 840px) { .contact-grid { grid-template-columns: 1fr; } }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 400px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .btn { margin-top: 24px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #8FA5BA; padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
@media (max-width: 840px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--sky); font-family: var(--font-head); font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: #C9E4F5; text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(201, 228, 245, .15); margin-top: 38px; padding-top: 20px; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: var(--sky); }

/* page hero (inner pages) */
.page-hero { background: var(--navy); text-align: center; padding: clamp(56px, 8vw, 100px) 22px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #B9CBDC; max-width: 640px; margin: 14px auto 0; }
.page-hero .eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: .28em; text-transform: uppercase; font-size: .76rem; color: var(--sky); }
