/* ============================================
   Children Without Frontiers Trust
   Editorial NGO design — navy, cream, terracotta
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --navy: #1a2942;
  --navy-deep: #0f1a2e;
  --navy-light: #2d3f5f;
  --cream: #f5efe3;
  --cream-light: #faf6ed;
  --cream-dark: #ebe2d0;
  --terracotta: #c87456;
  --terracotta-dark: #a85d40;
  --terracotta-light: #e09478;
  --ink: #1a1a1a;
  --muted: #6b6657;
  --line: #d8cfbe;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;

  --max-width: 1280px;
  --section-pad: clamp(4rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 500;
}

h4 {
  font-size: 1.15rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.italic {
  font-style: italic;
  font-family: var(--serif);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding: var(--section-pad) 0;
}

/* --- Top bar / nav --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 227, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.nav-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text small {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  transition: color 0.2s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--terracotta);
}

.nav-cta {
  background: var(--navy);
  color: var(--cream);
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: all 0.3s ease;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--cream-light);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(168, 93, 64, 0.5);
}

.btn-secondary {
  background: var(--navy);
  color: var(--cream-light);
}

.btn-secondary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--cream);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  transition: all 0.25s ease;
}

.btn-arrow:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
  gap: 0.85rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(5rem, 12vw, 9rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.hero h1 .accent {
  font-style: italic;
  font-weight: 300;
  color: var(--terracotta);
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/4.5;
  background: var(--navy);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -30px rgba(26, 41, 66, 0.35),
    0 0 0 1px rgba(26, 41, 66, 0.05);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(200, 116, 86, 0.28), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(245, 239, 227, 0.08), transparent 55%);
  z-index: 1;
}

.hero-visual::after {
  /* Soft inner glow for depth — softens the hard rectangle feel */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 80px rgba(26, 41, 66, 0.4);
  pointer-events: none;
  z-index: 1;
}

.hero-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  z-index: 2;
}

.hero-visual img {
  width: 70%;
  max-width: 300px;
  /* Tints the navy logo to a soft cream tone to read on the dark navy panel */
  filter: brightness(0) saturate(100%) invert(94%) sepia(8%) saturate(550%) hue-rotate(8deg) brightness(99%) contrast(94%);
  opacity: 0.95;
}

/* New separated stats bubble (not inside the hero panel anymore) */
.hero-stats-bubble {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 3rem);
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
  box-shadow: 0 12px 32px -20px rgba(26, 41, 66, 0.18);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.hero-stat-num {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.6rem;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .hero-stats-bubble {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .hero-stat-divider {
    width: 36px;
    height: 1px;
  }
}

/* --- Decorative element --- */
.deco-line {
  width: 60px;
  height: 1px;
  background: var(--terracotta);
  margin: 0 0 1.5rem 0;
}

.deco-line.center {
  margin: 0 auto 1.5rem;
}

/* --- Section header --- */
.section-header {
  max-width: 720px;
  margin-bottom: 4rem;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 1.25rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.075rem;
}

/* --- Mission strip --- */
.mission-strip {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.mission-strip::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(200, 116, 86, 0.18), transparent 70%);
  pointer-events: none;
}

.mission-strip .container {
  position: relative;
}

