/* ═══════════════════════════════════════════════════════════
   LA HESPERIA — SHARED STYLESHEET
   Cloud Forest Reserve & Sustainable Farmland
   All pages reference this file for consistent design.
   ═══════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  --primary-dark: #1B4332;
  --primary-med: #2D6A4F;
  --primary-light: #40916C;
  --accent-gold: #B08D57;
  --accent-gold-light: #C4A46D;
  --neutral-bg: #F5F5F0;
  --neutral-warm: #EDEAE3;
  --neutral-dark: #1A1A1A;
  --body-text: #3A3A3A;
  --mist-green: #D8F3DC;
  --mist-green-light: #E8F8EC;
  --white: #FFFFFF;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 110px; }
::selection { background: var(--primary-med); color: var(--white); }
body {
  font-family: var(--font-body); color: var(--body-text);
  background: var(--neutral-bg); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 3px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ─── NAVIGATION ────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 0; transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(27, 67, 50, 0.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 0.7rem 0; box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}
/* For pages with light backgrounds (not hero), start with solid bg */
.nav.nav-solid { background: var(--primary-dark); padding: 0.75rem 0; }

.nav-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 600; color: var(--white);
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
}
.nav-logo span {
  display: block; font-size: 0.55em; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; margin-top: -2px;
}

/* Footer overrides — stack vertically with proper spacing */
.footer-brand .nav-logo {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.footer-brand .nav-logo span {
  font-size: 0.48em;
  letter-spacing: 0.2em;
  margin-top: 6px;
  opacity: 0.5;
  line-height: 1.5;
}
/* Logo image in nav */
.nav-logo-img {
  height: 38px; width: auto; display: block;
  transition: opacity var(--transition);
}
/* All nav states: logo always white (PNG has transparent bg, dark artwork) */
.nav-logo-img { filter: brightness(0) invert(1); }

/* Footer logo image */
.footer-logo-img {
  height: 52px; width: auto; display: block;
  filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 1rem;
}
/* Partner logos in footer */
.footer-partner-logo {
  height: 32px; width: auto; display: inline-block;
  vertical-align: middle; margin-right: 0.4rem;
}
.footer-partner-logo.tangare {
  mix-blend-mode: screen; opacity: 0.85;
}
.footer-partner-logo.boutique {
  filter: brightness(0) invert(1); opacity: 0.75;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--white); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85;
  transition: opacity var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--accent-gold); transition: width var(--transition);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: -1rem;
  background: var(--primary-dark); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 0.5rem 0; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition); box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block; padding: 0.6rem 1.25rem; font-size: 0.82rem;
  text-transform: none; letter-spacing: 0.02em;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); }
.nav-dropdown-menu .nav-dd-desc {
  display: block; font-size: 0.72rem; opacity: 0.5; font-weight: 400;
  margin-top: 2px; text-transform: none; letter-spacing: 0;
}
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
/* ── Language switcher (EN / ES) ──────────────────────────── */
.lang-switch { display: flex; gap: 0; border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; overflow: hidden; }
.lang-switch button,
.lang-switch a,
.lang-switch span {
  background: transparent; border: 0;
  padding: 0.3rem 0.6rem;
  font-family: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.lang-switch button.active,
.lang-switch a.active,
.lang-switch .lang-active { background: rgba(255,255,255,0.15); color: var(--white); cursor: default; }
.lang-switch button:not(.active):hover,
.lang-switch a:not(.active):hover { color: var(--white); background: rgba(255,255,255,0.06); }

/* ── Spanish-specific spacing tweaks (Spanish runs ~25% longer) ── */
:lang(es) .nav-cta { padding: 0.55rem 1.05rem; letter-spacing: 0.05em; }
@media (max-width: 1100px) {
  :lang(es) .nav-links { gap: 1.5rem; }
}
/* Dropdown trigger — pointer cursor on the chevron link */
.nav-dropdown > a { cursor: default; }
.nav-cta {
  background: var(--accent-gold); color: var(--white); padding: 0.55rem 1.3rem;
  border-radius: 4px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; transition: all var(--transition);
}
.nav-cta:hover { background: var(--accent-gold-light); transform: translateY(-1px); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--white); transition: all var(--transition); border-radius: 2px; }

