/* =========================================================
   Tennis & Testimony — Tennis for Europe
   Stylesheet
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-deep: #0a4d2c;
  --green-mid:  #2d7a4f;
  --green-soft: #e8f1ec;
  --yellow:     #e6ed4a;
  --bg:         #faf8f4;
  --bg-alt:     #ffffff;
  --text:       #1a1a1a;
  --text-soft:  #4a4a4a;
  --text-mute:  #7a7a7a;
  --border:     #e5e2db;
  --shadow:     0 4px 16px rgba(10, 77, 44, 0.08);
  --shadow-lg:  0 14px 40px rgba(10, 77, 44, 0.14);
  --radius:     10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}

a { color: var(--green-deep); }

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

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: 760px; }

.section { padding: 5rem 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
}
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green-deep); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  /* Default gradient placeholder. Swap to an image like:
     background: url('images/hero.jpg') center / cover no-repeat; */
  background:
    linear-gradient(135deg, #0a4d2c 0%, #2d7a4f 50%, #5ba874 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--yellow);
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 1.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--green-deep);
  color: white;
}
.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: white;
  color: var(--green-deep);
  border: 2px solid white;
}
.btn-secondary:hover {
  background: transparent;
  color: white;
  transform: translateY(-1px);
}
.btn-large { padding: 1.1rem 2.5rem; font-size: 1.05rem; }
.btn-full  { width: 100%; }

/* ---------- Section titles ---------- */
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-soft);
  font-size: 1.05rem;
  margin: 0 auto 3rem;
  max-width: 620px;
}
.lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}

/* ---------- Heart section ---------- */
.heart { background: var(--bg-alt); }
.heart p {
  margin-bottom: 1.25rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}
.heart strong { color: var(--green-deep); }

/* ---------- Quote section ---------- */
.quote-section {
  background: var(--green-deep);
  color: white;
}
.quote-section .section-title { color: white; }
.quote {
  border-left: 4px solid var(--yellow);
  padding-left: 2rem;
  margin-bottom: 3rem;
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 1rem;
  color: white;
}
.quote-attribution {
  font-size: 1rem;
  opacity: 0.85;
}
.verse {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.verse-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  color: white;
}
.verse-ref {
  font-size: 0.9rem;
  opacity: 0.8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Register / form ---------- */
.register { background: var(--bg-alt); }

.form {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.req { color: #c0392b; }
.optional {
  font-weight: 400;
  color: var(--text-mute);
  font-size: 0.85rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: white;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.12);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.25rem;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 400 !important;
  margin-bottom: 0 !important;
}
.radio-option input { width: auto !important; }

.form-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-mute);
  margin-top: 1.25rem;
}

.thank-you {
  background: var(--green-soft);
  border: 1px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin-top: 2rem;
}
.thank-you h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.thank-you p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* ---------- Give ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.tier {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tier:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.tier-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}
.tier-detail {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.give-cta {
  text-align: center;
  margin-bottom: 4rem;
}
.give-note {
  margin-top: 1.25rem;
  color: var(--text-soft);
  font-size: 1rem;
}
.give-note.small {
  font-size: 0.9rem;
  color: var(--text-mute);
}

/* sub-sections within Give */
.sub-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.sub-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1rem;
}
.sub-lead {
  text-align: center;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}
.sub-note {
  color: var(--text-soft);
  font-size: 1rem;
  text-align: center;
  max-width: 620px;
  margin: 1.5rem auto 0;
}

.sponsor-list {
  list-style: none;
  max-width: 460px;
  margin: 0 auto;
}
.sponsor-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--text-soft);
}
.sponsor-list li:last-child { border-bottom: none; }
.sponsor-list strong { color: var(--green-deep); font-size: 1.15rem; }

.kind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.kind-card {
  background: var(--bg);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.kind-card h4 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--green-deep);
}
.kind-card ul { list-style: none; }
.kind-card li {
  padding: 0.4rem 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  padding-left: 1.4rem;
  position: relative;
}
.kind-card li::before {
  content: '•';
  position: absolute;
  left: 0.3rem;
  color: var(--green-mid);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq { background: var(--bg-alt); }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }

.faq-item summary {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--green-mid);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover { color: var(--green-mid); }
.faq-item p {
  margin-top: 0.85rem;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-deep);
  color: white;
  padding: 3rem 0;
  text-align: center;
}
.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.footer-sub,
.footer-contact {
  opacity: 0.9;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.footer-contact a {
  color: var(--yellow);
  text-decoration: none;
  margin: 0 0.35rem;
}
.footer-contact a:hover { text-decoration: underline; }

.footer-social {
  margin: 1.25rem 0 0.5rem;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-social a {
  color: white;
  text-decoration: none;
  opacity: 0.85;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: opacity 0.15s, border-color 0.15s;
}
.footer-social a:hover {
  opacity: 1;
  border-color: var(--yellow);
}

.footer-copy {
  opacity: 0.6;
  font-size: 0.85rem;
  margin-top: 1.5rem;
  font-style: italic;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .form { padding: 1.75rem; }
  .hero { min-height: 80vh; }
}
