/* ============================================================
   GrantsIreland.ie — Main Stylesheet
   Theme: Deep Navy + Gold
   Responsive: Fully fixed across mobile / tablet / laptop
   ============================================================ */

/* ── RESET & ROOT ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0b1f3a;
  --navy-mid: #163058;
  --navy-bright: #1e4a8a;
  --navy-glow: rgba(11, 31, 58, 0.12);
  --gold: #c4892a;
  --gold-light: #e8c97a;
  --gold-pale: rgba(196, 137, 42, 0.1);
  --gold-glow: rgba(196, 137, 42, 0.25);
  --cream: #faf8f4;
  --parchment: #f2ede4;
  --ink: #0a0f1e;
  --ink-70: rgba(10, 15, 30, 0.7);
  --ink-40: rgba(10, 15, 30, 0.4);
  --ink-15: rgba(10, 15, 30, 0.08);
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-dark: rgba(11, 31, 58, 0.75);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 12px rgba(10, 15, 30, 0.06), 0 1px 3px rgba(10, 15, 30, 0.04);
  --shadow-md: 0 8px 32px rgba(10, 15, 30, 0.1), 0 2px 8px rgba(10, 15, 30, 0.06);
  --shadow-lg: 0 24px 64px rgba(10, 15, 30, 0.14), 0 8px 24px rgba(10, 15, 30, 0.08);
  --shadow-gold: 0 8px 40px rgba(196, 137, 42, 0.25), 0 2px 12px rgba(10, 15, 30, 0.1);
  --shadow-navy: 0 8px 40px rgba(11, 31, 58, 0.35), 0 2px 12px rgba(10, 15, 30, 0.12);
  --r-sm: 8px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.font-serif {
  font-family: 'Cormorant Garamond', serif;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--ink-70);
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.7;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
}

.section-sm {
  padding: 3rem 1.5rem;
}
/* ── NAVIGATION ───────────────────────────────────────────── */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 24px;
}

nav {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
  transition: box-shadow 0.4s var(--ease);
}

nav.scrolled {
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease);
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo .logo-accent {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-70);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-sm);
  transition: color 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
}

/* Underline animation effect */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s var(--ease);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: calc(100% - 1.8rem);
}

.nav-links a:hover {
  color: var(--navy);
  background: transparent;
}

/* ── ACTIVE TAB STYLES ─────────────────────────────────────── */
/* For regular nav links */
.nav-links a.active {
  color: var(--navy);
  font-weight: 600;
}

.nav-links a.active::after {
  width: calc(100% - 1.8rem);
  background: var(--gold);
}

/* For CTA button - different active style */
.nav-links a.active.nav-cta {
  background: var(--navy-mid) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.45) !important;
}

/* Special handling for CTA button - no underline */
.nav-cta::after {
  display: none !important;
}

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.35) !important;
  font-weight: 600 !important;
  transition: all 0.25s var(--ease) !important;
}

.nav-cta:hover {
  background: var(--navy-mid) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.45) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}

.nav-hamburger:hover {
  background: var(--navy-glow);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* Mobile menu */
.nav-mobile {
  position: fixed;
  top: 84px;
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 1.5rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-mobile.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-mobile a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid var(--ink-15);
  transition: all 0.3s var(--ease);
  position: relative;
}

/* Mobile menu hover effect */
.nav-mobile a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-mobile a:hover::before {
  width: 100%;
}

.nav-mobile a:hover {
  color: var(--navy);
  padding-left: 12px;
  background: var(--navy-glow);
}

/* ── ACTIVE TAB STYLES FOR MOBILE ─────────────────────────── */
.nav-mobile a.active {
  color: var(--navy);
  font-weight: 600;
  background: var(--navy-glow);
  border-left: 3px solid var(--gold);
  padding-left: 0.75rem;
}

.nav-mobile a.active::before {
  width: 100%;
  background: var(--gold);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* Stagger animations for mobile menu items */
.nav-mobile.open a:nth-child(1) {
  animation: slideInNav 0.3s var(--ease) 0.05s both;
}
.nav-mobile.open a:nth-child(2) {
  animation: slideInNav 0.3s var(--ease) 0.10s both;
}
.nav-mobile.open a:nth-child(3) {
  animation: slideInNav 0.3s var(--ease) 0.15s both;
}
.nav-mobile.open a:nth-child(4) {
  animation: slideInNav 0.3s var(--ease) 0.20s both;
}
.nav-mobile.open a:nth-child(5) {
  animation: slideInNav 0.3s var(--ease) 0.25s both;
}
.nav-mobile.open a:nth-child(6) {
  animation: slideInNav 0.3s var(--ease) 0.30s both;
}
.nav-mobile.open a:nth-child(7) {
  animation: slideInNav 0.3s var(--ease) 0.35s both;
}
.nav-mobile.open a:nth-child(8) {
  animation: slideInNav 0.3s var(--ease) 0.40s both;
}
.nav-mobile.open a:nth-child(9) {
  animation: slideInNav 0.3s var(--ease) 0.45s both;
}
.nav-mobile.open a:nth-child(10) {
  animation: slideInNav 0.3s var(--ease) 0.50s both;
}
.nav-mobile.open a:nth-child(11) {
  animation: slideInNav 0.3s var(--ease) 0.55s both;
}

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

.page-body {
  padding-top: 84px;
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  
  .nav-hamburger {
    display: flex !important;
  }
}

/* ── MESSAGES ─────────────────────────────────────────────── */
.messages {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 340px;
  width: calc(100% - 40px);
}

.message {
  padding: 0.9rem 1.2rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  animation: slideIn 0.3s var(--ease) both;
}

.message.success {
  background: rgba(22, 163, 74, 0.92);
  color: white;
}

.message.info {
  background: rgba(11, 31, 58, 0.92);
  color: white;
}

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.7rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.badge-green {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.badge-blue {
  background: rgba(30, 74, 138, 0.1);
  color: #1e4a8a;
}

.badge-amber {
  background: rgba(196, 137, 42, 0.12);
  color: #c4892a;
}

.badge-red {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.badge-grey {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: none;
}

.btn-primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.35);
}

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.45);
}

