/* ============================================================================
   brand.css — Green Field Sports Arena design system
   One stylesheet, loaded on every page, so the brand is identical everywhere.
   Palette: green (brand) · amber (accent) · ink (near-black) · paper (cream).
   Fonts: Lexend (UI/body) · Anton (impact hero display).
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&family=Anton&display=swap');

:root {
  --green:       #16a34a;
  --green-light: #34d36a;
  --green-dark:  #0f8a3d;
  --green-deep:  #0b6e31;
  --green-50:    #eafaf0;
  --green-100:   #d2f3df;
  --amber:       #f2a93b;
  --ink:         #10201a;
  --ink-soft:    #3b4a43;
  --ink-muted:   #6b7a72;
  --paper:       #f6f8f4;
  --line:        #e7ebe6;
  --card-shadow: 0 1px 2px rgba(16,32,26,.04), 0 12px 28px -16px rgba(16,32,26,.16);
  --ring:        0 0 0 3px rgba(22,163,74,.22);
}

* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html { scroll-behavior: smooth; }
body { font-family: 'Lexend', system-ui, sans-serif; color: var(--ink); background: var(--paper); }

::selection { background: rgba(22,163,74,.22); }

h1, h2, h3, h4 { letter-spacing: -0.02em; }
.font-hero { font-family: 'Anton', Impact, sans-serif; font-weight: 400; letter-spacing: .01em; }

/* Accessible focus ring for keyboard users on every interactive element. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: none; box-shadow: var(--ring); border-radius: .5rem;
}

/* ---- Logo / wordmark --------------------------------------------------- */
.gf-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.gf-brand img { height: 2.35rem; width: 2.35rem; border-radius: .7rem;
  box-shadow: 0 4px 12px -4px rgba(11,110,49,.5); flex-shrink: 0; }
.gf-brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.gf-word { font-weight: 800; letter-spacing: -.03em; font-size: 1.25rem; line-height: 1.1;
  color: var(--ink); white-space: nowrap; }
.gf-word b { color: var(--green); font-weight: 800; }
.gf-subword { font-size: 0.7rem; font-weight: 800; color: var(--ink-muted); text-transform: uppercase;
  letter-spacing: .06em; line-height: 1; margin-top: 0.18rem; white-space: nowrap; }
.gf-highlight { color: var(--green); font-weight: 800; }
.gf-subword-city { color: var(--ink-muted); font-weight: 600; }

/* Responsive adjustments for portrait, landscape, and mobile widths */
@media (max-width: 380px) {
  .gf-brand { gap: .4rem; }
  .gf-brand img { height: 2rem; width: 2rem; }
  .gf-word { font-size: 1.05rem; }
  .gf-subword { font-size: 0.62rem; letter-spacing: .03em; }
  .gf-subword-city { display: none; }
}

@media (min-width: 381px) and (max-width: 640px) {
  .gf-brand { gap: .5rem; }
  .gf-word { font-size: 1.18rem; }
  .gf-subword { font-size: 0.67rem; }
}

@media (min-width: 641px) {
  .gf-brand img { height: 2.5rem; width: 2.5rem; }
  .gf-word { font-size: 1.35rem; }
  .gf-subword { font-size: 0.74rem; }
}

