/* =========================================================
   ROOTED MINDS — SINGLE PAGE STYLE.CSS (CLEAN + UPDATED)
   Matches your current index.html + script.js
   Includes CONTACT redesign + layout fixes
   ========================================================= */

/* =========================
   Variables
   ========================= */
:root {
  --bg: #f9fcf7;
  --surface: #ffffff;
  --text: #22322a;
  --muted: #5c6b61;

  --brand: #336600;
  --brand-2: #F7F5E9;
  --accent: #4f774a;

  --radius: 16px;
  --shadow: 0 10px 28px rgba(0,0,0,.06);
  --shadow-strong: 0 24px 42px rgba(24,48,24,.16);

  /* Shared header/footer subtle gradient */
  --header-footer-bg: #ffffff;

  /* Buttons (warm/gold) */
  --btn-text: #2f2940;

  /* Warm gold fill */
  --btn-primary-bg: #f9ecb7;
  --btn-primary-hover: #f6de8f;

  /* Secondary “ghost” hover wash (warm) */
  --btn-ghost-bg: transparent;
  --btn-ghost-hover: rgba(246, 222, 143, 0.35);

  /* Button outline/ring tones */
  --btn-border: rgba(0,0,0,.12);
  --btn-border-strong: rgba(0,0,0,.18);
}

/* =========================
   Base / Reset
   ========================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../assets/logo-tree-transparent-strong.png');
  background-size: 75%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.18;
  background-blend-mode: difference;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px){
  body::before{
    background-size: 90%; 
  }
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  margin: .2em 0 .5em;
  color: var(--text);
}

p { margin: .6em 0 1em; color: var(--muted); }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 24px);
}

.brand-line-1 {
  font-family: "Marcellus", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
}

.brand-line-2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.4px;
}

/* Focus ring */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Visually hidden helper (used by #formStatus) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #fff;
  padding: .5rem .75rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* =========================
   Header / Navigation
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-footer-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8eee9;
}
.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.nav-logo {
  height: 68px;
  width: 68px;
  display: inline-block;
}

/* nav links */
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: .4rem .1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color .2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand);
}
.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

/* hamburger */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: .25rem;
  border-radius: 8px;
  text-align: center;
  margin: 0 auto;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

/* =========================
   Buttons (WARM/GOLD + “MORE CLICKABLE”)
   ========================= */
.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;

  font-family: "Inter", sans-serif;
  font-weight: 650;
  letter-spacing: .2px;
  text-decoration: none;
  text-align: center;

  padding: .8rem 1.25rem;
  border-radius: 999px;

  border: 2px solid var(--btn-border);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);

  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
  filter: brightness(1.02);
}
.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.14);
}
.btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.btn-primary, .btn-primary:visited {
  background: var(--btn-primary-bg);
  color: var(--btn-text);
  border-color: rgba(0,0,0,.08);
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
}

.btn-ghost, .btn-ghost:visited {
  background: var(--btn-ghost-bg);
  color: var(--btn-text);
  border-color: var(--btn-border-strong);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--btn-ghost-hover);
  border-color: rgba(0,0,0,.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
}

/* CTAs inside hero */
.hero-ctas-inline{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin: 1rem auto 0;
  padding: 10px 0;
}
.hero-ctas-inline .btn{ white-space: nowrap; }

