/* proximopadel.com marketing site: shared tokens, type, buttons, header,
   footer and floating chat button. Loaded only by layouts/site.html.erb.
   Page-specific styles live next to this file (home.css, clubs.css, ...). */

@font-face { font-family: "General Sans"; src: url("/site/fonts/GeneralSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/site/fonts/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/site/fonts/GeneralSans-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/site/fonts/GeneralSans-Bold.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }
/* Country Club ships italic only; it is used upright in the markup too, so
   register it for both styles to avoid faux-slanting a second time. */
@font-face { font-family: "Country Club"; src: url("/site/fonts/CountryClub-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Country Club"; src: url("/site/fonts/CountryClub-Italic.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --pp-lime: #D7ED1C;
  --pp-ink: #17181A;
  --pp-black: #0b0c0c;
  --pp-white: #FFFFFF;
  --pp-cream: #F5FAE7;
  --pp-olive: #61724E;
  --pp-forest: #0F2000;
  --pp-grey: #999999;
  --pp-line: #2a2b2d;
  --pp-sans: "General Sans", Arial, sans-serif;
  --pp-script: "Country Club", Georgia, serif;
  --pp-max: 1140px;
  --pp-gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.site {
  margin: 0;
  background: var(--pp-white);
  color: var(--pp-ink);
  font-family: var(--pp-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Resets wrapped in :where() so they carry zero specificity and never beat
   a component class. */
:where(.site) :where(img, video) { max-width: 100%; display: block; }
:where(.site) :where(a) { color: inherit; text-decoration: none; }
:where(.site) :where(h1, h2, h3, h4, p) { margin: 0; }
:where(.site) :where(ul) { margin: 0; padding: 0; list-style: none; }

.pp-wrap { width: 100%; max-width: var(--pp-max); margin: 0 auto; padding: 0 var(--pp-gutter); }
.pp-script { font-family: var(--pp-script); font-weight: 400; font-style: italic; }
.pp-lime { color: var(--pp-lime); }
.pp-dark { background: var(--pp-ink); color: var(--pp-white); }
.pp-center { text-align: center; }

/* ---------- Buttons (Elementor kit: pill, General Sans 600 16px) ---------- */
.pp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 15px;
  border-radius: 99px;
  font-family: var(--pp-sans); font-size: 16px; font-weight: 600; line-height: 1.5;
  background: var(--pp-lime); color: var(--pp-ink);
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.pp-btn:hover { transform: scale(.94); background: var(--pp-white); color: var(--pp-ink); }
.pp-btn--lg { font-size: 19px; }
.pp-btn--lime { background: var(--pp-lime); color: var(--pp-ink); }
.pp-btn--ink { background: var(--pp-ink); color: var(--pp-white); }
.pp-btn--olive { background: var(--pp-olive); color: var(--pp-white); }
.pp-btn--white { background: var(--pp-white); color: var(--pp-ink); }

/* "Book" buttons open a choice of club (site/shared/_book_menu) */
.book-menu { position: relative; display: inline-block; }
.book-menu > summary { list-style: none; cursor: pointer; }
.book-menu > summary::-webkit-details-marker { display: none; }
.book-menu__caret { display: inline-block; width: 7px; height: 7px; margin: -3px 0 0 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease, margin .2s ease; }
.book-menu[open] .book-menu__caret { transform: rotate(-135deg); margin-top: 3px; }
.book-menu[open] > summary.pp-btn--lime { background: var(--pp-lime); color: var(--pp-ink); transform: none; }
.book-menu__list {
  position: absolute; z-index: 70; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 220px; margin: 0; padding: 6px; list-style: none; text-align: left;
  background: var(--pp-white); border-radius: 16px; box-shadow: 0 16px 40px rgba(15, 16, 17, .2);
}
.book-menu--end .book-menu__list { left: auto; right: 0; transform: none; }
/* Below 1260px the header's Book Now sits on the left of its row: open rightwards. */
@media (max-width: 1260px) { .site-header .book-menu--end .book-menu__list { left: 0; right: auto; } }
.book-menu__list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 14px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--pp-ink); white-space: nowrap;
}
.book-menu__list a:hover, .book-menu__list a:focus-visible { background: var(--pp-cream); }
.book-menu__list a span { color: var(--pp-olive); }
.book-menu--card { display: block; }
.book-menu--card .book-menu__list { top: calc(100% - 8px); }
.pp-btns { display: flex; flex-wrap: wrap; gap: 20px; }
.pp-btns--center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 50;
  background: var(--pp-white);
  border-bottom: 1px solid #e3e3e3;
}
/* Logo + nav + both CTAs need ~1,340px: the full header uses a wider box than
   the page content, tightens below 1400px and folds into the menu below 1260px. */
.site-header__inner {
  max-width: 1388px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.site-header__logo { flex: none; } /* never squeezed out by the nav */
.site-header__logo img { height: 46px; width: auto; }
.site-header__toggle { display: none; }

.site-nav { flex: 1 1 auto; }
.site-nav__list {
  display: flex; align-items: center; justify-content: space-between;
  height: 50px; padding: 0 22px 0 15px;
  background: var(--pp-ink); border-radius: 23px;
}
.site-nav__list > li { position: relative; }
.site-nav__list > li > a {
  display: block; padding: 12px 15px;
  font-size: 16px; font-weight: 500; color: var(--pp-white); white-space: nowrap;
  transition: color .2s;
}
.site-nav__list > li > a:hover,
.site-nav__list > li > a.is-current { color: var(--pp-lime); }
.site-nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  padding: 8px 0;
  background: var(--pp-forest); border-radius: 12px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.site-nav__has-sub:hover .site-nav__sub,
.site-nav__has-sub:focus-within .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
.site-nav__sub a { display: block; padding: 10px 18px; color: var(--pp-white); font-weight: 500; }
.site-nav__sub a:hover { color: var(--pp-lime); }

.site-header__ctas { display: flex; gap: 20px; flex: 0 0 auto; }

@media (max-width: 1400px) {
  .site-header__inner { padding: 14px 16px; gap: 12px; }
  .site-nav__list > li > a { padding: 12px 8px; font-size: 14px; }
  .site-header__ctas { gap: 12px; }
}

@media (max-width: 1260px) {
  .site-header__inner { flex-wrap: wrap; justify-content: space-between; padding: 12px 20px; }
  .site-header__logo img { height: 38px; }
  .site-header__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 45px; height: 34px; padding: 8px;
    background: transparent; border: 1px solid #c9c9c9; border-radius: 3px; cursor: pointer;
  }
  .site-header__toggle span { display: block; height: 2px; background: var(--pp-ink); }
  .site-nav {
    order: 3; flex: 1 0 100%;
    display: none;
  }
  .nav-open .site-nav { display: block; }
  .site-nav__list {
    flex-direction: column; align-items: stretch; height: auto;
    padding: 8px 0; border-radius: 16px; background: var(--pp-lime);
  }
  .site-nav__list > li > a { color: var(--pp-ink); padding: 12px 18px; font-size: 16px; }
  .site-nav__list > li > a:hover, .site-nav__list > li > a.is-current { color: var(--pp-ink); text-decoration: underline; }
  .site-nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; padding: 0 0 6px 16px; min-width: 0;
  }
  .site-nav__sub a { color: var(--pp-ink); padding: 8px 18px; }
  .site-header__ctas { order: 2; flex: 1 0 100%; justify-content: space-around; }
  .site-header__ctas .pp-btn { font-size: 18px; padding: 10px 16px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--pp-ink); color: var(--pp-white); }
.site-footer__inner { max-width: 1140px; margin: 0 auto; padding: 64px 20px 40px; }

/* Clubs: Logan Square spans both rows on the left, Goose Island and
   Northbrook stack on the right. */
.site-footer__clubs {
  display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 40px 72px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.site-footer__club:first-child { grid-row: span 2; }
.site-footer__club h2 { font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--pp-lime); margin: 0 0 10px; }
.site-footer__club p { font-size: 18px; line-height: 32px; color: var(--pp-white); }
.site-footer__club a:hover { color: var(--pp-lime); }

/* Logo | Follow us + social | newsletter */
.site-footer__brand { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; padding-top: 40px; }
.site-footer__logo { width: 220px; height: auto; }
.site-footer__follow { display: flex; align-items: center; gap: 24px; }
.site-footer__social { display: flex; gap: 14px; }
.site-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pp-lime); color: var(--pp-ink);
  transition: transform .2s;
}
.site-footer__social a:hover { transform: scale(.9); }
.site-footer__social svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer__map { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.site-footer__map:hover { text-decoration-color: currentColor; }
/* Opening hours timeline under each address (data: config/site/club_hours.json).
   Columns: days | bar on the shared 7 AM – 10 PM scale | open hours. The
   axis row (.site-hours__key) uses the same columns so it lines up. */
.site-hours, .site-hours__key {
  --hours-cols: 74px minmax(0, 1fr) 108px;
  width: 100%; margin: 10px 0 0; text-align: left;
}
.site-hours__row { display: grid; grid-template-columns: var(--hours-cols); align-items: center; gap: 14px; padding: 3px 0; }
.site-hours dt { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); white-space: nowrap; }
.site-hours dd { margin: 0; }
.site-hours__open { font-size: 14px; color: rgba(255,255,255,.62); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.site-hours__bar { position: relative; height: 10px; border-radius: 99px; background: rgba(255,255,255,.07); }
.site-hours__block { position: absolute; top: 0; bottom: 0; cursor: default; outline: none; transition: filter .15s; }
.site-hours__block:first-child { border-radius: 99px 0 0 99px; }
.site-hours__block:last-child { border-radius: 0 99px 99px 0; }
.site-hours__block:only-child { border-radius: 99px; }
.site-hours__block--prime { background: var(--pp-lime); }
.site-hours__block--regular { background: rgba(255,255,255,.34); }
.site-hours__block + .site-hours__block { box-shadow: -1px 0 0 var(--pp-ink); }
.site-hours__block:hover, .site-hours__block:focus { filter: brightness(1.25); }
.site-hours__block:focus-visible { box-shadow: 0 0 0 2px var(--pp-ink), 0 0 0 4px var(--pp-white); z-index: 1; }
/* Tooltip */
.site-hours__block::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  padding: 5px 10px; border-radius: 8px; background: var(--pp-white); color: var(--pp-ink);
  font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 2;
}
.site-hours__block.tip-start::after { left: 0; transform: none; }
.site-hours__block.tip-end::after { left: auto; right: 0; transform: none; }
.site-hours__block:hover::after, .site-hours__block:focus::after { opacity: 1; visibility: visible; }

.site-hours__key { display: grid; grid-template-columns: var(--hours-cols); gap: 6px 14px; margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.5); }
.site-hours__axis { grid-column: 2; position: relative; height: 16px; }
.site-hours__axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.site-hours__axis span:first-child { transform: none; }
.site-hours__axis span:last-child { transform: translateX(-100%); }
.site-footer__bottom {
  background: var(--pp-white); color: #333232;
  text-align: center; font-size: 16px; padding: 22px 20px 38px;
}

