/* Project Serve Beach components, v1.0, 2026-12-04.
   Only what the home page uses. Needs tokens.css and base.css first. */

/* ---- Button: gold, square, uppercase ----
   Use when: the one action of a band (join, see availability, learn more).
   Not when: plain text links in a list or the footer.
   Measured: #FFB606 fill, black Poppins 700 uppercase, 12px 25px padding, no radius.
   Hover on the live site turns the text white (1.8:1 on gold); here the text stays black and
   the button darkens slightly with an underline, so it still reads (decided, listed in the report). */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 25px;
  font-family: var(--font-text);
  font-weight: var(--weight-bold);
  font-size: var(--size-small-button);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-ink);
  background-color: var(--color-gold);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--motion-base), color var(--motion-base);
}
.btn:hover { color: var(--color-ink); background-color: #f0a800; text-decoration: underline; text-underline-offset: 3px; }
.btn:active { background-color: #e09d00; }
.btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.tone-light .btn:focus-visible { outline: var(--focus-ring-on-light); }
.btn--large { font-size: var(--size-item); }

/* ---- Site header: logo left, nav and join button right, over the hero photo ----
   Use when: the top of every page. Not when: never stacked over a white band (its type is light).
   Measured at 1440: 143px tall, laid over the hero, logo 120px at 35px from the left,
   six Poppins 16px links on a 70px line with 1em side padding, gold join button 15px.
   Hover on a link: black on gold. At 390: 98px tall, logo 74px at 20px, a teal square menu
   button; its panel lists the links on pale teal in slate, divided by gray rules. */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 35px;
}
.site-header__logo { display: block; width: var(--logo-width); flex: none; }
.site-header__logo img { width: 100%; height: auto; }
.site-header__right { display: flex; align-items: center; }
.site-nav { display: flex; }
.site-nav a {
  display: flex; align-items: center;
  padding: 0 1em;
  line-height: var(--leading-nav);
  color: var(--color-paper-soft);
}
.site-nav a:hover { color: var(--color-ink); background-color: var(--color-gold); }
.site-header__join { margin-left: 20px; margin-right: 0; }

.menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: var(--radius);
  background-color: var(--color-teal);
  color: var(--color-paper-soft);
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

.phone-menu { display: none; }

@media (max-width: 921px) {
  .site-header { height: var(--header-height-phone); padding: 0 20px; flex-wrap: wrap; }
  .site-header__logo { width: var(--logo-width-phone); }
  .site-header__right { display: none; }
  .menu-toggle { display: flex; }
  .phone-menu {
    position: absolute; top: var(--header-height-phone); left: 0; right: 0;
    background-color: var(--color-teal-pale);
  }
  .phone-menu.is-open { display: block; }
  .phone-menu a {
    display: block; padding: 0 20px;
    line-height: 3;
    color: var(--color-slate);
    border-bottom: 1px solid var(--color-rule);
  }
  .phone-menu a:hover { color: var(--color-ink); background-color: var(--color-gold); }
  .phone-menu a:focus-visible { outline: var(--focus-ring-on-light); outline-offset: -3px; }
}

/* ---- Hero: photo under a 50% wash, one huge Anton line, a typed word, an arrow down ----
   Use when: the top band of the home page. Not when: inner pages (none in this run).
   Measured at 1440: the photo fits the width (contain) and stays still while the page scrolls;
   390px of top padding, the line at 80px, then a word typed letter by letter with a cursor
   (Courts, training, Leagues, Rentals), then a 30px white arrow 300px lower.
   At 390: the photo covers from the bottom center, 150px top padding, line at 30px. */
.hero {
  background-size: contain;
  background-position: top center;
  padding: 390px 0 0;
  text-align: center;
}
@media (min-width: 1025px) { .hero { background-attachment: fixed; } }
.hero__title { padding-bottom: 25px; }
.hero__typed {
  display: block;
  margin-top: 10px;
  min-height: var(--leading-typed);
  font-family: var(--font-display);
  font-size: var(--size-hero);
  font-weight: var(--weight-display-hero);
  line-height: var(--leading-typed);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--color-paper);
}
.hero__cursor { animation: hero-blink 0.7s infinite; }
@keyframes hero-blink { 50% { opacity: 0; } }
.hero__arrow { display: block; margin-top: 10px; padding: 300px 0 20px; color: var(--color-paper); }
.hero__arrow svg { display: block; margin: 0 auto 9px; width: 14px; height: 30px; fill: currentColor; }

@media (max-width: 1024px) {
  .hero { padding: 200px 25px 0; }
  .hero__arrow { padding: 100px 0 50px; }
}
@media (max-width: 767px) {
  .hero { padding: 150px 20px 0; background-size: cover; background-position: bottom center; }
  .hero__title { padding-bottom: 10px; }
  .hero__arrow { padding: 75px 0 25px; }
}

/* ---- Offer band: centered gold title, a paragraph, one large button, on black ----
   Use when: one offer with one action (join for free). Not when: a list of options.
   Measured at 1440: 150px above and below, title 30px above the text, button 30px below it.
   At 390: 75px above and below, 20px sides, the text set in 20px more on each side. */
.offer {
  padding: var(--space-5xl) 0;
  text-align: center;
}
.offer__title { padding-bottom: var(--space-l); margin-bottom: var(--space-l); }
.offer__text { max-width: 1150px; margin: 0 auto; }
.offer__action { padding-top: var(--space-l); margin-top: var(--space-l); }