.btn-gold {
  background: var(--gold);
  color: white;
  box-shadow: 0 4px 20px rgba(196, 137, 42, 0.3);
}

.btn-gold:hover {
  background: #d4993a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 137, 42, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgba(11, 31, 58, 0.2);
}

.btn-ghost:hover {
  background: var(--navy-glow);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

@keyframes orbFloat {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }

  to {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes meshShift {
  0% {
    transform: scale(1) rotate(0deg);
  }

  100% {
    transform: scale(1.04) rotate(1deg);
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  80% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 4rem 1.5rem 6rem;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 55%, rgba(30, 74, 138, 0.9) 0%, transparent 65%),
    radial-gradient(ellipse 55% 75% at 85% 20%, rgba(11, 31, 58, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 60% 85%, rgba(196, 137, 42, 0.2) 0%, transparent 55%),
    linear-gradient(160deg, #06101e 0%, #0b1f3a 50%, #030b17 100%);
  animation: meshShift 16s ease-in-out infinite alternate;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: orbFloat var(--dur, 10s) ease-in-out infinite alternate;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(30, 74, 138, 0.4);
  top: -150px;
  left: -150px;
  --dur: 12s;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(196, 137, 42, 0.18);
  bottom: -80px;
  right: 5%;
  --dur: 15s;
  animation-delay: -5s;
}

.hero-orb-3 {
  width: 220px;
  height: 220px;
  background: rgba(30, 74, 138, 0.3);
  top: 35%;
  right: 22%;
  --dur: 9s;
  animation-delay: -2s;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  width: 100%;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  animation: fadeDown 0.8s var(--ease) both;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 600;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s var(--ease) 0.1s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  font-weight: 400;
  animation: fadeUp 0.9s var(--ease) 0.2s both;
}

.hero-search-wrap {
  max-width: 540px;
  margin: 0 auto;
  animation: fadeUp 0.9s var(--ease) 0.3s both;
}

.hero-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50px;
  padding: 6px 6px 6px 1.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.3s var(--ease);
}

.hero-search:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45), 0 0 0 3px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: white;
  min-width: 0;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.hero-search button {
  background: var(--gold);
  color: white;
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 16px rgba(196, 137, 42, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-search button:hover {
  background: #d4993a;
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(196, 137, 42, 0.6);
}

.hero-hints {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  animation: fadeUp 0.9s var(--ease) 0.4s both;
}

.hero-hint {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.hero-hint:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 4rem;
  animation: fadeUp 0.9s var(--ease) 0.5s both;
  flex-wrap: wrap;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: var(--r);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 130px;
  flex: 1;
  max-width: 200px;
}

.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeUp 1s 1.2s both;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 11px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

/* ── TRUST BAR ─────────────────────────────────────────────── */
.trust-bar {
  background: white;
  border-radius: var(--r-lg);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-icon {
  width: 42px;
  height: 42px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.trust-label {
  font-size: 0.78rem;
  color: var(--ink-70);
  margin-top: 0.1rem;
  font-weight: 400;
  line-height: 1.4;
}

/* ── CATEGORY CARDS ────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.cat-card {
  background: white;
  border-radius: var(--r);
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.cat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-navy);
}

.cat-card:hover::after {
  opacity: 1;
}

.cat-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
}

.cat-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

/* ── GRANT CARDS ───────────────────────────────────────────── */
.grants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.grant-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.grant-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-bright), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.grant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.grant-card:hover::after {
  transform: scaleX(1);
}

.gc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gc-provider {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-70);
}

.gc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.gc-summary {
  font-size: 0.875rem;
  color: var(--ink-70);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.gc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.1rem;
  position: relative;
}

.gc-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-15), transparent);
}

.gc-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.gc-eligibility {
  font-size: 0.75rem;
  color: var(--ink-70);
  font-weight: 500;
}

/* ── FEATURED STRIP ────────────────────────────────────────── */
.featured-strip {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(30, 74, 138, 0.8) 0%, transparent 60%), radial-gradient(ellipse at 85% 20%, rgba(196, 137, 42, 0.2) 0%, transparent 50%), linear-gradient(160deg, #0d2144, #0b1f3a);
  border-radius: var(--r-xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-navy);
}

.featured-strip::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196, 137, 42, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── HOW IT WORKS ──────────────────────────────────────────── */
.how-section {
  background: var(--parchment);
  border-radius: var(--r-xl);
  padding: 4rem;
  margin: 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.how-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(11, 31, 58, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--navy-bright), var(--gold));
  opacity: 0.25;
}

.step {
  text-align: center;
  padding: 1rem 0;
}

.step-num {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.step h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--ink-70);
  line-height: 1.7;
  font-weight: 400;
}

/* ── LIST PAGE HEADER ──────────────────────────────────────── */
.list-header {
  background: var(--navy);
  background-image: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(30, 74, 138, 0.8) 0%, transparent 60%), radial-gradient(ellipse 40% 60% at 100% 30%, rgba(196, 137, 42, 0.12) 0%, transparent 50%);
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.list-header-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.list-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb .sep {
  opacity: 0.45;
}

.list-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.list-header h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.list-header-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  margin-top: 0.5rem;
  font-weight: 400;
}

