/* ============================================
   Summerland Tennis — Shared Styles
   Palette: warm olive green + espresso charcoal + warm cream + muted copper/terracotta accent
   ============================================ */

:root {
  --forest: #5c6b4a;
  --forest-dark: #2c3522;
  --forest-light: #808c6b;
  --cream: #efeae1;
  --cream-dim: #eae2d4;
  --charcoal: #2f2a22;
  --copper: #c08457;
  --copper-light: #d6a57e;
  --line: rgba(92,107,74, 0.14);
  --max-width: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.75rem; letter-spacing: -0.01em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--forest); text-decoration: none; }

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

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 0.75em;
  display: block;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  color: var(--copper);
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--copper); }
.logo-img {
  height: 30px;
  width: auto;
  display: block;
  margin-right: 9px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--forest);
  border-bottom-color: var(--copper);
}

.nav-cta {
  background: var(--forest);
  color: var(--cream) !important;
  padding: 12px 34px !important;
  border-radius: var(--radius);
  font-weight: 600;
  border-bottom: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--forest-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--forest);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--copper);
  color: var(--charcoal);
}
.btn-primary:hover { background: var(--copper-light); }

.btn-outline {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn-outline:hover { background: rgba(239,234,225,0.1); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline-dark:hover { background: var(--forest); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--cream);
  padding: 110px 0 90px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero h1 { color: var(--cream); }
.hero .lede { font-size: 1.15rem; color: rgba(239,234,225,0.85); max-width: 46ch; }
.hero .cta-row { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.hero-graphic {
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid rgba(239,234,225,0.15);
}

/* Fallback decorative version, used when .hero-graphic is a plain div (no photo yet) */
div.hero-graphic {
  background: repeating-linear-gradient(135deg, #808c6b, #808c6b 40px, #838e73 40px, #838e73 80px);
  position: relative;
  overflow: hidden;
}
div.hero-graphic::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 3px solid rgba(239,234,225,0.55);
}
div.hero-graphic::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 2px;
  background: rgba(239,234,225,0.55);
}

.stat-strip {
  background: var(--forest-dark);
  color: var(--cream);
  padding: 30px 0;
}
.stat-strip .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.stat {
  text-align: center;
  flex: 1;
  min-width: 140px;
}
.stat .num { font-family: Georgia, serif; font-size: 2rem; color: var(--copper-light); display: block; }
.stat .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(239,234,225,0.7); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
section.tight { padding: 60px 0; }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.bg-cream-dim { background: var(--cream-dim); }
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-forest h2, .bg-forest h3 { color: var(--cream); }

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--cream-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--copper);
  font-size: 1.3rem;
  border: 1px solid var(--line);
}
.card ul { margin: 12px 0 0; padding-left: 18px; color: #6b6558; font-size: 0.92rem; }
.card ul li { margin-bottom: 6px; }

.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse { grid-template-columns: 1.1fr 0.9fr; }
.service-block.reverse .service-visual { order: 2; }

.service-visual {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--forest-light), var(--forest));
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.service-visual::before {
  content: attr(data-tag);
  position: absolute;
  bottom: 16px; left: 16px;
  color: rgba(239,234,225,0.85);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.service-copy ul { padding-left: 20px; color: #6b6558; }
.service-copy li { margin-bottom: 8px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.gallery-item .cap {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(0deg, rgba(47,42,34,0.85), transparent);
  width: 100%;
}
.gallery-item .swatch {
  position: absolute; inset: 0;
}

/* ---------- Testimonial / quote ---------- */
.quote-block {
  border-left: 3px solid var(--copper);
  padding-left: 24px;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: var(--forest);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Forms ---------- */
form.contact-form {
  display: grid;
  gap: 18px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--charcoal);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--copper);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--forest-dark);
  color: rgba(239,234,225,0.75);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer.site-footer h4 { color: var(--cream); font-family: Georgia, serif; font-size: 1rem; margin-bottom: 16px; }
footer.site-footer a { color: rgba(239,234,225,0.75); }
footer.site-footer a:hover { color: var(--copper-light); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 10px; font-size: 0.92rem; }
.social-row { margin-top: 14px; }
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(239,234,225,0.25);
  border-radius: 999px;
  font-size: 0.82rem;
}
.social-row a:hover { border-color: var(--copper-light); color: var(--copper-light); }

.footer-bottom {
  border-top: 1px solid rgba(239,234,225,0.12);
  padding-top: 24px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Service area list ---------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.area-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--forest);
  background: #fff;
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  background: var(--forest);
  color: var(--cream);
  padding: 70px 0 50px;
}
.page-header h1 { color: var(--cream); }
.page-header p { color: rgba(239,234,225,0.8); max-width: 60ch; }

/* ---------- Process mini grid ---------- */
.process-mini { padding: 90px 0; }
.process-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.process-mini-head h2 { max-width: 14ch; margin: 0; }
.process-mini-head p { max-width: 34ch; color: #5c5850; margin: 0; }
.process-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-mini-item { border-top: 1px solid var(--line); padding-top: 24px; }
.process-mini-num {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  color: rgba(47,42,34,0.16);
  line-height: 1;
  margin-bottom: 16px;
}
.process-mini-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.process-mini-item p { color: #5c5850; font-size: 0.92rem; margin: 0; }
@media (max-width: 860px) {
  .process-mini-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .process-mini-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  h1 { font-size: 2.1rem; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-graphic { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block.reverse .service-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  nav.main-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; padding: 20px 24px; gap: 18px; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stat-strip .container { justify-content: flex-start; }
}