/* ─── MOBILE SHEET MENU ─────────────────────────────────── */
.mobile-sheet-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1100;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.mobile-sheet-overlay.open { opacity: 1; visibility: visible; }
.mobile-sheet {
  position: fixed; top: 0; right: 0; bottom: 0; width: 320px; max-width: 85vw;
  background: var(--white); z-index: 1101; padding: 2rem;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto; box-shadow: -8px 0 30px rgba(0,0,0,0.15);
}
.mobile-sheet.open { transform: translateX(0); }
.mobile-sheet-close {
  position: absolute; top: 1.25rem; right: 1.25rem; width: 32px; height: 32px;
  border-radius: 4px; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--body-text); opacity: 0.5; transition: all var(--transition);
}
.mobile-sheet-close:hover { opacity: 1; background: var(--neutral-bg); }
.mobile-sheet-logo {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600;
  color: var(--primary-dark); letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.mobile-sheet-logo span {
  display: block; font-size: 0.5em; font-weight: 400;
  letter-spacing: 0.15em; color: var(--body-text); opacity: 0.5; margin-top: 2px;
}
.mobile-sheet-nav { margin-top: 2rem; display: flex; flex-direction: column; gap: 0; }
.mobile-sheet-link {
  display: block; padding: 0.85rem 0; font-size: 0.95rem; font-weight: 600;
  color: var(--neutral-dark); border-bottom: 1px solid var(--neutral-warm);
  transition: color var(--transition);
}
.mobile-sheet-link:hover { color: var(--accent-gold); }
.mobile-sheet-group { border-bottom: 1px solid var(--neutral-warm); }
.mobile-sheet-group-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 0; font-size: 0.95rem; font-weight: 600;
  color: var(--neutral-dark); cursor: pointer;
}
.mobile-sheet-group-title svg { width: 16px; height: 16px; transition: transform 0.2s; }
.mobile-sheet-group.open .mobile-sheet-group-title svg { transform: rotate(180deg); }
.mobile-sheet-submenu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-sheet-group.open .mobile-sheet-submenu { max-height: 400px; }
.mobile-sheet-sublink {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.65rem 0 0.65rem 0.5rem; font-size: 0.88rem; color: var(--body-text);
  transition: color var(--transition);
}
.mobile-sheet-sublink:hover { color: var(--primary-dark); }
.mobile-sheet-sublink svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--primary-light); }
.mobile-sheet-sublink-text strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--neutral-dark); }
.mobile-sheet-sublink-text span { font-size: 0.78rem; opacity: 0.6; }
.mobile-sheet-extra {
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--neutral-warm);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
}
.mobile-sheet-extra a { font-size: 0.85rem; color: var(--body-text); opacity: 0.6; padding: 0.5rem 0; transition: all var(--transition); }
.mobile-sheet-extra a:hover { opacity: 1; color: var(--accent-gold); }
.mobile-sheet-cta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-sheet-cta .btn-primary { text-align: center; }

/* ─── Mobile drawer language switcher ────────────────────── */
.mobile-sheet-lang {
  margin-top: 1.5rem; display: flex; justify-content: center;
}
.mobile-sheet-lang .lang-switch {
  border: 1px solid var(--neutral-warm); border-radius: 4px;
  overflow: hidden; background: var(--white);
}
.mobile-sheet-lang .lang-switch button {
  background: transparent; border: 0;
  padding: 0.45rem 1.1rem; font-family: inherit; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--body-text); opacity: 0.6; cursor: pointer; line-height: 1;
  transition: opacity var(--transition), background var(--transition), color var(--transition);
}
.mobile-sheet-lang .lang-switch button.active {
  background: var(--primary-dark); color: var(--white); opacity: 1; cursor: default;
}
.mobile-sheet-lang .lang-switch button + button { border-left: 1px solid var(--neutral-warm); }
.mobile-sheet-lang .lang-switch button:not(.active):hover { opacity: 1; background: var(--neutral-bg); }