.list-header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 5px 5px 5px 1.2rem;
  max-width: 440px;
  margin-top: 2rem;
  transition: all 0.3s var(--ease);
}

.list-header-search:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.list-header-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  color: white;
  min-width: 0;
}

.list-header-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.list-header-search button {
  background: var(--navy-bright);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}

.list-header-search button:hover {
  background: var(--gold);
}

.active-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ── LIST LAYOUT ───────────────────────────────────────────── */
.list-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
  align-items: start;
  width: 100%;
}

/* ── FILTER PANEL ──────────────────────────────────────────── */
.filter-panel {
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.filter-panel-header {
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-panel-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-clear {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.filter-clear:hover {
  color: white;
}

.filter-body {
  padding: 1.5rem;
}

.filter-group {
  margin-bottom: 1.4rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-70);
  margin-bottom: 0.6rem;
}

.filter-group select {
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 0.9rem;
  background: var(--cream);
  border: none;
  border-radius: var(--r-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  color: var(--ink);
  outline: none;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--ink-15);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230a0f1e55' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.filter-group select:focus {
  box-shadow: inset 0 0 0 2px var(--navy-bright);
}

.filter-apply-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.25);
  margin-top: 0.5rem;
}

.filter-apply-btn:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.35);
}

/* ── RESULTS BAR ───────────────────────────────────────────── */
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  position: relative;
}

.results-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ink-15), transparent);
}

.results-count {
  font-size: 0.9rem;
  color: var(--ink-70);
}

.results-count strong {
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}

/* ── GRANT LIST ITEMS ──────────────────────────────────────── */
.grant-item {
  background: white;
  border-radius: var(--r-lg);
  padding: 1.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.grant-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--navy-bright), var(--gold));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}

.grant-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.grant-item:hover::before {
  transform: scaleY(1);
}

.gi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.gi-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.gi-provider {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-70);
}

.gi-cat {
  font-size: 0.7rem;
  color: var(--ink-70);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.gi-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.grant-item:hover .gi-title {
  color: var(--navy);
}

.gi-summary {
  font-size: 0.9rem;
  color: var(--ink-70);
  line-height: 1.65;
  margin-bottom: 1.1rem;
  font-weight: 400;
}

.gi-footer {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.gi-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.gi-detail {
  font-size: 0.78rem;
  color: var(--ink-70);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.gi-arrow {
  margin-left: auto;
  width: 32px;
  height: 32px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
  color: var(--ink-40);
}

.grant-item:hover .gi-arrow {
  background: var(--navy);
  color: white;
  transform: translateX(2px);
}

/* ── EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--ink-70);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ── DETAIL PAGE ───────────────────────────────────────────── */
.detail-hero {
  background: var(--navy);
  background-image: radial-gradient(ellipse 70% 100% at 0% 60%, rgba(30, 74, 138, 0.8) 0%, transparent 65%), radial-gradient(ellipse 50% 60% at 100% 0%, rgba(196, 137, 42, 0.1) 0%, transparent 50%);
  padding: 4rem 1.5rem 8rem;
  position: relative;
  overflow: hidden;
}

.detail-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.detail-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.detail-provider-tag {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
}

.detail-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 600;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-bottom: 1rem;
}

.detail-summary {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 580px;
  line-height: 1.75;
  font-weight: 400;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  max-width: 1100px;
  margin: -3rem auto 4rem;
  padding: 0 1.5rem;
  align-items: start;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.content-card {
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.content-card-header {
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--ink-15);
}

.content-card-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.content-card-title {
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-70);
  font-family: 'Outfit', sans-serif;
}

.content-card-body {
  padding: 1.75rem;
}

.content-card-body p {
  font-size: 0.925rem;
  line-height: 1.85;
  color: var(--ink-70);
  margin-bottom: 1rem;
  font-weight: 400;
}

.content-card-body p:last-child {
  margin-bottom: 0;
}

.key-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink-15);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.key-info-cell {
  background: var(--cream);
  padding: 1rem 1.25rem;
}

.ki-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-70);
  margin-bottom: 0.3rem;
}

.ki-value {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.disclaimer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--gold-pale);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
}

.disclaimer-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.disclaimer-text {
  font-size: 0.82rem;
  color: var(--ink-70);
  line-height: 1.65;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.amount-card {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 80% 20%, rgba(30, 74, 138, 0.8) 0%, transparent 60%);
  border-radius: var(--r-lg);
  padding: 2rem;
  color: white;
  box-shadow: var(--shadow-navy);
  position: relative;
  overflow: hidden;
}

.amount-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(196, 137, 42, 0.15);
  border-radius: 50%;
}

.amount-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
}

.amount-figure {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.amount-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.apply-card {
  padding: 1.5rem;
}

.apply-primary {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--navy);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: var(--r-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.3);
  margin-bottom: 0.75rem;
}

.apply-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.4);
}

.apply-secondary {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background: transparent;
  color: var(--navy);
  text-align: center;
  text-decoration: none;
  border-radius: var(--r-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  box-shadow: inset 0 0 0 1.5px rgba(11, 31, 58, 0.18);
}

.apply-secondary:hover {
  background: var(--navy-glow);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.details-list {
  padding: 0 1.5rem 1.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  font-size: 0.85rem;
  position: relative;
  gap: 0.75rem;
}

.detail-row+.detail-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ink-15), transparent);
}

.dr-label {
  color: var(--ink-70);
  font-weight: 500;
  flex-shrink: 0;
}

.dr-value {
  font-weight: 600;
  text-align: right;
}

.share-card {
  padding: 1.25rem 1.5rem;
}

