/* ============================================
   CGM Climate Foundation — Clean, Non-Commercial
   ============================================ */

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

:root {
  --clr-bg: #fafaf8;
  --clr-bg-dark: #1a1f2e;
  --clr-bg-dark-alt: #232839;
  --clr-surface: #ffffff;
  --clr-border: #e5e5e0;
  --clr-text: #2c2c2c;
  --clr-text-light: #f0f0ec;
  --clr-text-muted: #6b6b6b;
  --clr-text-muted-light: #a0a0a0;
  --clr-accent: #2d6a4f;
  --clr-accent-light: #40916c;
  --clr-danger: #c0392b;
  --clr-amber: #b8860b;
  --clr-hope: #5b6abf;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --section-pad: clamp(3.5rem, 8vw, 6rem);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--clr-accent-light); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.text-center { text-align: center; }

.content-narrow { max-width: 750px; margin-left: auto; margin-right: auto; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.9rem 0;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  transition: padding 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

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

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
}

.logo-cgm {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-accent);
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.nav-links a {
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--clr-surface);
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 1.5rem;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    border-left: 1px solid var(--clr-border);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: flex; }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}

.btn-primary:hover {
  background: var(--clr-accent-light);
  border-color: var(--clr-accent-light);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn-full { width: 100%; }

.text-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--clr-accent);
}

