/* mexicansoccer.net — Mexican soccer fan shop */
:root {
  --green: #006847;
  --green-dark: #004d35;
  --green-light: #0a8a5c;
  --red: #ce1126;
  --red-dark: #a00d1e;
  --white: #ffffff;
  --cream: #f7f5f0;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --border: #e2e0d8;
  --card: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #121412;
    --ink: #f0f0f0;
    --ink-soft: #c8c8c8;
    --muted: #9a9a9a;
    --border: #2a2e2a;
    --card: #1a1e1a;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --white: #1a1e1a;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; }
ul { list-style: none; }

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

/* Header */
.site-header {
  background: var(--green-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-flag {
  display: inline-flex;
  width: 28px;
  height: 18px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.3);
}

.logo-flag span { flex: 1; }
.logo-flag .g { background: #006847; }
.logo-flag .w { background: #fff; }
.logo-flag .r { background: #ce1126; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.nav-toggle:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.nav-list {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-list a {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: none !important;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
}

.nav-list a.cta-nav {
  background: var(--red);
  margin-left: 0.35rem;
}

.nav-list a.cta-nav:hover {
  background: var(--red-dark);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.15rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  .nav-list.open { display: flex; }
  .nav-list a { width: 100%; }
  .nav-list a.cta-nav { margin-left: 0; margin-top: 0.5rem; text-align: center; }
  .header-inner { position: relative; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 45%, var(--red-dark) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #fff;
  color: var(--green-dark) !important;
}
.btn-primary:hover { background: var(--cream); color: var(--green-dark) !important; }
.btn-secondary {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.7);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: #fff !important; }
.btn-shop {
  background: var(--green);
  color: #fff !important;
}
.btn-shop:hover { background: var(--green-light); color: #fff !important; }
.btn-amazon {
  background: #ff9900;
  color: #111 !important;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
}
.btn-amazon:hover { background: #e88b00; color: #111 !important; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.875rem; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 {
  font-size: 1.65rem;
  font-weight: 760;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.section .lead {
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 620px;
}

/* Club / product cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  background: rgba(0, 104, 71, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.club-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.club-america { background: #ffd700; color: #1a1a1a; }
.club-chivas { background: #ce1126; }
.club-tigres { background: #f7b500; color: #1a1a1a; }
.club-rayados { background: #1a3a6b; }
.club-cruzazul { background: #003da5; }
.club-pumas { background: #002855; }
.club-eltri { background: linear-gradient(90deg, #006847 33%, #fff 33%, #fff 66%, #ce1126 66%); color: #1a1a1a; border: 1px solid var(--border); }

/* Page hero (inner) */
.page-hero {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 2.25rem 0;
}
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 0.4rem; }
.page-hero p { opacity: 0.92; max-width: 560px; }

/* Merch list */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.merch-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.merch-item h3 { font-size: 1.05rem; }
.merch-item p { color: var(--muted); font-size: 0.9rem; flex: 1; }

/* Category chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.chip {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none !important;
  font-weight: 500;
}
.chip:hover { border-color: var(--green); color: var(--green); }

/* Scores / schedule */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}
.schedule-table th,
.schedule-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.schedule-table th {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
}
.schedule-table tr:last-child td { border-bottom: none; }
.disclaimer {
  background: rgba(206, 17, 38, 0.08);
  border-left: 4px solid var(--red);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
  font-size: 0.925rem;
  color: var(--ink-soft);
}

/* About */
.prose { max-width: 680px; }
.prose p { margin-bottom: 1rem; color: var(--ink-soft); }
.prose h2 { margin: 1.75rem 0 0.75rem; font-size: 1.35rem; }
.disclosure-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

/* CTA band */
.cta-band {
  background: var(--red);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { opacity: 0.95; margin-bottom: 1.25rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
@media (prefers-color-scheme: dark) {
  .site-footer { background: #0a0c0a; }
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.site-footer a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  display: block;
  padding: 0.2rem 0;
  font-size: 0.925rem;
}
.site-footer a:hover { color: #fff !important; }
.footer-disclosure {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.footer-copy {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--green); }

main { flex: 1; }
