/* ============================================================
   Zac's Restringing — site.css
   Squash-court poster: paper walls, court-red lines, the black
   tin, double-yellow-dot ball. Anton display type over Inter.
   ============================================================ */

:root {
  --ink: #101010;
  --ink-soft: #4c4c45;
  --paper: #f7f5ee;
  --paper-raised: #fffdf7;
  --line: #e4e0d2;
  --red: #d92b21;          /* court lines */
  --yellow: #f2c517;       /* double-dot ball */
  --yellow-deep: #d9ac00;
  --green: #2e9e46;        /* Tecnifibre green */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow-hard: 8px 8px 0 var(--yellow);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden — hidden would break the sticky nav */
}

h1, h2, h3 { line-height: 1.05; }
h1, h2, .section-title, .why-num, .step-num, .rack-title, .string-price, .byo-price {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 3px solid var(--red);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  padding: 0.45rem 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: ticker 24s linear infinite;
}
.ticker-track span { white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--yellow); font-size: 0.55rem; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Squash ball ---------- */
.ball {
  position: relative;
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background: var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
}
.ball .dot { position: absolute; width: 22%; height: 22%; background: var(--yellow); border-radius: 50%; }
.ball .dot-1 { top: 28%; left: 26%; }
.ball .dot-2 { top: 48%; left: 50%; }
.ball-big { width: 68px; height: 68px; margin-bottom: 1.25rem; animation: bounce-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

@keyframes bounce-in {
  from { transform: translateY(-28px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.dot-cap {
  display: inline-block;
  width: 0.55em; height: 0.55em;
  border-radius: 50%;
  background: var(--yellow);
  margin-right: 0.55em;
  vertical-align: middle;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.8rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(16, 16, 16, 0.18);
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s, color 0.15s;
}
.btn:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(16, 16, 16, 0.28);
}
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 rgba(16, 16, 16, 0.25); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-small { padding: 0.45rem 1.1rem; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 4vw, 3rem) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}
.eyebrow {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 6.8rem);
  margin-bottom: 1.4rem;
}
.hero h1 .hl { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 96%, transparent 96%); }
/* Keyword-bearing subhead inside the h1 — reads as a normal line, not display type */
.hero h1 .h1-sub {
  display: block;
  margin-top: 1.15rem;
  max-width: 30ch;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.lede {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-photo { position: relative; margin: 0; transform: rotate(2deg); }
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-hard);
}
.hero-photo figcaption {
  display: inline-block;
  margin-top: 1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  transform: rotate(-1.5deg);
}

/* Court line under the hero */
.courtline {
  height: 4px;
  background: var(--red);
  margin-top: clamp(3rem, 7vh, 5rem);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vh, 6.5rem) clamp(1.25rem, 4vw, 3rem); }
.section-title {
  text-align: center;
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.section-title em { font-style: normal; color: var(--red); }

/* ---------- Price head ---------- */
.price-head { text-align: center; max-width: 700px; margin: 0 auto clamp(2.5rem, 6vh, 3.5rem); }
.price-head .section-title { margin-bottom: 0.9rem; }
.price-kicker {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.price-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ---------- Strings rack ---------- */
.strings-rack { max-width: 900px; margin: 0 auto; }
.string-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(60px, 0.5fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: 1.7rem 0;
  border-top: 2px solid var(--ink);
}
.string-row:last-of-type { border-bottom: 2px solid var(--ink); }
.string-row h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.string-name > p { color: var(--ink-soft); font-size: 0.93rem; }
.string-note {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

/* The actual string: a taut cord across the row */
.string-cord { position: relative; height: 4px; border-radius: 2px; }
.string-cord::before, .string-cord::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px; height: 10px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
}
.string-cord::before { left: -4px; }
.string-cord::after { right: -4px; }
.cord-ashaway { background: repeating-linear-gradient(90deg, #e8630a 0 14px, #f2a25c 14px 22px); }
.cord-tecnifibre { background: var(--green); }
.cord-unsquashable { background: var(--ink); }

.string-price {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1;
  white-space: nowrap;
  justify-self: end;
}
.string-price span { font-size: 0.4em; vertical-align: 0.9em; margin-right: 0.05em; color: var(--ink-soft); }

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  vertical-align: 0.15em;
  margin-left: 0.3rem;
}
.tag-green { background: var(--green); color: #fff; }
.tag-black { background: var(--ink); color: var(--paper); }

/* ---------- Bring your own string ---------- */
.byo {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  max-width: 900px;
  margin: clamp(2.25rem, 5vh, 3rem) auto 0;
  background: var(--ink);
  color: var(--paper);
  border-left: 10px solid var(--yellow);
  padding: 1.7rem clamp(1.4rem, 4vw, 2.2rem);
}
.byo-price {
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  line-height: 1;
  color: var(--yellow);
  white-space: nowrap;
}
.byo-price span { font-size: 0.4em; vertical-align: 0.9em; margin-right: 0.05em; color: var(--paper); }
.byo-copy h3 { color: var(--paper); font-size: 1.15rem; margin-bottom: 0.3rem; }
.byo-copy p { color: #b9b8ad; font-size: 0.96rem; }

.fine-print { text-align: center; color: var(--ink-soft); font-size: 0.92rem; margin-top: 2rem; }

/* ---------- The Tin (why Zac) ---------- */
.tin {
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
  padding: clamp(4rem, 9vh, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}
.tin-inner { max-width: 1000px; margin: 0 auto; }
.tin h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: clamp(2.5rem, 6vh, 3.5rem); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }
.why-num { font-size: 2.2rem; color: var(--yellow); }
.why-item h3 { font-size: 1.15rem; margin: 0.5rem 0 0.5rem; color: var(--paper); }
.why-item p { color: #b9b8ad; font-size: 0.96rem; }

/* ---------- Steps (service boxes) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  list-style: none;
}
.step {
  position: relative;
  background: var(--paper-raised);
  border: 2px solid var(--red);
  padding: 2.2rem 1.75rem 1.9rem;
}
.step-num {
  position: absolute;
  top: -1.1rem;
  left: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-size: 1.1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-list details { border-top: 2px solid var(--ink); padding: 1.1rem 0.2rem; }
.faq-list details:last-of-type { border-bottom: 2px solid var(--ink); }
.faq-list summary {
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 0.75rem; color: var(--ink-soft); font-size: 0.96rem; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact h2 { font-size: clamp(3rem, 9vw, 5.5rem); margin-bottom: 1rem; }
.contact .lede { margin-left: auto; margin-right: auto; }
.contact .hero-cta { justify-content: center; }
.contact .fine-print { margin-top: 1.75rem; }

.phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 1.8rem;
  background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 96%, transparent 96%);
  transition: color 0.15s;
}
.phone:hover { color: var(--red); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #8f8e85;
  border-top: 4px solid var(--red);
  padding: 1.6rem;
  text-align: center;
  font-size: 0.85rem;
}
.footer-tin {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #5c5b53;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.hero-photo.reveal { transform: rotate(2deg) translateY(18px); }
.hero-photo.reveal.is-visible { transform: rotate(2deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-photo.reveal { opacity: 1; transform: rotate(0); transition: none; }
  .hero-photo.reveal.is-visible { transform: rotate(2deg); }
  .ball-big { animation: none; }
  .ticker-track { animation: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; margin: 0 auto; }
  .string-row {
    grid-template-columns: 1fr auto;
    gap: 0.9rem 1.25rem;
  }
  .string-name { grid-row: 1; grid-column: 1; }
  .string-price { grid-row: 1; grid-column: 2; align-self: start; }
  .string-cord { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .byo { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