/* ─── SHARED SECTION HEADERS ────────────────────────────── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 1rem;
}
.section-header h2 {
  font-family: var(--font-heading); font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500; color: var(--primary-dark); line-height: 1.2; margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.05rem; color: var(--body-text); max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  background: var(--accent-gold); color: var(--white); padding: 0.9rem 2.2rem;
  border-radius: 4px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; transition: all var(--transition);
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%; background: rgba(255,255,255,0.15);
  transform: translate(-50%, -50%); transition: width 0.5s ease, height 0.5s ease;
}
.btn-primary:hover::before { width: 300px; height: 300px; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(176,141,87,0.4); }
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
  background: var(--primary-dark); color: var(--white); padding: 0.9rem 2.2rem;
  border-radius: 4px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; transition: all var(--transition);
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { background: var(--primary-med); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(27,67,50,0.25); }

.btn-ghost {
  background: transparent; color: var(--white); padding: 0.9rem 2.2rem; border-radius: 4px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4); transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-ghost:hover {
  transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.8);
}

/* Ghost variant for dark-on-light backgrounds */
.btn-ghost-dark {
  background: transparent; color: var(--primary-dark); padding: 0.9rem 2.2rem; border-radius: 4px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--neutral-warm); transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-ghost-dark:hover {
  border-color: var(--primary-dark); background: rgba(27,67,50,0.04);
}

.btn-whatsapp {
  background: #25D366; color: var(--white); padding: 0.9rem 2rem; border-radius: 4px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5rem; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn-whatsapp::before {
  content: ''; position: absolute; top: 50%; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-whatsapp:hover::before { left: 100%; }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37,211,102,0.35); }

.nav-cta { position: relative; overflow: hidden; }
.nav-cta::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%); transition: transform 0.6s ease;
}
.nav-cta:hover::after { transform: translateX(100%); }

/* ─── TESTIMONIAL CARDS (reusable) ──────────────────────── */
.testi-card {
  padding: 2rem; border-radius: 16px; border: 1px solid var(--neutral-warm);
  background: var(--white); max-width: 320px; width: 100%;
  box-shadow: 0 4px 20px rgba(27,67,50,0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(27,67,50,0.1); }
.testi-card-text {
  font-size: 0.92rem; line-height: 1.78; color: var(--body-text); margin-bottom: 1.25rem;
  padding-top: 0.25rem;
}
.testi-card-author { display: flex; align-items: center; gap: 0.6rem; }
.testi-card-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testi-card-avatar-placeholder {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary-med);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 600; font-size: 0.8rem; flex-shrink: 0;
}
.testi-card-name { font-weight: 600; font-size: 0.85rem; color: var(--neutral-dark); line-height: 1.3; }
.testi-card-role { font-size: 0.75rem; color: var(--body-text); opacity: 0.6; line-height: 1.3; }

/* For inline testimonial rows (service pages) */
.testi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testi-row .testi-card { max-width: none; }

/* ─── FINAL CTA SECTION (shared) ────────────────────────── */
.final-cta { position: relative; padding: 8rem 0; text-align: center; overflow: hidden; }
.final-cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,67,50,0.82) 0%, rgba(27,67,50,0.93) 100%),
    url('panoramic-farm.jpg') center/cover no-repeat fixed;
}
.final-cta-content { position: relative; z-index: 2; color: var(--white); }
.final-cta h2 { font-family: var(--font-heading); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 500; margin-bottom: 1rem; }
.final-cta p { font-size: 1.1rem; opacity: 0.85; max-width: 550px; margin: 0 auto 2.5rem; line-height: 1.7; }
.final-cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.final-cta-sub { font-size: 0.85rem; opacity: 0.6; font-style: italic; }

/* ─── FOOTER ────────────────────────────────────────────── */
.footer { background: var(--neutral-dark); padding: 4rem 0 2rem; color: rgba(255,255,255,0.65); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.5rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.footer h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.85rem; opacity: 0.65; transition: all var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--accent-gold); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; margin-bottom: 0.75rem; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; opacity: 0.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; opacity: 0.45;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* ─── WHATSAPP FLOAT ────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999; width: 56px; height: 56px;
  border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: all var(--transition);
  animation: floatPulse 3s ease-in-out infinite, floatBounce 6s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }
