/* Prevent transitions on load to avoid FOUC/Flash */
.preload, .preload * {
  transition: background-color 0s !important, color 0s !important, border-color 0s !important, box-shadow 0s !important;
}

:root {
  --green-950: #0b2e27;
  --green-900: #123f35;
  --green-700: #176452;
  --green-500: #2e8b68;
  --lime: #a8c83d;
  --cream: #f5f3ea;
  --paper: #fffdf8;
  --ink: #17211d;
  --muted: #5a665f;
  --line: #d9dfd9;
  --white: #fff;
  --accent-text: #176452;
  --accent-border: #176452;
  --radius: 1.25rem;
  --shadow: 0 24px 70px rgb(11 46 39 / 14%);
  --container: 1180px;
}

body.dark-theme {
  --paper: #121715;       /* Fundo principal escuro */
  --cream: #18221f;       /* Fundo secundário (cards, seções) */
  --ink: #ebf0ee;         /* Texto principal claro */
  --muted: #a3b3aa;       /* Texto secundário */
  --line: #293832;        /* Bordas escuras */
  --accent-text: #a8c83d; /* Lime green for readability on dark */
  --accent-border: #a8c83d;
  --shadow: 0 24px 70px rgb(0 0 0 / 60%);
  --header-bg: rgb(18 23 21 / 96%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.65 "Noto Sans", sans-serif; --header-bg: rgb(255 255 255 / 98%); transition: color 0.3s, background-color 0.3s; }
body.menu-open { overflow: hidden; }
main { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Figtree", sans-serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { margin-bottom: 1.5rem; font-size: clamp(2.7rem, 7vw, 5.8rem); }
h2 { margin-bottom: 1.2rem; font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { margin-bottom: .65rem; font-size: 1.45rem; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.section { padding: clamp(2.5rem, 4.5vw, 4.5rem) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 1rem; left: 1rem; padding: .8rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.eyebrow { margin-bottom: 1rem; color: var(--accent-text); font: 700 .76rem/1 "Figtree", sans-serif; letter-spacing: .16em; text-transform: uppercase; }


.site-header { position: sticky; will-change: transform; transform: translateZ(0); z-index: 100; top: 0; background: var(--header-bg); border-bottom: 1px solid transparent;  transition: border-color .2s, box-shadow .2s, background-color 0.3s, opacity .55s ease-out, transform .55s cubic-bezier(.2,.8,.2,1); }
.js .site-header { opacity: 0; transform: translateX(3rem); }

.theme-toggle-btn { display: flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0.5rem; color: var(--ink); cursor: pointer; transition: color 0.2s, transform 0.2s; border-radius: 50%; }
.theme-toggle-btn:hover { color: var(--accent-text); transform: scale(1.1); }
.js .site-header.header-visible { opacity: 1; transform: none; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgb(11 46 39 / 7%); }
.nav-wrap { min-height: 4.7rem; display: flex; align-items: center; gap: 2rem; }
.brand { position: relative; width: 6.5rem; height: 4.7rem; display: flex; align-items: center; }
.brand img { position: absolute; top: -1.4rem; left: 0; width: auto; height: 7.5rem; max-width: none; object-fit: contain; object-position: left top; z-index: 10; }
.footer-brand img { width: auto; height: 100%; object-fit: contain; transform: translateY(-1.0rem); }
body .logo-dark-img { display: none; }
body.dark-theme .logo-light-img { display: none; }
body.dark-theme .logo-dark-img { display: block; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); margin-left: auto; }
.main-nav a { padding: .75rem 0; color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: var(--accent-text); }
.menu-toggle { display: none; width: 3rem; height: 3rem; padding: .7rem; background: transparent; border: 0; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--green-900); transition: transform .2s, opacity .2s; }

.button { min-height: 3.25rem; display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.45rem; color: var(--white); background: var(--green-700); border: 2px solid var(--green-700); border-radius: 999px; font: 700 .9rem/1 "Figtree", sans-serif; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { background: var(--green-900); border-color: var(--green-900); transform: translateY(-2px); }
.button-small { min-height: 2.8rem; padding-inline: 1.1rem; font-size: .82rem; }
.button-light { color: var(--green-950); background: var(--white); border-color: var(--white); }
.button-light:hover { color: var(--white); background: transparent; }
.region-section .button-light:hover { color: var(--green-950); background: var(--lime); border-color: var(--lime); }
.text-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--accent-text); font-weight: 700; text-decoration: none; }
.text-link:hover span { transform: translateX(.25rem); }
.text-link span { transition: transform .2s; }

.hero { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); background: linear-gradient(115deg, var(--cream), var(--paper)); }
.hero::before { position: absolute; width: 28rem; height: 28rem; right: -12rem; bottom: -14rem; background: var(--lime); border-radius: 50%; opacity: .18; content: ""; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .8fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.hero-copy { max-width: 44rem; }
.hero h1 span { color: var(--accent-text); }
.hero-lead { max-width: 39rem; margin-bottom: 2rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; font-weight: 600; }
.hero-points li::before { color: var(--green-500); content: "•"; margin-right: .5rem; }
.hero-media { position: relative; margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 42%; border-radius: 12rem 12rem 1.5rem 1.5rem; box-shadow: var(--shadow); }
.hero-media figcaption { position: absolute; right: -1rem; bottom: 1.5rem; max-width: 13rem; padding: 1rem 1.1rem; color: var(--green-950); background: var(--white); border-radius: 1rem; box-shadow: var(--shadow); font-size: .82rem; font-weight: 700; }

.section-heading { max-width: 48rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-heading p:last-child { color: var(--muted); }
.section-heading-left { margin: 0; text-align: left; }
.animals-section { background: var(--green-900); }
.animals-section .section-heading h2 { color: var(--white); }
.animals-section .section-heading p:last-child { color: #dbe8e2; }
.animals-section .section-heading .eyebrow { color: var(--lime); }
.animal-grid { display: grid; grid-template-columns: repeat(6, 1fr); align-items: start; gap: 1rem; padding-top: 1rem; }
.animal-card { min-width: 0; color: var(--white); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.animal-card img { width: 100%; height: clamp(17rem, 25vw, 20rem); object-fit: cover; object-position: center; box-shadow: 0 14px 28px rgb(11 46 39 / 28%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.animal-card > div { padding: 1rem .35rem 0; text-align: center; }
.animal-card span { display: block; margin-bottom: .8rem; color: var(--lime); font: 700 .75rem/1 "Figtree", sans-serif; letter-spacing: .12em; }
.service-list article > span { display: block; margin: 0; color: var(--lime); font: 700 .75rem/1 "Figtree", sans-serif; letter-spacing: .12em; }
.animal-card span { display: none; }
.animal-card h3 { margin-bottom: .35rem; font-size: clamp(1.05rem, 1.55vw, 1.35rem); letter-spacing: -.025em; }
.animal-card p { margin: 0; color: #dbe8e2; font-size: .82rem; line-height: 1.45; }
.animal-card:hover { transform: translateY(-0.2rem); }
.animal-card:hover img { transform: scale(1.015); box-shadow: 0 16px 30px rgb(11 46 39 / 25%); }
.animals-carousel-controls { display: none; }

/* Progressive reveal: content remains visible when JavaScript is unavailable. */
.js .reveal { opacity: 0; transform: translateY(2rem); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--reveal-delay, 0ms);  }
.js .reveal.reveal-left { transform: translateX(-1.2rem) translateZ(0); }
.js .reveal.reveal-right { transform: translateX(1.2rem) translateZ(0); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0) translateX(0) translateZ(0); }
.js .animal-card.reveal { transform: translateY(2rem); }
.js .animal-card.reveal.is-visible { transform: none; }
.js .animal-card.reveal.is-visible:hover { transform: translateY(-0.2rem); }

.services-section { background: var(--cream); }
.services-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); }
.services-section .section-heading h2 { max-width: 15ch; font-size: clamp(2.15rem, 3.3vw, 3.45rem); }
.services-section .section-heading p { max-width: 34rem; font-size: 1.06rem; line-height: 1.7; }
.section-heading-left .text-link { margin-top: 1rem; }
.service-list { border-top: 1px solid #cbd3cc; }
.service-list article { display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; padding: 1.7rem 0; border-bottom: 1px solid #cbd3cc; align-items: center; }
.service-list h3 { margin-bottom: .4rem; }
.service-list p { margin: 0; color: var(--muted); }

.clinic-section { background: var(--green-950); color: var(--white); }
.clinic-grid { display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.clinic-image { max-height: 28rem; aspect-ratio: 4/3;  border-radius: var(--radius); }
.clinic-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.clinic-copy .eyebrow { color: var(--lime); }
.clinic-copy > p:not(.eyebrow) { color: #c9d9d2; }
.text-link-light { margin-top: 1rem; color: var(--lime); }

.team-section { padding-bottom: clamp(2.25rem, 3vw, 3.5rem); background: var(--paper); }
.team-showcase { max-width: 68rem; margin: 0 auto; display: grid; grid-template-columns: 1.35fr .85fr; align-items: center; gap: clamp(3rem, 7vw, 6rem); }
.team-carousel { position: relative; }
.team-carousel-viewport { position: relative; min-height: 32rem;  background: var(--green-950); border-radius: 1.5rem; box-shadow: var(--shadow); }
.team-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.03); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.team-slide.is-current { opacity: 1; transform: none; pointer-events: auto; }
.team-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.team-slide:nth-child(2) img { object-position: center 35%; }
.team-carousel-controls { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.team-carousel-button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: var(--green-950); background: var(--white); border: 0; border-radius: 50%; cursor: pointer; font: 700 1.2rem/1 "Figtree", sans-serif; transition: transform .2s, background .2s; }
.team-carousel-button:hover { background: var(--lime); transform: translateY(-2px); }
.team-carousel-dots { display: flex; gap: .5rem; padding: .6rem .75rem; background: rgb(11 46 39 / 72%); border-radius: 999px; }
.team-carousel-dots button { width: .55rem; height: .55rem; padding: 0; background: rgb(255 255 255 / 55%); border: 0; border-radius: 50%; cursor: pointer; }
.team-carousel-dots button.is-current { width: 1.35rem; background: var(--lime); border-radius: 999px; }
.team-members { align-self: center; }
.team-member-row { transition: opacity .25s; }
.team-member-heading { display: flex; align-items: center; gap: .75rem; }
.team-member-heading h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.team-marker { width: 1.3rem; height: .75rem; flex: 0 0 auto; background: rgb(23 100 82 / 25%); border-radius: .35rem; transition: width .25s, background .25s; }
.team-showcase.is-active .team-marker { width: 1.75rem; background: var(--green-700); }
.team-social { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; color: var(--accent-text); border: 1px solid var(--line); border-radius: 50%; opacity: .7; transition: opacity .2s, background .2s, transform .2s; }
.team-social:hover { color: var(--white); background: var(--green-700); opacity: 1; transform: translateY(-2px); }
.team-social svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.team-role { margin: .6rem 0 1.5rem 2.05rem; color: var(--accent-text); font: 700 .72rem/1.4 "Figtree", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.team-description { margin-left: 2.05rem; color: var(--muted); }
.team-pending { margin: 1.2rem 0 0 2.05rem; padding-top: 1.2rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .82rem; }
.team-expansion { width: 100%; max-width: none; margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
.team-expansion-heading { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.team-expansion-heading .eyebrow { margin-bottom: .6rem; }
.team-expansion-heading h3 { max-width: 48rem; margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.035em; }
.team-expansion-heading > p { max-width: 44rem; margin: 1rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.spaces-carousel { position: relative; width: 100%; }
.spaces-carousel-viewport { position: relative; min-height: 0; aspect-ratio: 16/9; overflow: hidden; background: var(--green-900); border-radius: var(--radius); }
.space-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.02); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.space-slide.is-current { opacity: 1; transform: none; pointer-events: auto; }
.space-slide img { width: 100%; height: 100%; object-fit: cover; }
.space-slide figcaption { position: absolute; top: 1rem; left: 1rem; z-index: 1; padding: .75rem 1.5rem .75rem .9rem; color: var(--green-950); background: var(--paper); border-radius: 0; box-shadow: 0 .6rem 1.4rem rgb(7 31 26 / 24%); font: 800 .75rem/1 "Figtree", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.space-slide figcaption::after { position: absolute; top: 0; right: 0; width: .72rem; height: .72rem; background: var(--cream); clip-path: polygon(0 0, 100% 100%, 0 100%); content: ""; }
.spaces-carousel-controls { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; display: flex; align-items: center; justify-content: space-between; }
.spaces-carousel-button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: var(--green-950); background: var(--white); border: 0; border-radius: 50%; cursor: pointer; font: 700 1.2rem/1 "Figtree", sans-serif; }
.spaces-carousel-dots { display: flex; gap: .5rem; padding: .6rem .75rem; background: rgb(11 46 39 / 72%); border-radius: 999px; }
.spaces-carousel-dots button { width: .55rem; height: .55rem; padding: 0; background: rgb(255 255 255 / 55%); border: 0; border-radius: 50%; cursor: pointer; }
.spaces-carousel-dots button.is-current { width: 1.35rem; background: var(--lime); border-radius: 999px; }
.future-team-list { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.future-team-list[hidden] { display: none; }
.future-member-card { min-height: 30rem; display: grid; grid-template-columns: 1.35fr .85fr; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); }
.future-member-card:nth-child(even) { grid-template-columns: .85fr 1.35fr; }
.future-member-card:nth-child(even) .future-member-photos { grid-column: 2; }
.future-member-card:nth-child(even) .future-member-content { grid-column: 1; grid-row: 1; }
.future-member-photos { min-height: 29rem; display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: start; gap: .8rem; }
.future-photo-card { position: relative; margin: 0; overflow: hidden; display: grid; place-items: center; color: var(--accent-text); background: linear-gradient(145deg, rgb(23 100 82 / 15%), rgb(214 232 139 / 28%)); border: 1px dashed rgb(23 100 82 / 32%); border-radius: 1rem; transition: color .3s, background .3s, transform .45s; }
.future-photo-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.78); transition: filter .45s, transform .45s; }
.future-photo-card svg { width: 4rem; fill: currentColor; opacity: .38; transition: opacity .35s, transform .45s; }
.future-photo-card figcaption { position: absolute; right: .4rem; bottom: .5rem; left: .4rem; color: var(--green-900); font: 700 .58rem/1.2 "Figtree", sans-serif; letter-spacing: .08em; text-align: center; text-transform: uppercase; opacity: .65; }
.future-photo-one { height: 14rem; }
.future-photo-two { height: 17rem; margin-top: 4.5rem; }
.future-photo-three { height: 15rem; margin-top: 2rem; }
.future-member-content { transition: transform .3s; }
.future-member-status { display: inline-flex; padding: .4rem .65rem; color: var(--green-900); background: rgb(214 232 139 / 48%); border-radius: 999px; font: 700 .65rem/1 "Figtree", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.future-member-content h4 { margin: 1.1rem 0 .3rem; font-size: 1.25rem; }
.future-member-role { margin: 0 0 1rem; color: var(--accent-text); font: 700 .68rem/1.4 "Figtree", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.future-member-content > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.future-member-card:hover .future-photo-card { color: var(--green-900); background: linear-gradient(145deg, rgb(23 100 82 / 25%), rgb(214 232 139 / 48%)); transform: translateY(-.25rem); }
.future-member-card:hover .future-photo-card svg { opacity: .75; transform: scale(1.08); }
.future-member-card:hover .future-photo-card img { filter: grayscale(0) brightness(1); transform: scale(1.025); }
.future-member-card:hover .future-member-content { transform: translateX(.25rem); }
.future-member-card:nth-child(even):hover .future-member-content { transform: translateX(-.25rem); }

.journey-section { padding-top: clamp(2.25rem, 3vw, 3.5rem); background: var(--paper); }
.journey-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; }
.journey-grid li { min-height: 17rem; padding: 2rem; display: flex; flex-direction: column; align-items: flex-start; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.journey-grid span { display: inline-flex; align-items: center; justify-content: center; min-width: 3rem; height: 1.8rem; margin-bottom: 1.5rem; color: var(--green-900); background: rgb(168 200 61 / 28%); border-radius: 999px; font: 700 .75rem/1 "Figtree", sans-serif; letter-spacing: .12em; padding-left: .12em; }
.journey-grid h3 { margin-bottom: .75rem; }
.journey-grid p { max-width: 25rem; }
.journey-grid p { margin-bottom: 0; color: var(--muted); }

.guidance-section { color: var(--white); background: var(--green-900); }
.guidance-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.guidance-grid .eyebrow { color: var(--lime); }
.guidance-grid > div > p:not(.eyebrow) { max-width: 38rem; color: #cedeD7; }
.guidance-grid .button { margin-top: 1rem; color: var(--green-950); background: var(--lime); border-color: var(--lime); }
.check-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 20%); }
.check-list li { position: relative; padding: 1.3rem 0 1.3rem 2.5rem; border-bottom: 1px solid rgb(255 255 255 / 20%); }
.check-list li::before { position: absolute; top: 50%; transform: translateY(-50%); left: 0; width: 1.5rem; height: 1.5rem; display: flex; align-items: center; justify-content: center; color: var(--green-950); background: var(--lime); border-radius: 50%; font-weight: 800; content: "✓"; padding-top: .1rem; } /* added padding-top to optically center the checkmark character in most fonts */
.check-list strong, .check-list span { display: block; }
.check-list span { margin-top: .2rem; color: #c7d8d1; font-size: .9rem; }

.gallery-section { background: var(--cream); }
.gallery-heading { max-width: none; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.gallery-heading .eyebrow { margin-bottom: .7rem; }
.gallery-heading h2 { margin-bottom: 0; }
.gallery-heading > p { max-width: 32rem; margin: 0; }
.gallery-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; grid-template-rows: repeat(2, 18rem); gap: 1rem; }
.gallery-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--green-900);  }
.gallery-grid .gallery-main { grid-row: 1 / 3; }
.gallery-grid figure:last-child { grid-column: 2 / 4; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .7s ease-in-out, transform .9s ease-in-out; }
.gallery-grid figcaption { position: absolute; top: 1rem; left: 1rem; z-index: 1; padding: .75rem 1.5rem .75rem .9rem; color: var(--green-950); background: var(--paper); box-shadow: 0 .6rem 1.4rem rgb(7 31 26 / 24%); font: 800 .75rem/1 "Figtree", sans-serif; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transform: translateY(-.4rem); transition: opacity .2s ease, transform .2s ease; }
.gallery-grid figcaption::after { position: absolute; top: 0; right: 0; width: .72rem; height: .72rem; background: var(--cream); clip-path: polygon(0 0, 100% 100%, 0 100%); content: ""; }

@media (hover: none) {
  .gallery-grid figcaption { opacity: 1; transform: none; }
}

.region-section { padding: clamp(2.5rem, 5vw, 4rem) 0; color: var(--white); background: var(--green-700); }
.region-content { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.region-content .eyebrow { color: #dceca1; }
.region-content h2 { max-width: 53rem; margin: 0; font-size: clamp(1.8rem, 4vw, 3.4rem); }

.faq-section { background: var(--paper); }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 8rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 4.5rem; padding: 1.2rem 3rem 1.2rem 0; position: relative; display: flex; align-items: center; cursor: pointer; font: 700 1.1rem/1.35 "Figtree", sans-serif; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: .4rem; color: var(--accent-text); font-size: 1.7rem; font-weight: 400; content: "+"; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 47rem; padding: 0 3rem 1.4rem 0; color: var(--muted); }

.contact-section { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); }
.contact-grid .section-heading h2 { max-width: 15ch; font-size: clamp(2.15rem, 3.2vw, 3.35rem); line-height: 1.12; }
.contact-grid .section-heading > p { max-width: 34rem; font-size: 1.05rem; }
.contact-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; font-style: normal; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(2.5rem, 5vw, 3.5rem); }
.contact-details div { display: flex; flex-direction: column; align-items: flex-start; padding: 0; border: none; }
.contact-details .item-full { grid-column: 1 / -1; }
.contact-details span { margin-bottom: .7rem; color: var(--accent-text); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.contact-details a { font-weight: 600; font-size: .95rem; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .25em; transition: text-decoration-color .2s; }
.contact-details a:hover { text-decoration-color: var(--accent-text); }
.contact-details p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink); }
.contact-section { background: var(--paper); padding-bottom: 1.5rem; }
.location-grid { margin-top: clamp(3rem, 7vw, 5rem); display: grid; grid-template-columns: 1.3fr .7fr; overflow: hidden; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.location-section { padding-top: 1.5rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); background: var(--paper); }
.location-section .location-grid { margin-top: 0; }
.map-wrap { min-height: 31rem; }
.map-wrap iframe { width: 100%; height: 100%; display: block; border: 0; }
.route-card { padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.route-card h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.route-card > p:not(.eyebrow) { color: var(--muted); }
.route-actions { margin-top: 1rem; display: flex; align-items: stretch; flex-direction: column; gap: .8rem; }
.route-actions .button { color: var(--green-950); background: var(--white); border-color: var(--line); }
.route-actions .button:hover { color: var(--green-950); background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }

.button-outline { color: var(--accent-text); background: transparent; }
.button-outline:hover { color: var(--white); }

.site-footer { padding: 3rem 0; color: #cad8d2; background: #071f1a; }
.footer-grid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; text-align: center; }
.footer-brand { width: auto; height: 7.5rem; display: flex; align-items: center;  }
.footer-grid div { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; }
.footer-grid strong { margin-right: .25rem; color: var(--white); font-family: "Figtree", sans-serif; }
.footer-grid a { color: #cad8d2; font-size: .9rem; text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-contact-actions { }
.footer-contact-button { width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgb(255 255 255 / 25%); border-radius: 999px; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.footer-contact-button svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact-button svg path:only-child { fill: currentColor; stroke: none; }
.footer-contact-button .icon-fill { fill: currentColor; stroke: none; }
.footer-contact-button:hover { color: var(--green-950) !important; background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.footer-bottom { margin-top: 1.5rem; padding-top: 1.15rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; border-top: 1px solid rgb(255 255 255 / 14%); font-size: .78rem; }
.whatsapp-float { position: fixed; z-index: 89; right: 2.2rem; bottom: 2.2rem; width: 3.6rem; height: 3.6rem; display: flex; justify-content: center; align-items: center; color: var(--white); background: #168c4b; border-radius: 50%; box-shadow: 0 12px 35px rgb(10 70 40 / 28%); text-decoration: none; transition: background .2s, transform .2s; }
.whatsapp-float span { display: none; }
.whatsapp-float:hover { background: #0e703a; transform: translateY(-3px); }
.whatsapp-float svg { width: 1.7rem; height: 1.7rem; fill: currentColor; }

@media (max-width: 1180px) {
  .nav-wrap { gap: 1.2rem; }
  .brand { width: 5.8rem; height: 4.7rem; }
  .brand img { height: 6.8rem; }
  .main-nav { gap: clamp(.75rem, 1.8vw, 1.25rem); }
  .main-nav a { font-size: .84rem; }
}

@media (max-width: 1080px) {
}

@media (min-width: 981px) and (max-height: 1000px) {
  .section { padding: 3.75rem 0; }
  .hero { padding: 4rem 0 4.5rem; }
  .section-heading { margin-bottom: 2.75rem; }
  .animal-card img { height: 16rem; }
  .team-carousel-viewport { min-height: 27rem; }
  .spaces-carousel-viewport { max-height: none; aspect-ratio: 2/1; }
  .gallery-grid { grid-template-rows: repeat(2, 15rem); }
}

@media (max-width: 980px) {
  .menu-toggle { display: block; cursor: pointer; }
  .main-nav { position: fixed; inset: 4.2rem 0 auto; height: calc(100dvh - 4.2rem); padding: 2rem 1rem; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a { padding: 1.1rem; border-bottom: 1px solid var(--line); font: 700 1.3rem/1.2 "Figtree", sans-serif; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid, .services-layout, .clinic-grid, .team-showcase, .guidance-grid, .faq-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 48rem; }
  .hero-media { max-width: 36rem; }
  .animal-grid { grid-template-columns: repeat(2, 1fr); }
  .animal-card img { height: 21rem; }
  .services-layout { gap: 3rem; }
  .clinic-grid { max-width: 48rem; }
  .team-showcase { max-width: 44rem; }
  .team-members { max-width: 32rem; }
  .team-expansion-heading { max-width: 42rem; }
  .future-member-card, .future-member-card:nth-child(even) { max-width: 44rem; margin-inline: auto; grid-template-columns: 1fr; gap: 1.5rem; }
  .future-member-card .future-member-photos, .future-member-card:nth-child(even) .future-member-photos { grid-column: 1; grid-row: 1; }
  .future-member-card .future-member-content, .future-member-card:nth-child(even) .future-member-content { max-width: 32rem; grid-column: 1; grid-row: 2; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 25rem 17rem 17rem; }
  .gallery-grid .gallery-main { grid-column: 1 / 3; grid-row: auto; }
  .gallery-grid figure:last-child { grid-column: auto; }
  .location-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 24rem; }
  .footer-grid { justify-content: flex-start; flex-wrap: wrap; }
}

@media (min-width: 641px) and (max-width: 980px) {
  .container { width: min(calc(100% - 3rem), 46rem); }
  .section { padding-block: 4.25rem; }
  .section-heading { margin-bottom: 3rem; }
  .animal-grid { gap: 1.25rem; }
  .animal-card img { height: auto; aspect-ratio: 4 / 5; }
  .team-carousel-viewport { min-height: 0; aspect-ratio: 4 / 3; }
  .spaces-carousel-viewport { aspect-ratio: 16 / 10; }
  .gallery-grid { grid-template-rows: 22rem 15rem 15rem; }
  .map-wrap { min-height: 22rem; }
}

@media (max-width: 640px) {
  
  h1 { margin-bottom: 1rem; font-size: clamp(2.45rem, 11vw, 3.25rem); line-height: 1.04; }
  h2 { margin-bottom: 1rem; font-size: clamp(2rem, 8.6vw, 2.7rem); line-height: 1.1; }
  h3 { font-size: 1.28rem; }
  .section { padding: 3.25rem 0; }
  .section-heading { margin-bottom: 2.5rem; }
  .eyebrow { margin-bottom: .75rem; font-size: .7rem; letter-spacing: .13em; }
  .utility-content > span { display: none; }
      .nav-wrap { min-height: 4.2rem; }
  .brand { width: 5.5rem; height: 4.2rem; }
  .brand img { height: 6.5rem; }
  .main-nav { top: 4.2rem; height: calc(100dvh - 4.2rem); }
  .hero { padding: 2.4rem 0 3.75rem; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero-media { order: initial; }
  .hero-media img { aspect-ratio: 4/3; border-radius: 5rem 5rem 1rem 1rem; }
  .hero-media figcaption { right: .65rem; bottom: .65rem; max-width: 11.5rem; padding: .75rem .85rem; font-size: .74rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { justify-content: center; min-height: 3rem; }
  .hero-points { display: grid; gap: .5rem; }
  .animal-grid { grid-template-columns: 1fr; }
  .animal-card img, .animal-card-small-mammals img, .animal-card-dogs-cats img { height: auto; aspect-ratio: 4 / 5; }
  .animal-card > div { padding-top: .8rem; }
  .animal-card p { font-size: .88rem; }
  .services-layout { gap: 2.5rem; }
  .services-section .section-heading h2, .contact-grid .section-heading h2 { max-width: none; font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .services-section .section-heading p, .contact-grid .section-heading > p { font-size: 1rem; line-height: 1.6; }
  .service-list article { grid-template-columns: 2.2rem 1fr; gap: .85rem; padding: 1.25rem 0; align-items: center; }
  
  .team-section { padding-bottom: 2rem; }
  .team-carousel-viewport { min-height: 0; aspect-ratio: 1 / 1.05; }
  .team-carousel-controls { right: .7rem; bottom: .7rem; left: .7rem; }
  .team-carousel-button { width: 2.75rem; height: 2.75rem; }
  .spaces-carousel-viewport { min-height: 0; aspect-ratio: 4/3; }
  .team-expansion-heading h3 { font-size: clamp(2rem, 8.6vw, 2.7rem); }
  .team-role, .team-description, .team-pending { margin-left: 0; }
  .future-member-card, .future-member-card:nth-child(even) { min-height: 0; }
  .future-member-photos { min-height: 25rem; gap: .5rem; }
  .future-photo-one { height: 10rem; }
  .future-photo-two { height: 13rem; margin-top: 3rem; }
  .future-photo-three { height: 11rem; margin-top: 1.25rem; }
  .future-member-content { padding-inline: .25rem; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-section { padding-top: 2rem; }
  .journey-grid { gap: .8rem; }
  .journey-grid li { min-height: 0; padding: 1.5rem; }
  .journey-grid span { margin-bottom: 1.15rem; }
  .gallery-heading { margin-bottom: 1.75rem; gap: .75rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 16rem); }
  .gallery-grid .gallery-main, .gallery-grid figure:last-child { grid-column: auto; }
  .region-content, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-grid { gap: 2.5rem; }
  .contact-grid .button { width: fit-content; min-height: 3rem; padding-inline: 1.2rem; }
  .footer-grid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; text-align: center; }
  .footer-grid div { align-items: center; justify-content: center; }
  .footer-grid strong { width: 100%; margin-right: 0; }
  .footer-contact-actions { margin-left: 0; }
  .whatsapp-float { right: 1.25rem; bottom: max(1.5rem, env(safe-area-inset-bottom)); width: 3.4rem; height: 3.4rem; }
  .whatsapp-float svg { width: 1.6rem; height: 1.6rem; }
}

.gallery-carousel { position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; isolation: isolate; cursor: grab; scroll-snap-type: x proximity; scrollbar-width: none; user-select: none;   }
.gallery-carousel::-webkit-scrollbar { display: none; }
.gallery-carousel .gallery-grid { width: max-content; display: flex; grid-template-columns: none; grid-template-rows: none; gap: 1rem; }
.gallery-carousel .gallery-grid figure, .gallery-carousel .gallery-grid .gallery-main, .gallery-carousel .gallery-grid figure:last-child { width: clamp(17rem, 28vw, 25rem); height: clamp(16rem, 25vw, 22rem); flex: 0 0 auto; grid-column: auto; grid-row: auto; }

@media (max-width: 980px) {
  .gallery-carousel { -webkit-mask-image: none; mask-image: none; }
  .gallery-carousel .gallery-grid figure, .gallery-carousel .gallery-grid .gallery-main, .gallery-carousel .gallery-grid figure:last-child { width: clamp(18rem, 56vw, 25rem); height: 20rem; }
}

@media (max-width: 640px) {
  .gallery-carousel .gallery-grid figure, .gallery-carousel .gallery-grid .gallery-main, .gallery-carousel .gallery-grid figure:last-child { width: calc(100vw - 4rem); height: 19rem; }
}

@media (max-width: 420px) {
  .container { width: min(calc(100% - 2rem), 25rem); }
  .section { padding-block: 3rem; }
  .section-heading { margin-bottom: 2.1rem; }
      .hero { padding-top: 2rem; padding-bottom: 3rem; }
  .hero-media img { border-radius: 4rem 4rem 1rem 1rem; }
  .hero-lead { margin-bottom: 1.5rem; font-size: 1rem; }
  .hero-points { margin-top: 1.75rem; font-size: .82rem; }
  .animal-grid { gap: 2rem; }
  .animal-card > div { padding-inline: 0; }
  .services-layout, .contact-grid { gap: 2rem; }
  .service-list article { padding-block: 1.1rem; }
  .team-showcase { gap: 2rem; }
  .team-carousel-viewport { aspect-ratio: 1 / 1; }
  .spaces-carousel-viewport { aspect-ratio: 5 / 4; }
  .space-slide figcaption { top: .75rem; left: .75rem; font-size: .7rem; }
  .journey-grid li { padding: 1.3rem; }
  .gallery-grid { grid-template-rows: repeat(4, 14rem); }
  .gallery-grid figcaption { font-size: .75rem; }
  .map-wrap { min-height: 20rem; }
  .route-card { padding: 1.5rem; }
  .footer-grid { gap: 1.15rem; }
  .footer-brand { width: auto; height: 6.8rem; }
  .footer-bottom { gap: .4rem; font-size: .72rem; flex-direction: column; align-items: center; text-align: center; justify-content: center; }
}

@media (max-width: 980px) {
  .animals-carousel { position: relative; }
  .animals-carousel .animal-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 1rem) / 2); align-items: stretch; overflow-x: auto; overscroll-behavior-inline: contain; padding: 1rem 0 .75rem; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-width: none; }
  .animals-carousel .animal-grid::-webkit-scrollbar { display: none; }
  .animals-carousel .animal-card { scroll-snap-align: start; }
  .animals-carousel-controls { display: flex; justify-content: center; gap: .6rem; margin-top: .5rem; }
  .animals-carousel-controls button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: var(--green-950); background: var(--lime); border: 0; border-radius: 50%; cursor: pointer; font: 700 1.25rem/1 "Figtree", sans-serif; }
}

@media (max-width: 640px) {
  .animals-carousel .animal-grid { grid-auto-columns: 100%; }
  .animals-carousel .animal-card img, .animals-carousel .animal-card-small-mammals img, .animals-carousel .animal-card-dogs-cats img { aspect-ratio: 4 / 5; }
  .animals-carousel-controls { margin-top: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .gallery-carousel { overflow-x: auto; }
}

@media (max-width: 980px) { .header-actions { margin-left: auto; } }

/* Fix figcaptions in dark mode */
body.dark-theme .hero-media figcaption,
body.dark-theme .space-slide figcaption,
body.dark-theme .gallery-grid figcaption {
  color: var(--ink);
  background: var(--cream);
}
body.dark-theme .space-slide figcaption::after,
body.dark-theme .gallery-grid figcaption::after {
  background: var(--line);
}
body.dark-theme .future-photo-card figcaption {
  color: var(--muted);
}

/* Fix for route buttons in dark mode */
body.dark-theme .route-actions .button { background: var(--paper); color: var(--ink); border-color: var(--line); }
body.dark-theme .route-actions .button:hover { background: var(--lime); color: var(--green-950); border-color: var(--lime); }

/* Fix for journey steps in dark mode */
body.dark-theme .journey-grid span { color: var(--green-950); background: var(--lime); }