@media (max-width:560px){
  .hero-ctas-inline{
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas-inline .btn{
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* =========================
   Hero (Home)
   ========================= */
.hero--bright {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 20% 10%, rgba(255,184,77,.25) 0%, rgba(255,184,77,0) 60%),
    radial-gradient(70% 75% at 80% 0%, rgba(121,193,107,.22) 0%, rgba(121,193,107,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f6faf4 100%);
}

.hero--bright::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .08;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: clamp(340px, 68vmin, 950px);
}

.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 64px 0;
}

.hero-portrait {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .4rem;
}

.hero-portrait.card{
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid rgba(222,233,226,.9);
  max-width: 360px;
  width: 100%;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.home-hero .hero-portrait .portrait {
  width: clamp(90px, 18vw, 150px);
  height: clamp(90px, 18vw, 150px);
  border-width: 5px;
}

.hero-portrait .portrait {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-strong);
  border: 6px solid #fff;
  background: #fff;
}

.hero-intro { text-align:center; margin-top:.6rem; }

.intro-name {
  font-family: "Great Vibes", cursive;
  font-size: clamp(.8rem, 2vw + 1rem, 1.5rem);
  line-height: 1.15;
  letter-spacing: .5px;
  margin-top: 0;
}

.hero-copy {
  flex: 1 1 55%;
  min-width: 300px;
  max-width: 600px;
}

.hero-logo-badge {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  margin-top: .6rem;
  border: 4px solid #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  background: #fff;
  object-fit: contain;
}

.hero .brandline {
  font-family: "Marcellus", serif;
  font-weight: 600;
  font-size: clamp(.5rem, 1.6vw + .9rem, 1.9rem);
  margin-bottom: .2rem;
}
.intro-populations {
  font-family: "Marcellus", serif;
  font-size: clamp(0.5rem, 1rem + 1vw, 1.4rem);
}
.hero-tagline {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 2px;
  margin-top: 0;
}

.hero.hero--bright.home-hero {
  background:
    linear-gradient(90deg,
      rgba(252,246,234,0.85) 0%,
      rgba(246,248,240,0.85) 40%,
      rgba(236,241,235,0.85) 100%
    ),
    linear-gradient(90deg,
      rgba(252,246,234,1) 0%,
      rgba(246,248,240,1) 40%,
      rgba(236,241,235,1) 100%
    ),
    linear-gradient(180deg,
      rgba(255,255,255,1) 0%,
      rgba(240,247,242,1) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 520px;
}

.hero-wordmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: auto;
  opacity: .25;
  pointer-events: none;
  z-index: 1;
  object-fit: fill;
  object-position: bottom;
  filter: drop-shadow(0 15px 15px rgba(0,0,0,.08));
}

@media (max-width:900px){
  .hero-inner { flex-direction: column-reverse; text-align: center; padding: 28px 0; }
  .hero-portrait .portrait { width: min(72vw, 220px); height: min(72vw, 220px); }
  .hero-logo-badge { width: 200px; height: 200px; }
}

/* =========================
   Sections / Layout
   ========================= */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

/* NOTE:
   grid-2 is used for multiple sections. Keep it flexible.
   We also top-align items to reduce “stretched empty card” effects. */
.service-list, .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start; /* NEW: prevents stretch-y emptiness in some layouts */
}

.service {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
  border: 1px solid rgba(222,233,226,.8);
}
.service h2 { margin: 0 0 .75rem; }
.service ul { padding-left: 1.1rem; margin: 0; }
.service .icons {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem auto;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.resource {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  border: 1px solid rgba(222,233,226,.9);
}
.resource-preview{
  width: 100%;
  border-radius: 12px;
  margin: 0.75rem 0;
  border: 1px solid #ddd;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* sticky header offset */
#about, #services, #team, #insurance, #resources, #contact {
  padding-top: 52px;
  padding-bottom: 56px;
  border-top: 1px solid #e5ede6;
  scroll-margin-top: 90px;
}

.comfort-title {
  text-align: center;
}

/* =========================
   Team Section (Unified) — FIXED
   ========================= */

.team-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.75rem !important;
  margin-top: 1.5rem;
  align-items: start;
}

/* Unified card look for ALL team cards */
.team-card{
  border: 1px solid rgba(222,233,226,.9);
  background: linear-gradient(
    180deg,
    rgba(249,236,183,.14) 0%,
    rgba(255,255,255,1) 55%
  );
}

/* Lead provider card spans full width but uses SAME background */
.team-card--lead{
  grid-column: 1 / -1;
}

