/* ==========================================================================
   OsteoRise — stylesheet
   Palette, type and layout sampled directly from www.osteorise.com.
   Accent #ffbf23, black/white base, Space Grotesk display, Didot italic
   for the "Meet The Team" section.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --yellow:      #ffbf23;
  --yellow-dark: #996e00;
  --black:       #000000;
  --ink:         #3f4447;
  --white:       #ffffff;

  --grey:        #e8e6e6;
  --grey-light:  #fafafa;
  --grey-panel:  #edebeb;

  --fb-blue:     #3b5998;

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Proxima Nova", "Avenir Next", Avenir, "Segoe UI", Roboto,
                  "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif:   Didot, "Bodoni Moda", "Playfair Display", Georgia,
                  "Times New Roman", serif;

  --wrap:        1020px;
  --gutter:      20px;
  --bar-h:       10px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--black);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.375rem; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--yellow-dark); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--black); color: #fff; padding: .7rem 1.2rem;
}
.skip-link:focus { left: 0; }

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

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Top / bottom black bars ---------- */
.topbar { height: var(--bar-h); background: var(--black); }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: relative; z-index: 60; }
.site-header__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { width: 172px; height: auto; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease;
}
.nav a:hover { color: var(--yellow-dark); }
.nav a[aria-current="page"] { color: #8f8f8f; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--black); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--black);
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--grey);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: 80dvh; overflow-y: auto;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: .85rem .25rem; font-size: 1.1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 2rem;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 0;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--black  { background: var(--black); color: #fff; }
.btn--black:hover { background: var(--yellow); color: var(--black); }

.btn--yellow { background: var(--yellow); color: var(--black); border-color: var(--black); }
.btn--yellow:hover { background: var(--black); color: var(--yellow); }

.btn--dark   { background: #3f4447; color: #fff; font-size: .9rem; padding: .7rem 1.5rem; }
.btn--dark:hover { background: var(--black); }

.btn--gold   { background: var(--yellow-dark); color: #fff; }
.btn--gold:hover { background: var(--black); }

.btn-center { display: flex; justify-content: center; }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(2rem, 4vw, 3.25rem) clamp(2.5rem, 5vw, 4rem); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 457px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 50px);
  line-height: 1.16;
  margin-bottom: 1.4rem;
}
.hero__text { font-size: 20px; max-width: 34rem; margin-bottom: 1.75rem; }

.hero__features {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem;
  margin-bottom: 2rem;
}
.hero__feature { display: flex; align-items: flex-start; gap: .6rem; max-width: 14rem; }
.hero__feature img { width: 34px; height: 34px; flex: none; }
.hero__feature span { font-size: 16px; line-height: 1.3; }

.hero__media img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

/* ---------- Curved yellow band ---------- */
.band-curve { display: block; width: 100%; height: 70px; margin-bottom: -1px; }
.band-curve path { fill: var(--yellow); }

.yellow-band { background: var(--yellow); padding-block: clamp(2rem, 4vw, 3.25rem); }
.yellow-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.yellow-band h2 { font-size: clamp(1.75rem, 3.2vw, 38px); margin: 0; }
.yellow-band p { font-size: 16px; margin: 0; }
@media (max-width: 780px) { .yellow-band__inner { grid-template-columns: 1fr; } }

/* ---------- Home services ---------- */
.home-services__intro { max-width: 46rem; font-size: 16px; margin-bottom: 2.5rem; }

.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 540px) { .svc-grid { grid-template-columns: 1fr; } }

.svc__media { border: 1px solid var(--black); margin-bottom: 1rem; }
.svc__media img { width: 100%; aspect-ratio: 226 / 300; object-fit: cover; }
.svc h3 { font-size: 22px; font-weight: 700; margin-bottom: .6rem; }
.svc p { font-size: 16px; }

/* ---------- Video ---------- */
.video-block { display: flex; justify-content: center; }
.video-block video {
  width: 100%; max-width: 490px;
  aspect-ratio: 490 / 528;
  height: auto;
  object-fit: contain;
  border: 3px solid #4a90d9;
  background: #000;
}

/* ---------- Google reviews (SociableKit) ---------- */
.reviews { min-height: 320px; }

/* ---------- Page heading (inner pages) ---------- */
.page-head { padding-block: clamp(2rem, 4vw, 3rem) 1rem; }
.page-head h1 { margin-bottom: .75rem; }
.page-head p { font-size: 16px; max-width: 46rem; }

/* ---------- Services page ---------- */
.svc-panel { background: var(--grey-panel); padding-block: clamp(2rem, 4vw, 3.25rem); }
.svc-panel__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 2rem 1.75rem;
}
@media (max-width: 900px) { .svc-panel__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .svc-panel__grid { grid-template-columns: 1fr; } }

/* image sits top-left, white text card overlaps down-right */
.svc-card { position: relative; padding-bottom: .5rem; }
.svc-card__media { width: 88%; }
.svc-card__media img { width: 100%; aspect-ratio: 185 / 165; object-fit: cover; }
.svc-card__body {
  position: relative;
  margin: -3.25rem 0 0 12%;
  width: 88%;
  background: var(--white);
  padding: 1.1rem 1.15rem 1.35rem;
}
.svc-card__body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.svc-card__body p { font-size: .9rem; margin: 0; }

