/* ============================================================
   PDGA EUROPA CUP — Official Brand Colors
   Pink:    #D4006A  C:3  M:100 Y:4  K:0
   Navy:    #002050  C:100 M:85 Y:35 K:26
   Teal:    #4FBFA0  C:69 M:0  Y:36 K:0
   Slate:   #9EC9E0  C:38 M:21 Y:12 K:0
   Lime:    #C4D400  C:23 M:0  Y:99 K:0
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #002050;
  --pink:   #D4006A;
  --teal:   #4FBFA0;
  --slate:  #9EC9E0;
  --lime:   #C4D400;
  --white:  #ffffff;
  --light:  #f4f6f9;
  --gray:   #6c757d;
  --dark:   #1a1a2e;
  --gradient: linear-gradient(135deg, var(--pink) 0%, #7040A0 25%, #3690D0 50%, var(--teal) 72%, var(--lime) 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

/* ---- TOPBAR ---- */
#topbar {
  background: var(--gradient);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  padding: 6px 0;
}
#topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#topbar a { color: var(--teal); text-decoration: none; }
#topbar a:hover { color: var(--lime); }

/* ---- YEAR SWITCHER ---- */
.year-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}
.year-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6);
  padding: 2px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.year-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: var(--white);
  font-weight: 600;
}
.year-btn:hover:not(.active) {
  border-color: var(--teal);
  color: var(--white);
}

/* ---- NAVBAR ---- */
#navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,45,98,0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}
#navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.nav-logo img {
  height: 52px;
  width: auto;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--navy);
  color: var(--white);
}
.nav-register {
  background: var(--gradient) !important;
  color: var(--white) !important;
  border-radius: 24px !important;
  padding: 8px 20px !important;
}
.nav-register:hover {
  opacity: 0.9;
  background: var(--gradient) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- HERO ---- */
#hero {
  background: var(--navy);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.18;
}
.hero-pattern {
  position: absolute;
  top: -60px; right: -80px;
  width: 500px; height: 500px;
  background: var(--gradient);
  opacity: 0.14;
  border-radius: 50%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-label {
  display: inline-block;
  background: var(--gradient);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
#hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
#hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 28px;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}
.hero-meta-item svg { flex-shrink: 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ---- SECTIONS ---- */
.section { padding: 72px 0; }
.section-alt { background: var(--light); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.section-header p {
  margin-top: 12px;
  color: var(--gray);
  max-width: 600px;
  font-size: 1rem;
}
.accent-line {
  width: 48px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 12px 0;
}

/* ---- CARDS ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,45,98,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,45,98,0.14);
}
.card-top {
  height: 6px;
  background: var(--gradient);
}
.card-body { padding: 24px; }
.card-icon {
  width: 44px; height: 44px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.4rem;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.55;
}
.card a { color: var(--teal); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.card a:hover { color: var(--navy); }

/* ---- NEWS ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,45,98,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,45,98,0.15); }
.news-img {
  height: 200px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
/* Very subtle tint only when a real photo is present */
.news-img.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,45,98,0.04) 0%,
    rgba(0,45,98,0.18) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.news-tag { z-index: 2; }
/* Photo rendered as <img> inside the card */
.news-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-img-placeholder {
  background: linear-gradient(135deg, var(--navy), #003580);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.2);
}
.news-tag {
  position: absolute;
  bottom: 12px; left: 12px;
  background: var(--gradient);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 12px;
}
.news-body { padding: 20px; }
.news-date { font-size: 0.78rem; color: var(--gray); margin-bottom: 6px; }
.news-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.35; }
.news-body p { font-size: 0.88rem; color: var(--gray); }

/* ---- DIVISIONS TABLE ---- */
.divisions-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,45,98,0.08);
}
.divisions-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.divisions-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #eef0f4;
  font-size: 0.9rem;
  color: var(--dark);
}
.divisions-table tr:last-child td { border-bottom: none; }
.divisions-table tr:hover td { background: #f0f4ff; }
.div-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}

/* ---- SPONSORS ---- */
.sponsors-tier { margin-bottom: 40px; }
.sponsors-tier h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e4ee;
}
.sponsors-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.sponsor-slot {
  background: var(--white);
  border: 2px dashed #dde2ee;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #b0b8cc;
  font-size: 0.82rem;
  width: 180px;
  height: 100px;
  flex-shrink: 0;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s;
  gap: 8px;
  overflow: hidden;
  box-sizing: border-box;
}
.sponsor-slot:hover { border-color: var(--teal); color: var(--teal); }
.sponsor-slot img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  display: block;
}
.sponsor-slot .sponsor-name {
  font-size: 0.78rem;
  color: var(--navy);
  font-weight: 600;
}

/* ---- ACCORDION (Rules / FAQ) ---- */
.accordion { border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,45,98,0.07); }
.accordion-item { border-bottom: 1px solid #eef0f4; }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 18px 24px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}
.accordion-btn:hover { background: #f4f8ff; }
.accordion-btn.open { color: var(--teal); }
.accordion-icon {
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.25s;
  color: var(--teal);
}
.accordion-btn.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 0 24px 18px;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
  background: var(--white);
}
.accordion-body.open { display: block; }

/* ---- INFO BLOCKS ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.info-block {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 14px rgba(0,45,98,0.07);
  border-left: 4px solid var(--teal);
}
.info-block.pink { border-left-color: var(--pink); }
.info-block.lime  { border-left-color: var(--lime); }
.info-block.navy  { border-left-color: var(--navy); }
.info-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.info-block p, .info-block li {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
}
.info-block ul { padding-left: 16px; }
.info-block li { margin-bottom: 4px; }
.info-block a { color: var(--teal); font-weight: 600; text-decoration: none; }
.info-block a:hover { color: var(--navy); }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--navy);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: var(--gradient);
  opacity: 0.07;
  border-radius: 50%;
}
.cta-banner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }

/* ---- FOOTER ---- */
#footer {
  background: #001040;
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
#footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-logo { height: 44px; margin-bottom: 14px; filter: brightness(10); }
#footer p { font-size: 0.85rem; line-height: 1.65; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.social-links a:hover { color: var(--teal); }

/* ---- UTILITY ---- */
.text-center { text-align: center; }
.text-center .accent-line { margin: 12px auto; }
.text-center p { margin: 0 auto; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.year-notice {
  background: linear-gradient(90deg, rgba(79,191,160,0.1), rgba(196,212,0,0.1));
  border: 1px solid rgba(79,191,160,0.3);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px; box-shadow: 0 8px 20px rgba(0,45,98,0.1); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  #navbar .container { position: relative; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-meta { flex-direction: column; gap: 10px; }
}
