/* ==========================================================================
   Thompson Billiard Tables
   Palette sampled from the original brand assets:
     #0E8B49  call-badge green   -> --brand
     #22B573  wordmark green     -> --brand-bright
     #2F2F2F  wordmark charcoal  -> --ink
   ========================================================================== */

:root {
  --brand: #0e8b49;
  --brand-bright: #22b573;
  --brand-dark: #0a5f33;

  --felt: #0d3b26;
  --felt-deep: #072116;

  --ink: #16191c;
  --ink-soft: #2f3438;
  --body: #3d4449;
  --muted: #6b747a;

  --line: #e2e6e4;
  --surface: #ffffff;
  --surface-alt: #f5f7f6;

  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.25rem);
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgb(11 34 24 / 8%), 0 2px 6px rgb(11 34 24 / 6%);
  --shadow: 0 4px 12px rgb(11 34 24 / 10%), 0 14px 34px rgb(11 34 24 / 10%);
  --shadow-lg: 0 10px 26px rgb(11 34 24 / 14%), 0 30px 70px rgb(11 34 24 / 16%);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --display: "Oswald", "Arial Narrow", var(--sans);

  --header-h: 76px;
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); text-transform: uppercase; }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }

p { margin: 0 0 1.15em; }
ul { margin: 0 0 1.15em; padding-left: 1.15em; }

:focus-visible {
  outline: 3px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- layout ---------- */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }

.section__head { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section__head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--brand);
  margin: 0 0 0.7rem;
  font-weight: 600;
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(18 21 24 / 96%);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 42px; width: auto; }

.nav-toggle {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 1px solid rgb(255 255 255 / 26%);
  color: #fff;
  font: 600 0.9rem/1 var(--sans);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle b { display: block; width: 17px; height: 1.5px; background: #fff; position: relative; }
.nav-toggle b::before,
.nav-toggle b::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: #fff;
}
.nav-toggle b::before { top: -5px; }
.nav-toggle b::after { top: 5px; }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: rgb(255 255 255 / 82%);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: #fff; background: rgb(255 255 255 / 9%); }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--brand-bright); }

.header-call {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
}
.header-call:hover { background: var(--brand-bright); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    inset: var(--header-h) 0 auto;
    background: #14181b;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    padding: 0.6rem 0 1.1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  .site-nav a { padding: 0.85rem 0.6rem; border-bottom: 1px solid rgb(255 255 255 / 8%); }
  .header-call span { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font: 600 1rem/1 var(--sans);
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s, color 0.16s, border-color 0.16s, transform 0.16s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff !important; }
.btn--primary:hover { background: var(--brand-bright); }
.btn--ghost { border-color: rgb(255 255 255 / 42%); color: #fff !important; }
.btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / 10%); }
.btn--outline { border-color: var(--line); color: var(--ink) !important; background: #fff; }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-dark) !important; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.6rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(120% 100% at 78% 8%, rgb(34 181 115 / 26%), transparent 58%),
    linear-gradient(160deg, var(--felt) 0%, var(--felt-deep) 62%, #04140d 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 7px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.25rem, 8vw, 6rem) 0;
}
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero h1 em { font-style: normal; color: var(--brand-bright); }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: rgb(255 255 255 / 84%);
  max-width: 46ch;
  margin-bottom: 0;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 16%);
  font-size: 0.94rem;
  color: rgb(255 255 255 / 72%);
}
.hero__meta b { display: block; font-family: var(--display); font-size: 1.5rem; color: #fff; font-weight: 600; }

/* hero slideshow */
.slides {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: #0a1a12;
}
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slides img.is-active { opacity: 1; }
.slides__dots {
  position: absolute;
  left: 0; right: 0; bottom: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}
.slides__dots button {
  width: 30px; height: 4px;
  border: 0; padding: 0;
  border-radius: 99px;
  background: rgb(255 255 255 / 40%);
  cursor: pointer;
}
.slides__dots button[aria-current="true"] { background: #fff; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .slides { order: -1; aspect-ratio: 16 / 10; }
}

/* ---------- page banner (interior pages) ---------- */

.banner {
  background: linear-gradient(150deg, var(--felt) 0%, var(--felt-deep) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.25rem, 5vw, 3.25rem);
}
.banner h1 { color: #fff; margin-bottom: 0.25em; }
.banner p { color: rgb(255 255 255 / 80%); max-width: 60ch; margin: 0; }

.crumbs { font-size: 0.88rem; margin: 0 0 1rem; color: rgb(255 255 255 / 62%); }
.crumbs a { color: rgb(255 255 255 / 82%); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { padding: 0 0.45rem; opacity: 0.55; }

/* ---------- cards / grids ---------- */

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.75rem); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cfd8d3;
}
.card__media { aspect-ratio: 4 / 3; background: var(--surface-alt); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.15rem 1.25rem 1.35rem; }
.card__body h3 { margin-bottom: 0.3rem; }
.card__body p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.card__count {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- range detail ---------- */

.range {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
.range__figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
@media (max-width: 880px) {
  .range { grid-template-columns: 1fr; }
  .range__figure { position: static; order: -1; }
}

.specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.55rem 1.4rem;
}
.specs li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.specs li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2rem; }
.prose ul li { margin-bottom: 0.4rem; }

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.85rem;
}
.gallery button {
  padding: 0;
  border: 0;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  display: block;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery button:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgb(6 14 10 / 93%);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 82vh;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  color: rgb(255 255 255 / 78%);
  font-size: 0.92rem;
}
.lightbox button {
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 24%);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: rgb(255 255 255 / 22%); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.5rem;
}
.lightbox__nav--prev { left: clamp(0.6rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(0.6rem, 2vw, 1.5rem); }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.detail-list li:last-child { border-bottom: 0; }
.detail-list dt, .detail-list .k {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}
.detail-list .v { font-size: 1.02rem; color: var(--ink); }
.detail-list .v a { text-decoration: none; font-weight: 600; }
.detail-list .v a:hover { text-decoration: underline; }
.detail-list .v small { display: block; color: var(--muted); font-weight: 400; font-size: 0.84rem; }

.form-grid { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-weight: 600; font-size: 0.93rem; color: var(--ink); }
.form-row .req { color: var(--brand-dark); }
.form-row input,
.form-row textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgb(14 139 73 / 15%); }
.form-row textarea { min-height: 155px; resize: vertical; }
.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--surface-alt);
  border-left: 3px solid var(--brand);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0;
}

/* ---------- callout ---------- */

.callout {
  background: linear-gradient(150deg, var(--felt) 0%, var(--felt-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.9rem, 5vw, 3.1rem);
  text-align: center;
}
.callout h2 { color: #fff; }
.callout p { color: rgb(255 255 255 / 80%); max-width: 55ch; margin-inline: auto; }
.callout .btn-row { justify-content: center; }

/* ---------- news ---------- */

.post-item {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.post-item:first-of-type { padding-top: 0; }
.post-item time {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--brand-dark);
  font-weight: 600;
}
.post-item h3 { margin: 0.35rem 0 0.5rem; }
.post-item p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  background: #14181b;
  color: rgb(255 255 255 / 68%);
  padding: clamp(2.75rem, 6vw, 4rem) 0 1.75rem;
  font-size: 0.95rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { height: 38px; width: auto; margin-bottom: 1.1rem; }
.site-footer a { color: rgb(255 255 255 / 80%); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer__base {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.86rem;
  color: rgb(255 255 255 / 52%);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .slides img { transition: none; }
}