.share-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-70);
  margin-bottom: 0.75rem;
}

.share-btns {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  flex: 1;
  padding: 0.6rem;
  background: var(--cream);
  border: none;
  border-radius: var(--r-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
  color: var(--ink);
}

.share-btn:hover {
  background: var(--parchment);
  transform: translateY(-1px);
}

.related-section {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.related-card {
  background: white;
  border-radius: var(--r);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  display: block;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.rc-provider {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-70);
  margin-bottom: 0.3rem;
}

.rc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.rc-amount {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

/* ── NEWSLETTER ────────────────────────────────────────────── */
.newsletter-section {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(30, 74, 138, 0.7) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(196, 137, 42, 0.15) 0%, transparent 50%), linear-gradient(160deg, #0d2144, #0b1f3a);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::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.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.newsletter-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 600;
  color: white;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 50px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1.2rem;
  background: transparent;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: white;
  outline: none;
  min-width: 0;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
  background: var(--gold);
  color: white;
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 16px rgba(196, 137, 42, 0.4);
  flex-shrink: 0;
}

.newsletter-form button:hover {
  background: #d4993a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(196, 137, 42, 0.5);
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: #050d18;
  background-image: radial-gradient(ellipse at 10% 80%, rgba(11, 31, 58, 0.6) 0%, transparent 50%);
  color: rgba(255, 255, 255, 0.38);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer-logo span {
  color: var(--gold);
}

footer p {
  font-size: 0.875rem;
  line-height: 1.8;
  max-width: 280px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

footer h4 {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  font-family: 'Outfit', sans-serif;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.6rem;
}

footer ul a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  font-weight: 400;
}

footer ul a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── ERROR PAGES ───────────────────────────────────────────── */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-code {
  font-family: 'Cormorant Garamond', serif;
  font-size: 8rem;
  font-weight: 700;
  color: var(--ink-15);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ── CATEGORY PAGE ─────────────────────────────────────────── */
.cat-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 5rem;
}

.cat-hero--energy {
  background: radial-gradient(ellipse 70% 80% at 0% 60%, rgba(14, 80, 50, 0.85) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 10%, rgba(196, 137, 42, 0.25) 0%, transparent 55%), linear-gradient(160deg, #051a0d 0%, #0b2d18 55%, #041008 100%);
}

.cat-hero--housing {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(11, 31, 80, 0.9) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.22) 0%, transparent 55%), linear-gradient(160deg, #05102a 0%, #0b1f3a 55%, #030917 100%);
}

.cat-hero--business {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(30, 58, 138, 0.9) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.22) 0%, transparent 55%), linear-gradient(160deg, #03051a 0%, #0a0f38 55%, #020310 100%);
}

.cat-hero--farming {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(21, 128, 61, 0.85) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.28) 0%, transparent 55%), linear-gradient(160deg, #031a08 0%, #0a2e12 55%, #010f04 100%);
}

.cat-hero--education {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(109, 40, 217, 0.75) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.2) 0%, transparent 55%), linear-gradient(160deg, #0d0318 0%, #1a0730 55%, #050010 100%);
}

.cat-hero--arts {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(190, 18, 60, 0.75) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.22) 0%, transparent 55%), linear-gradient(160deg, #1a0308 0%, #2d0a12 55%, #0f0205 100%);
}

.cat-hero--community {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(7, 89, 133, 0.85) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.22) 0%, transparent 55%), linear-gradient(160deg, #02101a 0%, #071e30 55%, #010810 100%);
}

.cat-hero--health {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(4, 120, 87, 0.85) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.2) 0%, transparent 55%), linear-gradient(160deg, #011a10 0%, #04301e 55%, #010f08 100%);
}

.cat-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.cat-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cat-hero__orb--1 {
  width: 450px;
  height: 450px;
  background: rgba(255, 255, 255, 0.1);
  top: -120px;
  right: -80px;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.cat-hero__orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(196, 137, 42, 0.12);
  bottom: -60px;
  left: 10%;
  animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}

.cat-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cat-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
  margin-top: 0.5rem;
}

.cat-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 600;
  color: white;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.cat-hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.cat-hero__sub {
  font-size: clamp(0.925rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 2rem;
}

.cat-hero .list-header-search {
  max-width: 460px;
  margin-bottom: 2.5rem;
  margin-top: 0;
}

.cat-hero__stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cat-hero__stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r);
  padding: 0.9rem 1.4rem;
  text-align: center;
  flex: 1;
  min-width: 100px;
  max-width: 200px;
}

.cat-hero__stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.cat-hero__stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.coverage-strip {
  background: white;
  border-bottom: 1px solid var(--ink-15);
  padding: 1rem 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.coverage-strip::-webkit-scrollbar {
  display: none;
}

.coverage-strip .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  min-width: max-content;
}

.coverage-strip__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-70);
  white-space: nowrap;
  flex-shrink: 0;
}

.coverage-strip__items {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.coverage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  white-space: nowrap;
}

.coverage-chip--energy {
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.coverage-chip--housing {
  background: rgba(11, 31, 58, 0.07);
  color: var(--navy-bright);
  border: 1px solid rgba(11, 31, 58, 0.12);
}

.coverage-chip--business {
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.coverage-chip--farming {
  background: rgba(101, 163, 13, 0.08);
  color: #4d7c0f;
  border: 1px solid rgba(101, 163, 13, 0.15);
}

.coverage-chip--education {
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.coverage-chip--arts {
  background: rgba(225, 29, 72, 0.07);
  color: #be185d;
  border: 1px solid rgba(225, 29, 72, 0.12);
}

.coverage-chip--community {
  background: rgba(14, 165, 233, 0.08);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.14);
}

.coverage-chip--health {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.14);
}

.cat-tip-banner {
  background: rgba(196, 137, 42, 0.05);
  border-top: 1px solid rgba(196, 137, 42, 0.15);
  padding: 1.25rem 1.5rem;
}

.cat-tip-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-70);
  line-height: 1.6;
  max-width: 1100px;
  margin: 0 auto;
}

