/* ==========================================================================
   Padelite — public marketing site
   Brand colors mirror lib/config/brand.dart so the web presence is
   visually indistinguishable from the app.
   ========================================================================== */
:root {
  --bg: #FAF7F1;
  --surface: #FFFFFF;
  --text: #0A0F17;
  --muted: #1F2A38;
  --border: #D9D2C2;
  --accent: #E66B23;
  --accent-hover: #C85814;
  --shadow-sm: 0 2px 8px rgba(10, 15, 23, 0.06);
  --shadow-md: 0 6px 24px rgba(10, 15, 23, 0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
}
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent-hover); color: #fff !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 780px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    gap: 18px;
  }
  .nav.open .nav-cta {
    display: inline-block;
    margin-top: 10px;
    width: fit-content;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(230, 107, 35, 0.10), transparent 60%),
    var(--bg);
}
.hero h1 {
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.store-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-btn:hover {
  transform: translateY(-2px);
  background: var(--muted);
  color: #fff !important;
}
.store-btn svg { width: 26px; height: 26px; }
.store-btn .small { font-size: 11px; opacity: 0.8; font-weight: 500; display: block; line-height: 1.1; }
.store-btn .big { font-size: 16px; line-height: 1.2; }

.hero-image {
  max-width: 260px;
  margin: 40px auto 0;
  filter: drop-shadow(0 20px 40px rgba(10, 15, 23, 0.15));
  border-radius: 40px;
}

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(230, 107, 35, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Formats ---------- */
.formats-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.format-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}
.format-tag {
  display: inline-block;
  background: rgba(230, 107, 35, 0.14);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.format-card h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}
.format-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}
.format-card ul {
  list-style: none;
  padding: 0;
}
.format-card li {
  color: var(--text);
  font-size: 14px;
  padding: 6px 0 6px 22px;
  position: relative;
}
.format-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.85;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}
.about-grid p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 18px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-size: 34px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- Sponsor CTA ---------- */
.sponsor-panel {
  background: linear-gradient(135deg, var(--text) 0%, #1a2130 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 52px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.sponsor-panel h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.sponsor-panel p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin: 0 auto 28px;
  font-size: 16px;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15.5px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.contact-card p { color: var(--muted); margin-bottom: 20px; }
.contact-methods {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-methods a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--text) !important;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid var(--border);
  transition: background 0.15s ease;
}
.contact-methods a:hover { background: var(--border); }
.contact-methods svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.footer {
  background: #0F1620;
  color: rgba(255, 255, 255, 0.65);
  padding: 50px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; }
.footer li { padding: 4px 0; }
.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 60px 0 80px;
}
.legal-page h1 {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 12px;
}
.legal-page .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 36px 0 12px;
}
.legal-page p, .legal-page li {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 14px;
}
.legal-page ul, .legal-page ol { padding-left: 22px; margin-bottom: 18px; }