@keyframes floatPulse { 0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); } }
@keyframes floatBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ─── SCROLL REVEAL ─────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* Image clip-path reveal */
.img-reveal {
  clip-path: inset(8% 8% 8% 8%);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-reveal.visible {
  clip-path: inset(0% 0% 0% 0%);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  z-index: 1001; transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(176,141,87,0.4);
}

/* ─── SERVICE PAGE HERO ─────────────────────────────────── */
.service-hero {
  position: relative; padding: 8rem 0 4rem; overflow: hidden; min-height: 440px;
  display: flex; align-items: flex-end;
}
.service-hero-bg {
  position: absolute; inset: 0;
  background-color: var(--primary-dark);
  background-size: cover; background-position: center;
  background-attachment: fixed;
}

/* ─── IMAGE PLACEHOLDER SYSTEM ──────────────────────────── */
/* Applied to any image container while real photos are pending */
.img-placeholder {
  background: var(--neutral-warm);
  position: relative;
}
.img-placeholder::after {
  content: 'Photo coming soon';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--body-text); opacity: 0.3;
}
/* sp-life-image fallback so grid doesn't collapse without photos */
.sp-life-image { background: var(--neutral-warm); }
.service-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,67,50,0.3) 0%, rgba(27,67,50,0.75) 100%);
}
.service-hero-content { position: relative; z-index: 2; color: var(--white); padding-top: 70px; }
.service-hero-breadcrumb {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1rem; opacity: 0.7;
}
.service-hero-breadcrumb a { opacity: 0.7; transition: opacity var(--transition); }
.service-hero-breadcrumb a:hover { opacity: 1; }
.service-hero-breadcrumb span { opacity: 0.4; margin: 0 0.5rem; }
.service-hero h1 {
  font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500; line-height: 1.15; margin-bottom: 1rem;
}
.service-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 300; line-height: 1.7;
  max-width: 600px; opacity: 0.9; margin-bottom: 2rem;
}
.service-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── SERVICE PAGE SECTIONS ─────────────────────────────── */
.sp-section { padding: 5rem 0; }

.sp-section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-gold); margin-bottom: 1rem;
}
.sp-section h2 {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500; color: var(--primary-dark); line-height: 1.2; margin-bottom: 1.5rem;
}
.sp-section p { font-size: 1rem; line-height: 1.8; color: var(--body-text); margin-bottom: 1.25rem; }

/* Summary with sidebar */
.sp-summary-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.sp-details-box {
  background: var(--primary-dark); border-radius: 12px; padding: 2rem;
  color: var(--white); position: sticky; top: 100px;
  border-top: 3px solid var(--accent-gold);
}
.sp-details-box h3 {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600;
  color: var(--accent-gold); margin-bottom: 1.25rem;
}
.sp-detail-row {
  display: flex; justify-content: space-between; padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.88rem;
}
.sp-detail-row:last-child { border-bottom: none; }
.sp-detail-label { opacity: 0.6; }
.sp-detail-value { font-weight: 600; text-align: right; }

/* Activity grid */
.sp-activities-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 1.5rem;
}
@media (max-width: 1024px) {
  .sp-activities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sp-activities-grid { grid-template-columns: 1fr; gap: 1rem; max-width: 480px; margin-left: auto; margin-right: auto; }
  .sp-activity-card { padding: 1.25rem; }
}
.sp-activity-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem; border-radius: 12px; background: var(--white);
  border: 1px solid var(--neutral-warm); transition: all var(--transition);
}
.sp-activity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(27,67,50,0.08);
  border-color: var(--mist-green);
}
.sp-activity-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--mist-green);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--primary-med);
}
.sp-activity-icon svg { width: 20px; height: 20px; }
.sp-activity-title { font-weight: 600; font-size: 0.95rem; color: var(--neutral-dark); margin-bottom: 0.3rem; }
.sp-activity-desc { font-size: 0.85rem; color: var(--body-text); opacity: 0.75; line-height: 1.5; }