.cat-tip-banner__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width:1100px) {
  .footer-inner {
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width:1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
    margin-top: -2rem;
  }

  .detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .amount-card {
    grid-column: 1 / -1;
  }

  .sidebar-card:nth-child(2) {
    grid-column: 1 / -1;
  }

  .grants-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .how-section {
    padding: 3rem 2.5rem;
  }
}

@media (max-width:900px) {
  .list-layout {
    display: block !important;
    padding: 0 1.25rem !important;
    margin: 1.5rem auto 3rem !important;
  }

  .filter-panel {
    margin-bottom: 1.5rem;
    width: 100%;
    position: static;
  }

  .filter-body {
    padding: 1.25rem;
  }

  .filter-body form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
  }

  .filter-group {
    margin-bottom: 0;
  }

  .filter-apply-btn {
    margin-top: 0;
    height: 42px;
    white-space: nowrap;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .steps-grid::before {
    display: none;
  }

  .trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
  }

  .hero-stat {
    min-width: calc(50% - 0.4rem);
    max-width: none;
    flex: 1 1 calc(50% - 0.4rem);
  }

  .cat-hero {
    padding: 3rem 1.25rem 4rem;
  }

  .cat-hero__stat {
    min-width: calc(33% - 0.5rem);
    max-width: none;
  }
}