/* ---------- Team page ---------- */
.team-page { background: var(--grey); }
.panel-white { background: var(--white); }

.founder {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0 2.5rem;
  align-items: center;
}
.founder__photo { align-self: stretch; overflow: hidden; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.founder__body { padding: 2.5rem 2.5rem 2.5rem 0; }
.founder__eyebrow { font-size: .9rem; margin-bottom: .4rem; }
.founder h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1.25rem; }
.founder p { font-size: .95rem; }
@media (max-width: 780px) {
  .founder { grid-template-columns: 1fr; }
  .founder__body { padding: 1.75rem; }
}

.team-section { background: var(--grey-light); padding-block: clamp(2.5rem, 5vw, 4rem); }
.team-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  text-align: center;
  margin-bottom: .5rem;
}
.team-rule { width: 34px; height: 2px; background: var(--black); margin: 0 auto 2.5rem; }

.team-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 2rem; max-width: 620px; margin-inline: auto;
}
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.person { text-align: center; }
.person__photo {
  width: 158px; height: 158px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 1rem; background: #fff;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: .85rem;
}
.person p { font-size: .85rem; text-align: left; }

.mission h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
.mission p { font-size: .95rem; margin-bottom: 2rem; }

/* ---------- FAQs ---------- */
.faq-item { margin-bottom: 1.75rem; }
.faq-item h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: .35rem; }
.faq-item p { font-size: .95rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem; margin-bottom: 2.5rem;
}
@media (max-width: 680px) { .contact-cols { grid-template-columns: 1fr; } }
.contact-cols h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.contact-cols p { font-size: .95rem; margin-bottom: .35rem; }
.contact-cols a { color: inherit; }

.social-row { display: flex; gap: .6rem; }
.social-row img { width: 22px; height: 22px; }

.form { max-width: 780px; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 680px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .55rem .6rem;
  background: #fff; border: 1px solid var(--black); border-radius: 0;
  font-size: .95rem;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--yellow-dark); outline-offset: -1px;
}
.form__actions { display: flex; justify-content: flex-end; }
.form__actions .btn { min-width: 200px; }
.form-status { margin-top: .9rem; font-size: .9rem; display: none; }
.form-status[data-state="ok"]  { display: block; color: #1d6b32; }
.form-status[data-state="err"] { display: block; color: #a02c2c; }

.map { max-width: 466px; margin: 2.5rem auto 0; }
.map iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- Booking widget ---------- */
.booking {
  position: relative;
  background: url("../assets/img/booking-banner.jpg") center / cover no-repeat;
  padding-block: 0;
}
.booking__frame {
  max-width: 980px; margin-inline: auto;
  background: #fff;
  min-height: 1100px;
}
.booking__frame iframe { width: 100%; height: 1100px; border: 0; display: block; }
@media (max-width: 700px) {
  .booking__frame, .booking__frame iframe { min-height: 1250px; height: 1250px; }
}

/* ---------- Blog empty state ---------- */
.empty-state { text-align: center; padding-block: 3rem 4rem; }
.empty-state h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.empty-state p { font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--yellow); color: var(--black); padding-block: 2.25rem 2.75rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.1fr 1.1fr auto;
  gap: 1.5rem 2rem; align-items: start;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-body); font-size: 22px; font-weight: 700; margin: 0 0 .7rem; }
.site-footer p { font-size: 16px; margin-bottom: .3rem; }
.site-footer a { color: var(--black); }
.footer-socials { display: flex; gap: .5rem; }
.footer-socials img { width: 32px; height: 32px; }

.footer-bar { background: var(--black); color: #fff; text-align: center; padding: .45rem 1rem; }
.footer-bar p { margin: 0; font-size: .78rem; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .topbar, .nav-toggle { display: none !important; }
  body { color: #000; }
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 700px) {
  /* Inline tel:/mailto: links are ~21px tall by default — too small to tap
     reliably. Padding lifts them to ~32px without changing how they look. */
  .contact-cols a[href^="tel:"],
  .contact-cols a[href^="mailto:"],
  .site-footer a[href^="tel:"],
  .site-footer a[href^="mailto:"],
  .site-footer a[href*="google.com/maps"] {
    display: inline-block;
    padding-block: 5px;
  }

  /* Contact-page social glyphs are 22px; enlarge for touch. */
  .social-row { gap: .9rem; }
  .social-row img { width: 28px; height: 28px; }

  /* Full-width submit reads better on a phone than a right-aligned button. */
  .form__actions { justify-content: stretch; }
  .form__actions .btn { width: 100%; }
}

/* Honeypot — visually hidden, still focusable by bots that ignore CSS. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Google reviews widget ---------- */
/* The widget renders every review it has. We show the rating badge plus a
   handful of reviews; js/main.js keeps this in sync with data-max-reviews.
   Hiding here as well avoids a flash of the full list while JS runs. */
.reviews .sk-load-more-btn-container,
.reviews .js-load-more-btn,
.reviews .sk-load-more-btn { display: none !important; }

/* Give the video controls room and keep the frame tidy. */
.video-block video { border-radius: 0; }
