:root {
  /* Rotary brand palette (Your Logos at a Glance, April 2025) */
  --night: #000000;      /* Black */
  --night-deep: #000000; /* Black */
  --wine: #54565a;       /* Charcoal */
  --pink: #d41367;       /* Cranberry — Rotaract */
  --pink-dim: #901f93;   /* Violet */
  --amber: #f7a81b;      /* Rotary Gold */
  --teal: #009739;       /* Grass */
  --cream: #ffffff;      /* White */
  --cloud: #d6d1ca;      /* Cloud */
  --silver: #d0cfcd;     /* Silver */
  --ink: #000000;        /* Black */
  --ink-soft: #54565a;   /* Charcoal */
  --ink-faint: #d0cfcd;  /* Silver */
  --font-head: 'Open Sans', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header (dark zone) ---- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; color: var(--cream); opacity: 0.9; }
.club-tag { font-size: 0.78rem; color: var(--amber); }

nav { display: flex; gap: 24px; }
nav a { color: var(--cream); opacity: 0.8; text-decoration: none; font-size: 0.95rem; font-weight: 700; }
nav a:hover { opacity: 1; }

#despre, #evenimente, #istorie { scroll-margin-top: 84px; }

/* Rotary typography: headlines and main navigation in condensed ALL CAPS */
h1, h2, nav a {
  font-family: var(--font-head);
  font-stretch: 75%;
  text-transform: uppercase;
}

h1, h2 { letter-spacing: 0; }

/* ---- Zone: dark band (football hero) ---- */

.zone-dark {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.85)),
    url('/assets/img/hero-bg.jpg') center 62% / cover no-repeat;
  color: var(--cream);
}

/* ---- Hero / despre (light zone) ---- */

.hero-about {
  position: relative;
  padding: 72px clamp(20px, 5vw, 64px) 64px;
  text-align: center;
  overflow: hidden;
  min-height: clamp(480px, 72vh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.88)),
    url('/assets/img/hero-hands.jpg') center / cover no-repeat;
}

.hero-about-inner { max-width: 880px; margin: 0 auto; position: relative; }

.hero-about.zone-dark h1 { color: var(--cream); }
.hero-about.zone-dark p { color: var(--cream); opacity: 0.78; }

.hero-about h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}

.hero-about p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- Context section (light zone, homepage) ---- */

.context-section { padding: 8px clamp(20px, 5vw, 64px) 56px; }

.news-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--cloud);
  border: 1px solid var(--ink-faint);
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
  padding: 40px clamp(24px, 5vw, 56px);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
  transform: rotate(-0.4deg);
  font-family: Georgia, 'Times New Roman', serif;
}

.news-kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  text-align: center;
  margin: 0 0 10px;
}

.news-card h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-stretch: normal;
  text-transform: none;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  text-align: center;
  margin: 0 0 22px;
  color: var(--ink);
}

.news-card p:not(.news-kicker) {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  text-align: justify;
  margin: 0 0 16px;
}

.news-card p:not(.news-kicker):last-child { margin-bottom: 0; }

.news-card p:not(.news-kicker):first-of-type::first-letter {
  float: left;
  font-size: 3.1em;
  line-height: 0.78;
  font-weight: 700;
  padding: 4px 8px 0 0;
  color: var(--ink);
}

/* ---- Values section (light zone) ---- */

.values-section { padding: 52px clamp(20px, 5vw, 64px); }

.values-inner { max-width: 1160px; margin: 0 auto; }

.values-inner h2 {
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  text-align: center;
  margin: 0 0 36px;
  color: var(--ink);
}

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

.value-item { text-align: center; }
.value-icon { width: 34px; height: 34px; margin: 0 auto 14px; }
.value-item h3 { font-weight: 600; font-size: 1rem; margin: 0 0 8px; color: var(--ink); }
.value-item p { font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ---- Section bands (Rotary neutrals: Silver / Cloud) ---- */

.band-teal {
  background: var(--silver);
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
}

.band-amber {
  background: var(--cloud);
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
}

/* ---- Events grid (light zone) ---- */

.events-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 64px) 72px;
  width: 100%;
}

.events-section h2 {
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  text-align: center;
  margin: 0 0 36px;
  color: var(--ink);
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 780px) { .cards { grid-template-columns: 1fr; } }

