/* ============================================================
   We Buy Any Golf Balls — styled after the "Realstate" template
   ============================================================ */

:root {
  --white: #ffffff;
  --white-80: rgba(255, 255, 255, 0.8);
  --border: #dfe1e5;
  --bg: #f9f9fb;
  --black: #000000;
  --gray: #667085;
  --green: #00b779;
  --shell: #030303;
  --grad: linear-gradient(180deg, #3993b9 0%, #bbdae7 100%);
  --card-shadow:
    0px 0.301px 0.271px -1px rgba(0, 0, 0, 0.14),
    0px 1.144px 1.03px -2px rgba(0, 0, 0, 0.13),
    0px 5px 4.5px -3px rgba(0, 0, 0, 0.09);
  --nav-shadow:
    0px 0.602px 0.602px -0.83px rgba(0, 0, 0, 0.13),
    0px 2.289px 2.289px -1.67px rgba(0, 0, 0, 0.13),
    0px 10px 10px -2.5px rgba(0, 0, 0, 0.13);
  --radius-card: 16px;
  --radius-inner: 12px;
  --radius-pill: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--shell);
  font-family: "Inter", "Inter Placeholder", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--black);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, h4, p { margin: 0; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img, svg { display: block; }

/* ------------------------------------------------------------
   Reveal-on-scroll
   ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------
   Navbar — floating white pill
   ------------------------------------------------------------ */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 24px 32px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--white);
  border-radius: 500px;
  padding: 2px 2px 2px 24px;
  box-shadow: var(--nav-shadow);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-logo img { height: 48px; width: auto; display: block; }
.footer-logo img { height: 60px; }
.nav-links {
  display: flex;
  align-items: center;
}
.nav-links a {
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--gray);
  border-radius: var(--radius-pill);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--black); }
.nav-burger { display: none; }

/* Rolling-text pill buttons (dark + light) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 500px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
}
.btn-pill.dark  { background: var(--black); color: var(--white); }
.btn-pill.light { background: var(--white); color: var(--black); }
.btn-pill.large { font-size: 16px; }
.btn-pill .roll-clip {
  display: block;
  height: 1.2em;
  overflow: hidden;
}
.btn-pill .roll {
  display: block;
  line-height: 1.2em;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-shadow: 0 1.2em 0 currentColor;
}
.btn-pill:hover .roll { transform: translateY(-1.2em); }

/* ------------------------------------------------------------
   Page shell
   ------------------------------------------------------------ */
.page {
  background: var(--shell);
  overflow: clip;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  min-height: 100svh;
  background: var(--grad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 150px 32px 100px;
  overflow: clip;
  position: relative;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1em;
  color: var(--white);
  max-width: 500px;
}
.hero .hero-sub {
  font-weight: 500;
  color: var(--white-80);
  max-width: 450px;
}
/* Hero small variant (about page) */
.hero.compact {
  min-height: auto;
  padding: 180px 32px 110px;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section {
  background: var(--bg);
  border-bottom: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 100px 32px;
}
.section.last {
  border-bottom: none;
  padding-bottom: 150px;
}
.section-head {
  width: 100%;
  max-width: 1136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.section-head.left { align-items: flex-start; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
}

.section-title-row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 500px;
}
.section h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section .lede {
  font-weight: 500;
  color: var(--gray);
  max-width: 500px;
}
.center { text-align: center; }

/* Word-by-word scroll reveal heading */
.word-reveal {
  width: 100%;
  max-width: 800px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2em;
  text-align: center;
}
.word-reveal .w {
  display: inline-block;
  margin-right: 0.25em;
  color: var(--border);
  transition: color 0.25s ease-out, filter 0.25s ease-out;
}
.word-reveal .w.lit { color: var(--black); }

/* ------------------------------------------------------------
   Stat cards
   ------------------------------------------------------------ */
.stats-grid {
  width: 100%;
  max-width: 1136px;
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  gap: 8px;
}
.stat-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}
.stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.stat-number {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2em;
}
.stat-top svg {
  width: 24px;
  height: 24px;
  color: var(--gray);
  opacity: 0.85;
}
.stat-body { display: flex; flex-direction: column; gap: 8px; }
.stat-body h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.4em;
}
.stat-body p {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.3em;
  color: var(--gray);
  max-width: 400px;
}

/* ------------------------------------------------------------
   Buy cards (the "listings")
   ------------------------------------------------------------ */
.cards-grid {
  width: 100%;
  max-width: 1136px;
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  gap: 8px;
}
.buy-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 4px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
}
.buy-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0px 0.6px 0.6px -1px rgba(0, 0, 0, 0.15),
    0px 2.3px 2.3px -2px rgba(0, 0, 0, 0.14),
    0px 10px 12px -3px rgba(0, 0, 0, 0.12);
}
.buy-media {
  position: relative;
  height: 245px;
  border-radius: var(--radius-inner);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px;
}
.buy-media .buy-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.buy-card:hover .buy-photo { transform: scale(1.06); }
.buy-media .media-ball {
  width: 62%;
  margin-bottom: -30%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.buy-card:hover .media-ball { transform: translateY(-10px) rotate(-6deg); }
.media-tag {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 8px 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
}
.media-tag svg { width: 14px; height: 14px; }
.buy-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
}
.buy-name-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.buy-name { font-weight: 500; }
.buy-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buy-price { font-size: 22px; font-weight: 500; white-space: nowrap; }
.buy-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 4px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
}
.chip svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------
   How it works (services)
   ------------------------------------------------------------ */