.mission-strip h2 {
  color: var(--cream);
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  font-weight: 300;
  max-width: 900px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.mission-strip h2 .accent {
  font-style: italic;
  color: var(--terracotta-light);
}

.mission-strip .eyebrow {
  color: var(--terracotta-light);
}

/* --- Programs grid --- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.program-card {
  background: var(--cream-light);
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(26, 41, 66, 0.15);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-num {
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
  display: block;
  font-style: italic;
}

.program-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.program-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Approach grid (new card style with separated circle + rounded rectangle) --- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
  margin-top: 1rem;
}

.approach-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.approach-card:hover {
  transform: translateY(-4px);
}

.approach-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--terracotta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  align-self: flex-start;
  box-shadow: 0 6px 18px -8px rgba(26, 41, 66, 0.35);
  transition: all 0.3s ease;
}

.approach-card:hover .approach-num {
  background: var(--terracotta);
  color: var(--cream);
  transform: scale(1.05);
}

.approach-body {
  background: var(--navy);
  color: var(--cream);
  padding: 1.75rem 1.85rem 2rem;
  border-radius: 18px;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.approach-body::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(200, 116, 86, 0.18), transparent 65%);
  pointer-events: none;
}

.approach-body h3 {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
  position: relative;
}

.approach-body p {
  color: rgba(245, 239, 227, 0.78);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  position: relative;
}

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

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

/* --- Two column --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.two-col.flip { grid-template-columns: 1fr 1fr; }

.two-col-image {
  aspect-ratio: 4/4.5;
  background: var(--navy);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 48px -24px rgba(26, 41, 66, 0.32),
    0 0 0 1px rgba(26, 41, 66, 0.04);
}

.two-col-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 70px rgba(26, 41, 66, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* --- Partners --- */
.partners {
  background: var(--cream-dark);
}

.partner-card {
  background: var(--cream-light);
  padding: 3rem;
  border-radius: 16px;
  border-left: 3px solid var(--terracotta);
}

.partner-card h3 {
  margin-bottom: 0.5rem;
}

.partner-location {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: block;
  font-weight: 600;
}

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

/* --- Values list --- */
.values-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  background: transparent;
  border: none;
}

.value-item {
  background: var(--cream-light);
  padding: 2.25rem 2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.value-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.value-item:hover {
  transform: translateY(-3px);
  border-color: var(--terracotta-light);
  box-shadow: 0 14px 32px -16px rgba(26, 41, 66, 0.18);
}

.value-item:hover::before {
  transform: scaleX(1);
}

.value-item .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 1rem;
}

.value-item h4 {
  margin-bottom: 0.75rem;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  font-size: 1.2rem;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .values-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .values-list { grid-template-columns: 1fr; }
}

/* --- CTA section --- */
.cta-section {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(200, 116, 86, 0.15), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(200, 116, 86, 0.08), transparent 50%);
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: var(--cream);
  font-weight: 300;
  margin-bottom: 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section h2 .accent {
  font-style: italic;
  color: var(--terracotta-light);
}

.cta-section p {
  color: rgba(245, 239, 227, 0.8);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

/* --- Footer --- */
.footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1) opacity(0.95);
}

.footer-brand p {
  color: rgba(245, 239, 227, 0.65);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer h4 {
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: rgba(245, 239, 227, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--terracotta-light);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 239, 227, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(245, 239, 227, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Page header (for non-home pages) --- */
.page-header {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(200, 116, 86, 0.2), transparent 50%);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header .eyebrow {
  color: var(--terracotta-light);
}

.page-header h1 {
  color: var(--cream);
  font-weight: 300;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.page-header h1 .accent {
  font-style: italic;
  color: var(--terracotta-light);
}

.page-header p {
  color: rgba(245, 239, 227, 0.78);
  font-size: 1.1rem;
  max-width: 620px;
  line-height: 1.6;
}

/* --- Prose / content blocks --- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.prose ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose .lead {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* --- Donate page specific --- */
.donate-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.tier {
  background: var(--cream-light);
  border: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.tier:hover {
  border-color: var(--terracotta);
  transform: translateY(-3px);
}

.tier-amount {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--navy);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.tier-amount .currency {
  font-size: 1.2rem;
  color: var(--terracotta);
  vertical-align: top;
  margin-right: 4px;
}

.tier h4 {
  font-family: var(--serif);
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.tier p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* --- Contact form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 100px;
}

.contact-info h3 {
  margin-bottom: 2rem;
}

.contact-detail {
  margin-bottom: 2rem;
}

.contact-detail .label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.contact-detail a, .contact-detail p {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0;
}

.contact-detail a:hover { color: var(--terracotta); }

.contact-form {
  background: var(--cream-light);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--terracotta);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

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

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  aspect-ratio: 4/5;
  background: var(--navy-light);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item.wide { aspect-ratio: 3/2; }
.gallery-item.tall { aspect-ratio: 3/4; }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 41, 66, 0.4), rgba(200, 116, 86, 0.3));
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 0.7;
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 239, 227, 0.6);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  z-index: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: var(--cream);
  z-index: 2;
}

.gallery-caption h4 {
  font-family: var(--serif);
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.gallery-caption p {
  font-size: 0.8rem;
  color: rgba(245, 239, 227, 0.8);
  margin: 0;
}

/* --- Get Involved cards --- */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.involve-card {
  background: var(--cream-light);
  border: 1px solid var(--line);
  padding: 2.5rem;
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.involve-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-3px);
}

.involve-card .icon {
  width: 48px;
  height: 48px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--terracotta);
  font-style: italic;
}