/* Benefits list */
.sp-benefits-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem;
}
.sp-benefit {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0;
}
.sp-benefit-check {
  width: 24px; height: 24px; border-radius: 50%; background: var(--mist-green);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--primary-med); margin-top: 2px;
}
.sp-benefit-check svg { width: 14px; height: 14px; }
.sp-benefit-text { font-size: 0.95rem; color: var(--body-text); line-height: 1.5; }

/* Life section two-col */
.sp-life-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.sp-life-image { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.sp-life-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.sp-life-image:hover img { transform: scale(1.04); }

/* Pricing table */
.sp-pricing-card {
  background: var(--white); border: 1px solid var(--neutral-warm); border-radius: 12px;
  padding: 2.5rem; max-width: 700px; margin: 0 auto;
}
.sp-pricing-card h3 {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600;
  color: var(--primary-dark); margin-bottom: 1rem;
}
.sp-pricing-row {
  display: flex; justify-content: space-between; padding: 0.75rem 0;
  border-bottom: 1px solid var(--neutral-warm); font-size: 0.95rem;
}
.sp-pricing-row:last-of-type { border-bottom: none; }
.sp-pricing-included {
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--neutral-warm);
}
.sp-pricing-included h4 {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--primary-med); margin-bottom: 0.75rem;
}

/* Apply section */
.sp-apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.sp-apply-steps { }
.sp-step {
  display: flex; gap: 1.25rem; margin-bottom: 1.5rem;
}
.sp-step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary-dark);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.sp-step-text h4 { font-weight: 600; font-size: 0.95rem; color: var(--neutral-dark); margin-bottom: 0.25rem; }
.sp-step-text p { font-size: 0.88rem; color: var(--body-text); opacity: 0.75; }

.sp-apply-contact {
  background: var(--primary-dark); border-radius: 12px; padding: 1.75rem 2rem;
  color: var(--white); text-align: center; align-self: start;
}
.sp-apply-contact h3 {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600;
  color: var(--accent-gold); margin-bottom: 0.75rem;
}
.sp-apply-contact p { font-size: 0.92rem; color: var(--white); opacity: 0.85; margin-bottom: 1.5rem; line-height: 1.7; }
.sp-apply-contact .btn-whatsapp { width: 100%; justify-content: center; margin-bottom: 0.75rem; }
.sp-apply-contact .sp-email-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: color var(--transition);
}
.sp-apply-contact .sp-email-link:hover { color: var(--white); }

/* FAQ Accordion */
.sp-faq-list { max-width: 750px; margin: 0 auto; }
.sp-faq-item { border-bottom: 1px solid var(--neutral-warm); }
.sp-faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; cursor: pointer; font-weight: 600; font-size: 1rem;
  color: var(--neutral-dark); transition: color var(--transition);
}
.sp-faq-question:hover { color: var(--primary-med); }
.sp-faq-question svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.3s ease; color: var(--accent-gold); }
.sp-faq-item.open .sp-faq-question svg { transform: rotate(45deg); }
.sp-faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.sp-faq-item.open .sp-faq-answer { max-height: 800px; }
.sp-faq-answer p {
  padding-bottom: 1.25rem; font-size: 0.95rem; color: var(--body-text); line-height: 1.8;
}

