/* ═══════════════════════════════════════════════
   Romanian GCSE Campaign — Modern Stylesheet
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ─────────────────────────────────── */
:root {
  /* Brand Colors */
  --red:    #c8102e;
  --blue:   #002b7f;
  --gold:   #fcd116;
  --black:  #111111;
  --mid:    #555555;
  --faint:  #aaaaaa;
  --bg:     #ffffff;
  --surf:   #f4f4f5;
  --border: #e4e4e7;

  /* Modern Additions */
  --neutral-100: #fafafa;
  --neutral-200: #f0f0f1;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #c8102e 0%, #ff4757 100%);
  --grad-accent: linear-gradient(135deg, #002b7f 0%, #004ce3 100%);
  --grad-text: linear-gradient(135deg, #c8102e 0%, #8b0000 100%);

  /* Glass Effects */
  --glass: rgba(255, 255, 255, 0.1);
  --glass-light: rgba(255, 255, 255, 0.15);
  --glass-dark: rgba(0, 0, 0, 0.05);

  /* Glow Effects */
  --glow-red: rgba(200, 16, 46, 0.15);
  --glow-blue: rgba(0, 43, 127, 0.1);

  /* Spacing & Sizing */
  --radius: 16px;
  --radius-pill: 980px;
  --f: 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Shadows */
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.1);
  --shadow-hover: 0 20px 40px rgba(0,0,0,.12);
  --shadow-glow: 0 0 30px rgba(200, 16, 46, 0.2);

  /* Widget Tokens */
  --color-text-primary:        #111111;
  --color-text-secondary:      #555555;
  --color-text-tertiary:       #aaaaaa;
  --color-text-success:        #166534;
  --color-text-danger:         #c8102e;
  --color-text-info:           #1d4ed8;
  --color-background-primary:  #ffffff;
  --color-background-secondary:#f4f4f5;
  --color-background-success:  #dcfce7;
  --color-background-info:     #eff6ff;
  --color-border-primary:      #111111;
  --color-border-secondary:    #c7c7cc;
  --color-border-tertiary:     #e4e4e7;
  --color-border-success:      #86efac;
  --border-radius-lg: 14px;
  --border-radius-md: 10px;
}

/* ── Animations ─────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px var(--glow-red), var(--shadow); }
  50% { box-shadow: 0 0 30px var(--glow-red), var(--shadow-hover); }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f); font-weight: 400; color: var(--black);
  background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--f); }

.pg { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.pg-sm { max-width: 680px; margin: 0 auto; padding: 0 28px; }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 26px; border-radius: var(--radius-pill); font-family: var(--f);
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none; white-space: nowrap;
  letter-spacing: -.01em;
}
.btn:active { transform: scale(.97); }

.btn-red {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-red:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px) scale(1.02);
}

.btn-black {
  background: var(--black);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-black:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
  background: rgba(0,0,0,.06);
  color: var(--black);
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  background: var(--glass-light);
  backdrop-filter: blur(10px);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: var(--glass-light);
  border-color: var(--red);
  backdrop-filter: blur(8px);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ── Nav ────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: all 0.3s ease;
  animation: slideInRight 0.6s ease-out;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; color: var(--black);
  letter-spacing: -.02em;
  transition: all 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
  color: var(--red);
}

.ro-flag {
  display: flex; width: 20px; height: 14px;
  border-radius: 2px; overflow: hidden; flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nav-logo:hover .ro-flag {
  transform: rotate(5deg) scale(1.1);
}

.ro-flag span { flex: 1; }
.rf-b { background: #002B7F; }
.rf-y { background: #FCD116; }
.rf-r { background: #CE1126; }

.nav-center {
  display: flex; gap: 24px; list-style: none;
}

.nav-center a {
  font-size: 14px; font-weight: 500; color: var(--mid);
  transition: all 0.3s ease;
  position: relative;
}

.nav-center a:hover {
  color: var(--black);
  transform: translateY(-2px);
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.3s ease;
}

.nav-center a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex; gap: 8px; align-items: center;
}

/* ── Section base ────────────────────────────── */
.section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  pointer-events: none;
}

.section-surf {
  background: linear-gradient(180deg, var(--neutral-100) 0%, var(--bg) 100%);
}

.section-dark {
  background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
  color: #fff;
}

.label {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
  animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.label-gold { color: var(--gold); }

h2.display {
  font-size: clamp(30px, 4.5vw, 52px); font-weight: 800;
  line-height: 1.08; letter-spacing: -.035em; color: var(--black);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

h2.display-light { color: #fff; }

.body-text {
  font-size: 17px; font-weight: 400; color: var(--mid);
  line-height: 1.7; max-width: 520px;
  animation: fadeInUp 0.8s ease-out 0.15s backwards;
}

.body-text-light { color: rgba(255,255,255,.6); }

/* ── Cards ──────────────────────────────────── */
.card {
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(200, 16, 46, 0.2);
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.9) 100%);
}

.section-surf .card {
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.98) 100%);
}

/* ── Flag stripe ────────────────────────────── */
.flag-stripe { height: 3px; display: flex; }
.flag-stripe span { flex: 1; }

/* ── Footer ─────────────────────────────────── */
.site-footer {
  background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
  padding: 56px 0 28px;
  border-top: 1px solid rgba(200, 16, 46, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 700; color: #fff;
  letter-spacing: -.02em; margin-bottom: 12px;
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: translateX(4px);
  color: var(--gold);
}

.footer-brand p {
  font-size: 13px; color: rgba(255,255,255,.5);
  line-height: 1.7; max-width: 260px;
  transition: color 0.3s ease;
}

.footer-col h5 {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col li a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-col li a::before {
  content: '→';
  position: absolute;
  left: -12px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-col li a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer-col li a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  transition: color 0.3s ease;
}

.footer-bottom a {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  transition: all 0.3s ease;
  position: relative;
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom a:hover::after {
  width: 100%;
}

/* ── Floating Decoration ────────────────────── */
.floating-bg {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.float-dot {
  position: absolute;
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

/* ── Accessibility ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .nav-center {
    display: none;
  }
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 68px 0;
  }
  .pg, .pg-sm {
    padding: 0 20px;
  }

  .btn {
    transition: all 0.2s ease;
  }

  .card {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .site-nav {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }

  /* Mobile-optimized navigation buttons */
  .nav-right {
    gap: 6px;
  }

  .btn-sm {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Reduce animation complexity on mobile */
  @media (prefers-reduced-motion: no-preference) {
    .btn {
      animation: none;
    }

    .card {
      animation: fadeInUp 0.6s ease-out backwards;
    }
  }
}