/* ---- Social Icons ------------------------------------------------------ */
.social-icon { width: 1.125rem; height: 1.125rem; min-width: 1.125rem; min-height: 1.125rem; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.social-icon-sm { width: 1rem; height: 1rem; min-width: 1rem; min-height: 1rem; display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---- Sticky nav -------------------------------------------------------- */
.gf-nav { position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line); }
.gf-navlink { color: var(--ink-soft); font-weight: 500; font-size: .9rem;
  transition: color .18s ease; }
.gf-navlink:hover { color: var(--green); }
.gf-navlink.active { color: var(--green); font-weight: 600; }

/* ---- Buttons ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; border-radius: .8rem; padding: .7rem 1.25rem; font-size: .95rem;
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--green); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(22,163,74,.6); }
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 12px 24px -8px rgba(22,163,74,.55); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1c3329; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-amber { background: var(--amber); color: #3a2606; }
.btn-amber:hover { background: var(--amber-dark, #d98a16); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; border-radius: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---- Cards ------------------------------------------------------------- */
.gf-card { background: #fff; border: 1px solid var(--line); border-radius: 1.25rem;
  box-shadow: var(--card-shadow); }
.gf-card-tight { border-radius: 1rem; }

/* ---- Form fields ------------------------------------------------------- */
.field { width: 100%; border-radius: .8rem; border: 1px solid #d6ded7;
  background: #fff; padding: .72rem .95rem; font-size: .98rem; color: var(--ink);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.field::placeholder { color: #9aa8a0; }
.field:focus { border-color: var(--green); box-shadow: var(--ring); }
.field.ro { background: #f0f3ef; color: var(--ink-soft); cursor: not-allowed; }
.field-label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: .4rem; }

/* ---- Badges / chips ---------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem;
  font-weight: 700; padding: .2rem .6rem; border-radius: .5rem; letter-spacing: .01em; }
.badge-green { background: var(--green-50); color: var(--green-deep); }
.badge-amber { background: #fdf1dd; color: #9a6713; }
.badge-muted { background: #eef1ee; color: var(--ink-muted); }
.badge-red   { background: #fdecec; color: #c0392b; }

/* ---- Misc -------------------------------------------------------------- */
.loader { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4);
  border-left-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; display: none; }
.loader-dark { border: 2px solid rgba(16,32,26,.18); border-left-color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes gf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gf-rise { animation: gf-rise .6s cubic-bezier(.2,.7,.2,1) both; }
.gf-rise-2 { animation-delay: .08s; }
.gf-rise-3 { animation-delay: .16s; }
.gf-rise-4 { animation-delay: .24s; }

/* Scroll-reveal: start hidden, ease in once when scrolled into view (app.js observer).
   Falls back to visible when JS/IO is unavailable, and respects reduced-motion. */
.reveal { opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* Hero photo: slow, subtle Ken Burns drift so the page feels alive without noise. */
@keyframes gf-kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.kenburns { animation: gf-kenburns 22s ease-in-out infinite alternate; will-change: transform; }

/* Gentle lift shared by cards/tiles. */
.lift { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(16,32,26,.05), 0 22px 44px -18px rgba(16,32,26,.22); }

@media (prefers-reduced-motion: reduce) {
  .gf-rise, .kenburns { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lift, .lift:hover { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Availability slots (shared by slots.html). */
.slot-btn { transition: all .18s cubic-bezier(.4,0,.2,1); }
.slot-available { background: var(--green-50); border: 1px solid rgba(22,163,74,.35); color: var(--green-deep); }
.slot-available:hover { background: var(--green); color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 16px -6px rgba(22,163,74,.45); }
.slot-booked { background: #f4f1f1; border: 1px solid #e6d9d9; color: #b08a8a;
  cursor: not-allowed; opacity: .75; }

/* ---- Global Top Progress Loader Bar ------------------------------------ */
#gf-global-loader {
  position: fixed; top: 0; left: 0; right: 0; height: 3.5px;
  background: linear-gradient(90deg, #16a34a, #34d36a, #f2a93b);
  z-index: 99999; transform-origin: 0% 50%;
  transform: scaleX(0); transition: transform 0.22s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.3s ease;
  pointer-events: none; opacity: 0;
  box-shadow: 0 0 10px rgba(22,163,74,0.7);
}
#gf-global-loader.active {
  opacity: 1;
}

/* ---- Shimmer Skeleton Loading State ------------------------------------- */
@keyframes gf-shimmer-wave {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.shimmer {
  position: relative !important;
  overflow: hidden !important;
  background-color: #e2e8f0 !important;
  border-radius: 0.75rem;
  display: block;
  user-select: none;
  pointer-events: none;
  min-height: 12px;
}
.shimmer::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
  animation: gf-shimmer-wave 1.4s infinite ease-in-out !important;
}
.shimmer-card {
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.25rem;
}

/* ---- Clean Circular Loaders & Button Spinners --------------------------- */
@keyframes gf-spin {
  0%   { transform: rotate(0deg)   !important; }
  100% { transform: rotate(360deg) !important; }
}

.gf-spinner {
  --tw-rotate: 0 !important;
  --tw-translate-x: 0 !important;
  --tw-translate-y: 0 !important;
  --tw-skew-x: 0 !important;
  --tw-skew-y: 0 !important;
  --tw-scale-x: 1 !important;
  --tw-scale-y: 1 !important;
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  border: 4px solid #d1d5db !important;
  border-top-color: #16a34a !important;
  border-radius: 9999px !important;
  animation: gf-spin 0.8s linear infinite !important;
  will-change: transform !important;
  transform: rotate(0deg) !important;
}

.gf-spinner-sm {
  width: 20px !important;
  height: 20px !important;
  border-width: 3px !important;
}

.gf-spinner-lg {
  width: 48px !important;
  height: 48px !important;
  border-width: 5px !important;
}

.gf-spinner-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3rem 1rem !important;
  text-align: center !important;
  gap: 0.85rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn-loading {
  position: relative !important;
  pointer-events: none !important;
  opacity: 0.85 !important;
}
.btn-loading > * {
  visibility: hidden !important;
}
.btn-loading::after {
  content: '' !important;
  position: absolute !important;
  width: 20px !important;
  height: 20px !important;
  top: calc(50% - 10px) !important;
  left: calc(50% - 10px) !important;
  border: 2.5px solid rgba(255, 255, 255, 0.4) !important;
  border-top-color: #ffffff !important;
  border-radius: 9999px !important;
  animation: gf-spin 0.8s linear infinite !important;
  will-change: transform !important;
  transform: rotate(0deg) !important;
  --tw-rotate: 0 !important;
  --tw-translate-x: 0 !important;
  --tw-translate-y: 0 !important;
  --tw-scale-x: 1 !important;
  --tw-scale-y: 1 !important;
}
.btn-ghost.btn-loading::after {
  border: 2.5px solid rgba(22, 163, 74, 0.25) !important;
  border-top-color: #16a34a !important;
}
.btn-danger {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}
.btn-danger:hover {
  background-color: #b91c1c !important;
}

.bg-red-600 {
  background-color: #dc2626 !important;
}
.hover\:bg-red-700:hover {
  background-color: #b91c1c !important;
}

.fill-white, svg.fill-white, svg.fill-white path {
  fill: #ffffff !important;
}