@media (max-width:768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-wrapper {
    padding: 10px 14px;
  }

  .page-body {
    padding-top: 80px;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .section-sm {
    padding: 2rem 1.25rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .hero {
    min-height: 100svh;
    padding: 2rem 1.25rem 5rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-sub {
    font-size: 0.95rem;
    padding: 0;
    max-width: 100%;
  }

  .hero-pill {
    font-size: 0.7rem;
    padding: 0.4rem 0.9rem;
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--r);
    padding: 0.75rem;
    gap: 0.6rem;
  }

  .hero-search input {
    width: 100%;
    font-size: 1rem;
    padding: 0.5rem 0.25rem;
  }

  .hero-search button {
    width: 100%;
    border-radius: var(--r-sm);
    padding: 0.85rem;
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 0.5rem;
    margin-top: 2.5rem;
  }

  .hero-stat {
    min-width: calc(50% - 0.25rem);
    flex: 1 1 calc(50% - 0.25rem);
    max-width: none;
    padding: 0.85rem 0.75rem;
  }

  .hero-stat-num {
    font-size: 1.8rem;
  }

  .trust-bar {
    padding: 1.5rem;
    gap: 1rem;
  }

  .trust-item {
    width: 100%;
  }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }

  .cat-card {
    padding: 1rem 0.5rem;
  }

  .cat-icon {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
  }

  .cat-name {
    font-size: 0.75rem;
  }

  .grants-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .grant-card {
    padding: 1.25rem;
    border-radius: var(--r);
  }

  .gc-title {
    font-size: 1.1rem;
  }

  .featured-strip {
    padding: 1.75rem 1.25rem;
    border-radius: var(--r);
  }

  .how-section {
    padding: 2.5rem 1.25rem;
    margin: 0;
    border-radius: 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .step {
    text-align: left;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 0;
  }

  .step-num {
    margin: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .step>div {
    text-align: left;
  }

  .list-header {
    padding: 2.5rem 1.25rem 3.5rem;
  }

  .list-header h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .list-header-search {
    max-width: 100%;
  }

  .filter-body form {
    grid-template-columns: 1fr;
  }

  .filter-apply-btn {
    height: auto;
  }

  .list-layout {
    padding: 0 1.25rem;
    gap: 1.25rem;
    margin-bottom: 3rem;
  }

  .grant-item {
    padding: 1.25rem;
  }

  .gi-title {
    font-size: 1.1rem;
  }

  .gi-footer {
    gap: 0.75rem;
  }

  .gi-arrow {
    display: none;
  }

  .detail-hero {
    padding: 2.5rem 1.25rem 5rem;
  }

  .detail-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .detail-summary {
    font-size: 0.9rem;
  }

  .detail-layout {
    padding: 0 1.25rem;
    gap: 1.25rem;
    margin-bottom: 3rem;
  }

  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .content-card-body {
    padding: 1.25rem;
  }

  .content-card-header {
    padding: 1rem 1.25rem;
  }

  .amount-figure {
    font-size: 1.8rem;
  }

  .details-list {
    padding: 0 1.25rem 1.25rem;
  }

  .key-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-section {
    padding: 0 1.25rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-section {
    padding: 3.5rem 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-inner>div:first-child {
    grid-column: 1 / -1;
  }

  footer p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }

  .results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .filter-panel {
    border-radius: var(--r);
  }

  .cat-hero {
    padding: 2.5rem 1.25rem 3.5rem;
  }

  .cat-hero__title {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .cat-hero__sub {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .cat-hero__stats {
    gap: 0.5rem;
  }

  .cat-hero__stat {
    min-width: calc(33% - 0.35rem);
    max-width: none;
    flex: 1;
    padding: 0.75rem 0.6rem;
  }

  .cat-hero__stat-num {
    font-size: 1.5rem;
  }

  .cat-hero .list-header-search {
    max-width: 100%;
  }

  .coverage-strip {
    padding: 0.85rem 1rem;
  }

  .cat-tip-banner {
    padding: 1rem 1.25rem;
  }

  .cat-tip-banner__inner {
    font-size: 0.825rem;
  }
}

@media (max-width:540px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .key-info-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: var(--r);
    padding: 0.75rem;
    gap: 0.6rem;
  }

  .newsletter-form input {
    padding: 0.7rem 0.5rem;
    font-size: 1rem;
  }

  .newsletter-form button {
    border-radius: var(--r-sm);
    width: 100%;
    padding: 0.85rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .share-btns {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
    text-align: center;
    padding: 0.7rem;
  }

  .gi-meta {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .gi-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .detail-meta-row {
    gap: 0.4rem;
  }

  .breadcrumb {
    font-size: 0.72rem;
  }

  .active-filters {
    gap: 0.4rem;
  }

  .filter-chip {
    font-size: 0.7rem;
  }

  .gc-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .gc-footer::before {
    display: none;
  }

  .amount-card {
    padding: 1.5rem;
  }

  .amount-figure {
    font-size: 1.6rem;
  }

  .trust-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-num {
    margin: 0 auto 1rem;
  }

  .cat-hero__title {
    font-size: clamp(1.75rem, 10vw, 2.4rem);
  }

  .cat-hero__stat {
    min-width: calc(33% - 0.25rem);
    padding: 0.6rem 0.4rem;
  }

  .cat-hero__stat-num {
    font-size: 1.3rem;
  }

  .cat-hero__stat-label {
    font-size: 0.62rem;
  }
}

@media (max-width:375px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat {
    min-width: 100%;
    flex: 1 1 100%;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 12vw, 2.4rem);
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section-sm {
    padding: 1.75rem 1rem;
  }

  .grant-item {
    padding: 1rem;
  }

  .grant-card {
    padding: 1rem;
  }

  .content-card-body {
    padding: 1rem;
  }

  .content-card-header {
    padding: 0.85rem 1rem;
  }
}

/* ── CATEGORY PAGE ─────────────────────────────────────────── */
.cat-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 5rem;
}

.cat-hero--energy {
  background: radial-gradient(ellipse 70% 80% at 0% 60%, rgba(14, 80, 50, 0.85) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 10%, rgba(196, 137, 42, 0.25) 0%, transparent 55%), linear-gradient(160deg, #051a0d 0%, #0b2d18 55%, #041008 100%);
}

.cat-hero--housing {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(11, 31, 80, 0.9) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.22) 0%, transparent 55%), linear-gradient(160deg, #05102a 0%, #0b1f3a 55%, #030917 100%);
}

.cat-hero--business {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(30, 58, 138, 0.9) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.22) 0%, transparent 55%), linear-gradient(160deg, #03051a 0%, #0a0f38 55%, #020310 100%);
}

.cat-hero--farming {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(21, 128, 61, 0.85) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.28) 0%, transparent 55%), linear-gradient(160deg, #031a08 0%, #0a2e12 55%, #010f04 100%);
}

.cat-hero--education {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(109, 40, 217, 0.75) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.2) 0%, transparent 55%), linear-gradient(160deg, #0d0318 0%, #1a0730 55%, #050010 100%);
}

.cat-hero--arts {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(190, 18, 60, 0.75) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.22) 0%, transparent 55%), linear-gradient(160deg, #1a0308 0%, #2d0a12 55%, #0f0205 100%);
}

.cat-hero--community {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(7, 89, 133, 0.85) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.22) 0%, transparent 55%), linear-gradient(160deg, #02101a 0%, #071e30 55%, #010810 100%);
}

.cat-hero--health {
  background: radial-gradient(ellipse 65% 80% at 0% 55%, rgba(4, 120, 87, 0.85) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 95% 15%, rgba(196, 137, 42, 0.2) 0%, transparent 55%), linear-gradient(160deg, #011a10 0%, #04301e 55%, #010f08 100%);
}

.cat-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.cat-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cat-hero__orb--1 {
  width: 450px;
  height: 450px;
  background: rgba(255, 255, 255, 0.1);
  top: -120px;
  right: -80px;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.cat-hero__orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(196, 137, 42, 0.12);
  bottom: -60px;
  left: 10%;
  animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}

.cat-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cat-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
  margin-top: 0.5rem;
}

.cat-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 600;
  color: white;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.cat-hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.cat-hero__sub {
  font-size: clamp(0.925rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 2rem;
}

.cat-hero .list-header-search {
  max-width: 460px;
  margin-bottom: 2.5rem;
  margin-top: 0;
}

.cat-hero__stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cat-hero__stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r);
  padding: 0.9rem 1.4rem;
  text-align: center;
  flex: 1;
  min-width: 100px;
  max-width: 200px;
}

.cat-hero__stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.cat-hero__stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.coverage-strip {
  background: white;
  border-bottom: 1px solid var(--ink-15);
  padding: 1rem 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.coverage-strip::-webkit-scrollbar {
  display: none;
}

.coverage-strip .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  min-width: max-content;
}

.coverage-strip__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-70);
  white-space: nowrap;
  flex-shrink: 0;
}

.coverage-strip__items {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.coverage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  white-space: nowrap;
}

