/* ========= THEME VARIABLES ========= */
/* Light mode defaults */
:root {
  /* Brand */
  --vh-primary: #c22d2d;               /* main green */
  --vh-primary-strong: #c44646;        /* hover/stronger */
  --vh-primary-dark: #a63737;          /* darker shade */
  --vh-primary-glow: rgba(217, 89, 89, 0.50);
  --vh-primary-tint: rgba(217, 89, 89, 0.20);

  /* Light base */
  --vh-dark: #f6f9f7;   /* page background (light) */
  --vh-card: #ffffff;   /* card background (light) */
  --vh-text: #0b1020;   /* text (light) */
  --vh-muted: #000000;  /* muted (light) */

  /* Lines */
  --vh-border: rgba(11, 16, 32, 0.2);
  --vh-border-strong: rgba(11, 16, 32, 0.12);

  /* Inputs */
  --vh-input-bg: #ffffff;
  --vh-input-border: rgba(11, 16, 32, 0.18);

  /* Hero gradient strength */
  --vh-hero-strength: 55%;
}

/* Dark mode overrides (toggled by adding .dark to <html>) */
html.dark {
  --vh-primary: #c22d2d;               /* main green */
  --vh-primary-strong: #c44646;        /* hover/stronger */
  --vh-primary-dark: #a63737;          /* darker shade */
  --vh-primary-glow: rgba(217, 89, 89, 0.50);
  --vh-primary-tint: rgba(217, 89, 89, 0.20);

  --vh-dark: #232324;   /* page background (dark) */
  --vh-card: #232324;   /* card background (dark) */
  --vh-text: #e5e7eb;   /* text (dark) */
  --vh-muted: #f5f5f5;  /* muted (dark) */

  --vh-border: rgba(148, 163, 184, 0.15);
  --vh-border-strong: rgba(148, 163, 184, 0.22);

  --vh-input-bg: #232324;
  --vh-input-border: rgba(148, 163, 184, 0.25);

  --vh-hero-strength: 60%;
}

/* Optional: smooth color transitions */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  /* Base color plus graceful fallback gradient if JS/canvas background fails */
  background-color: var(--vh-dark);
  background-attachment: fixed;
  color: var(--vh-text);

}

.container { max-width: 1100px; margin: 0 auto; padding: 0rem; }

/* ====== Navbar ====== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  /* CHANGED: make navbar background match cards in all themes */
  background: var(--vh-card) !important;
  /* FIX: add Safari/WebKit prefix alongside current value */
  -webkit-backdrop-filter: none;
  backdrop-filter: none; /* solid (no blur) to match cards */
  border-bottom: 1px solid var(--vh-border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--vh-text); }
.brand .logo { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--vh-primary); font-weight: 900; color: white; }
.brand .name { font-weight: 700; letter-spacing: .3px; }

/* Theme toggle button */
.theme-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--vh-border);
  background: transparent; color: var(--vh-text);
  padding: .5rem .7rem; border-radius: .6rem; cursor: pointer;
}
.theme-toggle:hover { background: var(--vh-primary-tint); }

/* ====== Nav menu ====== */
.nav { display: flex; gap: .5rem; flex-wrap: wrap; }
.nav a { color: var(--vh-text); text-decoration: none; padding: .5rem .75rem; border-radius: .6rem; }
.nav a:hover, .nav a.active { background: var(--vh-primary-tint); }

/* Mobile menu toggle (unchanged) */
.menu-toggle { display: none; border: 1px solid var(--vh-border); background: transparent; color: var(--vh-text); padding: .5rem .7rem; border-radius: .6rem; }
@media (max-width: 800px) {
  .nav { display: none; width: 100%; flex-direction: column; padding: .5rem; }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
}

/* ====== Hero ====== */
.hero {
  padding: 3.5rem 1rem;
  text-align: center;
  background: none;
}
.hero h1 { font-size: clamp(1.8rem, 2.8vw + 1rem, 3rem); margin: 0 0 .5rem; }
.hero p { color: var(--vh-muted); font-size: clamp(1rem, .5vw + .9rem, 1.15rem); margin: 0; }