/* Related programs */
.sp-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.sp-related-card {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; cursor: pointer;
  background: var(--neutral-warm); /* fallback while photo loads */
}
.sp-related-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sp-related-card:hover img { transform: scale(1.06); }
.sp-related-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(27,67,50,0.85) 0%, transparent 60%);
}
.sp-related-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; color: var(--white);
}
.sp-related-content h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 500; margin-bottom: 0.3rem; }
.sp-related-content span { font-size: 0.8rem; color: var(--accent-gold); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* ─── SHARED RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sp-summary-grid { grid-template-columns: 1fr; }
  .sp-details-box { position: static; }
  .sp-apply-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right .nav-cta { display: none; }
  /* Keep language switcher visible on mobile — especially for landing pages */
  .nav-right .lang-switch { display: flex; }
  .nav-right .lang-switch button,
  .nav-right .lang-switch a,
  .nav-right .lang-switch span { padding: 0.28rem 0.55rem; font-size: 0.68rem; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .sp-benefits-grid { grid-template-columns: 1fr; }
  .sp-life-grid { grid-template-columns: 1fr; }
  .final-cta { padding: 5rem 0; }
  .testi-row { grid-template-columns: 1fr; }
  .sp-section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
}

@media (max-width: 480px) {
  .service-hero h1 { font-size: 2rem; }
  .service-hero { padding-top: 6rem; }
  .service-hero-content { padding-top: 60px; }
  .sp-related-grid { grid-template-columns: 1fr; }
  .btn-primary, .btn-ghost, .btn-secondary, .btn-whatsapp {
    width: 100%; justify-content: center;
  }
  .service-hero-ctas { flex-direction: column; }
}

/* ─── SCROLL PROGRESS BAR ──────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  z-index: 1002;
}

/* ─── DIRECTIONAL REVEALS ──────────────────────────── */
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translateX(0);
}
@media (max-width: 768px) {
  .reveal-left, .reveal-right { transform: translateY(24px); }
  .reveal-left.visible, .reveal-right.visible { transform: translateY(0); }
}

/* ─── NOSCRIPT / FALLBACK — ensure content visible ────── */
/* If JS fails to add .visible, this ensures content appears after animation duration */
@media screen {
  .reveal, .reveal-left, .reveal-right, .img-reveal,
  .dual-card--reserve, .dual-card--farm, .impact-item,
  .location-fact, .affiliation-name {
    animation: forceVisible 0s 2.5s forwards;
  }
}
@keyframes forceVisible {
  to { opacity: 1; transform: none; clip-path: none; }
}