/* Layout inside lead card (desktop default) */
.team-lead{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.team-photo{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 4px solid #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  margin-bottom: .85rem;
}

.team-photo--lead{
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  margin-bottom: 0;
}

.team-photo--pet{
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}

.team-name{
  margin-top: .2rem;
  margin-bottom: .35rem;
}

.team-title{
  margin-top: 0;
  font-weight: 650;
  color: var(--text);
  opacity: .92;
}

.team-cred-title{
  margin-top: 1rem;
  margin-bottom: .5rem;
}

.team-cred{
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

/* --- IMPORTANT: Remove any special-case backgrounds --- */
.team-card--pet{
  /* no background here — inherits .team-card background naturally */
}

/* Responsive */
@media (max-width: 900px){
  .team-grid{
    grid-template-columns: 1fr !important;
  }
  .team-card--lead{
    grid-column: auto;
  }
  .team-lead{
    grid-template-columns: 1fr;
  }
}


/* =========================
   Insurance & Payment (single box)
   ========================= */
.insurance-card{
  border: 1px solid rgba(222,233,226,.9);
}

.insurance-list{
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;

  column-count: 2;
  column-gap: 2rem;
}
@media (max-width: 700px){
  .insurance-list{ column-count: 1; }
}
.insurance-list li{
  margin: 0 0 .5rem;
  break-inside: avoid;
}

.insurance-note{
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

.insurance-divider{
  border: none;
  border-top: 1px solid #e5ede6;
  margin: 1.5rem 0 1.25rem;
}

.insurance-subtitle{
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.payment-list{
  list-style: none;
  padding: 0;
  margin: 0 0 .75rem;

  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.payment-list li{
  font-weight: 500;
}
/* =========================
   INSURANCE — Polished styling (drop-in)
   ========================= */

/* Tighten section header spacing a bit */
#insurance .section-header h1{
  margin-bottom: 0.75rem;
}

/* Main insurance card: same warm vibe as Team/Contact */
#insurance .insurance-card{
  background: linear-gradient(
    180deg,
    rgba(249,236,183,.14) 0%,
    rgba(255,255,255,1) 55%
  );
  border: 1px solid rgba(222,233,226,.9);
  padding: 1.25rem;
}

/* Turn the first subtitle into a “band” */
#insurance .insurance-card .insurance-subtitle:first-of-type{
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  background: rgba(249,236,183,.35);
  border: 1px solid rgba(222,233,226,.9);
  border-radius: 14px;
  color: var(--text);
}

/* Other subtitle: keep normal but slightly stronger */
#insurance .insurance-subtitle{
  font-size: 1.15rem;
  color: var(--text);
}

/* Insurance list: replace newspaper columns with a tidy pill grid */
#insurance .insurance-list{
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;

  column-count: 1; /* override your current column layout */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem .9rem;
}

@media (max-width: 700px){
  #insurance .insurance-list{
    grid-template-columns: 1fr;
  }
}

#insurance .insurance-list li{
  margin: 0;
  padding: .55rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(222,233,226,.9);
  background: rgba(255,255,255,.88);
  color: var(--text);
  font-weight: 600;
}

/* Notes: styled callouts */
#insurance .insurance-note{
  margin: .25rem 0 0;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: rgba(247,245,233,.92); /* close to your --brand-2 */
  border: 1px dashed rgba(79,119,74,.35);
  color: var(--muted);
}

/* Divider: a little tighter/cleaner */
#insurance .insurance-divider{
  border: none;
  border-top: 1px solid #e5ede6;
  margin: 1.25rem 0 1rem;
}

/* Payment list: match pill-grid styling */
#insurance .payment-list{
  list-style: none;
  padding: 0;
  margin: .25rem 0 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem .9rem;
}

@media (max-width: 700px){
  #insurance .payment-list{
    grid-template-columns: 1fr;
  }
}

#insurance .payment-list li{
  margin: 0;
  padding: .55rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(222,233,226,.9);
  background: rgba(255,255,255,.88);
  color: var(--text);
  font-weight: 600;
}

/* Second note spacing: give it breathing room */
#insurance .payment-list + .insurance-note{
  margin-top: 1rem;
}

/* =========================
   Forms
   ========================= */
.emergency-note {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1rem 0 2rem;
  max-width: 520px;
}
.form-row { display:grid; gap:.4rem; }

input, textarea {
  font: inherit;
  padding: .7rem .8rem;
  border: 1px solid #cbd6cf;
  border-radius: 12px;
  background: #fff;
}
input:focus, textarea:focus {
  outline: 3px solid var(--brand-2);
  border-color: transparent;
}
[aria-invalid="true"]{ border-color:#b00020; }

/* =========================
   CONTACT (Redesigned)
   Requires the updated CONTACT HTML I gave you
   ========================= */
#contact h1{
  margin-bottom: 0.75rem;
}

/* True 2-column layout for Contact (instead of using .grid-2 auto-fit) */
#contact .contact-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}
@media (max-width: 900px){
  #contact .contact-grid{ grid-template-columns: 1fr; }
}

