/* ============================================================
   Tennis Rentals — styles.css
   Mobile-first. Edit CSS variables below to tweak brand colors.
   ============================================================ */

:root {
  /* EDIT ME: brand colors — default is a tennis-ball green + navy */
  --color-primary: #2e7d32;
  --color-primary-dark: #1b5e20;
  --color-accent: #d4e157;
  --color-ink: #1a1a1a;
  --color-ink-soft: #4a4a4a;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8f4;
  --color-border: #e2e6df;

  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1080px;

  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
  color: var(--color-ink-soft);
}

a {
  color: var(--color-primary-dark);
}

ul, ol {
  margin: 0;
  padding: 0;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

/* The logo PNG has a lot of transparent padding around the artwork,
   so it's cropped via object-fit to a box matching the artwork's own
   aspect ratio (~3:1) rather than shrinking the whole canvas down.
   If you swap logo.png for a different image, adjust width/height
   here to match its visible-content aspect ratio. */
.logo-img {
  display: block;
  width: 120px;
  height: 40px;
  object-fit: cover;
  object-position: center;
}

.header-phone {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  padding: 56px 0 48px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
}

.hero-subhead {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 1.75em;
}

.hero-note {
  margin-top: 1.5em;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

/* ---------- Buttons ---------- */

.cta-group {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
}

.btn-accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn-accent:hover {
  background: #c6d84c;
  border-color: #c6d84c;
}

/* ---------- Sections ---------- */

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-lede {
  text-align: center;
  max-width: 520px;
  margin: -0.5em auto 2em;
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 2em;
}

.step {
  text-align: center;
  padding: 0 8px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- Request a Reservation ---------- */

.reserve-steps {
  list-style: none;
  max-width: 620px;
  margin: 2em auto 0;
  display: grid;
  gap: 20px;
}

.reserve-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.reserve-step-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.reserve-step h3 {
  margin-bottom: 4px;
}

.reserve-step p {
  margin-bottom: 0;
}

.reserve-cta {
  text-align: center;
  margin-top: 2.25em;
}

.not-instant-note {
  max-width: 620px;
  margin: 1.75em auto 0;
  padding: 14px 18px;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

.not-instant-note strong {
  color: var(--color-ink);
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2em;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.card-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary-dark);
  background: var(--color-accent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.price-table {
  margin-top: 16px;
  border-top: 1px solid var(--color-border);
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.price-row span:first-child {
  color: var(--color-ink-soft);
}

.price-row span:last-child {
  font-weight: 700;
  color: var(--color-ink);
}

.card-note {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  font-style: italic;
}

.card-note + .card-note {
  margin-top: 4px;
}

.pricing-note {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2em;
}

/* ---------- Benefits ---------- */

.benefits-list {
  list-style: none;
  max-width: 560px;
  margin: 2em auto 0;
  display: grid;
  gap: 14px;
}

.benefits-list li {
  position: relative;
  padding-left: 32px;
  color: var(--color-ink-soft);
}

.benefits-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-primary);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 680px;
  margin: 2em auto 0;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin-top: 10px;
  margin-bottom: 6px;
}

/* ---------- Final CTA ---------- */

.cta-section {
  text-align: center;
  background: var(--color-bg-alt);
}

.cta-inner p {
  max-width: 480px;
  margin: 0 auto 1.75em;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0 24px;
  background: var(--color-ink);
  color: #d7d7d7;
}

.site-footer a {
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-block h3 {
  color: #fff;
  margin-bottom: 8px;
}

.footer-block p {
  color: #b8b8b8;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.disclaimer {
  font-size: 0.82rem;
  color: #969696;
}

.copyright {
  font-size: 0.82rem;
  color: #8a8a8a;
  border-top: 1px solid #333;
  padding-top: 16px;
  margin: 0;
}

/* ---------- Responsive: tablet & up ---------- */

@media (min-width: 640px) {
  .cta-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn {
    width: auto;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 64px;
  }

  .section {
    padding: 64px 0;
  }
}

/* ---------- Accessibility: focus states ---------- */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 2px;
}
