/* =========================================================
   SENTIERO GLOBAL — GLOBAL DESIGN SYSTEM
   Shared across every division (Education, Travel, Visa, Founders).
   Division-specific tweaks live in education.css / travel.css /
   visa.css / founders.css — keep this file generic and reusable.
   ========================================================= */

:root{
  --navy:#0B1F3A;
  --slate:#172B45;
  --ivory:#F7F3EA;
  --cream:#EFE9DC;
  --gold:#C6A15B;
  --gold-soft:rgba(198,161,91,0.14);
  --sage:#708B78;
  --text:#172033;
  --text-soft:#667085;
  --border:#DDD7CA;
  --serif:'Playfair Display', serif;
  --sans:'Inter', sans-serif;
}

/* ---------- Reset ---------- */
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{ font-family:var(--sans); background:var(--ivory); color:var(--text); line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden; min-width:320px; }
body.menu-open{ overflow:hidden; }
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer;}
::selection{ background:var(--gold); color:var(--navy); }
:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4{font-family:var(--serif); font-weight:600; letter-spacing:-0.01em; color:var(--navy);}
.on-dark h1,.on-dark h2,.on-dark h3,.on-dark h4{color:var(--ivory);}
.eyebrow{ font-family:var(--sans); font-size:12px; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold); font-weight:600; }
.section-head{ max-width:640px; margin-bottom:40px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p.sub{ color:var(--text-soft); font-size:16px; margin-top:12px; }
.on-dark .section-head p.sub{ color:rgba(247,243,234,0.7); }

/* ---------- Layout ---------- */
.wrap{max-width:1160px; margin:0 auto; padding:0 24px;}
.wrap-wide{max-width:1280px; margin:0 auto; padding:0 24px;}
section{position:relative;}
.section-pad{ padding:96px 0; }
@media (max-width:768px){ .section-pad{ padding:64px 0; } }
.bg-navy{ background:var(--navy); } .bg-slate{ background:var(--slate); } .bg-cream{ background:var(--cream); } .bg-ivory{ background:var(--ivory); }

/* ---------- Buttons ---------- */
.btn{ display:inline-flex; align-items:center; gap:8px; padding:14px 26px; border-radius:2px; font-weight:600; font-size:14.5px; transition:all .25s ease; white-space:nowrap; border:1px solid transparent; }
.btn-primary{ background:var(--navy); color:var(--ivory); }
.btn-primary:hover{ background:var(--slate); box-shadow:0 0 0 1px var(--gold) inset; }
.btn-primary svg{ transition:transform .25s ease; stroke:var(--gold); }
.btn-primary:hover svg{ transform:translateX(4px); }
.btn-ghost-dark{ background:transparent; color:var(--ivory); border:1px solid rgba(247,243,234,0.35); }
.btn-ghost-dark:hover{ border-color:var(--gold); color:var(--gold); }
.btn-outline{ background:transparent; color:var(--navy); border:1px solid var(--navy); }
.btn-outline:hover{ background:var(--navy); color:var(--ivory); }
.btn-gold{ background:var(--gold); color:var(--navy); }
.btn-gold:hover{ background:#b18f4c; }

/* ---------- Reveal-on-scroll ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } .reveal{ opacity:1; transform:none; } }

/* =========================================================
   HEADER / NAVIGATION (shared across every division)
   ========================================================= */
header#nav{ position:sticky; top:0; z-index:100; background:var(--navy); border-bottom:1px solid rgba(198,161,91,.18); box-shadow:0 4px 18px rgba(5,18,35,.10); }
header#nav.scrolled{ background:rgba(11,31,58,.96); border-bottom-color:rgba(198,161,91,.30); }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; max-width:1280px; margin:0 auto; min-height:72px; }
.logo{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.logo-word{ font-family:var(--serif); font-weight:700; font-size:21px; color:var(--ivory); letter-spacing:0.01em; white-space:nowrap; }
.logo-word span{ color:var(--gold); }
.division-tag{ font-size:10.5px; letter-spacing:0.14em; text-transform:uppercase; color:rgba(247,243,234,0.55); margin-top:1px; display:block; }

.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-item{ position:relative; }
.nav-links > .nav-item > a{ font-size:13.5px; color:rgba(247,243,234,0.85); font-weight:500; white-space:nowrap; padding:10px 12px; display:inline-flex; align-items:center; gap:5px; border-radius:6px; }
.nav-links > .nav-item > a:hover, .nav-links > .nav-item.active > a{ color:var(--gold); background:rgba(247,243,234,0.04); }
.nav-item > a svg{ width:11px; height:11px; transition:transform .2s ease; opacity:.7; }
.nav-item:hover > a svg, .nav-item.dropdown-open > a svg{ transform:rotate(180deg); }

.dropdown{
  position:absolute; top:calc(100% + 8px); left:0; min-width:230px;
  background:var(--navy); border:1px solid rgba(198,161,91,.22); border-radius:10px;
  box-shadow:0 20px 40px rgba(5,18,35,.35); padding:8px; opacity:0; visibility:hidden;
  transform:translateY(6px); transition:opacity .18s ease, transform .18s ease, visibility .18s;
  z-index:50;
}
.nav-item:hover .dropdown, .nav-item.dropdown-open .dropdown, .dropdown:focus-within{
  opacity:1; visibility:visible; transform:translateY(0);
}
.dropdown a{ display:block; padding:10px 12px; font-size:13.5px; color:rgba(247,243,234,0.82); border-radius:6px; }
.dropdown a:hover, .dropdown a:focus-visible{ background:rgba(198,161,91,.12); color:var(--gold); }

.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-cta .btn{ padding:12px 18px; font-size:13px; }
.hamburger{ display:none; background:rgba(247,243,234,.04); border:1px solid rgba(247,243,234,.18); border-radius:10px; color:var(--ivory); width:42px; height:42px; align-items:center; justify-content:center; }

.mobile-menu{ display:none; position:fixed; inset:0; background:var(--navy); z-index:200; flex-direction:column; padding:22px 22px 40px; transform:translateY(-100%); transition:transform .35s ease; overflow-y:auto; }
.mobile-menu.open{ display:flex; transform:translateY(0); }
.mobile-menu .mm-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.mm-section{ border-bottom:1px solid rgba(247,243,234,0.08); }
/* .mm-toprow is a DIV (never an <a>) so the caret <button> inside it is
   never nested inside an anchor — nesting interactive elements is invalid
   HTML and breaks layout unpredictably (see /services.html card fix). */
.mm-toplink{ color:var(--ivory); font-size:19px; font-family:var(--serif); padding:14px 0; display:block; }
.mm-toprow{ display:flex; align-items:center; justify-content:space-between; }
.mm-toprow .mm-toplink{ flex:1; }
.mm-section .mm-caret{ background:none; border:none; color:var(--ivory); width:34px; height:34px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.mm-section .mm-caret svg{ transition:transform .2s ease; }
.mm-section.open .mm-caret svg{ transform:rotate(180deg); }
.mm-sub{ max-height:0; overflow:hidden; transition:max-height .3s ease; padding-left:6px; }
.mm-section.open .mm-sub{ max-height:600px; padding-bottom:10px; }
.mm-sub a{ display:block; color:rgba(247,243,234,0.72); font-size:15px; padding:9px 0; }
.mobile-menu .mm-cta{ margin-top:18px; color:var(--gold); font-family:var(--serif); font-size:19px; }

@media (max-width:1080px){
  .nav-links{ display:none; } .nav-cta .btn-primary{ display:none; } .hamburger{ display:flex; }
  .nav-inner{ display:grid; grid-template-columns:1fr auto 1fr; gap:12px; padding:12px 18px; min-height:68px; }
  .nav-inner .logo{ grid-column:2; justify-self:center; }
  .nav-cta{ grid-column:3; justify-self:end; }
  .logo-word{ font-size:20px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb{ font-size:12.5px; color:rgba(247,243,234,0.6); display:flex; gap:8px; align-items:center; margin-bottom:18px; flex-wrap:wrap; }
.breadcrumb a:hover{ color:var(--gold); }
.breadcrumb.on-light{ color:var(--text-soft); }

/* =========================================================
   HERO PATTERNS
   ========================================================= */
.page-hero{ background:var(--navy); padding:70px 0 60px; }
.page-hero h1{ font-size:clamp(32px,4.6vw,50px); color:var(--ivory); margin:8px 0 16px; max-width:780px; }
.page-hero p.lead{ color:rgba(247,243,234,0.75); font-size:16px; max-width:620px; }
.page-hero .hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-top:26px; }

.hero{ background:var(--navy); position:relative; overflow:hidden; padding:80px 0 60px; }
.hero-grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:60px; align-items:center; max-width:1280px; margin:0 auto; padding:0 24px; }
.hero h1{ font-size:clamp(38px,5vw,58px); line-height:1.08; color:var(--ivory); margin:16px 0 20px; }
.hero .sub{ font-family:var(--serif); font-style:italic; font-size:20px; color:var(--gold); margin-bottom:16px; }
.hero p.lead{ color:rgba(247,243,234,0.75); font-size:16.5px; max-width:520px; margin-bottom:30px; }
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:26px; }
.hero-visual{ position:relative; }
.hero-art{ position:relative; border-radius:6px; overflow:hidden; aspect-ratio:4/5; min-height:480px;
  background: radial-gradient(circle at 30% 20%, rgba(198,161,91,0.18), transparent 55%), linear-gradient(180deg, #12294a 0%, #0B1F3A 65%, #091a30 100%);
  border:1px solid rgba(198,161,91,0.25); }
@media (max-width:980px){ .hero-grid{ grid-template-columns:1fr; } .hero-visual{ order:-1; max-width:340px; margin:0 auto 30px; } }

/* =========================================================
   CARDS
   ========================================================= */
.card-grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.card-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.card-grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
@media (max-width:980px){ .card-grid-4,.card-grid-3{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .card-grid-4,.card-grid-3,.card-grid-2{ grid-template-columns:1fr; } }

.plain-card{ background:#fff; border:1px solid var(--border); border-radius:12px; padding:28px 24px; transition:transform .25s ease, border-color .25s ease; }
.plain-card:hover{ transform:translateY(-5px); border-color:var(--gold); }
.plain-card .ic{ width:36px; height:36px; color:var(--navy); margin-bottom:16px; }
.plain-card:hover .ic{ color:var(--gold); }
.plain-card h4{ font-size:17px; margin-bottom:9px; color:var(--navy); }
.plain-card p{ font-size:14px; color:var(--text-soft); }
.plain-card .more{ display:inline-block; margin-top:14px; font-size:12.5px; font-weight:700; color:var(--gold); letter-spacing:0.03em; }

.ic-badge{ width:50px; height:50px; border-radius:12px; background:var(--gold-soft); display:flex; align-items:center; justify-content:center; margin-bottom:18px; flex-shrink:0; transition:background .22s ease; }
.ic-badge svg{ width:24px; height:24px; color:var(--navy); }

/* Division cards (root homepage) */
.division-card{ background:var(--navy); border:1px solid rgba(198,161,91,0.2); border-radius:14px; padding:34px 28px; display:flex; flex-direction:column; height:100%; transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.division-card:hover{ transform:translateY(-6px); border-color:var(--gold); box-shadow:0 20px 40px rgba(5,18,35,.35); }
.division-card .num{ font-family:var(--serif); font-style:italic; color:var(--gold); font-size:14px; margin-bottom:14px; opacity:.85; }
.division-card h3{ color:var(--ivory); font-size:23px; margin-bottom:12px; }
.division-card p{ color:rgba(247,243,234,0.72); font-size:14.5px; line-height:1.6; flex:1; }
.division-card .btn{ margin-top:22px; align-self:flex-start; }

/* Pillar cards (Why Sentiero Global) */
.pillar-card{ text-align:left; padding:28px 6px; }
.pillar-card .ic-badge{ background:var(--gold-soft); }
.pillar-card h4{ font-size:16.5px; margin-bottom:8px; }
.pillar-card p{ font-size:13.8px; color:var(--text-soft); }

/* Destination cards (Travel) */
.destination-card{ background:#fff; border:1px solid var(--border); border-radius:14px; overflow:hidden; display:flex; flex-direction:column; height:100%; transition:transform .25s ease, box-shadow .25s ease; }
.destination-card:hover{ transform:translateY(-6px); box-shadow:0 18px 36px rgba(11,31,58,.12); }
.destination-card .dc-media{ position:relative; aspect-ratio:4/3; background:var(--cream); overflow:hidden; }
.destination-card .dc-media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.destination-card:hover .dc-media img{ transform:scale(1.05); }
.destination-card .dc-body{ padding:22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.destination-card h4{ font-size:19px; margin-bottom:8px; }
.destination-card p{ font-size:13.8px; color:var(--text-soft); margin-bottom:14px; }
.destination-card .dc-highlights{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.destination-card .dc-highlights span{ font-size:11.5px; padding:5px 10px; border-radius:20px; background:var(--cream); color:var(--navy); border:1px solid var(--border); }
.destination-card .btn{ margin-top:auto; align-self:flex-start; }

/* Visa category cards */
.visa-card{ background:var(--cream); border:1px solid var(--border); border-radius:14px; padding:30px 26px; display:flex; flex-direction:column; height:100%; transition:transform .22s ease, background .22s ease, box-shadow .22s ease; }
.visa-card:hover{ transform:translateY(-6px); background:#fff; box-shadow:0 16px 30px rgba(11,31,58,.09); }
.visa-card h4{ font-size:17.5px; margin-bottom:9px; }
.visa-card p{ font-size:13.8px; color:var(--text-soft); flex:1; }
.visa-card .more{ margin-top:16px; padding-top:14px; border-top:1px dashed var(--border); font-size:12.5px; font-weight:700; color:var(--gold); align-self:flex-start; }

/* =========================================================
   IMAGE FALLBACK SYSTEM
   Any <img data-fallback-label="..."> that fails to load gets
   swapped (via main.js) for a tasteful placeholder box instead
   of a broken-image icon.
   ========================================================= */
.img-fallback{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  background:linear-gradient(160deg, var(--cream), var(--ivory)); border:1px dashed var(--border);
  color:var(--text-soft); text-align:center; padding:18px; width:100%; height:100%;
}
.img-fallback .fb-icon{ width:26px; height:26px; color:var(--gold); opacity:.8; }
.img-fallback .fb-title{ font-family:var(--serif); font-style:italic; color:var(--navy); font-size:14.5px; }
.img-fallback .fb-sub{ font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color:var(--text-soft); }

/* =========================================================
   BUTTONS ROW / FINAL CTA
   ========================================================= */
.cta-cinematic{ background:var(--navy); position:relative; overflow:hidden; text-align:center; padding:90px 24px; }
.cta-cinematic h2{ font-size:clamp(28px,4.4vw,44px); color:var(--ivory); margin-bottom:16px; }
.cta-cinematic p{ color:rgba(247,243,234,0.75); max-width:560px; margin:0 auto 30px; font-size:15.5px; }
.cta-btns{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:22px; }
.reassure{ font-size:12.5px; letter-spacing:0.03em; color:rgba(247,243,234,0.5); }

/* =========================================================
   FORMS
   ========================================================= */
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; font-weight:600; color:var(--navy); margin-bottom:7px; }
.field input, .field textarea{ width:100%; padding:13px 14px; border:1px solid var(--border); border-radius:8px; font-size:14.5px; font-family:var(--sans); background:var(--ivory); color:var(--text); }
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-soft); }

/* =========================================================
   FOOTER (shared)
   ========================================================= */
footer{ background:var(--navy); color:rgba(247,243,234,0.75); padding-top:70px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr 1fr; gap:30px; padding-bottom:44px; border-bottom:1px solid rgba(247,243,234,0.1); }
@media (max-width:1000px){ .footer-grid{ grid-template-columns:1fr 1fr 1fr; } }
@media (max-width:700px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-grid h5{ font-size:11.5px; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold); margin-bottom:16px; font-weight:700; }
.footer-grid li{ margin-bottom:9px; font-size:13.5px; }
.footer-grid li a:hover{ color:var(--gold); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:24px 0; flex-wrap:wrap; gap:14px; font-size:13px; max-width:1160px; margin:0 auto; padding-left:24px; padding-right:24px; }
.footer-legal{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-disclaimer{ font-size:12.5px; color:rgba(247,243,234,0.45); padding:20px 24px; border-top:1px solid rgba(247,243,234,0.08); max-width:1160px; margin:0 auto; }

.mobile-sticky-cta{ display:none; position:fixed; bottom:0; left:0; right:0; z-index:150; background:var(--navy); padding:12px 16px calc(12px + env(safe-area-inset-bottom)); align-items:center; justify-content:center; box-shadow:0 -6px 20px rgba(0,0,0,0.2); border-top:1px solid rgba(198,161,91,0.3); }
@media (max-width:768px){ .mobile-sticky-cta{ display:flex; } body{ padding-bottom:66px; } }

.two-col-text{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; align-items:start; }
@media (max-width:900px){ .two-col-text{ grid-template-columns:1fr; gap:28px; } }

/* ---------- Generic reusable components ---------- */
.dark-section{ background:var(--navy); color:var(--ivory); }
.dark-section p{ color:rgba(247,243,234,0.72); }
/* h1-h4 default to navy text (for light backgrounds) with higher specificity
   than an inherited color, so a dark section needs its own override —
   otherwise headings render navy-on-navy and disappear. */
.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4{ color:var(--ivory); }
.dark-section .btn-outline{ color:var(--ivory); border-color:rgba(247,243,234,0.35); }
.dark-section .btn-outline:hover{ background:var(--ivory); color:var(--navy); }
.item-list-dark{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:36px; }
@media (max-width:900px){ .item-list-dark{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .item-list-dark{ grid-template-columns:1fr;} }
.idl-item{ border:1px solid rgba(247,243,234,0.18); border-radius:8px; padding:20px; font-size:14px; font-weight:600; color:var(--ivory); display:flex; gap:10px; align-items:center; }
.idl-item svg{ color:var(--gold); width:18px; height:18px; flex-shrink:0; }
.disclaimer-box{ border-left:3px solid var(--gold); padding:14px 18px; background:rgba(198,161,91,0.08); font-size:13px; color:var(--text-soft); margin-top:18px; border-radius:0 6px 6px 0; }
.on-dark .disclaimer-box{ background:rgba(247,243,234,0.06); color:rgba(247,243,234,0.65); }
.highlight-line{ font-family:var(--serif); font-style:italic; font-size:19px; color:var(--gold); border-top:1px solid rgba(247,243,234,0.15); padding-top:26px; margin-top:10px; }
.kicker{ display:flex; align-items:baseline; gap:10px; margin-bottom:14px; }
.kicker .num{ font-family:var(--serif); font-style:italic; font-size:16px; color:var(--gold); }
.kicker .label{ font-size:12px; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-soft); font-weight:600; }

@media (max-width:600px){
  .wrap, .wrap-wide{ padding-inline:20px; }
  .hero h1{ font-size:clamp(38px,10.5vw,46px); line-height:1.04; margin-top:14px; margin-bottom:18px; }
  .hero-ctas{ display:grid; grid-template-columns:1fr; gap:10px; } .hero-ctas .btn{ width:100%; justify-content:center; }
  .page-hero .hero-ctas{ display:grid; grid-template-columns:1fr; gap:10px; } .page-hero .hero-ctas .btn{ width:100%; justify-content:center; }
  .footer-bottom{ align-items:flex-start; flex-direction:column; }
  .founder-profile .fp-name{ font-size:22px; }
}