@media (max-width: 1024px) {
  .offer { padding: var(--space-4xl) var(--space-m); }
  .offer__title { padding-bottom: var(--space-m); }
}
@media (max-width: 767px) {
  .offer { padding: var(--space-3xl) var(--gutter-phone); }
  .offer__title { padding: 0 var(--space-m) var(--space-2xs); }
  .offer__title { margin-bottom: var(--space-s); }
  .offer__text { padding: var(--space-s) var(--space-l); }
  .offer__action { margin-top: var(--space-s); }
}

/* ---- Split band: a ruled list beside a centered call to action, over a photo ----
   Use when: the programs on offer next to one standing action (rent a court).
   Not when: fewer than three items; use the offer band instead.
   Measured at 1440: photo under an 80% blue-black wash, still while the page scrolls;
   150px above and below; two equal halves of the 1170px column; the list keeps 100px clear on
   its right; the call sits 75px in from the middle, centered on its half.
   At 390: the call comes first, the list 45px below it; 75px above and below, 20px sides. */
.split {
  background-size: cover;
  background-position: center center;
  padding: var(--space-5xl) 0;
}
@media (min-width: 1025px) { .split { background-attachment: fixed; } }
.split__inner { display: flex; align-items: stretch; }
.split__list { flex: 1 1 50%; padding-right: var(--space-4xl); }
.split__call {
  flex: 1 1 50%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: var(--space-s);
  padding-left: var(--space-3xl);
  text-align: center;
}

/* The ruled list: white 1px rules with 15px clear above and below, 20px to each item. */
.ruled-list__rule { display: block; height: var(--rule-width); margin: 35px 0; background: var(--color-paper); }
.ruled-list__item h4 { margin-bottom: var(--space-2xs); }
.ruled-list__item p { color: var(--color-paper); }

@media (max-width: 1024px) {
  .split { padding: var(--space-4xl) var(--space-2xl); }
  .split__inner { flex-direction: column-reverse; }
  .split__list { padding-right: 0; margin-top: 45px; }
  .split__call { padding-left: 0; }
}
@media (max-width: 767px) {
  .split { padding: var(--space-3xl) var(--gutter-phone); background-position: bottom center; }
}

/* ---- Call strip: one sentence and one button on white ----
   Use when: a closing invitation before the footer (host your event).
   Not when: on a dark band next to another call; it is the page's one white moment.
   Measured at 1440: white, 40px above and below, sentence in sentence-case Anton 25px black on
   the left 80%, button centered in the right 20%, both 10px in from the 1170px column.
   At 390: 30px above and below, 20px sides, sentence centered with 25px sides, button 30px below. */
.call-strip { padding: var(--space-xl) 0; }
.call-strip__inner { display: flex; align-items: center; }
.call-strip__text { flex: 0 0 80%; padding: 10px; }
.call-strip__action { flex: 0 0 20%; display: flex; justify-content: center; padding: 10px; }
.call-strip .btn { width: 100%; }
/* Measured: on wide screens the label breaks onto two lines (LEARN / MORE). */
.call-strip .btn__label { display: inline-block; max-width: 4.6em; }

@media (max-width: 1024px) {
  .call-strip { padding: var(--space-m); }
  .call-strip__text { flex-basis: 64%; padding: 0; }
  .call-strip__action { flex-basis: 28%; }
}
@media (max-width: 767px) {
  .call-strip { padding: var(--space-l) var(--gutter-phone); }
  .call-strip__inner { flex-direction: column; }
  .call-strip__text { flex-basis: auto; padding: 0 var(--space-m) var(--space-2xs); text-align: center; }
  .call-strip__action { flex-basis: auto; margin-top: var(--space-l); padding: 0; }
  .call-strip .btn { width: auto; }
  .call-strip .btn__label { max-width: none; }
}

/* ---- Footer: a contact list on black, then a copyright strip ----
   Use when: the end of every page. Not when: anywhere else.
   Measured at 1440: black with a light hairline on top, 100px above and 45px below, a 1200px
   grid with 30px sides; the title in Anton 22px, then Email, Facebook, Instagram in white,
   teal on hover. Then a near-black strip, 30px all round, at least 80px tall, copyright left.
   At 390: 75px above, 55px below, 20px sides; copyright centered.
   The phone capture paints this area pale teal under white type (unreadable); the build keeps
   it black like the desktop, as the site's own rule writes it (listed in the report). */
.site-footer__main {
  padding: var(--space-4xl) var(--space-l) 45px;
  background-color: var(--color-ink);
  border-top: 1px solid var(--color-rule-light);
}
.site-footer__grid { max-width: var(--container-footer); margin: 0 auto; }
.site-footer__title { margin-bottom: 1em; }
.site-footer__links a { color: var(--color-paper); }
.site-footer__links a:hover { color: var(--color-teal); text-decoration: underline; }
.site-footer__bottom {
  display: flex; align-items: center;
  min-height: 140px; /* 80px of row plus 30px above and below */
  padding: var(--space-l);
  background-color: var(--color-ink-footer);
  color: var(--color-paper);
}
.site-footer__bottom p { width: 100%; max-width: var(--container-footer); margin: 0 auto; }

@media (max-width: 921px) {
  /* Measured: the theme stacks the footer's two columns, each with 10px below it. */
  .site-footer__main { padding: var(--space-3xl) var(--space-m) var(--space-m); }
  .site-footer__grid { padding-bottom: var(--space-s); }
}
@media (max-width: 544px) {
  .site-footer__main { padding: var(--space-3xl) var(--gutter-phone) 55px; }
  .site-footer__bottom { align-items: flex-start; }
  .site-footer__bottom p { text-align: center; }
}