.coverage-chip--energy {
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.coverage-chip--housing {
  background: rgba(11, 31, 58, 0.07);
  color: var(--navy-bright);
  border: 1px solid rgba(11, 31, 58, 0.12);
}

.coverage-chip--business {
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.coverage-chip--farming {
  background: rgba(101, 163, 13, 0.08);
  color: #4d7c0f;
  border: 1px solid rgba(101, 163, 13, 0.15);
}

.coverage-chip--education {
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.coverage-chip--arts {
  background: rgba(225, 29, 72, 0.07);
  color: #be185d;
  border: 1px solid rgba(225, 29, 72, 0.12);
}

.coverage-chip--community {
  background: rgba(14, 165, 233, 0.08);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.14);
}

.coverage-chip--health {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.14);
}

.cat-tip-banner {
  background: rgba(196, 137, 42, 0.05);
  border-top: 1px solid rgba(196, 137, 42, 0.15);
  padding: 1.25rem 1.5rem;
}

.cat-tip-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-70);
  line-height: 1.6;
  max-width: 1100px;
  margin: 0 auto;
}

.cat-tip-banner__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Category responsive */
@media (max-width:900px) {
  .cat-hero {
    padding: 3rem 1.25rem 4rem;
  }

  .cat-hero__stat {
    min-width: calc(33% - 0.5rem);
    max-width: none;
  }
}

