/* Bocce Canada — supplementary styles (Tailwind CDN handles utility classes) */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --court-green: #2f4a3c;
  --court-green-dark: #223526;
  --clay-gold: #c89b3c;
  --brick-red: #b23a2e;
  --cream: #f7f3ec;
  --ink: #1b1f1d;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--cream);
}

.font-display {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
}

/* Visible focus state for every interactive element — required, not optional */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--clay-gold);
  outline-offset: 2px;
}

/* Court-line underline for the nav's active/hover state, instead of a generic color swap */
.court-underline {
  position: relative;
  padding-bottom: 2px;
}
.court-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--clay-gold);
  transition: right 0.2s ease;
}
.court-underline:hover::after,
.court-underline:focus-visible::after {
  right: 0;
}

/* Single orchestrated hero reveal — the one motion moment on the page */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-reveal > * {
  animation: rise-in 0.7s ease-out both;
}
.hero-reveal > *:nth-child(2) { animation-delay: 0.08s; }
.hero-reveal > *:nth-child(3) { animation-delay: 0.16s; }
.hero-reveal > *:nth-child(4) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .hero-reveal > * { animation: none; }
}

/* Sponsor logos: grayscale until hover, so the row reads as one calm strip */
.sponsor-logo {
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.2s ease;
}
.sponsor-logo:hover,
.sponsor-logo:focus-within {
  filter: grayscale(0) opacity(1);
}

/* Owner-confirmation marker used throughout the review build — remove once content is signed off */
.owner-confirm {
  border: 1px dashed var(--brick-red);
  background: rgba(178, 58, 46, 0.06);
}
.owner-confirm-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brick-red);
  border: 1px solid var(--brick-red);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  margin-bottom: 0.5rem;
}

/* Video modal */
.video-modal[hidden] { display: none; }