/* ---- Poster slider (events) ---- */

.poster-slider {
  max-width: 908px;
  margin: 0 auto;
  position: relative;
  padding: 0 64px;
}

.poster-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
  background: var(--cream);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.poster-nav:hover { border-color: var(--pink); color: var(--pink); }
.poster-nav.prev { left: 0; }
.poster-nav.next { right: 0; }
.poster-nav.hidden { display: none; }

@media (max-width: 700px) {
  .poster-slider { padding: 0 44px; }
  .poster-nav { width: 40px; height: 40px; font-size: 1.25rem; }
}

.poster-frame {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--ink-faint);
  aspect-ratio: 927 / 1152;
}

.poster-track { display: flex; height: 100%; transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.poster-slide { flex: 0 0 100%; display: block; }
.poster-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.poster-slide.placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--wine);
  color: var(--cream);
  padding: 24px;
  text-align: center;
}

.poster-slide.placeholder svg { width: 44px; height: 44px; }
.poster-slide.placeholder h3 { font-weight: 600; font-size: 0.98rem; margin: 0; }
.poster-slide.placeholder .placeholder-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.poster-dots { display: flex; justify-content: center; gap: 8px; padding-top: 14px; }
.poster-dots button { width: 7px; height: 7px; border-radius: 50%; border: none; background: var(--ink-faint); cursor: pointer; padding: 0; }
.poster-dots button.active { background: var(--pink); width: 20px; border-radius: 4px; transition: width 0.2s ease; }

.event-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--ink-faint);
  border-radius: 10px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.event-card.active { border-color: var(--pink); cursor: pointer; }
.event-card.active:hover { border-color: var(--pink); }

.card-icon { width: 40px; height: 40px; margin-bottom: 18px; }

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 12px;
}

.badge.live { background: var(--pink); color: var(--cream); }
.badge.soon { background: var(--ink-faint); color: var(--ink-soft); }

.event-card h3 { font-weight: 600; font-size: 1.1rem; margin: 0 0 8px; color: var(--ink); }
.event-card p { font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); margin: 0 0 14px; }
.card-link { font-size: 0.82rem; font-weight: 600; color: var(--pink); }

/* ---- Cupa Rotaract dark hero band ---- */

.football-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px clamp(20px, 5vw, 64px) 64px;
}

/* Hero: title/tagline + countdown as a real two-column layout on wide screens */

.hero-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  text-align: left;
}

.hero-flex-main { flex: 1 1 380px; }
.hero-flex-countdown { flex: 0 0 auto; }