.text-link:hover { text-decoration: underline; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(26, 31, 46, 0.3) 0%,
    rgba(26, 31, 46, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

.hero-arc {
  display: block;
  margin: 0 auto 0.5rem;
  overflow: visible;
}

.hero-arc--top {
  width: min(500px, 80vw);
  height: auto;
}

.arc-text-top {
  fill: rgba(255,255,255,0.95);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-sub--cta {
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; /* Slightly more breathing room */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10; /* Higher z-index to stay on top */
  cursor: pointer;
}

.scroll-indicator svg {
  /* Increase size */
  width: 50px; 
  height: 50px;
  
  /* Increase visual weight */
  stroke: #ffffff; /* Pure white for max contrast */
  stroke-width: 4px; /* Thicker lines */
  
  /* Add depth so it's visible over images/text */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover svg {
  opacity: 1;
  stroke-width: 5px; /* Subtle feedback on hover */
}

@keyframes scrollBounce {
  0%, 100% { 
    transform: translateY(0); 
    opacity: 0.7; 
  }
  50% { 
    transform: translateY(12px); /* Slightly deeper bounce */
    opacity: 1; 
  }
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 8rem 0 3rem;
  background: var(--clr-bg-dark);
  color: var(--clr-text-light);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-muted-light);
  max-width: 600px;
  line-height: 1.7;
}

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

.section-dark {
  background: var(--clr-bg-dark);
  color: var(--clr-text-light);
}

.section-dark .clr-text-muted,
.section-dark p { color: rgba(240,240,236,0.75); }
.section-dark h2, .section-dark h3 { color: var(--clr-text-light); }
.section-dark a { color: #7ec8a0; }
.section-dark .label { border-color: rgba(255,255,255,0.2); color: #7ec8a0; }

.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--clr-accent);
  border-radius: 3px;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.section-dark .section-intro { color: rgba(240,240,236,0.7); }

blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--clr-accent);
  border-left: 3px solid var(--clr-accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.section-dark blockquote { color: #7ec8a0; border-color: #7ec8a0; }

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

.col-text p {
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}

.col-image img {
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* --- Phase Rows (Full-width alternating layout) --- */
.phase-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 400px;
  gap: 0;
  max-width: var(--max-width);
  margin: 1.5rem auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.phase-row-reverse {
  direction: rtl;
}

.phase-row-reverse > * {
  direction: ltr;
}

.phase-image {
  overflow: hidden;
  border-radius: 16px;
}

.phase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phase-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.section-dark .phase-text h3 {
  color: var(--clr-text-light);
}

.phase-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.phase-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--clr-text-muted);
}

.section-dark .phase-text p {
  color: rgba(240,240,236,0.7);
}

@media (max-width: 768px) {
  .phase-row,
  .phase-row-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .phase-image {
    height: 280px;
  }
}

/* --- Phase Cards (kept for fallback) --- */
.phase-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .phase-cards { grid-template-columns: 1fr; }
}

.phase-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s;
}

.section:not(.section-dark) .phase-card {
  background: var(--clr-surface);
  border-color: var(--clr-border);
}

.phase-card:hover { transform: translateY(-3px); }

.phase-visual {
  height: 200px;
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.phase-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.phase-green { background: linear-gradient(135deg, #e8f5e9, #b2dfdb, #e3f2fd); }
.phase-amber { background: linear-gradient(135deg, #bcaaa4, #8d6e63, #d7ccc8); }
.phase-red { background: linear-gradient(135deg, #5d4037, #3e2723, #6d4c41); }
.phase-grey { background: linear-gradient(135deg, #78909c, #546e7a, #90a4ae); }
.phase-hope { background: linear-gradient(135deg, #00c853, #00bfa5, #b9f6ca); }

.phase-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.tag-green { background: rgba(45,106,79,0.15); color: #2d6a4f; }
.tag-amber { background: rgba(184,134,11,0.15); color: #b8860b; }
.tag-red { background: rgba(192,57,43,0.15); color: #c0392b; }
.tag-grey { background: rgba(120,144,156,0.2); color: #546e7a; }
.tag-hope { background: rgba(91,106,191,0.15); color: #5b6abf; }

.section-dark .tag-green { background: rgba(126,200,160,0.15); color: #7ec8a0; }
.section-dark .tag-amber { background: rgba(255,193,7,0.15); color: #ffc107; }
.section-dark .tag-red { background: rgba(239,83,80,0.15); color: #ef5350; }

.phase-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.callout {
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

.callout-danger {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  color: #ef5350;
}

.callout-hope {
  background: rgba(91,106,191,0.08);
  border: 1px solid rgba(91,106,191,0.2);
  color: var(--clr-hope);
}

/* --- Sky Grid --- */
.sky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

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

.sky-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.sky-visual {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sky-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sky-emoji { font-size: 3rem; }

.sky-stars {
  background: linear-gradient(180deg, #0d1b2a, #1b2838);
  position: relative;
  overflow: hidden;
}

.sky-stars::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff 100%, transparent),
    radial-gradient(1px 1px at 30% 60%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, #e8eaf6 100%, transparent),
    radial-gradient(1px 1px at 70% 40%, #fff 100%, transparent),
    radial-gradient(1px 1px at 90% 70%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 20% 80%, #c5cae9 100%, transparent),
    radial-gradient(1px 1px at 60% 90%, #fff 100%, transparent),
    radial-gradient(1px 1px at 80% 15%, #fff 100%, transparent),
    radial-gradient(1px 1px at 40% 35%, #fff 100%, transparent),
    radial-gradient(2px 2px at 25% 45%, #bbdefb 100%, transparent),
    radial-gradient(1px 1px at 75% 85%, #fff 100%, transparent),
    radial-gradient(1px 1px at 55% 55%, #fff 100%, transparent);
}

.sky-haze {
  background: linear-gradient(180deg, #4a3728, #6d4c41, #8d6e63);
}

.sky-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  padding: 1rem 1.25rem 0;
  margin-top: 0;
  color: var(--clr-text-light);
}

.sky-card p {
  padding: 0.5rem 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(240,240,236,0.65);
}

/* --- Vision Section --- */
.section-vision {
  background: var(--clr-accent);
  color: #fff;
  padding: var(--section-pad) 0;
}

.section-vision .label {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}

.vision-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-style: italic;
  line-height: 1.6;
  color: #fff;
  border: none;
  padding: 0;
  max-width: 750px;
  margin: 1rem auto 0;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-block {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #7ec8a0;
  margin-bottom: 0.3rem;
}

.stat-desc {
  font-size: 0.8rem;
  color: rgba(240,240,236,0.6);
  line-height: 1.4;
}

/* --- Data Grid & Figures --- */
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

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

.data-figure {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  overflow: hidden;
}

.section-dark .data-figure {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.data-figure img {
  width: 100%;
}

.data-figure--comparison .comparison-pair {
  display: flex;
  gap: 0.5rem;
}

.data-figure--comparison .comparison-item {
  flex: 1;
  position: relative;
}

.data-figure--comparison .comparison-item img {
  width: 100%;
  display: block;
}

.comparison-label {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.data-figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.section-dark .data-figure figcaption { color: rgba(240,240,236,0.5); }

.data-figure-full {
  max-width: 800px;
  margin: 1.5rem auto;
}

.embed-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.5rem;
}

.source-note {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* --- Data Table --- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  border: 1px solid var(--clr-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
}

.data-table th {
  background: var(--clr-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: rgba(45,106,79,0.04);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .total-row td {
  background: rgba(45,106,79,0.1);
  border-top: 2px solid var(--clr-accent);
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.section-cta {
  background: var(--clr-bg-dark);
  color: var(--clr-text-light);
  padding: var(--section-pad) 0;
}

.section-cta h2 {
  font-family: var(--font-serif);
  color: var(--clr-text-light);
  margin-bottom: 1rem;
}

.section-cta p {
  color: rgba(240,240,236,0.7);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Initiatives --- */
.initiative-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.initiative-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.initiative-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.init-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 3rem;
  text-align: center;
}

.init-content h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.init-content p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .initiative-item { flex-direction: column; gap: 0.75rem; }
}

/* --- FAQ --- */
.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--clr-border);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--clr-text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--clr-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
}

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

.contact-detail h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.contact-detail a {
  font-size: 1rem;
}

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

.contact-detail li {
  padding: 0.3rem 0;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  padding-left: 1.2rem;
  position: relative;
}

.contact-detail li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
}

.contact-form {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--clr-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--clr-bg);
  color: var(--clr-text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.form-group textarea { resize: vertical; }

.form-status {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 1.5rem;
}

.form-status.success {
  color: var(--clr-accent);
}

.form-status.error {
  color: #b42318;
}

/* --- About page content --- */
.content-narrow p {
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.85;
}

.closing-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--clr-accent) !important;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
}

/* --- Footer --- */
.site-footer {
  padding: 3rem 0 1.5rem;
  background: #f0f0ec;
  border-top: 1px solid var(--clr-border);
}

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.footer-about .logo-cgm { font-size: 1.6rem; }
.footer-about .logo-sub { margin-left: 0.3rem; }
.footer-about p {
  margin-top: 0.5rem;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li { margin-bottom: 0.3rem; }

.footer-nav a {
  color: var(--clr-text-muted);
  font-size: 0.85rem;
}

.footer-nav a:hover { color: var(--clr-accent); }

.footer-contact p {
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
}

/* --- Scroll Reveal --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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