/* Ski & Snowboard Surgery. Brand kept from the Wix site:
   black header bar, orange (#F79C05) bold caps, grey nav tabs, white page. */
:root {
  --orange: #f79c05;
  --orange-dark: #b86f00;
  --black: #000;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --grey: #a7a7a7;
  --line: #d9d9d9;
  --bg: #fff;
  --soft: #f6f6f6;
  --head: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-underline-offset: 2px; }
a:hover { color: var(--black); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; line-height: 1.15; letter-spacing: -0.01em; color: var(--black); }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header { background: var(--black); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--orange); text-decoration: none; font-size: clamp(1.15rem, 3.2vw, 2rem); letter-spacing: -0.02em; line-height: 1; }
.brand:hover { color: var(--orange); }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
#site-nav a { display: block; padding: 12px 14px; background: var(--grey); color: var(--black); text-decoration: none; text-transform: uppercase; font: 700 0.8rem/1 var(--head); }
#site-nav a:hover { background: #fff; }
#site-nav a[aria-current="page"] { background: var(--orange); color: #fff; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 10px; width: 24px; height: 3px; background: var(--orange); content: ""; }
.bars { top: 20px; }
.bars::before { top: -8px; left: 0; }
.bars::after { top: 8px; left: 0; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  #site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--black); padding: 8px 16px 16px; }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; }
  #site-nav a { padding: 14px; font-size: 0.95rem; }
}

/* Home hero */
.hero { position: relative; }
.hero picture img { width: 100%; height: clamp(260px, 50vw, 640px); object-fit: cover; }
.hero-logo { position: absolute; left: max(16px, calc((100vw - var(--wrap)) / 2 + 16px)); bottom: clamp(-70px, -6vw, -40px); width: clamp(120px, 20vw, 220px); height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }

/* Two-column layout with "Where to find us" */
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 56px; align-items: start; }
.hero + .layout { padding-top: clamp(64px, 9vw, 110px); }
.side { display: grid; gap: 20px; }
.side-logo { width: 140px; margin: 0 auto; }
.find-us { border: 1px solid var(--line); padding: 20px 22px; font-size: 0.95rem; line-height: 1.5; }
.find-us h2 { font-size: 0.95rem; margin: 0 0 12px; }
.find-us h3 { font-size: 0.85rem; margin: 18px 0 4px; text-transform: none; }
.find-us p { margin: 0 0 12px; }
.content { max-width: 720px; }
.content > p { margin: 0 0 1.1em; }
.hero + .layout .find-us { order: 0; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .layout .content { order: -1; }
  .side-logo { display: none; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btn { display: inline-block; padding: 14px 20px; background: var(--orange); color: var(--black); text-decoration: none; font: 700 0.9rem/1 var(--head); text-transform: uppercase; }
.btn:hover { background: var(--black); color: var(--orange); }
.btn-ghost { background: transparent; border: 2px solid var(--black); padding: 12px 18px; }

/* Map */
.map iframe { display: block; width: 100%; height: 360px; border: 0; background: var(--soft); }
.map p { margin: 12px auto 40px; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; }
.service { padding: 20px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.service h2 { font-size: 1.1rem; margin: 0; }
.price { margin: 0; font-weight: 700; color: var(--orange-dark); }
.service p:not(.price) { margin: 8px 0 0; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); padding: 4px 0; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.5rem/1 var(--head); color: var(--orange); }
.faq[open] summary::after { content: "\2212"; }
.faq h2 { font-size: 1.05rem; margin: 16px 0; text-transform: none; }
.faq p { margin: 0 0 18px; }

/* Blog */
.blog-hero { background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url("/img/hero-tool-wall-1000.webp") center / cover; color: #fff; text-align: center; padding: clamp(56px, 10vw, 110px) 0; }
.blog-hero h1 { color: #fff; font-size: clamp(2.4rem, 8vw, 4.5rem); margin: 0 0 8px; }
.blog-hero p { margin: 0; font: 700 0.95rem/1.4 var(--head); text-transform: uppercase; }
.cards { list-style: none; padding: 0; margin: 40px 0 56px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.card a { display: block; color: inherit; text-decoration: none; height: 100%; border: 1px solid var(--line); }
.card a:hover { border-color: var(--orange); }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card h2 { font-size: 1.1rem; margin: 16px 16px 4px; }
.card p { margin: 0 16px 16px; color: var(--muted); font-size: 0.95rem; }
.card .meta { margin-bottom: 4px; }
.meta { color: var(--muted); font-size: 0.9rem; }

.teasers { background: var(--soft); padding: 48px 0 56px; }
.teasers-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 6px; }
.teasers-head p { margin: 0; font: 700 0.9rem/1.4 var(--head); text-transform: uppercase; color: var(--muted); }
.teasers .cards { margin: 28px 0 8px; }
.teasers .card a { background: #fff; }
.card h3 { font-size: 1.1rem; margin: 16px 16px 6px; }

.post { max-width: 760px; padding-top: 32px; padding-bottom: 56px; }
.post .crumbs { margin: 0 0 12px; font: 700 0.85rem/1 var(--head); text-transform: uppercase; }
.post figure { margin: 24px 0; }
.post figure img { width: 100%; max-height: 85vh; object-fit: contain; background: var(--soft); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font: 700 0.85rem/1.3 var(--head); text-transform: uppercase; }
.pager a:last-child { text-align: right; }

.narrow { padding: 64px 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.social { display: flex; gap: 14px; }
.social a { color: var(--black); }
.social a:hover { color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: var(--black); text-decoration: none; text-transform: uppercase; font: 700 0.8rem/1 var(--head); }
.site-footer nav a:hover { color: var(--orange-dark); }

/* Seasonal banner (SUMMER_BANNER in build.py) */
.banner { margin: 0; background: var(--orange); text-align: center; font: 700 0.9rem/1.3 var(--head); text-transform: uppercase; }
.banner a { display: block; padding: 10px 16px; color: var(--black); text-decoration: none; }
.banner a:hover { text-decoration: underline; }

/* Google reviews strip: scrolls on its own, pauses on hover/focus, swipeable if reduced motion */
.reviews { padding: 48px 0 56px; overflow: hidden; }
.reviews-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 6px; }
.reviews-head p { margin: 0 0 24px; font-weight: 700; }
.reviews-track { overflow: hidden; }
.reviews-list { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 20px; width: max-content; animation: reviews-scroll 60s linear infinite; }
.reviews-track:hover .reviews-list, .reviews-track:focus-within .reviews-list { animation-play-state: paused; }
.review { width: min(340px, 80vw); flex: none; border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: 18px 20px; background: #fff; display: flex; flex-direction: column; }
.review .stars { margin: 0 0 8px; color: var(--orange); letter-spacing: 2px; }
.review blockquote { margin: 0 0 12px; flex: 1; }
.review blockquote p { margin: 0; font-size: 0.95rem; }
.review .who { margin: 0; font: 700 0.85rem/1 var(--head); text-transform: uppercase; }
@keyframes reviews-scroll { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
  .reviews-track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; }
  .reviews-list { animation: none; }
  .review { scroll-snap-align: start; }
  .review[aria-hidden="true"] { display: none; }
}