/* ====== Clean Footer Layout ====== */
.site-footer {
  margin-top: 2rem;
  background: var(--vh-card); /* matches navbar */
  color: var(--vh-text);
  border-top: 1px solid var(--vh-border);
  text-align: center;
}


.footer-main {
  padding: 2rem 1rem 1rem;
}

.footer-brand-block {
  max-width: 700px;
  margin: 0 auto;
}

/* Brand styling */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--vh-text);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-logo {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--vh-primary);
  color: #fff;
  font-weight: 900;
}

.footer-tagline {
  margin: .5rem 0 1rem;
  color: var(--vh-muted);
  font-size: 1rem;
}

.footer-contact {
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--vh-text);
  text-decoration: none;
}
.footer-contact a:hover {
  text-decoration: underline;
}

/* Disclaimer text */
.footer-small {
  font-size: .9rem;
  line-height: 1.4;
  margin: 0 auto 1rem;
  max-width: 600px;
  color: var(--vh-text);
}

/* Inline site index links */
.footer-index p {
  margin: 0 auto 1.2rem;
  font-size: 0.95rem;
  color: var(--vh-text);
}
.footer-index a {
  color: var(--vh-text);
  text-decoration: none;
}
.footer-index a:hover {
  color: var(--vh-primary-dark);
  text-decoration: underline;
}

/* Bottom copyright bar */
/* ===== Final: one-line footer bar ===== */
.footer-bar {
  border-top: 1px solid var(--vh-border);
  background: var(--vh-card);
}

.footer-bar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* left spacer | centered nav | right link */
  align-items: center;                   /* vertical centering */
  padding: .7rem 0;
  font-size: .95rem;
}

/* Center the nav perfectly in column 2 */
.footer-bar-inner .footer-index {
  grid-column: 2;
  justify-self: center;
}

/* Make the UL horizontal */
.footer-index ul {
  list-style: none;
  margin: 0;             /* IMPORTANT: no stray margins */
  padding: 0;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* Right-align Back to top in column 3 */
.footer-bar-inner .back-to-top {
  grid-column: 3;
  justify-self: end;
  text-decoration: none;
  font-weight: 600;
  color: var(--vh-text);
}
.footer-bar-inner .back-to-top:hover { text-decoration: underline; }

/* Theme-safe link colour */
html.dark .back-to-top { color: #fff; }
html:not(.dark) .back-to-top { color: #000; }

/* Mobile: stack centered (optional) */
@media (max-width: 700px) {
  .footer-bar-inner { grid-template-columns: 1fr; row-gap: .5rem; text-align: center; }
  .footer-bar-inner .back-to-top { justify-self: center; }
}



/* ====== Grid / Cards ====== */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
  max-width: 100%;
}

/* Card base */
.card {
  background: var(--vh-card);
  border: 1px solid var(--vh-border);
  border-radius: 1rem;
  padding: 1rem;

  /* NEW: Prevent horizontal overflow from long text/inputs */
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
}

/* Prevent child inputs / flex children from forcing overflow */
.card * {
  min-width: 0;
}

/* Responsive grid breakpoints */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

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



/* ====== Forms ====== */
.input {
  width: 100%; padding: .7rem .9rem; border-radius: .7rem;
  border: 1px solid var(--vh-input-border); background: var(--vh-input-bg); color: var(--vh-text);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.textarea { min-height: 140px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: .7rem;
  border: 1px solid var(--vh-border);
  background: var(--vh-primary);
  color: white;   /* your chosen button text colour */
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .06s ease, border-color .18s ease;
}
/* FIXED: selector was 'hover' — should be '.btn:hover' */
.btn:hover { background: var(--vh-primary-strong); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--vh-text); border-color: var(--vh-border); }
.btn.ghost:hover { background: var(--vh-primary-tint); }

/* ====== Alerts ====== */
.alert { 
  border-radius: .7rem; 
  padding: .8rem 1rem; 
  margin: 1rem 0; 
  color: #000 !important;   /* ✅ Force black text always */
}

.alert.error { 
  background: rgba(255, 0, 72, .10); 
  border: 1px solid rgba(255,0,72,.22); 
}

.alert.success { 
  background: rgba(31, 143, 59, .12); 
  border: 1px solid rgba(31, 143, 59, .22); 
}


/* ====== Utility ====== */
.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}


.mindmap { padding: 1rem; }
.mindmap .svg-wrap {
  display: flex;
  justify-content: center;  /* center SVG horizontally */
  overflow-x: auto;         /* allow scroll if viewport is narrow */
}
.mindmap svg {
  width: min(100%, 1000px); /* scale down to fit; cap at 1000px */
  height: auto;
  display: block;
}
.donate-box {
  margin-top: 1rem;
  background: var(--vh-card);
  border: 1px solid var(--vh-border);
  border-radius: 1rem;
  padding: 1rem;
}

.donate-title {
  margin: 0 0 .75rem 0;
  font-size: 1.25rem;
}

.donate-form {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1rem;
  align-items: end;
}
.donate-form label { display: grid; gap: .4rem; }
.donate-actions { display: flex; align-items: center; gap: .75rem; }
.donate-note { color: var(--vh-muted); font-size: .92rem; }

@media (max-width: 700px) {
  .donate-form { grid-template-columns: 1fr; }
}

.media-empty {
  text-align: center;
  color: var(--vh-muted);
  padding: 2rem;
  border: 1px solid var(--vh-border);
  border-radius: 1rem;
  background: var(--vh-card);
}

/* ===== Home grid (copy left, gallery right) ===== */
.home-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}
.home-copy { padding: .5rem; }
.home-gallery { padding: .5rem; }

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

