/* ============================================================
   ALDERNEY WEEK 2026 — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:         #1B3A5C;
  --navy-light:   #2A5F8F;
  --gold:         #F2A62B;
  --gold-light:   #FFF4DE;
  --coral:        #E8553A;
  --teal:         #2A8B72;
  --cream:        #FEFAF4;
  --white:        #FFFFFF;
  --text:         #1C2B3A;
  --text-muted:   #687A8E;
  --border:       #E8E2D6;
  --shadow-sm:    0 2px 8px rgba(27,58,92,0.08);
  --shadow-md:    0 6px 24px rgba(27,58,92,0.12);
  --shadow-lg:    0 16px 48px rgba(27,58,92,0.16);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    30px;
  --transition:   0.25s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--navy);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(254,250,244,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-star {
  width: 38px;
  height: 38px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--navy);
}

.nav-logo-text span {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: background 0.2s cubic-bezier(0.25,1,0.5,1), color 0.2s cubic-bezier(0.25,1,0.5,1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.25,1,0.5,1);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { background: var(--gold-light); color: var(--navy); }
  .nav-links a:hover::after { transform: scaleX(1); }
}

.nav-links a.active { color: var(--navy); background: var(--gold-light); }
.nav-links a.active::after { transform: scaleX(1); }

@keyframes nav-donate-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,85,58,0.45); }
  60%  { box-shadow: 0 0 0 7px rgba(232,85,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,85,58,0); }
}

.nav-donate {
  background: var(--coral) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 18px !important;
  transition: background 0.2s cubic-bezier(0.25,1,0.5,1), transform 0.18s cubic-bezier(0.25,1,0.5,1), box-shadow 0.18s cubic-bezier(0.25,1,0.5,1) !important;
  animation: nav-donate-pulse 2.8s ease-out infinite;
  animation-delay: 1.2s;
}

@media (hover: hover) and (pointer: fine) {
  .nav-donate:hover {
    background: #D14730 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(232,85,58,0.35) !important;
  }
}

.nav-donate:active {
  transform: scale(0.97) !important;
  box-shadow: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s cubic-bezier(0.25,1,0.5,1);
}

@media (hover: hover) and (pointer: fine) {
  .nav-toggle:hover { background: var(--gold-light); }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 4px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition);
}

.nav-mobile a:hover { background: var(--gold-light); }

.nav-mobile .nav-donate {
  background: var(--coral) !important;
  color: var(--white) !important;
  margin-top: 8px;
  text-align: center;
}

/* ── Page offset for fixed nav ───────────────────────────────── */
.page-content { padding-top: 72px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
}

.btn:active { transform: translateY(0); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover { background: #E09920; }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover { background: var(--navy-light); }

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-coral:hover { background: #D14730; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-lg { padding: 18px 36px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-tag {
  display: inline-block;
  background: rgba(242,166,43,0.2);
  color: var(--gold);
  border: 1px solid rgba(242,166,43,0.4);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.page-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}
.page-hero-wave svg { display: block; width: 100%; }

/* ── Section Styles ─────────────────────────────────────────── */
.section {
  padding: 80px 24px;
}

.section-sm { padding: 56px 24px; }
.section-lg { padding: 100px 24px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--navy);
  border: 1px solid rgba(242,166,43,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}

/* ── Grid helpers ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Divider waves ──────────────────────────────────────────── */
.wave-top, .wave-bottom { line-height: 0; }

/* ── Badge / Tag ────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-gold { background: var(--gold-light); color: #8B5E00; }
.badge-navy { background: rgba(27,58,92,0.1); color: var(--navy); }
.badge-coral { background: rgba(232,85,58,0.1); color: var(--coral); }
.badge-teal { background: rgba(42,139,114,0.1); color: var(--teal); }
.badge-green { background: #E8F5EE; color: #1E6B3E; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 24px 32px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-star {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.footer-logo-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--white);
}

.footer-logo-text span {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition);
}

.footer-social a:hover { background: rgba(255,255,255,1); }

.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-col address {
  font-style: normal;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.footer-col address a { transition: color var(--transition); }
.footer-col address a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242,166,43,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(242,166,43,0); }
}

.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.4s; opacity: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 60px 20px; }
  .section-lg { padding: 72px 20px; }
  input, select, textarea { font-size: 16px !important; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-donate { animation: none; }
  .nav-links a::after { transition: none; }
  .nav-toggle span { transition: opacity 0.15s ease; }
}