/* ─── READ MORE TOGGLE ──────────────────────────────── */
.read-more-wrap .read-more-extra {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
.read-more-wrap.expanded .read-more-extra {
  max-height: 600px;
}
.read-more-toggle {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  color: var(--accent-gold); cursor: pointer; margin-top: 0.5rem;
  letter-spacing: 0.03em; transition: color 0.2s;
}
.read-more-toggle:hover { color: var(--primary-med); }
.read-more-wrap.expanded .rm-show { display: none; }
.read-more-wrap:not(.expanded) .rm-hide { display: none; }

/* ─── REVIEWS HORIZONTAL LAYOUT FIX ─────────────────── */
@media (max-width: 768px) {
  .testi-grid { grid-template-columns: 1fr !important; max-width: 500px !important; margin-left: auto !important; margin-right: auto !important; }
}


/* ═══════════════════════════════════════════════════════════
   REDESIGNED REVIEWS — Landing Pages
   ═══════════════════════════════════════════════════════════ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 1000px;
  margin: 2.5rem auto 0;
}
.review-card {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  padding: 2.25rem 2rem 2rem;
  border: 1px solid var(--neutral-warm);
  box-shadow: 0 4px 20px rgba(27,67,50,0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(27,67,50,0.08);
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-gold);
  opacity: 0.15;
  pointer-events: none;
}
.review-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
  color: var(--accent-gold);
  font-size: 0.85rem;
}
.review-text {
  font-size: 0.92rem;
  color: var(--body-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--neutral-warm);
  padding-top: 1.25rem;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mist-green) 0%, var(--mist-green-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-med);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.review-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary-dark);
}
.review-meta {
  font-size: 0.78rem;
  color: var(--body-text);
  opacity: 0.6;
  margin-top: 0.1rem;
}
@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ═══════════════════════════════════════════════════════════
   APPLY FORM — Dark background form styling
   ═══════════════════════════════════════════════════════════ */
.sp-apply-contact form input::placeholder,
.sp-apply-contact form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}
.sp-apply-contact form input:focus,
.sp-apply-contact form textarea:focus {
  outline: none;
  border-color: var(--accent-gold) !important;
  background: rgba(255,255,255,0.12) !important;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — COMPREHENSIVE MOBILE/TABLET FIXES
   ═══════════════════════════════════════════════════════════ */

/* ── Fix #1: iOS background-attachment: fixed ────────────── */
@supports (-webkit-touch-callout: none) {
  .hero-bg,
  .final-cta-bg,
  .final-cta-img,
  .service-hero-bg,
  .about-hero-bg,
  .story-video-section,
  [style*="background-attachment: fixed"],
  [style*="background-attachment:fixed"] {
    background-attachment: scroll !important;
  }
}
@media (hover: none) and (pointer: coarse) {
  .hero-bg,
  .final-cta-bg,
  .final-cta-img,
  .service-hero-bg,
  .about-hero-bg {
    background-attachment: scroll !important;
  }
}

/* ── Partners logos row — base layout (horizontal row) ─────── */
.partners-logos-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--neutral-warm);
  border-bottom: 1px solid var(--neutral-warm);
}
.partner-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.3s;
  text-align: center;
}
.partner-logo-link:hover { opacity: 1; }
.partner-logo-link > span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-text);
}
.partner-logo-divider {
  width: 1px;
  height: 40px;
  background: var(--neutral-warm);
  align-self: center;
}
/* Tangaré logo treatment — keeps it visually consistent when placed in partner rows */
.partner-logo-img.tangare-logo {
  background: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Fix #2: Partners logos row — wrap + hide dividers ────── */
@media (max-width: 768px) {
  .partners-logos-row {
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
  }
  .partner-logo-divider {
    display: none !important;
  }
  .partner-logo-img {
    height: 32px !important;
  }
}

/* ── Fix #6: Programs tab bar — horizontal scroll on mobile ─ */
@media (max-width: 600px) {
  .programs-tabs-nav {
    justify-content: flex-start !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    gap: 0.4rem !important;
    flex-wrap: nowrap !important;
  }
  .programs-tabs-nav::-webkit-scrollbar { display: none; }
  .programs-tab-btn {
    flex-shrink: 0;
    font-size: 0.75rem !important;
    padding: 0.5rem 0.8rem !important;
    white-space: nowrap;
  }
}

/* ── Fix #7: Hero badge — responsive ─────────────────────── */
@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.62rem !important;
    padding: 0.4rem 1rem !important;
    letter-spacing: 0.15em !important;
  }
}

/* ── Fix #8: Impact stats — tablet 2+3 → 3+2 or uniform ─── */
@media (max-width: 768px) and (min-width: 481px) {
  .impact-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }
  .impact-item { padding: 1rem 1rem !important; }
  .impact-item:not(:last-child)::after { display: none; }
}

/* ── Fix #9: Container padding — smaller on phones ────────── */
@media (max-width: 480px) {
  .container { padding: 0 1.25rem !important; }
}

/* ── Fix #10: Pricing rows — stack on narrow screens ─────── */
@media (max-width: 480px) {
  .sp-pricing-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
  }
}

/* ── Fix #13: WhatsApp float — smaller on mobile ─────────── */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 48px !important;
    height: 48px !important;
    bottom: 1.25rem !important;
    right: 1.25rem !important;
  }
  .whatsapp-float svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ── Fix #14: Activity value stack — tighter on mobile ────── */
@media (max-width: 480px) {
  [style*="padding:1rem 1.5rem"] {
    padding: 0.85rem 1rem !important;
  }
}

/* ── Fix #15: Apply form inputs — better mobile contrast ─── */
.sp-apply-contact form input,
.sp-apply-contact form textarea {
  -webkit-appearance: none;
  appearance: none;
}
@media (max-width: 480px) {
  .sp-apply-contact form input,
  .sp-apply-contact form textarea {
    font-size: 16px !important; /* prevents iOS zoom on focus */
  }
}