/* ===== Carousel (cleaned + centered, no drift) ===== */
.carousel {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-viewport {
  width: 100%;
  border: 1px solid var(--vh-border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--vh-card);
  aspect-ratio: 16 / 9; /* fixed frame */
}

/* ADDED: make inner track and each slide match the viewport height */
.carousel-track { 
  display: flex;
  gap: 0;
  transition: transform .45s ease;
  will-change: transform;
  height: 100%;            /* ADDED */
}
.slide {
  margin: 0;
  padding: 0;
  flex: 0 0 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;            /* ADDED */
}

/* CHANGED: ensure entire image is visible inside the frame */
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;      /* CHANGED from cover */
  object-position: center;
  margin: 0;
  background: var(--vh-card); /* optional: bars match card color */
}

.slide figcaption {
  position: absolute;
  left: .75rem; bottom: .75rem;
  background: color-mix(in oklab, var(--vh-dark) 70%, transparent);
  color: var(--vh-text);
  padding: .35rem .6rem;
  border-radius: .5rem;
  border: 1px solid var(--vh-border);
  font-size: .9rem;
}


/* Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--vh-border);
  background: color-mix(in oklab, var(--vh-card) 70%, transparent);
  color: var(--vh-text);
  padding: .35rem .6rem;
  border-radius: .6rem;
  cursor: pointer;
}
.carousel-btn:hover { background: var(--vh-primary-tint); }
.carousel-btn.prev { left: .5rem; }
.carousel-btn.next { right: .5rem; }

/* Dots */
.carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: .5rem;
  display: flex; justify-content: center; gap: .4rem;
}
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 999px;
  border: 1px solid var(--vh-border);
  background: color-mix(in oklab, var(--vh-card) 60%, transparent);
  padding: 0; cursor: pointer;
}
.carousel-dots button[aria-current="true"] {
  background: var(--vh-primary);
  border-color: var(--vh-primary);
}


/* already added earlier:
.home-grid { display:grid; gap:1rem; grid-template-columns:1.05fr 1fr; align-items:center; }
@media (max-width:900px){ .home-grid{ grid-template-columns:1fr; } }
*/

.home-hero-image .hero-figure {
  margin: 0;
  border: 1px solid var(--vh-border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--vh-card);
  aspect-ratio: 16 / 9;
  position: relative;
}
.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-hero-image figcaption {
  position: absolute;
  left: .75rem; bottom: .75rem;
  background: color-mix(in oklab, var(--vh-dark) 70%, transparent);
  color: var(--vh-text);
  padding: .35rem .6rem;
  border-radius: .5rem;
  border: 1px solid var(--vh-border);
  font-size: .9rem;
}