.split {
  width: 100%;
  max-width: 1136px;
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.split-col {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.service-card {
  display: flex;
  gap: 12px;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  box-shadow: var(--card-shadow);
}
.service-card > svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--gray);
}
.service-card h3 { font-size: 16px; font-weight: 600; }
.service-card p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  max-width: 450px;
}
.split-art {
  flex: 1 0 0;
  border-radius: var(--radius-inner);
  background: linear-gradient(0deg, #bbdae7 0%, #3993b9 100%);
  position: relative;
  overflow: hidden;
  min-height: 411px;
}
.split-art .split-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   Reviews
   ------------------------------------------------------------ */
.review-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}
.review-who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--grad);
  flex: none;
}
.review-who h3 { font-size: 16px; font-weight: 600; }
.review-who p { font-size: 14px; font-weight: 500; color: var(--gray); }
.review-quote {
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 104px;
}
.review-quote p {
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.3em;
  color: var(--gray);
}
.review-stars { display: flex; gap: 4px; }
.review-stars svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq-list {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}
.faq-q svg {
  flex: none;
  width: 24px;
  height: 24px;
  transform: rotate(90deg);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-q svg { transform: rotate(-90deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p {
  padding: 0 20px 20px;
  font-weight: 500;
  color: var(--gray);
}

/* ------------------------------------------------------------
   Quote form
   ------------------------------------------------------------ */
.quote-card {
  width: 100%;
  max-width: 600px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote-row { display: flex; gap: 12px; }
.quote-card label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
}
.quote-card input,
.quote-card select,
.quote-card textarea {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.quote-card input:focus,
.quote-card select:focus,
.quote-card textarea:focus { border-color: #3993b9; }
.quote-card textarea { resize: vertical; min-height: 90px; }
.quote-card .btn-pill { align-self: flex-start; margin-top: 4px; }
.quote-success {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e7f8f1;
  color: #067a54;
  font-size: 14px;
  font-weight: 600;
}
.quote-card.sent .quote-success { display: block; }

/* ------------------------------------------------------------
   Values / team (about page)
   ------------------------------------------------------------ */
.value-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}
.value-card svg { width: 22px; height: 22px; color: var(--gray); }
.value-card h3 { font-size: 16px; font-weight: 600; }
.value-card p { font-size: 14px; font-weight: 500; color: var(--gray); }

.story {
  width: 100%;
  max-width: 1136px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.story-col { flex: 1 0 0; display: flex; flex-direction: column; gap: 16px; }
.story-col p { font-weight: 500; color: var(--gray); }
.story-col h2 { max-width: 420px; }

.team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}
.team-card .avatar { width: 56px; height: 56px; font-size: 18px; }
.team-card h3 { font-size: 16px; font-weight: 600; }
.team-card .role { font-size: 13px; font-weight: 600; color: #3993b9; }
.team-card p { font-size: 14px; font-weight: 500; color: var(--gray); }

/* CTA band */
.cta-band {
  width: 100%;
  max-width: 1136px;
  background: var(--black);
  border-radius: var(--radius-card);
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); font-size: 28px; letter-spacing: -0.03em; }
.cta-band p { color: var(--white-80); font-weight: 500; max-width: 460px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 32px;
}
.footer-inner {
  width: 100%;
  max-width: 1136px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-top { display: flex; gap: 24px; }
.footer-brand {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-brand .nav-logo { font-size: 16px; }
.footer-brand p {
  font-weight: 500;
  color: var(--gray);
  max-width: 250px;
}
.footer-cols {
  display: grid;
  grid-auto-flow: column;
  gap: 8px 64px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 15px; font-weight: 600; }
.footer-col nav { display: flex; flex-direction: column; gap: 4px; }
.footer-col a {
  padding-bottom: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  width: fit-content;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s ease;
}
.footer-col a:hover { background-size: 100% 1px; }
.footer-bottom {
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  font-weight: 500;
  color: var(--gray);
  font-size: 14px;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1199.98px) {
  .stats-grid, .cards-grid { grid-template-columns: repeat(2, minmax(50px, 1fr)); }
}

@media (max-width: 809.98px) {
  .hero h1 { font-size: 40px; }
  .hero-inner { padding: 0; }
  .section { padding: 100px 16px; }
  .section.last { padding: 100px 16px 150px; }
  .stats-grid, .cards-grid { grid-template-columns: 1fr; }
  .section-title-row { flex-direction: column; align-items: flex-start; }
  .split { flex-direction: column; }
  .split-art { order: -1; min-height: 320px; }
  .story { flex-direction: column; gap: 24px; }
  .quote-row { flex-direction: column; }
  .footer-top { flex-direction: column; gap: 48px; }
  .footer-cols { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 32px; }

  /* mobile nav */
  .nav-wrap { padding: 16px; }
  .nav-pill {
    width: 100%;
    max-width: 449px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: var(--radius-pill);
    padding: 16px;
  }
  .nav-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-burger {
    display: block;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
  }
  .nav-burger span {
    position: absolute;
    left: 3px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--black);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), top 0.3s, bottom 0.3s;
  }
  .nav-burger span:first-child { top: 7px; }
  .nav-burger span:last-child { bottom: 7px; }
  .nav-pill.open .nav-burger span:first-child { top: 11px; transform: rotate(45deg); }
  .nav-pill.open .nav-burger span:last-child { bottom: 11px; transform: rotate(-45deg); }
  .nav-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-pill.open .nav-menu { grid-template-rows: 1fr; }
  .nav-menu-inner { overflow: hidden; }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
  }
  .nav-links a { padding: 8px 0; font-size: 16px; }
  .nav-cta-slot { padding-top: 16px; }
}

@media (min-width: 810px) {
  .nav-top-row { display: contents; }
  .nav-menu, .nav-menu-inner { display: contents; }
}
