/* Paris Tennis Club website styles.
   Colours and font match the previous WordPress (Astra) theme. */
:root {
  --brand: #046bd2;
  --brand-dark: #045cb4;
  --heading: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --bg-alt: #f0f5fa;
  --dark: #111827;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 18px; }
[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.narrow-text { max-width: 780px; margin: 0 auto 32px; }
.center { text-align: center; }
.no-margin { margin: 0; }
.big { font-size: 1.35rem; font-weight: 600; color: var(--heading); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--brand); margin: 0 0 6px; }
.eyebrow.light { color: #bfdbfe; }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 12px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid var(--brand); cursor: pointer; font: inherit; font-weight: 600; transition: background .15s, color .15s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-small { padding: 8px 18px; }
.btn-light { background: #fff; border-color: #fff; color: var(--brand-dark); }
.btn-light:hover { background: #e2e8f0; border-color: #e2e8f0; color: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.muted-link { color: var(--muted); font-size: .9rem; margin-left: 12px; }

/* Header */
.site-header { background: #fff; box-shadow: 0 1px 0 #e2e8f0; position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--heading); text-decoration: none; font-size: 1.1rem; }
.brand img { border-radius: 10px; }
.brand-light, .brand-light:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--heading); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--brand); }
.menu-toggle, .menu-button { display: none; }
@media (max-width: 900px) {
  .menu-button { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .menu-button span { width: 26px; height: 3px; background: var(--heading); border-radius: 2px; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 16px 24px 24px; gap: 14px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .menu-toggle:checked ~ .nav { display: flex; }
}

/* Hero & page titles */
.hero { background: linear-gradient(rgba(15,23,42,.55), rgba(15,23,42,.35)), url('/assets/img/hero.jpg') center 30% / cover; color: #fff; padding: 140px 0 120px; }
.hero h1 { color: #fff; max-width: 14em; }
.hero .lead { font-size: 1.3rem; max-width: 34em; margin: 0 0 28px; }
.hero .lead a { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-title { background: linear-gradient(rgba(4,92,180,.88), rgba(4,92,180,.88)), url('/assets/img/hero.jpg') center / cover; color: #fff; padding: 72px 0 56px; }
.page-title h1 { color: #fff; margin: 0; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.portrait { max-height: 640px; }
.stats { display: flex; gap: 40px; margin: 24px 0 28px; }
.stats strong { display: block; font-size: 2.2rem; color: var(--brand); line-height: 1.1; }
.stats span { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }

/* Cards */
.cards { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 32px 0; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s; }
.feature:hover { transform: translateY(-4px); }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature h3 { margin: 0; padding: 18px 22px; font-size: 1.1rem; }

.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img { aspect-ratio: 5 / 3; background: var(--bg-alt) center / cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body .btn { align-self: flex-start; margin-top: auto; }
.price { display: block; color: var(--brand); font-size: 1.05rem; }
.membership:nth-of-type(1) .card-img { background-image: url('/assets/img/membership-adult.jpg'); }
.membership:nth-of-type(2) .card-img { background-image: url('/assets/img/membership-junior.jpg'); }
.membership:nth-of-type(3) .card-img { background-image: url('/assets/img/membership-community.jpg'); }
.community .card-img { background-image: url('/assets/img/membership-community.jpg'); }
.contents { display: contents; }
.county { margin: 24px auto 0; max-width: 700px; }

/* Programs (live from Tennis Plus) */
.programs { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.program { background: #fff; border-radius: 12px; padding: 18px 22px; box-shadow: 0 2px 12px rgba(15,23,42,.06); }
.section.alt .program { background: #fff; }
.section:not(.alt) .program { background: var(--bg-alt); box-shadow: none; }
.program h4 { margin: 0 0 4px; font-size: 1.1rem; }
.program-desc { margin: 0 0 8px; white-space: pre-line; font-size: .95rem; }
.series { margin: 0 0 8px; padding-left: 1.1em; }
.series li { margin: 4px 0; }
.avail { color: var(--muted); font-size: .88rem; font-style: normal; }
.soon { margin: 0 0 8px; color: var(--muted); font-style: italic; }
.register { font-weight: 600; text-decoration: none; }
.note { font-size: .92rem; color: var(--muted); }
.tp-empty { font-style: italic; color: var(--muted); }

/* About */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px 40px; margin-top: 32px; }
.rule h3 { margin: 0 0 6px; }
.rule p { margin: 0; }
.rule-num { color: var(--brand); font-weight: 700; font-size: 1.4rem; }
.person { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding-bottom: 12px; }
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.person h3, .person p { margin-left: 22px; margin-right: 22px; }
.person h3 { margin-top: 18px; margin-bottom: 0; }
.role { color: var(--brand); font-weight: 500; margin-top: 0; }

/* Sponsors & partners */
.sponsors { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 48px; margin: 32px 0; }
.sponsors img { max-height: 80px; width: auto; }
.sponsor-slot { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 14px 22px; color: var(--muted); text-decoration: none; line-height: 1.3; }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; }

/* Mailchimp */
.mc-form { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.mc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.mc-form label { display: block; font-weight: 500; font-size: .92rem; }
.mc-form input[type=email], .mc-form input[type=text] { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.mc-form fieldset { border: 0; padding: 0; margin: 20px 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 16px; }
.mc-form legend { font-weight: 600; color: var(--heading); margin-bottom: 8px; }
.mc-form fieldset label { font-weight: 400; }
.req { color: #dc2626; }

/* Contact */
.contact-item h3 { margin: 18px 0 4px; font-size: 1.05rem; }
.contact-item p { margin: 0; }
.social { margin: 18px 0 28px; }
.map { width: 100%; min-height: 460px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* CTA & footer */
.cta { background: linear-gradient(135deg, var(--brand-dark), #0b7c4b); color: #fff; padding: 80px 0; }
.cta h2 { color: #fff; }
.cta p { max-width: 640px; margin: 0 auto 24px; }
.site-footer { background: var(--dark); color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer a { color: #fff; }
.site-footer .footer-grid div > a:not(.brand) { display: block; text-decoration: none; margin: 4px 0; color: #cbd5e1; }
.site-footer .footer-grid div > a:not(.brand):hover { color: #fff; }
.small { font-size: .85rem; color: #94a3b8; border-top: 1px solid #1f2937; padding-top: 20px; }