.involve-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.involve-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* --- Quote block --- */
.quote-block {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.quote-block blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.quote-block cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.quote-block cite::before {
  content: '— ';
}

/* --- Map regions --- */
.regions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.region-card {
  background: var(--cream-light);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  position: relative;
}

.region-card .country {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
  display: block;
  letter-spacing: 0.05em;
}

.region-card h3 {
  margin-bottom: 1rem;
}

.region-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.region-detail {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-up {
  animation: fadeUp 0.8s ease-out both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 3/2; max-height: 480px; }
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; }
  .partners-grid { grid-template-columns: 1fr; }
  .regions-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--line);
    gap: 1.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}

/* --- Objectives page --- */
.objectives-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
}

.objective {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.objective:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.objective-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 100px;
}

.objective-number {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--terracotta);
  letter-spacing: -0.02em;
  line-height: 1;
}

.objective-content h2 {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.objective-content p.lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.objective-content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .objective {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .objective-marker {
    position: static;
    justify-content: flex-start;
  }
  .objective-number {
    font-size: 3rem;
  }
}

/* ============================================================
   PHOTOGRAPHY LAYER — added to weave real photos throughout
   Navy overlays keep text legible & the look cohesive.
   ============================================================ */

/* --- Hero: photo inside the framed panel --- */
.hero-visual.has-photo { background: var(--navy); }
.hero-visual .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
  filter: none;
  opacity: 1;
  z-index: 0;
}
.hero-visual.has-photo::before {
  /* brand tint + bottom legibility wash, lifted above the photo */
  z-index: 2;
  background:
    linear-gradient(to top, rgba(15, 26, 46, 0.6), transparent 48%),
    radial-gradient(circle at 30% 18%, rgba(200, 116, 86, 0.26), transparent 55%);
}
.hero-visual.has-photo::after { z-index: 2; }

/* --- Full-width photo band (after the mission strip) --- */
.photo-band {
  position: relative;
  height: clamp(340px, 46vw, 560px);
  overflow: hidden;
}
.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.photo-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(15, 26, 46, 0.82), rgba(15, 26, 46, 0.25) 55%, rgba(15, 26, 46, 0.05)),
    linear-gradient(to top, rgba(15, 26, 46, 0.5), transparent 40%);
}
.photo-band .container {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  z-index: 2;
}
.photo-band .eyebrow { color: var(--terracotta-light); }
.photo-band h2 {
  color: var(--cream);
  font-weight: 300;
  max-width: 620px;
  letter-spacing: -0.02em;
}
.photo-band p {
  color: rgba(245, 239, 227, 0.85);
  max-width: 480px;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* --- Three-up photo strip --- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.photo-strip figure {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 18px 40px -28px rgba(26, 41, 66, 0.4);
}
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.photo-strip figure:hover img { transform: scale(1.04); }
.photo-strip figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.25rem 1rem;
  color: var(--cream);
  font-size: 0.85rem;
  background: linear-gradient(to top, rgba(15, 26, 46, 0.8), transparent);
  z-index: 2;
}

