/* The Chiropractor, Tiong Bahru. Light theme lock, ink + brand blue. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0c0d16;
  --ink-soft: #1b1d2b;
  --body: #4a5262;
  --paper: #ffffff;
  --paper-2: #f4f6f9;
  --tint: #eef4fc;
  --line: #e3e7ee;
  --accent: #0f6ad1;
  --accent-deep: #0b57ac;
  --accent-bright: #188bf6;
  --gold: #e8a812;
  --wa-green: #1da851;
  --radius-card: 16px;
  --radius-input: 10px;
  --shadow-card: 0 10px 30px rgba(11, 47, 92, 0.09);
  --shadow-lift: 0 18px 44px rgba(11, 47, 92, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4vw, 2.85rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.center { text-align: center; }

section { padding: 96px 0; }
section[id] { scroll-margin-top: 84px; }
@media (max-width: 767px) { section { padding: 60px 0; } }

/* Buttons: pill for interactive, 16px cards, 10px inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 26px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 106, 209, 0.28);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 106, 209, 0.32);
}
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); transform: translateY(-1px); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Announcement bar */
.announce {
  display: block;
  background: linear-gradient(90deg, var(--ink) 0%, #14213c 100%);
  color: #fff;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 16px;
  text-decoration: none;
}
.announce:hover { background: var(--ink-soft); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(11, 47, 92, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand img { border-radius: 8px; }
.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--accent); }

/* Mobile menu */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-inner { justify-content: space-between; gap: 14px; }
  .header-inner > .btn { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(11, 47, 92, 0.1);
    padding: 8px 0 12px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 24px; font-size: 1.02rem; }
  .site-nav .nav-book {
    margin: 10px 24px 4px;
    text-align: center;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 13px 24px;
  }
}
@media (min-width: 861px) {
  .site-nav .nav-book { display: none; }
}

/* Hero */
.hero {
  padding: 76px 0 96px;
  background:
    radial-gradient(52rem 30rem at 88% -12%, rgba(24, 139, 246, 0.1), transparent 62%),
    linear-gradient(180deg, var(--tint) 0%, var(--paper) 78%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.lede {
  font-size: 1.18rem;
  color: var(--body);
  max-width: 32em;
  margin-bottom: 1.2em;
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 1.7em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: 0 4px 14px rgba(11, 47, 92, 0.06);
}
.stars span { color: var(--gold); letter-spacing: 2px; }
.stars.small {
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 0.8em;
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { margin: 0; position: relative; }
.hero-media img {
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 106, 209, 0.1), rgba(15, 106, 209, 0.03));
  z-index: -1;
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media::after { display: none; }
}

/* About band (single deliberate dark block, matches original) */
.about {
  background:
    radial-gradient(40rem 26rem at 8% 110%, rgba(24, 139, 246, 0.14), transparent 60%),
    var(--ink);
  color: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-media { margin: 0; }
.about-media img {
  border-radius: var(--radius-card);
  width: 100%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.about-lead {
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 1.05rem;
}
.about-copy p:not(.about-lead) { color: #c9cdd8; }
.about-copy .btn { margin-top: 10px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Reviews */
.reviews { background: var(--paper-2); }
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
}
.review-card {
  position: relative;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 34px 34px 28px;
  box-shadow: 0 4px 16px rgba(11, 47, 92, 0.05);
}
.review-card::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  right: 22px;
  font-size: 4.6rem;
  line-height: 1;
  font-weight: 800;
  color: var(--tint);
  pointer-events: none;
}
.review-card p:not(.stars) {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-soft);
  position: relative;
}
.review-card footer {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.review-card footer span { color: var(--body); font-size: 0.9rem; }
@media (max-width: 767px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 44px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.service-card .service-figure { overflow: hidden; }
.service-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover img { transform: scale(1.045); }
.service-body { padding: 24px 26px 10px; }
.service-body p { color: var(--body); font-size: 0.97rem; }
@media (max-width: 767px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card img { height: 190px; }
}

/* Booking embed */
.booking { background: var(--paper); }
.booking .contact-sub { margin-bottom: 0; }
.booking-frame {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.booking-frame iframe {
  display: block;
  width: 100%;
  height: 920px;
  border: 0;
}
.booking-fallback {
  text-align: center;
  color: var(--body);
  font-size: 0.92rem;
  margin: 16px 0 0;
}
.booking-fallback a { color: var(--accent); font-weight: 600; }
@media (max-width: 767px) {
  .booking-frame iframe { height: 780px; }
}

/* FAQ */
.faq { background: var(--paper-2); }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 6px 26px;
  margin-top: 14px;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--accent); }
.faq .center { margin-bottom: 26px; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--body); padding-bottom: 16px; margin: 0; }

/* Contact */
.contact-sub { color: var(--body); max-width: 42em; margin: 0 auto; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 44px;
  align-items: start;
}
.enquiry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  background: #fff;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.field input::placeholder { color: #6b7280; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 106, 209, 0.15);
}
.field.invalid input,
.field.invalid textarea { border-color: #c0392b; }
.field-error { color: #b0301f; font-size: 0.88rem; margin: 0; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { color: var(--body); font-size: 0.92rem; margin: 14px 0 0; text-align: center; }
.form-note a { color: var(--accent); font-weight: 600; }
.form-status { margin: 14px 0 0; font-weight: 600; text-align: center; }
.form-status.ok { color: #157347; }
.form-status.err { color: #b0301f; }

.info-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 18px;
}
.info-list li { display: flex; flex-direction: column; gap: 2px; }
.info-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--body);
}
.info-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.info-list a:hover { color: var(--accent); }
.map-link { display: block; }
.map-link img {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  width: 100%;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9cdd8;
  padding: 56px 0 40px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.site-footer img { width: 88px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent-bright); }
.site-footer p { margin: 0; }
.fineprint { font-size: 0.85rem; color: #868d9e; }

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(12, 13, 22, 0.25);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* Scroll reveal, motion gated behind reduced-motion preference */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card,
  .service-card img,
  .btn { transition: none; }
}