@media (max-width: 767px) {
  .site-footer__inner { padding: 44px 20px 28px; }
  .site-footer__clubs { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .site-footer__club:first-child { grid-row: auto; }
  .site-footer__club p { font-size: 17px; line-height: 30px; }
  .site-hours, .site-hours__key { --hours-cols: 64px minmax(0, 1fr) 96px; }
  .site-hours__row, .site-hours__key { column-gap: 10px; }
  .site-hours__open, .site-hours dt { font-size: 13px; }
  .site-footer__brand { flex-direction: column; gap: 22px; padding-top: 36px; }
  .site-footer__follow { flex-direction: column; gap: 18px; }
  .site-footer__bottom { font-size: 13px; }
}

/* ---------- Floating WhatsApp button ---------- */
.site-chat {
  position: fixed; right: 20px; bottom: 116px; z-index: 60;
  display: inline-flex; align-items: center;
  background: #25D366; color: var(--pp-white); border-radius: 99px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: transform .2s;
}
.site-chat:hover { transform: scale(1.05); }
.site-chat__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; }
.site-chat__icon svg { width: 16px; height: 16px; fill: currentColor; }
.site-chat__label { display: none; padding: 0 22px 0 0; font-size: 16px; font-weight: 500; }
@media (max-width: 767px) {
  .site-chat { bottom: 20px; }
  .site-chat__label { display: inline; }
}