/* --- CTA section with a photo behind --- */
.cta-section.has-photo .cta-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  opacity: 0.55;
}
.cta-section.has-photo::before {
  z-index: 1;
  background:
    linear-gradient(rgba(15, 26, 46, 0.82), rgba(15, 26, 46, 0.88)),
    radial-gradient(circle at 20% 50%, rgba(200, 116, 86, 0.18), transparent 50%);
}

/* --- Page header with a photo behind --- */
.page-header.has-photo .ph-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  z-index: 0;
  opacity: 0.5;
}
.page-header.has-photo::before {
  z-index: 1;
  background:
    linear-gradient(rgba(15, 26, 46, 0.78), rgba(15, 26, 46, 0.9)),
    radial-gradient(circle at 80% 20%, rgba(200, 116, 86, 0.18), transparent 50%);
}

/* --- Gallery: real images + legibility scrim --- */
.gallery-item .gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-item:hover .gallery-img { transform: scale(1.05); }
.gallery-item.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 46, 0.8), transparent 55%);
  z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 760px) {
  .photo-strip { grid-template-columns: 1fr; }
  .photo-band { height: clamp(300px, 70vw, 420px); }
}

/* Centered photo band — even vertical scrim so centered text reads everywhere */
.photo-band.band-center::after {
  background:
    linear-gradient(rgba(15, 26, 46, 0.55), rgba(15, 26, 46, 0.72)),
    radial-gradient(circle at 50% 50%, rgba(15, 26, 46, 0.15), transparent 70%);
}
.photo-band.band-center .container { align-items: center; text-align: center; }

/* ============================================================
   GALLERY CAROUSEL — shows the full photo set
   ============================================================ */
.carousel { position: relative; }

.carousel-stage {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--navy);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(26, 41, 66, 0.45), 0 0 0 1px rgba(26, 41, 66, 0.05);
}
.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}
.carousel-slide.active { opacity: 1; visibility: visible; }
.cs-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) brightness(0.45) saturate(1.1);
  transform: scale(1.15);
}
.cs-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 239, 227, 0.92);
  color: var(--navy);
  box-shadow: 0 6px 20px -6px rgba(15, 26, 46, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-arrow:hover { background: var(--cream); transform: translateY(-50%) scale(1.06); }
.carousel-arrow.prev { left: 1rem; }
.carousel-arrow.next { right: 1rem; }

/* Caption + counter bar */
.carousel-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(15, 26, 46, 0.85), transparent);
  color: var(--cream);
}
.carousel-caption { font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.carousel-counter {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(245, 239, 227, 0.8);
  white-space: nowrap;
}

/* Thumbnail strip */
.carousel-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding: 0.35rem 0.1rem 0.6rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.carousel-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 60px;
  border-radius: 9px;
  overflow: hidden;
  opacity: 0.55;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity 0.2s ease, outline-color 0.2s ease;
  padding: 0;
}
.carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-thumb:hover { opacity: 0.85; }
.carousel-thumb.active { opacity: 1; outline-color: var(--terracotta); }

@media (max-width: 720px) {
  .carousel-stage { aspect-ratio: 4/5; }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-caption { font-size: 0.9rem; }
  .carousel-thumb { width: 64px; height: 46px; }
}

/* ===== Trip recap rows ===== */
.trip-row { margin-bottom: clamp(3rem, 7vw, 5rem); }
.trip-row:last-child { margin-bottom: 0; }
.trip-row .two-col-image { aspect-ratio: 4/3.2; }
.trip-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 300;
  color: var(--terracotta);
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}
@media (min-width: 861px) {
  .trip-row.flip .two-col-image { order: 2; }
}

/* ===== Fundraiser subsection ===== */
.fundraiser {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-top: 4px solid var(--terracotta);
  border-radius: 16px;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 24px 48px -30px rgba(26, 41, 66, 0.35);
}
.fundraiser .eyebrow { color: var(--terracotta); }
.fundraiser h2 { margin: 0.75rem 0 1rem; }
.fundraiser p { color: var(--muted); max-width: 540px; margin: 0 auto 2rem; }
.fundraiser-note {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
