/* ============================================
   AKO.dk — 2026 Redesign
   Aesthetic: Warm editorial meets Nordic clarity
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Palette --- */
:root {
  --navy:       #0f2440;
  --navy-mid:   #1a3558;
  --blue:       #2563a0;
  --blue-pale:  #e4eef8;
  --orange:     #d96b28;
  --amber:      #f0943a;
  --amber-glow: rgba(240, 148, 58, 0.35);
  --cream:      #faf8f5;
  --sand:       #f2efe9;
  --dark:       #11151c;
  --body:       #444b56;
  --muted:      #6b7280;
  --border:     #e2ddd6;
  --glass-bg:   rgba(255,255,255,0.55);
  --glass-bdr:  rgba(255,255,255,0.35);
  --radius:     1.25rem;
  --radius-lg:  1.75rem;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: fadeUp .5s ease forwards;
}

@keyframes fadeUp { to { opacity: 1; } }

img { display: block; max-width: 100%; height: auto; }

/* ────────────────────────────
   TYPOGRAPHY
   ──────────────────────────── */
.font-display {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
}

.text-hero {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 700;
}

.text-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.18;
  font-weight: 700;
}

/* ────────────────────────────
   GRADIENT TEXT
   ──────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 20%, var(--orange) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ────────────────────────────
   HERO GRADIENT + GRAIN
   ──────────────────────────── */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(37,99,160,.45), transparent),
    radial-gradient(ellipse 70% 50% at 80% 60%, rgba(217,107,40,.35), transparent),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
}

.grain-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ────────────────────────────
   SCROLL PROGRESS
   ──────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  z-index: 9999;
  width: 0;
  transition: width .08s linear;
}

/* ────────────────────────────
   GLASSMORPHISM
   ──────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-bdr);
}

/* ────────────────────────────
   BUTTONS
   ──────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 2rem;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #fff;
  font-weight: 600; font-size: .95rem;
  border-radius: 9999px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px var(--amber-glow);
}

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 2rem;
  background: transparent;
  color: var(--navy);
  font-weight: 600; font-size: .95rem;
  border: 2px solid var(--navy);
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
}
.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* ────────────────────────────
   PILL BADGE
   ──────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem 1rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ────────────────────────────
   NAVBAR
   ──────────────────────────── */
.navbar {
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 24px rgba(0,0,0,.06);
}

.nav-link { position: relative; text-decoration: none; }
.nav-link::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0; width: 0; height: 2px;
  background: var(--orange);
  transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ────────────────────────────
   MOBILE MENU
   ──────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 100;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.mobile-menu.open { transform: translateX(0); }

/* ────────────────────────────
   SCROLL ANIMATIONS
   ──────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: .08s; }
.stagger-2 { transition-delay: .16s; }
.stagger-3 { transition-delay: .24s; }
.stagger-4 { transition-delay: .32s; }
.stagger-5 { transition-delay: .40s; }

.animate-scale {
  opacity: 0; transform: scale(.96);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-scale.is-visible { opacity: 1; transform: scale(1); }

/* ────────────────────────────
   HERO WORD REVEAL
   ──────────────────────────── */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: wordUp .55s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes wordUp { to { opacity: 1; transform: translateY(0); } }

.bounce-in {
  opacity: 0; transform: scale(.85);
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes popIn { to { opacity: 1; transform: scale(1); } }

/* ────────────────────────────
   CARDS
   ──────────────────────────── */
.card-hover {
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px -12px rgba(0,0,0,.12);
}
.card-hover .card-img { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.card-hover:hover .card-img { transform: scale(1.06); }

/* ────────────────────────────
   FLOATING DONATE
   ──────────────────────────── */
.donate-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); box-shadow: 0 4px 20px var(--amber-glow); }
  50%     { transform: scale(1.06); box-shadow: 0 8px 30px var(--amber-glow); }
}

/* ────────────────────────────
   MARQUEE
   ──────────────────────────── */
.marquee-container { overflow: hidden; white-space: nowrap; }
.marquee-content {
  display: inline-flex;
  animation: slide 35s linear infinite;
}
.marquee-content:hover { animation-play-state: paused; }
@keyframes slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ────────────────────────────
   CAROUSEL
   ──────────────────────────── */
.snap-carousel {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.25rem;
  padding-bottom: .75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.snap-carousel::-webkit-scrollbar { display: none; }
.snap-carousel > * { scroll-snap-align: start; flex-shrink: 0; }

/* ────────────────────────────
   COUNTER
   ──────────────────────────── */
.counter-value { font-variant-numeric: tabular-nums; }

/* ────────────────────────────
   FULL BLEED
   ──────────────────────────── */
.full-bleed {
  position: relative;
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .full-bleed { background-attachment: scroll; }
}

/* ────────────────────────────
   BENTO GRID
   ──────────────────────────── */
.bento-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(170px, auto);
}
.bento-grid .bento-wide  { grid-column: span 2; }
.bento-grid .bento-tall  { grid-row: span 2; }

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-grid .bento-wide,
  .bento-grid .bento-tall { grid-column: span 1; grid-row: span 1; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ────────────────────────────
   TIMELINE (History)
   ──────────────────────────── */
.timeline-line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--orange));
  transform: translateX(-50%);
}
@media (max-width: 768px) { .timeline-line { left: 1.5rem; } }

/* ────────────────────────────
   FORMS
   ──────────────────────────── */
.form-input {
  width: 100%;
  padding: .85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem; font-family: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,160,.1);
}
.form-label {
  display: block; font-weight: 600; color: var(--dark);
  margin-bottom: .45rem; font-size: .85rem;
}

/* ────────────────────────────
   DIVIDER
   ──────────────────────────── */
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ────────────────────────────
   IMAGE ZOOM CONTAINER
   ──────────────────────────── */
.img-zoom-container { overflow: hidden; border-radius: var(--radius); }
.img-zoom-container img { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.img-zoom-container:hover img { transform: scale(1.05); }

/* ────────────────────────────
   GLASS on dark (for footer)
   ──────────────────────────── */
.glass-dark {
  background: rgba(30,58,95,.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
}

/* ────────────────────────────
   ACCESSIBILITY (ui-ux-pro-max §1)
   ──────────────────────────── */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .75rem 1.5rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .875rem;
  z-index: 10000;
  transition: top .2s;
}
.skip-link:focus {
  top: 1rem;
}

/* Focus rings — visible on keyboard, hidden on click */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orange);
}

.form-input:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,160,.15);
}

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Cursor pointer on all interactive elements */
.card-hover, .nav-link, .pill[href] { cursor: pointer; }

/* Muted text contrast fix — #8b919a is 3.5:1, #6b7280 is 4.6:1 */
.text-muted-fixed { color: #6b7280; }

/* ────────────────────────────
   REDUCED MOTION (ui-ux-pro-max §7)
   ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-word { opacity: 1; transform: none; }
  .bounce-in { opacity: 1; transform: none; }
  .animate-on-scroll { opacity: 1; transform: none; }
  .animate-scale { opacity: 1; transform: none; }
  .marquee-content { animation: none; }
  .donate-float { animation: none; }
  .scroll-progress { transition: none; }
  .full-bleed { background-attachment: scroll; }
}

/* ────────────────────────────
   TOUCH (ui-ux-pro-max §2)
   ──────────────────────────── */
html {
  touch-action: manipulation; /* eliminates 300ms tap delay */
}

/* Ensure min 44px touch targets on mobile */
@media (max-width: 768px) {
  .btn-primary, .btn-secondary {
    min-height: 44px;
    min-width: 44px;
  }
  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