/* ========= BLOG MODAL ========= */
.modal {
  display: none;            /* toggled by .is-open */
  position: fixed;
  inset: 0;
  z-index: 10000;           /* higher than header/footer */
  overflow: auto;
  background: rgba(0, 0, 0, 0.7);
}

/* Open state */
.modal.is-open { display: block; }

/* The modal box picks up theme colors via vars */
.modal-content {
  position: relative;
  margin: 5svh auto;        /* use small-viewport height for mobiles */
  padding: 1.5rem;
  width: min(92vw, 900px);  /* nicer max width + mobile fit */
  max-width: 900px;
  border-radius: 12px;
  background: var(--vh-card);
  color: var(--vh-text);
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Close button */
.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: color-mix(in oklab, var(--vh-text) 70%, transparent);
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s ease, transform 0.1s ease;
}
.modal .close:hover { color: var(--vh-text); transform: scale(1.05); }
.modal .close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Content inherits theme colors */
.modal-content a { color: inherit; text-decoration: underline; }
.modal-content p { color: inherit; }

/* ==== Footer kept beneath modal ==== */
.site-footer,
footer {
  position: relative;
  z-index: 1 !important;    /* ensure modal wins */
}

/* ==== Prevent background scroll while modal is open ==== */
body.modal-open { overflow: hidden; }


.staff-card {
  text-align: center;
  background: #c62828; /* deep red */
  color: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.staff-card.alt {
  background: #d32f2f; /* slightly lighter red */
}



/* Blog list grid */
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;            /* space between cards */
}

/* Clickable post card */
.blog-card {
  border: 1px solid var(--vh-border, #e2e8f0);
  background: var(--vh-card, #fff);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  outline: none;
}

.blog-card:hover,
.blog-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  border-color: var(--vh-accent, #8dd3ff);
}

/* Title + right-aligned date */
.blog-card-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .35rem;
}

.blog-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  flex: 1;                 /* pushes date to the right */
}

.blog-card-date {
  margin: 0;
  font-size: .9rem;
  white-space: nowrap;      /* keeps date on one line */
  color: var(--muted, #64748b);
}

/* Excerpt spacing */
.blog-card .excerpt {
  margin: .25rem 0 0;

  opacity: .9;
}

.blog-card-figure {
  margin: .5rem 0 .75rem;
  overflow: hidden;
  border-radius: .75rem;
}

/* Limit preview images inside blog cards */
.blog-card-figure img {
  display: block;
  width: 100%;
  max-width: 250px;       /* limit width */
  max-height: 250px;      /* limit height */
  height: auto;           /* preserve aspect ratio */
  object-fit: cover;      /* crop neatly if larger than box */
  margin: 0 auto;         /* center horizontally */
  border-radius: .75rem;
}



/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===== Water/canvas background (fixed, behind content) ===== */
#water-bg, .water-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;              /* keep >= 0 so it’s not behind the root background */
  pointer-events: none;    /* clicks pass through */
  display: block;
}

/* Subtle vignette overlay (optional) */
.water-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.04), rgba(0,0,0,.08));
  z-index: 0;
  pointer-events: none;
}

/* Ensure site content is above the canvas */
.navbar, main, footer, .container {
  position: relative;
  z-index: 1;
}

/* Accessibility: respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  #water-bg, .water-bg { display: none; }
}


/* Override Elfsight widget width */
#eapps-instagram-feed-1 {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important; /* optional: center horizontally */
}

/* Force hero headline + tagline to black in dark mode */
html.dark .hero h1,
html.dark .hero p {
  color: #000000 !important; /* solid black */
}

.blog-featured-post img{
  display:block;
  width:100%;
  height:auto;           /* show full image, no cropping */
  max-height:500px;      /* keep it from going wild */
  object-fit:contain;    /* ensure whole image is visible */
}