@media (max-width: 852px) {
   .hero-flex { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
   .hero-flex-main { flex: 0 0 auto; width: 100%; }
   .hero-flex-countdown { flex: 0 0 auto; align-self: center; }
}

.ball-hero {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  opacity: 0;
  animation: roll-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@media (max-width: 852px) { .ball-hero { margin-left: auto; margin-right: auto; } }

@keyframes roll-in {
  0% { opacity: 0; transform: translateX(-100px) rotate(-260deg) scale(0.8); }
  70% { opacity: 1; transform: translateX(4px) rotate(14deg) scale(1.03); }
  100% { opacity: 1; transform: translateX(0) rotate(0deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) { .ball-hero { animation: none; opacity: 1; } }

.football-section h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  margin: 0 0 14px;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.tagline {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--amber);
  max-width: 40ch;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 852px) { .tagline { margin: 0 auto; } }

.countdown { display: flex; gap: 12px; margin-bottom: 12px; }

.countdown-block {
  background: var(--wine);
  border: 1px solid var(--pink);
  border-radius: 8px;
  padding: 16px 18px;
  min-width: 72px;
  text-align: center;
}

.countdown-num {
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--cream);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label { font-size: 0.7rem; color: var(--amber); margin-top: 6px; }
.date-note { font-size: 0.85rem; color: var(--cream); opacity: 0.6; }

.hero-support { max-width: 720px; margin: 56px auto 0; text-align: center; }

.details { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto; }

.detail-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.88rem;
  color: var(--cream);
}

.detail-chip svg { width: 15px; height: 15px; flex-shrink: 0; }

.about-event { margin: 40px auto 0; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.about-event p { font-size: 1rem; line-height: 1.7; color: var(--cream); opacity: 0.82; margin: 0; }

.cta {
  margin-top: 28px;
  display: inline-block;
  background: var(--pink);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.cta:hover { background: var(--pink-dim); }

/* ---- Registration steps (light zone) ---- */

.steps-inner { max-width: 900px; margin: 0 auto; text-align: center; }

.steps-inner h2 {
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 0 0 32px;
  color: var(--ink);
}

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
@media (max-width: 700px) { .steps-grid { grid-template-columns: 1fr; } }

.step-item {
  background: var(--cream);
  border: 1px solid var(--ink-faint);
  border-radius: 10px;
  padding: 22px 20px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.step-item h3 { font-weight: 600; font-size: 0.98rem; margin: 0 0 6px; color: var(--ink); }
.step-item p { font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* ---- Sponsors (light zone) ---- */

.sponsors-section { padding: 56px clamp(20px, 5vw, 64px); text-align: center; }
.sponsors-inner { max-width: 820px; margin: 0 auto; }

.sponsors-inner h2 {
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 0 0 10px;
  color: var(--ink);
}

.sponsors-inner > p { font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; margin: 0 auto 28px; }

.sponsor-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
@media (max-width: 700px) { .sponsor-slots { grid-template-columns: repeat(2, 1fr); } }

.sponsor-slot {
  aspect-ratio: 3 / 2;
  border: 1.5px dashed var(--ink-faint);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  padding: 10px;
  text-align: center;
}

/* ---- Video placeholder (light zone) ---- */

.video-section { padding: 56px clamp(20px, 5vw, 64px); text-align: center; }
.video-inner { max-width: 720px; margin: 0 auto; }

.video-inner h2 {
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 0 0 10px;
  color: var(--ink);
}

.video-inner > p { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 24px; }

.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: var(--night);
  border: 1px solid var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--cream);
}

.video-frame svg { width: 40px; height: 40px; opacity: 0.85; }
.video-frame span { font-size: 0.85rem; opacity: 0.6; max-width: 30ch; }

/* ---- Share section (light zone) ---- */

.share-section { padding: 56px clamp(20px, 5vw, 64px); text-align: center; }
.share-inner { max-width: 560px; margin: 0 auto; }

.share-inner h2 {
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 0 0 10px;
  color: var(--ink);
}

.share-inner p { font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 28px; }

.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--ink-faint);
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.share-btn:hover { border-color: var(--teal); }
.share-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.share-btn.copied { border-color: var(--teal); color: var(--teal); }

/* ---- Modal ---- */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--wine);
  border: 1px solid var(--pink);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 460px;
  width: 100%;
  text-align: left;
  position: relative;
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--cream); opacity: 0.6;
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px;
}

.modal-close:hover { opacity: 1; }

.modal h2 { font-weight: 700; font-size: 1.5rem; color: var(--cream); margin: 0 0 4px; }
.modal-sub { font-size: 0.88rem; color: var(--amber); margin: 0 0 24px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; color: var(--cream); opacity: 0.75; margin-bottom: 6px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.form-group textarea { resize: vertical; min-height: 64px; }

.form-hint { font-size: 0.76rem; color: var(--cream); opacity: 0.5; margin-top: -4px; margin-bottom: 16px; }

.form-submit {
  width: 100%;
  background: var(--pink);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
}

.form-submit:hover { background: var(--pink-dim); }

.form-status { display: none; text-align: center; padding: 20px 0; }
.form-status.visible { display: block; }
.form-status h2 { margin-bottom: 10px; }
.form-status p { color: var(--cream); opacity: 0.75; font-size: 0.92rem; line-height: 1.5; }

/* ---- Footer (dark zone) ---- */

footer {
  background: var(--night);
  color: var(--cream);
  padding: 48px clamp(20px, 5vw, 64px) 28px;
  margin-top: auto;
}

.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
}

@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.02em; color: var(--cream); opacity: 0.5; margin: 0 0 14px; font-weight: 600; }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand span { font-weight: 600; font-size: 0.92rem; color: var(--cream); }

.footer-col p { font-size: 0.85rem; line-height: 1.55; color: var(--cream); opacity: 0.62; margin: 0; }

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.85rem; color: var(--cream); opacity: 0.68; text-decoration: none; }
.footer-links a:hover { opacity: 1; }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.78rem;
  color: var(--cream);
  opacity: 0.45;
}