/* Contact cards */
#contact .contact-card{
  padding: 1.25rem;
  border: 1px solid rgba(222,233,226,.9);
}

/* Left form card text */
#contact .contact-intro{
  margin: 0 0 0.75rem;
  color: var(--muted);
}

#contact .emergency-note{
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  background: rgba(249,236,183,.35);
  border: 1px solid rgba(222,233,226,.9);
  border-radius: 14px;
  color: var(--text);
}
#contact .emergency-note em{ font-style: italic; }

/* Make the form feel like it belongs to the card (not a card inside a card) */
#contact .contact-form{
  max-width: none;
  margin: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}
#contact .form-actions{ margin-top: 0.25rem; }

/* Right card header */
#contact .contact-header{
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #e5ede6;
}
#contact .contact-brandline{
  font-family: "Great Vibes", cursive;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.1;
}
#contact .contact-title{
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  color: var(--text);
}

/* Contact rows */
#contact .contact-list{
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.75rem;
}
#contact .contact-item{
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.65rem;
  align-items: start;
}
#contact .contact-item .icon{
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0.95;
}
#contact .contact-label{
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
#contact .contact-link{
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
#contact .contact-link:hover{ text-decoration: underline; }
#contact .contact-text{
  color: var(--text);
  font-weight: 500;
}

/* Map: full-width and intentional */
#contact .map-wrap{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(222,233,226,.9);
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
}
#contact .gmap-embed{
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}
@media (max-width: 640px){
  #contact .gmap-embed{ height: 240px; }
}

/* =========================
   RMX Fade Carousel
   ========================= */
.rmx-carousel {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 8px;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  aspect-ratio: 16 / 9;
}
.rmx-track { position: relative; width: 100%; height: 100%; }
.rmx-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.rmx-slide.active { opacity: 1; }
.rmx-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.rmx-dots {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: 6px;
}
.rmx-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
}
.rmx-dot.active { background: #666; }

/* =========================
   Footer
   ========================= */
.site-footer {
  position: relative;
  background: var(--header-footer-bg);
  border-top: 1px solid #eceae4;
  margin-top: 40px;
  overflow: hidden;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.5rem;
  padding: 24px 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
  margin-bottom: .6rem;
}
.footer-logo img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.brand-line-footer {
  font-family: "Great Vibes", cursive;
  font-size: 18px;
}

.footer-legal {
  grid-column: 1 / -1;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
}

/* Icons (contact + footer) */
.contact-details .icon,
.site-footer .icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  flex: 0 0 18px;
}

/* Footer map/layout (kept compact for footer usage) */
.footer-contact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Default (footer) map size */
.gmap-embed {
  width: 220px;
  height: 150px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  overflow: hidden;
}
@media (max-width:640px){
  .gmap-embed { width: 100%; height: 200px; }
}

/* =========================
   Mobile nav
   ========================= */
@media (max-width:900px){
  .nav-wrap {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
  .nav-toggle { display: inline-block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 48px;
    right: 16px;
    background: #fff;
    padding: .6rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: max-content;
    margin-left: auto;
  }
  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    width: 100%;
    gap: 1rem;
  }
  .site-nav a {
    width: 100%;
    text-align: right;
    padding-right: 12px;
  }
}
@media (min-width:901px){
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: transparent; box-shadow: none; padding: 0; }
}

/* tiny layout fix */
section > *:first-child { margin-top: 0.01px; }

/* --- TEAM lead card: wrap text under photo (no giant stretched face) --- */
@media (min-width: 901px){

  /* Turn the lead layout into a wrapped layout */
  .team-card--lead .team-lead{
    display: block;              /* override grid */
  }

  .team-card--lead .team-photo--lead{
    float: left;
    width: 220px;                /* same as your old column */
    height: 220px;               /* keep it square */
    margin: 0 .95rem .75rem 0;   /* space between photo and text */
    object-fit: cover;
    border-radius: 18px;
  }

  /* Make sure the card contains the float */
  .team-card--lead .team-lead::after{
    content: "";
    display: block;
    clear: both;
  }

  /* Optional: tighten the top spacing a touch */
  .team-card--lead .team-name{
    margin-top: 0;
  }
}