/* ===== Mobile slide-in drawer ===== */
.mobile-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;            /* above navbar */
  display: grid;
  grid-template-columns: auto;  /* drawer defines its own width */
  transition: opacity .25s ease;
  opacity: 0;
  pointer-events: none;
}

.mobile-shell.open {
  opacity: 1;
  pointer-events: auto;
}

/* Backdrop */
.mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

/* Drawer panel */
.mobile-drawer {
  position: absolute;
  top: 0; left: 0;
  width: min(82vw, 320px);
  height: 100%;
  background: var(--vh-card);
  color: var(--vh-text);
  border-right: 1px solid var(--vh-border);
  box-shadow: 0 10px 40px rgba(0,0,0,.22);
  transform: translateX(-100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}

.mobile-shell.open .mobile-drawer {
  transform: translateX(0);
}

/* Header inside drawer */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--vh-border);
}

.mobile-close {
  border: 1px solid var(--vh-border);
  background: transparent;
  color: var(--vh-text);
  padding: .4rem .6rem;
  border-radius: .6rem;
  cursor: pointer;
}
.mobile-close:hover { background: var(--vh-primary-tint); }

/* Links list */
.mobile-links {
  display: grid;
  gap: .25rem;
  padding: .75rem;
}
.mobile-links a {
  display: block;
  padding: .7rem .75rem;
  border-radius: .6rem;
  color: var(--vh-text);
  text-decoration: none;
}
.mobile-links a:hover,
.mobile-links a.active {
  background: var(--vh-primary-tint);
}

/* Prevent body scroll while drawer is open */
html.menu-open, html.menu-open body {
  overflow: hidden;
}

/* Visibility rules: desktop vs mobile */
@media (max-width: 900px) {
  /* Keep your desktop .nav hidden on mobile (already present) */
  .nav { display: none; }

  /* Show Menu button (already present) */
  .menu-toggle { display: inline-flex; }
}

@media (min-width: 801px) {
  /* Hide the mobile shell on desktop just in case */
  .mobile-shell { display: none !important; }
}

/* Make the two columns equal-height */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;            /* stretch items to the row height */
}

/* Cards fill the row and can grow if content expands */
.contact-grid .card {
  /* height: 100%;  <-- remove this to avoid inner scrollbars */
  display: flex;                   /* stack inner content */
  flex-direction: column;
  box-sizing: border-box;
  overflow: visible;               /* let content grow the card */
}

/* Make the map area expand to fill the card’s remaining space */
.map-wrap {
  flex: 1;                         /* grow to fill card height */
  min-height: 0;                   /* allow proper flex sizing */
  border-radius: inherit;
  overflow: hidden;                /* keeps rounded corners on iframe */
  border: 1px solid var(--vh-border);
  background: var(--vh-card);
}

/* Make the two columns equal-height */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;            /* stretch items to the row height */
}

/* Cards fill the row and can grow if content expands */
.contact-grid .card {
  display: flex;                   /* stack inner content */
  flex-direction: column;
  box-sizing: border-box;
  overflow: visible;               /* let content grow the card */
}

/* Make the map area expand to fill the card’s remaining space */
.map-wrap {
  flex: 1;                         /* grow to fill card height */
  min-height: 0;                   /* allow proper flex sizing */
  border-radius: inherit;
  overflow: hidden;                /* keeps rounded corners on iframe */
  border: 1px solid var(--vh-border);
  background: var(--vh-card);
}

/* Make the iframe fill the map-wrap */
.map-embed {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Mobile: stack with a nice aspect ratio for the map */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .map-wrap {
    flex: unset;
    aspect-ratio: 16 / 11;         /* only on mobile */
  }
}

/* Reserve enough space for v2 checkbox + margins */
.contact-form .g-recaptcha {
  display: block;
  min-height: 100px;               /* bump to 110px if needed */
}

/* Textarea: fixed width, vertical resize only */
.contact-form textarea,
.contact-form .textarea {
  width: 100%;
  max-width: 100%;
  resize: vertical;                /* vertical only — width locked */
  overflow: auto;
  min-height: 140px;
  box-sizing: border-box;
}



