/* ==========================================================================
   Monte Vista Tennis Club — "Clean & Modern" concept
   Shared stylesheet
   ========================================================================== */

:root {
  --charcoal: #15181a;
  --charcoal-soft: #22262a;
  --charcoal-tint: #3a4045;
  --paper: #ffffff;
  --paper-dim: #f4f6f4;
  --paper-line: #e4e7e4;
  --lime: #c6ff3d;
  --lime-dark: #a3d92a;
  --ink-muted: #62696d;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 12px 30px -14px rgba(21, 24, 26, 0.25);
  --shadow-lift: 0 22px 40px -18px rgba(21, 24, 26, 0.35);
  --max-width: 1200px;
  --font-stack: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p {
  margin: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-tint);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--lime-dark);
  border-radius: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--lime);
  color: var(--charcoal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  background: var(--lime-dark);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--paper);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  background: #000;
}

.btn-outline {
  background: transparent;
  border-color: rgba(21, 24, 26, 0.18);
  color: var(--charcoal);
}

.btn-outline:hover {
  border-color: var(--charcoal);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--paper);
}

.btn-outline-light:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-name span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: var(--paper-dim);
}

.main-nav a.active {
  background: var(--charcoal);
  color: var(--paper);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--paper-line);
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--charcoal);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--paper);
  padding: 96px 0 110px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  color: var(--paper);
  margin: 18px 0 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--lime);
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.hero .eyebrow::before {
  background: var(--lime);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-stat .num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--lime);
  display: block;
}

.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Page header (non-home hero, smaller) */

.page-header {
  background: var(--charcoal);
  color: var(--paper);
  padding: 72px 0 84px;
  position: relative;
  overflow: hidden;
}

.page-header .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.page-header .eyebrow::before {
  background: var(--lime);
}

.page-header h1 {
  color: var(--paper);
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  margin-top: 16px;
  max-width: 640px;
}

.page-header p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  font-size: 1.05rem;
}

.page-header-deco {
  position: absolute;
  right: -60px;
  top: -60px;
  opacity: 0.5;
  z-index: 0;
}

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

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-dim {
  background: var(--paper-dim);
}

.section-dark {
  background: var(--charcoal);
  color: var(--paper);
}

.section-dark .ink-muted {
  color: rgba(255, 255, 255, 0.65);
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.section-foot {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.ink-muted {
  color: var(--ink-muted);
}

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

.grid {
  display: grid;
  gap: 28px;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--lime);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.card-dark {
  background: var(--charcoal-soft);
  border-color: var(--charcoal-soft);
  color: var(--paper);
}

.card-dark p {
  color: rgba(255, 255, 255, 0.68);
}

.card-dark .card-icon {
  background: var(--lime);
}

.card-dark .card-icon svg {
  stroke: var(--charcoal);
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(198, 255, 61, 0.18);
  color: #4c6b0e;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tag-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lime);
}

/* ---------- Split / feature rows ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-reverse .split-media { order: 2; }
.split-reverse .split-text { order: 1; }

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.split-text h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin: 14px 0 18px;
}

.split-text p {
  color: var(--ink-muted);
  font-size: 1.03rem;
  margin-bottom: 14px;
}

.check-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
}

.check-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--lime-dark);
  margin-top: 2px;
}

/* ---------- Callout banner ---------- */

.callout {
  background: var(--charcoal);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.callout h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--paper);
  max-width: 520px;
}

.callout p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  max-width: 460px;
}

.callout-accent {
  background: var(--lime);
  color: var(--charcoal);
}

.callout-accent h3,
.callout-accent p {
  color: var(--charcoal);
}

.callout-accent p {
  color: rgba(21, 24, 26, 0.75);
}

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

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.8);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--paper);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Forms ---------- */

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal-soft);
}

input,
select,
textarea {
  font-family: var(--font-stack);
  font-size: 0.98rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--paper-line);
  background: var(--paper-dim);
  color: var(--charcoal);
  transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--lime-dark);
  background: var(--paper);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Table (booking / fees) ---------- */

.table-card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 18px 24px;
  font-size: 0.95rem;
}

thead th {
  background: var(--charcoal);
  color: var(--paper);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody tr:not(:last-child) {
  border-bottom: 1px solid var(--paper-line);
}

tbody tr:hover {
  background: var(--paper-dim);
}

.price {
  font-weight: 800;
  color: var(--charcoal);
  white-space: nowrap;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 24px 24px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--lime-dark);
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* ---------- Map ---------- */

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--paper-line);
  aspect-ratio: 16/10;
  position: relative;
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--paper-line);
  aspect-ratio: 16/9;
  position: relative;
}

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

.map-pin-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--paper);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.map-pin-label svg {
  width: 20px;
  height: 20px;
  stroke: var(--lime-dark);
  flex-shrink: 0;
}

/* ---------- Contact info list ---------- */

.info-list {
  display: grid;
  gap: 22px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item .card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.info-item .card-icon svg {
  width: 20px;
  height: 20px;
}

.info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.info-item p, .info-item a {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.info-item a:hover {
  color: var(--charcoal);
  text-decoration: underline;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-media { order: 1; }
  .split-reverse .split-text { order: 2; }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn span.long { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .callout { padding: 36px; flex-direction: column; align-items: flex-start; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 64px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  th, td { padding: 14px 16px; font-size: 0.88rem; }
  .col-desc { display: none; }
}

@media (max-width: 480px) {
  .nav-wrap { padding: 14px 20px; }
  .container { padding: 0 20px; }
  .hero-stats { gap: 24px; }
}
