/* Excalibur Coach 2026 - site styles */
:root {
  --ink: #16181B;
  --bone: #F2EEE6;
  --paper: #FBF9F4;
  --sand: #E6DFD1;
  --muted: #57554F;
  --rule: #D6CEBE;
  --accent: #8C6212;
  --accent-lt: #D4A443;
  --on-dark: #E9E4D8;
  --on-dark-muted: #B9B3A6;
  --dark-rule: #34373C;
  --display: 'Bodoni Moda', Didot, Georgia, serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 100; }
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); max-width: 1600px; margin: 0 auto; }

/* ---------- Header ---------- */
.utility { background: var(--ink); color: var(--on-dark); font-size: 13px; letter-spacing: 0.04em; }
.utility .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.site-header { background: var(--bone); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.logo img { width: 250px; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { color: var(--ink); font-size: 15px; font-weight: 500; padding: 12px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.btn-phone { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 2px; font-weight: 600; font-size: 15px; letter-spacing: 0.02em; white-space: nowrap; }
.btn-phone:hover { background: var(--accent); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: 2px; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.on-dark .eyebrow { color: var(--accent-lt); }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.h-xl { font-size: clamp(44px, 6vw, 88px); line-height: 1; }
.h-lg { font-size: clamp(34px, 4.2vw, 60px); }
.h-md { font-size: clamp(28px, 3vw, 44px); line-height: 1.1; }
.price { font-size: 30px; font-weight: 500; color: var(--accent); }
.on-dark .price { color: var(--accent-lt); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 26px; min-height: 48px; font: inherit; font-weight: 600; font-size: 15px; letter-spacing: 0.02em; border-radius: 2px; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn-outline { border-color: var(--paper); color: var(--paper); }
.on-dark .btn-outline:hover { background: var(--paper); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(48px, 5.8vw, 84px); line-height: 1; letter-spacing: -0.01em; }
.hero figure { margin: 0; position: relative; }
.hero figure img { width: 100%; height: 560px; object-fit: cover; }
.hero figcaption, .photo-tag { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--paper); padding: 14px 20px; font-size: 14px; letter-spacing: 0.02em; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.stats > div { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.stats > div:first-child { padding-left: 0; }
.stats > div + div { border-left: 1px solid var(--rule); }
.stats strong { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1.1; }
.stats span { font-size: 14px; color: var(--muted); }

/* ---------- Featured coach (dark band) ---------- */
.on-dark { background: var(--ink); color: var(--paper); }
.featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.featured img { width: 100%; height: 520px; object-fit: cover; }
.featured-copy { display: flex; flex-direction: column; gap: 26px; }
.featured-more { font-size: 14px; color: var(--on-dark-muted); }
.featured-more a { color: var(--accent-lt); }

.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
.specs div { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--rule); }
.specs dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-size: 20px; font-weight: 500; }
.on-dark .specs div { border-top-color: var(--dark-rule); }
.on-dark .specs dt { color: var(--on-dark-muted); }

/* ---------- Sections ---------- */
.section { padding-top: 104px; padding-bottom: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head > div { display: flex; flex-direction: column; gap: 16px; }
.section-head p { max-width: 400px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.service-list { border-bottom: 1px solid var(--rule); }
.service-row { display: grid; grid-template-columns: 80px minmax(0, 340px) minmax(0, 1fr) 200px 32px; gap: 32px; align-items: center; padding: 26px 0; border-top: 1px solid var(--rule); color: var(--ink); }
.service-row:hover { color: var(--ink); background: var(--paper); }
.service-row .num { font-family: var(--display); font-size: 22px; color: var(--accent); }
.service-row .title { font-family: var(--display); font-size: 36px; line-height: 1.1; }
.service-row .desc { font-size: 16px; line-height: 1.6; color: var(--muted); }
.service-row img { width: 200px; height: 120px; object-fit: cover; }

/* ---------- Project cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.card:hover { color: var(--ink); }
.card .thumb { overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card .name { font-size: 18px; font-weight: 600; line-height: 1.3; }
.card .cat { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.card .sub { font-size: 14px; color: var(--muted); margin-top: -8px; }

/* ---------- Testimonial ---------- */
.quote { margin-top: 80px; padding: 72px 96px; background: var(--paper); border: 1px solid var(--rule); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 40px; }
.quote .mark { font-family: var(--display); font-size: 180px; line-height: 0.8; color: var(--accent); }
.quote blockquote { margin: 0; display: flex; flex-direction: column; gap: 28px; }
.quote blockquote p { font-family: var(--display); font-size: clamp(24px, 2.7vw, 38px); line-height: 1.3; }
.quote cite { font-style: normal; display: flex; flex-direction: column; gap: 4px; }
.quote cite strong { font-size: 16px; }
.quote cite span { font-size: 14px; color: var(--muted); }

/* ---------- Visit / forms ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; padding-top: 104px; padding-bottom: 104px; }
.visit-info { display: flex; flex-direction: column; gap: 28px; }
.visit-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; font-size: 16px; line-height: 1.6; }
.visit-facts strong { display: block; }
.map { width: 100%; height: 280px; border: 1px solid var(--rule); background: var(--sand); }
.form-card { display: flex; flex-direction: column; gap: 20px; background: var(--paper); border: 1px solid var(--rule); padding: 40px; }
.form-card .form-title { font-family: var(--display); font-size: 30px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 14px; border: 1px solid var(--rule); background: #fff; border-radius: 2px; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px rgba(140, 98, 18, .2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); }
.alert { padding: 14px 18px; border: 1px solid var(--accent); background: #fff; font-size: 15px; }

/* ---------- Page heads ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-top: 72px; padding-bottom: 48px; border-bottom: 1px solid var(--rule); }
.page-head > div { display: flex; flex-direction: column; gap: 18px; }
.page-head p { max-width: 440px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.crumbs { padding-top: 24px; padding-bottom: 8px; font-size: 14px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Sales ---------- */
.listing { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: var(--paper); border: 1px solid var(--rule); color: var(--ink); }
.listing:hover { color: var(--ink); border-color: var(--ink); }
.listing + .listing { margin-top: 32px; }
.listing-photos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 250px 250px; gap: 4px; }
.listing-photos img { width: 100%; height: 100%; object-fit: cover; }
.listing-photos img:first-child { grid-row: span 2; }
.listing-photos.single { grid-template-columns: 1fr; }
.listing-body { padding: 44px; display: flex; flex-direction: column; gap: 22px; }
.listing-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.sold-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 72px; padding-top: 40px; padding-bottom: 96px; }
.sold-grid > div:first-child { display: flex; flex-direction: column; gap: 18px; }
.sold-list { border-bottom: 1px solid var(--rule); }
.sold-row { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); color: var(--ink); font-size: 18px; }
.sold-row:hover { color: var(--accent); }
.sold-row img { width: 96px; height: 64px; object-fit: cover; flex-shrink: 0; }
.sold-row span { flex-grow: 1; }
.badge { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); padding: 6px 10px; white-space: nowrap; }
.badge-sold { color: #fff; background: var(--ink); border-color: var(--ink); }
.empty { padding: 48px; background: var(--paper); border: 1px dashed var(--rule); text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* ---------- Coach detail ---------- */
.coach { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; padding-top: 8px; padding-bottom: 64px; }
.coach-gallery { display: flex; flex-direction: column; gap: 12px; }
.coach-main { position: relative; background: var(--sand); }
.coach-main button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.coach-main img { width: 100%; height: 600px; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.thumbs button { padding: 0; border: 0; background: none; cursor: pointer; outline-offset: 2px; }
.thumbs button[aria-current="true"] { outline: 2px solid var(--ink); }
.thumbs img { width: 100%; height: 96px; object-fit: cover; }
.thumb-more { background: var(--ink) !important; color: var(--paper); font: inherit; font-family: var(--display) !important; font-size: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 96px; }
.thumb-more span { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.thumb-more:hover { background: var(--accent) !important; }
.coach-side { display: flex; flex-direction: column; gap: 22px; }
.spec-table { border-bottom: 1px solid var(--rule); }
.spec-table div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; }
.coach-more { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 96px; border-top: 1px solid var(--rule); }
.coach-more > div { display: flex; flex-direction: column; gap: 20px; }
.prose { font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose img { max-width: 100%; height: auto; }
.prose a { text-decoration: underline; }
.prose h1, .prose h2, .prose h3 { font-family: var(--display); margin: 1.2em 0 .5em; }

/* ---------- Work / gallery ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.tabs a { font-size: 15px; font-weight: 600; padding: 12px 20px; min-height: 44px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink); }
.tabs a:hover { border-color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tabs .count { font-weight: 400; opacity: .7; margin-left: 4px; }
.intro-text { padding-top: 32px; max-width: 900px; }
.grid-section { padding-top: 48px; padding-bottom: 96px; }
.subfolders { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 24px; }
.subfolders a { padding: 10px 16px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); font-size: 15px; }
.subfolders a:hover { border-color: var(--ink); }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.photo-grid button { all: unset; cursor: zoom-in; display: flex; flex-direction: column; gap: 8px; }
.photo-grid button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.photo-grid span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.files { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 16px; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 11, 12, .92); }
.lightbox-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 72px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox-cap { color: var(--on-dark); font-size: 14px; text-align: center; min-height: 20px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.4); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); margin-top: 0; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-cols img { width: 240px; margin-bottom: 6px; }
.footer-cols p { color: var(--muted); line-height: 1.6; }
.footer-cols a { color: var(--ink); }
.footer-cols a:hover { color: var(--accent); }
.footer-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer-phone { font-family: var(--display); font-size: 34px; }
.footer-base { border-top: 1px solid var(--rule); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .main-nav { gap: 20px; }
  .service-row { grid-template-columns: 60px minmax(0, 280px) minmax(0, 1fr) 32px; }
  .service-row img { display: none; }
}
@media (max-width: 1280px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bone); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--rule); }
  .site-header .wrap { position: relative; }
}
@media (max-width: 1060px) {
  .hero, .featured, .visit, .coach, .coach-more, .listing, .sold-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 48px; }
  .hero figure { order: -1; }
  .hero figure img, .featured img { height: 420px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote { padding: 48px; grid-template-columns: 1fr; gap: 0; }
  .quote .mark { font-size: 120px; height: 70px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  .utility { display: none; }
  .logo img { width: 190px; }
  .site-header .btn-phone span { display: none; }
  .site-header .btn-phone { padding: 12px; }
  .hero { padding-top: 0; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .hero-copy { padding: 0 var(--gutter); gap: 18px; }
  .hero figure img { height: 280px; }
  .hero figcaption { display: none; }
  .lede { font-size: 16px; }
  .btn-row .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 20px 12px 20px 0; }
  .stats > div + div { border-left: 0; }
  .stats > div:nth-child(even) { border-left: 1px solid var(--rule); padding-left: 16px; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .stats strong { font-size: 32px; }
  .featured { padding-top: 40px; padding-bottom: 40px; gap: 24px; }
  .featured img { height: 240px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: 56px; }
  .service-row { grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 14px; padding: 18px 0; }
  .service-row .desc { display: none; }
  .service-row .title { font-size: 24px; }
  .service-row .num { font-size: 16px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .card .name { font-size: 14px; }
  .card .cat, .card .sub { display: none; }
  .quote { padding: 28px 22px; margin-top: 48px; }
  .visit { padding-top: 56px; padding-bottom: 56px; }
  .visit-facts, .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .listing-photos { grid-template-rows: 200px; grid-template-columns: 1fr; }
  .listing-photos img:not(:first-child) { display: none; }
  .listing-photos img:first-child { grid-row: auto; }
  .listing-body { padding: 24px; }
  .coach-main img { height: 280px; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .thumbs img, .thumb-more { height: 64px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-phone { font-size: 28px; }
  .lightbox-inner { padding: 64px 8px 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}
