/* =========================================================
   Whole Lotta Golf: retro 1970s country club
   Mobile-first. Desktop tweaks live in the media queries at the bottom.
   ========================================================= */

:root {
  --cream: #FBF3DF;
  --cream-deep: #F4E7C5;
  --green: #1F4A28;
  --mustard: #F4B63E;
  --orange: #E0601F;

  --font-script: "Pacifico", cursive;
  --font-display: "Alfa Slab One", Georgia, serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  --outline: 3px solid var(--green);
  --shadow: 5px 5px 0 var(--green);
  --radius: 14px;
}

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

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

p, h2, h3 { text-wrap: balance; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--orange); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Retro stripe divider ---------- */
.stripes {
  height: 30px;
  background: linear-gradient(
    to bottom,
    var(--mustard) 0 8px,
    var(--cream) 8px 11px,
    var(--orange) 11px 19px,
    var(--cream) 19px 22px,
    var(--green) 22px 30px
  );
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 0;
  min-height: 60px;
  padding: 0.75rem 1rem;
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-size: clamp(1rem, 4.4vw, 1.15rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  color: var(--cream);
  background: var(--green);
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn .icon { width: 1.6em; height: 1.6em; flex: none; }

.btn:hover,
.btn:focus-visible { animation: bounce 0.45s ease; }

.btn:focus-visible { outline: 3px dashed var(--orange); outline-offset: 4px; }

/* "Press" the button into its shadow */
.btn:active {
  animation: none;
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--green);
}

@keyframes bounce {
  0%   { transform: translateY(0); }
  35%  { transform: translateY(-7px); }
  60%  { transform: translateY(0); }
  80%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.btn-youtube   { background: var(--orange); }
.btn-tiktok    { background: var(--green); }
.btn-instagram { background: var(--mustard); color: var(--green); }

.btn-center {
  display: flex;
  width: 100%;
  max-width: 420px;
  margin: 2rem auto 0;
  white-space: nowrap;
}

/* ---------- 1. Hero ---------- */
.hero {
  padding: 2.5rem 1rem 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(244, 182, 62, 0.18), transparent 65%),
    var(--cream);
}

.hero-logo {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.tagline {
  margin: 1rem 0 2rem;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 6.5vw, 2.4rem);
  line-height: 1.3;
  color: var(--green);
}
.nowrap { white-space: nowrap; }

/* ---------- 2. Socials ---------- */
.socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 5px 5px 0; /* room for the hard shadow */
}
/* YouTube is the main channel: full-width on top, TikTok + Instagram below */
.socials .btn-youtube { grid-column: 1 / -1; }

/* ---------- Shared section styles ---------- */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1rem 3.5rem;
}

.kicker {
  margin: 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--orange);
}

h2 {
  margin: 0.1rem 0 1.75rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 1.1;
  color: var(--mustard);
  -webkit-text-stroke: 2px var(--green);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--green);
  letter-spacing: 0.02em;
}

/* ---------- 3. Latest video ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--green);
  overflow: hidden;
  background: var(--green);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ---------- 4. Who we are ---------- */
.about {
  max-width: 640px;
  margin: 0 auto 2.25rem;
  font-size: 1.1rem;
}
.about p { margin: 0 0 1rem; }

.crew-photo {
  position: relative;
  margin: 0 0 2.5rem;
  border: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--green);
  overflow: hidden;
  background: var(--cream-deep);
}

.crew-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: none;
}
.crew-photo.has-photo img { display: block; }
.crew-photo.has-photo .photo-placeholder { display: none; }

.photo-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border: 3px dashed var(--orange);
  border-radius: 8px;
  margin: 10px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 26px,
      rgba(244, 182, 62, 0.22) 26px 34px
    );
}
.photo-placeholder span { font-size: 3rem; line-height: 1; }
.photo-placeholder p {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
}
.photo-placeholder small {
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--orange);
}

.crew-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.crew-card {
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  background: #fffaf0;
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 12px solid var(--orange);
}
.crew-card:nth-child(3n+2) { border-top-color: var(--mustard); }
.crew-card:nth-child(3n+3) { border-top-color: var(--green); }

.avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  border: var(--outline);
  border-radius: 50%;
  background: var(--mustard);
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green);
}

.crew-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
}
.crew-card .nickname {
  margin: 0.1rem 0 0.6rem;
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--orange);
}
.crew-card p { margin: 0; }

/* ---------- 5. Footer ---------- */
.footer {
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  background: var(--green);
  color: var(--cream);
}

.footer-logo {
  width: 180px;
  margin: 0 auto 1.25rem;
  padding: 0.6rem 0.8rem;
  background: var(--cream);
  border: 3px solid var(--mustard);
  border-radius: var(--radius);
}

.guest { margin: 0 0 1.25rem; font-size: 1.1rem; }
.guest a {
  color: var(--mustard);
  font-family: var(--font-script);
  font-size: 1.3rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.footer-socials a {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  color: var(--cream);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.footer-socials a:hover,
.footer-socials a:focus-visible {
  background: var(--mustard);
  color: var(--green);
  border-color: var(--mustard);
  transform: translateY(-4px) rotate(-6deg);
}
.footer-socials .icon { width: 24px; height: 24px; }

.responsibly {
  margin: 0 0 0.35rem;
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--mustard);
}
.copyright { margin: 0; font-size: 0.9rem; opacity: 0.8; }

/* ---------- Small phones (iPhone SE, compact Androids) ---------- */
@media (max-width: 420px) {
  .hero { padding-top: 1.75rem; }
  /* Stack icon over label so all four buttons fit two-across */
  .socials .btn:not(.btn-youtube) {
    flex-direction: column;
    gap: 0.3rem;
    min-height: 82px;
    padding: 0.65rem 0.5rem;
  }
  .about { font-size: 1.05rem; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .crew-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .crew-photo img, .photo-placeholder { aspect-ratio: 16 / 9; }
}

@media (min-width: 820px) {
  .hero { padding: 4rem 2rem 4.5rem; }
  .socials { grid-template-columns: repeat(3, 1fr); max-width: 680px; }
  .socials .btn-youtube { grid-column: auto; }
  .section { padding: 4.5rem 2rem 5rem; }
  .stripes { height: 36px; background: linear-gradient(
    to bottom,
    var(--mustard) 0 10px, var(--cream) 10px 13px,
    var(--orange) 13px 23px, var(--cream) 23px 26px,
    var(--green) 26px 36px); }
}

/* ---------- Respect reduced-motion settings ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .btn:focus-visible { animation: none; }
  .btn, .footer-socials a { transition: none; }
}