/* ── Conservation 5-col grid — collapse on mobile ─────────── */
@media (max-width: 768px) {
  [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 480px) {
  [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── Inline 2-column checkmark grids — collapse on mobile ── */
@media (max-width: 600px) {
  [style*="grid-template-columns: 1fr 1fr"][style*="gap: 0.6rem"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Section header h2 — prevent orphans on mobile ─────── */
@media (max-width: 480px) {
  .section-header h2 {
    font-size: clamp(1.6rem, 6vw, 2rem) !important;
  }
  .dual-identity .section-header h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem) !important;
  }
}

/* ── About page — story video section fixed bg fallback ──── */
@media (hover: none) and (pointer: coarse) {
  .story-video-section {
    background-attachment: scroll !important;
  }
  .story-video-section > div[style*="background-attachment"] {
    background-attachment: scroll !important;
  }
}

/* ── Feature check grids (remote-work, groups) ─────────── */
@media (max-width: 600px) {
  .feature-check-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
}

/* ── Wildlife photo grid (conservation) ────────────────── */
@media (max-width: 768px) {
  .wildlife-photo-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .wildlife-photo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── Home reviews grid ─────────────────────────────────── */
@media (max-width: 1024px) {
  .home-reviews-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 700px !important;
  }
}
@media (max-width: 600px) {
  .home-reviews-grid {
    grid-template-columns: 1fr !important;
    max-width: 480px !important;
  }
}

/* ── Dual identity cards — mobile stack fix ──────────────── */
@media (max-width: 768px) {
  .dual-grid {
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .dual-card {
    padding: 2.5rem 1.75rem !important;
  }
  .dual-card h3 {
    font-size: 1.4rem !important;
  }
  .dual-card p {
    font-size: 0.9rem !important;
  }
}
@media (max-width: 480px) {
  .dual-card {
    padding: 2rem 1.5rem !important;
  }
  .dual-card h3 {
    font-size: 1.25rem !important;
  }
}

/* ── Tangaré block — mobile fix ──────────────────────────── */
@media (max-width: 768px) {
  .tangare-block {
    padding: 2rem 1.75rem !important;
  }
  .tangare-cta {
    font-size: 0.75rem !important;
    padding: 0.65rem 1.25rem !important;
    white-space: normal !important;
  }
}
@media (max-width: 480px) {
  .tangare-block {
    padding: 1.5rem 1.25rem !important;
  }
  .tangare-block h3 {
    font-size: 1.2rem !important;
  }
  .tangare-cta {
    width: auto !important;
    display: inline-flex !important;
    font-size: 0.72rem !important;
    padding: 0.6rem 1.1rem !important;
  }
  .tangare-pillars {
    gap: 0.75rem !important;
  }
  .tangare-pillar {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.7rem !important;
  }
}


/* ── Service-hero consistency across program landing pages ─── */
/* Standardised spacing, margins and alignment in EN + ES.       */
.service-hero { padding: 8rem 0 4rem; min-height: 440px; }
.service-hero-content { padding-top: 70px; padding-bottom: 1rem; }
.service-hero-content h1 { margin-bottom: 1rem; }
.service-hero-content .service-hero-sub { margin-bottom: 1.75rem; }
.service-hero-content .service-hero-ctas { margin-top: 0.5rem; }
.hero-program-badge { margin-bottom: 1.5rem; }
/* Spanish text runs ~25% longer — keep heroes balanced */
:lang(es) .service-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.18; }
:lang(es) .service-hero-sub { font-size: clamp(0.98rem, 1.85vw, 1.1rem); }
@media (max-width: 768px) {
  .service-hero { padding: 7rem 0 3.5rem; min-height: 420px; }
  .service-hero-content { padding-top: 50px; }
  .hero-program-badge { margin-bottom: 1.1rem; padding: 0.4rem 1rem; font-size: 0.66rem; }
  .service-hero h1 { font-size: clamp(1.85rem, 6vw, 2.4rem); }
  :lang(es) .service-hero h1 { font-size: clamp(1.7rem, 5.6vw, 2.25rem); }
}

/* ─── Language-conditional visibility ─────────────────────────
   Items marked .lh-hide-es are hidden when the page is in Spanish.
   Used to suppress the "Do I need to speak Spanish?" FAQ in ES
   per editorial direction.
*/
html[lang="es"] .lh-hide-es { display: none !important; }