@media (max-width:768px) {
  .cat-hero {
    padding: 2.5rem 1.25rem 3.5rem;
  }

  .cat-hero__title {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .cat-hero__sub {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .cat-hero__stats {
    gap: 0.5rem;
  }

  .cat-hero__stat {
    min-width: calc(33% - 0.35rem);
    max-width: none;
    flex: 1;
    padding: 0.75rem 0.6rem;
  }

  .cat-hero__stat-num {
    font-size: 1.5rem;
  }

  .cat-hero .list-header-search {
    max-width: 100%;
  }

  .coverage-strip {
    padding: 0.85rem 1rem;
  }

  .cat-tip-banner {
    padding: 1rem 1.25rem;
  }
}

@media (max-width:480px) {
  .cat-hero__title {
    font-size: clamp(1.75rem, 10vw, 2.4rem);
  }

  .cat-hero__stat {
    min-width: calc(33% - 0.25rem);
    padding: 0.6rem 0.4rem;
  }

  .cat-hero__stat-num {
    font-size: 1.3rem;
  }

  .cat-hero__stat-label {
    font-size: 0.62rem;
  }
}

/* ── FOOTER BRAND (logo + text) ──────────────────────────────── */
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-logo {
  margin-bottom: 0.5rem;
}

/* ── NAV LOGO IMAGE ──────────────────────────────────────────── */
.nav-logo-img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  object-fit: contain;
  margin-right: 0.4rem;
  display: block;
  flex-shrink: 0;
}


/* About page styles - add to main.css */
.about-hero {
  background: var(--navy);
  background-image: radial-gradient(ellipse 70% 80% at 0% 60%, rgba(30,74,138,0.8) 0%, transparent 60%),
                    radial-gradient(ellipse 40% 50% at 100% 30%, rgba(196,137,42,0.2) 0%, transparent 50%),
                    linear-gradient(160deg, #0b1f3a, #06101e);
  padding: 4rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}

.about-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.about-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.about-hero__orb--1 {
  width: 400px; height: 400px;
  background: rgba(30,74,138,0.3);
  top: -100px; left: -100px;
}

.about-hero__orb--2 {
  width: 350px; height: 350px;
  background: rgba(196,137,42,0.1);
  bottom: -80px; right: 5%;
}

.about-hero__inner {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.about-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.about-hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.about-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 520px;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.mission-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.mission-stat-label {
  font-size: 0.75rem;
  color: var(--ink-70);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mission-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.mission-quote-icon {
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(255,255,255,0.1);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
}

.mission-quote {
  font-size: 1.25rem;
  line-height: 1.5;
  color: white;
  position: relative;
  z-index: 1;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.mission-quote-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
}

.mission-quote-author {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.offers-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.offer-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.offer-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.how-simple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.simple-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.simple-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.simple-step-num {
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.how-simple-visual {
  background: var(--parchment);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
}

.how-simple-img {
  max-width: 150px;
  margin-bottom: 1rem;
  border-radius: 20px;
}

.how-simple-badge {
  display: inline-block;
  background: var(--gold);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.trust-item-large {
  display: flex;
  gap: 1rem;
  text-align: left;
  background: white;
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.trust-icon-large {
  width: 50px;
  height: 50px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.story-visual {
  background: var(--parchment);
  border-radius: var(--r-lg);
  padding: 2rem;
}

.story-card {
  text-align: center;
  padding: 1rem;
}

.story-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.story-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.story-card-footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.cta-section {
  padding: 4rem 1.5rem;
  background: var(--navy);
}

.cta-card {
  background: white;
  border-radius: var(--r-xl);
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .mission-grid, .how-simple-grid, .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-card {
    padding: 2rem;
  }
}


/*About us */
 
/* Contact page styles - add to main.css */
.contact-hero {
  background: var(--navy);
  background-image: radial-gradient(ellipse 70% 80% at 0% 60%, rgba(30,74,138,0.8) 0%, transparent 60%),
                    radial-gradient(ellipse 40% 50% at 100% 30%, rgba(196,137,42,0.2) 0%, transparent 50%),
                    linear-gradient(160deg, #0b1f3a, #06101e);
  padding: 4rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}

.contact-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.contact-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.contact-hero__orb--1 {
  width: 400px; height: 400px;
  background: rgba(30,74,138,0.3);
  top: -100px; left: -100px;
}

.contact-hero__orb--2 {
  width: 350px; height: 350px;
  background: rgba(196,137,42,0.1);
  bottom: -80px; right: 5%;
}

.contact-hero__inner {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.contact-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.contact-hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.contact-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 520px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
}

.contact-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card > p {
  color: var(--ink-70);
  margin-bottom: 1.5rem;
}

.contact-form {
  margin-top: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.optional {
  color: var(--ink-70);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ink-15);
  border-radius: var(--r-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  background: var(--cream);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-note {
  margin: 1rem 0;
  font-size: 0.75rem;
  color: var(--ink-70);
}

.btn-submit {
  width: 100%;
  justify-content: center;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.contact-info-icon {
  font-size: 1.5rem;
}

.contact-info-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: var(--ink-70);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.contact-email {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.contact-email:hover {
  color: var(--gold);
}

.contact-response-time {
  font-size: 0.7rem;
  color: var(--ink-70);
  margin-top: 0.5rem;
}

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.social-link {
  padding: 0.4rem 1rem;
  background: var(--cream);
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--navy);
  font-weight: 500;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--navy);
  color: white;
}

.contact-faq-list {
  list-style: none;
  padding: 0;
}

.contact-faq-list li {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--ink-15);
}

.contact-faq-list li:last-child {
  border-bottom: none;
}

.contact-faq-list a {
  color: var(--navy);
  text-decoration: none;
}

.contact-faq-list a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.25rem;
}

.faq-item {
  background: white;
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.faq-icon {
  font-size: 1.25rem;
}

.faq-question h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.faq-answer p {
  font-size: 0.85rem;
  color: var(--ink-70);
  line-height: 1.6;
  margin-left: 1.85rem;
}

.hours-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: white;
}

.hours-icon {
  font-size: 3rem;
}

.hours-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.hours-content p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
}

.hours-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.9);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 3rem 1.25rem 4rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .hours-card {
    flex-direction: column;
    text-align: center;
  }
  
  .faq-question {
    flex-direction: column;
    text-align: center;
  }
  
  .faq-answer p {
    margin-left: 0;
    text-align: center;
  }
}
 



/*privacy */
 
.legal-hero {
  background: var(--navy);
  background-image: radial-gradient(ellipse 70% 80% at 0% 60%, rgba(30,74,138,0.8) 0%, transparent 60%),
                    radial-gradient(ellipse 40% 50% at 100% 30%, rgba(196,137,42,0.2) 0%, transparent 50%),
                    linear-gradient(160deg, #0b1f3a, #06101e);
  padding: 4rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}

.legal-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.legal-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.legal-hero__orb--1 {
  width: 400px; height: 400px;
  background: rgba(30,74,138,0.3);
  top: -100px; left: -100px;
}

.legal-hero__orb--2 {
  width: 350px; height: 350px;
  background: rgba(196,137,42,0.1);
  bottom: -80px; right: 5%;
}

.legal-hero__inner {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.legal-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.legal-hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.legal-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 520px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
}

.legal-sidebar__inner {
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.legal-sidebar__nav {
  padding: 1rem 0;
}

.legal-nav-link {
  display: block;
  padding: 0.7rem 1.5rem;
  color: var(--ink-70);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.legal-nav-link:hover {
  color: var(--navy);
  background: var(--navy-glow);
  border-left-color: var(--gold);
}

.legal-nav-link.active {
  color: var(--navy);
  background: var(--navy-glow);
  border-left-color: var(--gold);
  font-weight: 600;
}

.legal-content {
  min-width: 0;
}

.legal-section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.legal-section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.legal-section__title em {
  color: var(--gold);
  font-style: italic;
}

.legal-card {
  background: white;
  border-radius: var(--r);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.legal-card--warning {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.legal-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.legal-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.legal-card p {
  font-size: 0.9rem;
  color: var(--ink-70);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  margin-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-card li {
  font-size: 0.9rem;
  color: var(--ink-70);
  line-height: 1.65;
  margin-bottom: 0.25rem;
}

.legal-card a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.legal-card a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.legal-contact-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-15);
}

.legal-footer-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--parchment);
  border-radius: var(--r);
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-70);
}

/* Responsive */
@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .legal-sidebar {
    position: static;
  }
  
  .legal-sidebar__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem;
  }
  
  .legal-nav-link {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border-left: none;
    font-size: 0.8rem;
  }
  
  .legal-nav-link:hover,
  .legal-nav-link.active {
    background: var(--navy-glow);
    border-left-color: transparent;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 3rem 1.25rem 4rem;
  }
  
  .legal-card {
    padding: 1.25rem;
  }
  
  .legal-card--warning {
    flex-direction: column;
  }
}
 
/* ── COOKIE CONSENT BANNER ───────────────────────────────── */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 10000;
  padding: 1rem 1.5rem;
  border-top: 3px solid var(--gold);
  display: none;  /* hidden by default, shown via JS */
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
}

.cookie-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.cookie-consent p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-70);
  line-height: 1.5;
  flex: 1;
}

.cookie-consent a {
  color: var(--gold);
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-consent a:hover {
  color: var(--navy);
}

.cookie-consent__buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-consent .btn {
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .cookie-consent {
    padding: 0.75rem 1rem;
  }
  .cookie-consent__inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent p {
    margin-bottom: 0.5rem;
  }
  .cookie-consent__buttons {
    width: 100%;
    justify-content: center;
  }
}/* ── COOKIE CONSENT BANNER ───────────────────────────────── */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 10000;
  padding: 1rem 1.5rem;
  border-top: 3px solid var(--gold);
  display: none;  /* hidden by default, shown via JS */
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
}

.cookie-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.cookie-consent p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-70);
  line-height: 1.5;
  flex: 1;
}

.cookie-consent a {
  color: var(--gold);
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-consent a:hover {
  color: var(--navy);
}

.cookie-consent__buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-consent .btn {
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .cookie-consent {
    padding: 0.75rem 1rem;
  }
  .cookie-consent__inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent p {
    margin-bottom: 0.5rem;
  }
  .cookie-consent__buttons {
    width: 100%;
    justify-content: center;
  }
}