/* ===============================================================
   Southbridge Consulting — shared stylesheet (redesign mockup)
   =============================================================== */
/* Poppins = geometric sans that echoes the SOUTHBRIDGE wordmark (headings, nav, UI).
   Inter = highly legible companion for body copy at small sizes.
   Montserrat is retained ONLY for the Puente Sur block — that is their brand font. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');

:root{
  --green:#1D9A78; --green-d:#177a5f; --lime:#8BC145; --blue:#1D6FA9;
  --cyan:#36AFCE; --orange:#F19D19; --rust:#B74919; --slate:#44546A;
  --ink:#20262b; --muted:#5c6670; --paper:#ffffff; --mist:#f5f7f6;
  --line:#e3e7e5; --navy:#0e2a44; --maxw:1180px;
  --font-head:"Poppins","Century Gothic",system-ui,Arial,sans-serif;
  --font-body:"Inter","Segoe UI",system-ui,Arial,sans-serif;
  /* Puente Sur brand */
  --ps-navy:#103045; --ps-navy-d:#0b2434; --ps-gold:#ffc412; --ps-ink:#0f131f;
}
*{box-sizing:border-box;margin:0;padding:0}
/* Offset so a section never hides under the sticky banner when linked to from the menu */
section,.stats,footer.site{scroll-margin-top:86px}
body{font-family:var(--font-body);color:var(--ink);line-height:1.65;background:var(--paper);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
h1,h2,h3{font-family:var(--font-head);line-height:1.16;font-weight:600;color:var(--ink);letter-spacing:-.2px}
.eyebrow,.btn,nav.main a,.stats .n,.stats .l,.chip,.kicker,.govcard .st,.market .nm,.dotnav a .lbl{font-family:var(--font-head)}
h2{font-size:clamp(25px,3vw,36px)}
.eyebrow{font-size:12.5px;letter-spacing:2.6px;text-transform:uppercase;color:var(--green);font-weight:700}
.eyebrow::before{content:"\25BC";color:var(--lime);margin-right:9px;font-size:9px;position:relative;top:-2px}
.lead{font-size:19px;color:var(--muted)}
section{padding:58px 0}
.tc{text-align:center}
.center-head{max-width:720px;margin:0 auto}
.btn{display:inline-block;padding:13px 27px;border-radius:5px;font-weight:600;font-size:15px;transition:.2s;cursor:pointer;border:2px solid transparent}
.btn-primary{background:var(--green);color:#fff;box-shadow:0 6px 18px rgba(29,154,120,.28)}
.btn-primary:hover{background:var(--green-d);transform:translateY(-2px)}
.btn-ghost{border-color:rgba(255,255,255,.85);color:#fff}
.btn-ghost:hover{background:#fff;color:var(--ink)}
.btn-outline{border-color:var(--green);color:var(--green)}
.btn-outline:hover{background:var(--green);color:#fff}

/* reveal */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}
.reveal.d1{transition-delay:.08s}.reveal.d2{transition-delay:.16s}.reveal.d3{transition-delay:.24s}

/* utility bar */
.utility{background:var(--slate);color:#dfe4ea;font-size:12.5px;letter-spacing:.3px}
.utility .wrap{display:flex;justify-content:space-between;align-items:center;padding:9px 24px;flex-wrap:wrap;gap:6px}
.utility strong{color:#fff}
/* Affiliate link in the top strip. Underline on hover only, so the strip stays
   quiet but the link is discoverable. */
.utility a{color:#fff;font-weight:600;border-bottom:1px solid rgba(255,255,255,.35);transition:.18s}
.utility a:hover{color:var(--lime);border-bottom-color:var(--lime)}
/* Footer legal line: same treatment as the IBG link already there. */
footer.site .bottom a{color:#c9d3dd;border-bottom:1px solid rgba(201,211,221,.3)}
footer.site .bottom a:hover{color:#fff;border-bottom-color:#fff}
/* Separator echoing the triangle in the logo. Built from borders rather than the
   "▼" glyph, which varies in size and baseline between fonts. */
footer.site .bottom .sep{display:inline-block;width:0;height:0;
  border-left:4px solid transparent;border-right:4px solid transparent;
  border-top:6px solid var(--lime);margin:0 9px;vertical-align:middle;position:relative;top:-1px}

/* header + dropdown */
header.site{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:saturate(180%) blur(8px)}
header.site .nav-wrap{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;gap:20px}
/* flex-shrink:0 — as a flex item the logo would otherwise be compressed
   horizontally while height:52px held, distorting the wordmark on narrow screens. */
.logo{flex:0 0 auto}
.logo img{height:52px;width:auto}
nav.main{display:flex;align-items:center;gap:26px}
nav.main a{font-size:15px;font-weight:600;color:var(--slate);transition:.15s}
nav.main>a,.drop-t{padding:6px 0;border-bottom:2px solid transparent}
nav.main>a:hover,.drop-t:hover{color:var(--green);border-color:var(--lime)}
nav.main a.active{color:var(--green);border-color:var(--lime)}
/* flex + centre so "Services" sits on the same baseline as the other menu items */
.has-drop{position:relative;display:flex;align-items:center}
.dropdown{position:absolute;top:100%;left:-14px;min-width:290px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 16px 40px rgba(20,45,35,.14);padding:8px;opacity:0;visibility:hidden;transform:translateY(8px);transition:.18s}
.has-drop:hover .dropdown{opacity:1;visibility:visible;transform:none}
.dropdown a{display:block;padding:10px 14px;border-radius:6px;font-size:14.5px;color:var(--slate)}
.dropdown a:hover{background:var(--mist);color:var(--green)}
/* Contact: no chip — just the word in the brand green, so it reads as the accent
   action without a filled button. */
.navcta{background:none!important;color:var(--green)!important;padding:0;border:none!important;
        font-weight:700;box-shadow:none;transition:.15s}
.navcta:hover{color:var(--green-d)!important}
.ibg-mark{display:inline-flex;align-items:center;margin-left:14px}
.ibg-mark img{height:44px;width:auto;transition:.2s}
.ibg-mark:hover img{transform:scale(1.05)}
.burger{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:6px}
.burger span{width:26px;height:3px;background:var(--slate);border-radius:2px}

/* hero (home) */
/* Hero fills exactly the space left below the sticky 86px header — no more.
   It was 86dvh, which SAT BELOW the header and so always overflowed the screen
   by design, cutting off the CTA buttons on any window under ~740px tall.
   dvh = dynamic viewport height: on iOS Safari plain vh resolves against the
   LARGE viewport (address bar hidden), which hides the bottom of the hero on
   first load. The vh line stays first as a fallback for browsers without dvh. */
.hero{position:relative;color:#fff;min-height:calc(100vh - 86px);min-height:calc(100dvh - 86px);display:flex;align-items:center}
.hero .bg{position:absolute;inset:0;background:url('assets/hero-bright.jpg') center/cover no-repeat}
.hero .bg::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(12,26,22,.74) 0%,rgba(12,26,22,.44) 45%,rgba(12,26,22,.12) 100%)}
.hero .wrap{position:relative;padding:70px 24px}
.hero .inner{max-width:680px}
.hero .kick{font-size:13px;letter-spacing:3px;text-transform:uppercase;color:#fff;font-weight:700;margin-bottom:20px;text-shadow:0 1px 8px rgba(0,0,0,.35)}
/* green triangle separator in the eyebrow, echoing the logo ▼ (replaces the dot) */
.hero .kick .sep{display:inline-block;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:6px solid var(--lime);vertical-align:middle;position:relative;top:-1px;margin:0 3px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
.hero h1{color:#fff;font-size:clamp(36px,5.4vw,64px);line-height:1.05;letter-spacing:-1px;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.hero h1 .accent{color:var(--lime)}
.hero p{font-size:clamp(17px,2vw,21px);color:#f2f6f4;margin:22px 0 34px;max-width:560px;text-shadow:0 1px 10px rgba(0,0,0,.35)}
.hero .cta-row{display:flex;gap:14px;flex-wrap:wrap}
/* Short windows (a laptop with bookmarks bar + taskbar is often only ~600px of
   viewport). min-height alone does not help: the hero's own CONTENT is taller
   than the space available, so it overflows and buries the CTA buttons.
   Compress padding and type instead.
   NOTE: these MUST sit after the .hero h1/p rules above — same specificity, so
   source order decides. Placed before them, they are silently overridden. */
@media (max-height:760px){
  .hero .wrap{padding:34px 24px}
  .hero h1{font-size:clamp(32px,4.2vw,46px)}
  .hero .kick{margin-bottom:12px;letter-spacing:2.4px}
  .hero p{margin:14px 0 22px;font-size:clamp(16px,1.7vw,18px)}
}
@media (max-height:660px){
  .hero .wrap{padding:22px 24px}
  .hero h1{font-size:clamp(26px,3.1vw,34px)}
  .hero .kick{font-size:11.5px;margin-bottom:8px}
  .hero p{margin:10px 0 16px;font-size:15.5px}
  .scrollcue{display:none}
}
@keyframes bob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,7px)}}

/* stats */
.stats{background:var(--green);color:#fff}
.stats .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:30px 24px;text-align:center}
.stats .n{font-size:clamp(32px,4vw,46px);font-weight:800;line-height:1}
.stats .l{font-size:13px;letter-spacing:1px;text-transform:uppercase;color:#d9f0e7;margin-top:8px}
.stats .item+.item{border-left:1px solid rgba(255,255,255,.22)}

/* split (image + text) */
.split{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.split .txt h2{margin:14px 0 16px}
.split .txt p{color:var(--muted);font-size:16.5px;margin-bottom:14px}
.figure{position:relative}
.figure .imgzoom{border-radius:12px;overflow:hidden;box-shadow:0 22px 50px rgba(20,45,35,.16)}
.imgzoom img{transition:transform .7s cubic-bezier(.2,.7,.2,1);width:100%}
.imgzoom:hover img{transform:scale(1.06)}
.figure::before{content:"";position:absolute;width:120px;height:120px;background:var(--lime);opacity:.16;border-radius:14px;top:-22px;left:-22px;z-index:-1}
.figure .tri{position:absolute;right:-14px;bottom:-14px;width:0;height:0;border-left:34px solid transparent;border-right:34px solid transparent;border-top:44px solid var(--green)}

/* services cards (with image header) */
.services{background:var(--mist)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:28px}
.scard{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;transition:.25s;display:flex;flex-direction:column}
.scard:hover{box-shadow:0 18px 40px rgba(30,60,50,.12);transform:translateY(-5px)}
.scard .ph{height:124px;overflow:hidden;position:relative}
.scard .ph img{width:100%;height:100%;object-fit:cover;transition:transform .7s}
.scard:hover .ph img{transform:scale(1.07)}
/* one brand green across all three cards — the photos provide the differentiation.
   (The previous blue/orange came from the brochure's wider palette but read as random.) */
.scard .ph::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(29,154,120,0),rgba(29,154,120,.28))}
.scard.b .ph::after,.scard.o .ph::after{background:linear-gradient(180deg,rgba(29,154,120,0),rgba(29,154,120,.28))}
.scard .body{padding:20px 22px 22px;flex:1;display:flex;flex-direction:column;border-top:4px solid var(--green)}
.scard.b .body,.scard.o .body{border-top-color:var(--green)}
.scard h3{font-size:19px;margin-bottom:10px}
.scard p{color:var(--muted);font-size:15px;flex:1}
.scard .more{margin-top:16px;font-weight:600;font-size:14px;color:var(--green)}
.scard.b .more,.scard.o .more{color:var(--green)}

/* how we work + why (consolidated photo band) */
.how{position:relative;color:#fff}
/* lighter: brighten the photo and pull the overlay back so the image reads through */
.how .bg{position:absolute;inset:0;background:url('assets/band.jpg') center/cover no-repeat;filter:grayscale(.1) brightness(1.25)}
.how .bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(14,34,28,.76),rgba(14,42,44,.72))}
.how .wrap{position:relative}
.how .eyebrow{color:var(--lime)}
.how h2{color:#fff}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:34px}
.step{position:relative;padding:24px 22px 20px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(255,255,255,.05)}
.step .num{position:absolute;top:-20px;left:26px;width:42px;height:42px;border-radius:50%;background:var(--lime);color:#12351f;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(0,0,0,.25)}
.step h3{margin:16px 0 8px;font-size:19px;color:#fff}
.step p{color:#d3ddd8;font-size:15px}
.whyrow{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px;justify-content:center}
.chip{display:inline-flex;align-items:center;gap:9px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:30px;padding:10px 18px;font-size:14.5px;color:#eaf1ee}
.chip::before{content:"\2713";color:var(--lime);font-weight:800}

/* coverage — country pins */
.coverage .grid2{display:grid;grid-template-columns:1.05fr .95fr;gap:38px;align-items:center;margin-top:24px}
.markets{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.market{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:11px 14px;transition:.2s}
.market:hover{border-color:var(--green);box-shadow:0 10px 24px rgba(20,45,35,.08);transform:translateY(-2px)}
/* countries with a published report are clickable */
a.market{position:relative;cursor:pointer}
a.market::after{content:"↗";position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--green);font-weight:700;font-size:13px;opacity:.45;transition:.2s}
a.market:hover::after{opacity:1}
.market .pin{width:34px;height:34px;flex:0 0 auto;border-radius:50%;background:rgba(29,154,120,.12);display:flex;align-items:center;justify-content:center}
.market .pin svg{width:18px;height:18px;fill:var(--green)}
.market .nm{font-weight:700;font-size:16px}
.market .sub{font-size:12.5px;color:var(--muted)}
.covpanel{position:relative;border-radius:16px;overflow:hidden;color:#fff;min-height:258px;display:flex;align-items:flex-end;box-shadow:0 20px 50px rgba(20,45,35,.16)}
.covpanel .bg{position:absolute;inset:0;background:url('assets/world.jpg') center/cover no-repeat}
/* green wash removed — neutral navy scrim so the map image reads true */
.covpanel .bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(14,42,68,.30),rgba(14,42,68,.86))}
.covpanel .in{position:relative;padding:28px}
.covpanel .big{font-size:44px;font-weight:800;line-height:1}
.covpanel .cap{font-size:14px;color:#eafaf3;margin-top:4px;max-width:260px}

/* government */
.gov{background:var(--mist);text-align:center}
.gov .lead{max-width:760px;margin:14px auto 0}
.govrow{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:28px}
/* static — these are credentials, not links, so no hover affordance */
.govcard{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 14px;display:flex;flex-direction:column;align-items:center}
.govlogo{height:50px;display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.govlogo img{max-height:50px;max-width:140px;width:auto;object-fit:contain}
.govcard .loc{color:var(--muted);font-size:13.5px}
.govcard .tag{display:inline-block;margin-top:10px;font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--blue);font-weight:700;border-top:1px solid var(--line);padding-top:12px;width:100%}

/* IBG */
.ibg{position:relative;color:#eaf1f7;background:var(--navy)}
.ibg .bg{position:absolute;inset:0;background:url('assets/world.jpg') center/cover no-repeat;opacity:.16}
.ibg .bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(14,42,68,.86),rgba(20,57,92,.92))}
.ibg .wrap{position:relative}
.ibg .grid2{display:grid;grid-template-columns:.85fr 1.15fr;gap:38px;align-items:center}
.ibg .badge{background:#fff;border-radius:14px;padding:20px;text-align:center;max-width:250px;box-shadow:0 20px 50px rgba(0,0,0,.3)}
.ibg .badge img{margin:0 auto;width:160px}
.ibg h2{color:#fff}
.ibg .eyebrow{color:var(--cyan)}.ibg .eyebrow::before{color:var(--cyan)}
.ibg p{color:#c8d7e6;margin:14px 0 22px;font-size:17px}
.ibgstats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0 18px}
.ibgstats .n{font-size:32px;font-weight:800;color:#fff}
.ibgstats .l{font-size:12px;letter-spacing:.5px;text-transform:uppercase;color:#9fc0dd;margin-top:4px}
.ibglist{list-style:none;display:grid;gap:11px}
.ibglist li{padding-left:28px;position:relative;color:#d7e4f0}
.ibglist li::before{content:"\2713";position:absolute;left:0;color:var(--cyan);font-weight:800}

/* Puente Sur — their brand (navy + gold, Montserrat) */
.psur{position:relative;background:var(--ps-navy);color:#eef2f5;font-family:"Montserrat",system-ui,Arial,sans-serif;padding:0 0 52px;overflow:hidden}
.psband{position:relative;width:100%;height:clamp(150px,18vw,230px);overflow:hidden}
.psband img{width:100%;height:100%;object-fit:cover;object-position:center 38%;display:block}
.psband::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,48,69,.10) 0%,rgba(16,48,69,.05) 42%,rgba(16,48,69,.75) 82%,var(--ps-navy) 100%)}
.pscontent{max-width:820px;margin:0 auto;text-align:center;padding-top:6px}
.pscontent p{max-width:700px;margin:0 auto 16px}
.pscontent .facts{margin-left:auto;margin-right:auto}
.psur .split{gap:48px}
.psur .kicker{font-size:12px;letter-spacing:2.4px;text-transform:uppercase;color:var(--ps-gold);font-weight:700}
.psur h3{font-size:28px;margin:12px 0 14px;color:#fff;font-weight:800;letter-spacing:.5px}
.psur h3 .tri{color:var(--ps-gold)}
.psur .ps-logo{height:54px;width:auto;margin:12px auto 14px;display:block}
.psur p{color:#c4d0d9;margin-bottom:16px;font-weight:500}
.psur .facts{font-size:14px;color:#dfe6eb;margin:6px 0 18px;line-height:1.85}
.psur .facts b{color:var(--ps-gold);font-weight:700}
.psur .btn-ps{display:inline-block;background:var(--ps-gold);color:var(--ps-ink);font-weight:700;padding:13px 26px;border-radius:5px;font-family:"Montserrat",sans-serif;transition:.2s}
.psur .btn-ps:hover{filter:brightness(1.08);transform:translateY(-2px)}
.psur .figure .imgzoom{box-shadow:0 22px 50px rgba(0,0,0,.35)}
.psur .figure::before{background:var(--ps-gold);opacity:.22}
.psur .figure .tri{border-top-color:var(--ps-gold)}
.psur .praxity{margin-top:8px;font-size:12.5px;color:#93a3ae;letter-spacing:.3px}

/* contact teaser (home) — lighter */
.ctcta{background:var(--mist);border-top:1px solid var(--line);text-align:center}
.ctcta h2{margin-bottom:12px}
.ctcta .lead{max-width:620px;margin:0 auto 26px}

/* page hero (sub-pages) */
/* shallower banner so sub-pages fit the screen */
.pagehero{position:relative;color:#fff;padding:26px 0 24px;background:var(--green)}
.pagehero.alt{background:var(--slate)}
.pagehero::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(0,0,0,.12),transparent);pointer-events:none}
.pagehero .wrap{position:relative}
.pagehero .crumb{font-size:12.5px;letter-spacing:.4px;color:#d9f0e7;margin-bottom:8px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.pagehero .crumb a{color:#fff}
/* "Back" — returns to wherever you came from, rather than forcing a trip via Home */
.backlink{display:inline-flex;align-items:center;gap:6px;font-weight:600;border:1px solid rgba(255,255,255,.5);border-radius:30px;padding:3px 12px;transition:.2s;cursor:pointer}
.backlink:hover{background:#fff;color:var(--green)!important;border-color:#fff}
.pagehero h1{color:#fff;font-size:clamp(24px,3.1vw,32px)}
.pagehero p{color:#eafaf3;font-size:16px;max-width:640px;margin-top:7px}

/* generic page content */
.page{padding:36px 0 52px}
.prose{max-width:780px}
.prose h2{margin:28px 0 12px}
.prose p{color:var(--muted);font-size:16.5px;margin-bottom:16px}
.prose ul{margin:0 0 16px 0;padding:0;list-style:none;columns:2;column-gap:30px}
.prose ul li{padding:7px 0 7px 22px;position:relative;font-size:15px;border-bottom:1px solid var(--line);break-inside:avoid}
.prose ul li::before{content:"\25B8";position:absolute;left:0;color:var(--green);top:8px}
.sidebar-layout{display:grid;grid-template-columns:1fr 280px;gap:48px;align-items:start}
.sidenav{position:sticky;top:100px;background:var(--mist);border:1px solid var(--line);border-radius:10px;padding:12px}
.sidenav a{display:block;padding:11px 14px;border-radius:7px;font-size:14.5px;color:var(--slate);font-weight:600}
.sidenav a:hover{background:#fff;color:var(--green)}
.sidenav a.active{background:var(--green);color:#fff}

/* contact page */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.profile{display:flex;gap:18px;align-items:center;background:var(--mist);border:1px solid var(--line);border-radius:12px;padding:20px}
.profile .avatar{width:84px;height:84px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:3px solid #fff;box-shadow:0 6px 16px rgba(20,45,35,.15)}
.profile .who .nm{font-weight:700;font-size:18px}
.profile .who .rl{color:var(--muted);font-size:14px}
.profile .who a{color:var(--green);font-weight:600}
.cform{background:var(--mist);border:1px solid var(--line);border-radius:12px;padding:28px}
.cform h3{font-size:18px;margin-bottom:16px}
.cform .fld{margin-bottom:15px}
.cform .two{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.cform label{display:block;font-size:13px;font-weight:600;color:var(--slate);margin-bottom:6px}
.cform label .req{color:var(--green)}
.cform input,.cform textarea{width:100%;border:1px solid var(--line);border-radius:7px;padding:11px 13px;font:inherit;font-size:15px;color:var(--ink);background:#fff}
.cform input:focus,.cform textarea:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgba(29,154,120,.12)}
.cform textarea{min-height:120px;resize:vertical}
.cform .note{font-size:12.5px;color:var(--muted);margin-top:10px}
/* Honeypot — off-screen, never shown to a person. Not display:none: some bots
   skip hidden fields, and this must look real to them. */
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.cstatus{margin-top:12px;font-size:13.5px;line-height:1.45;padding:0}
.cstatus.ok{color:var(--green-d);font-weight:600;background:rgba(29,154,120,.08);border-left:3px solid var(--green);padding:10px 12px;border-radius:0 6px 6px 0}
.cstatus.err{color:#a3341f;font-weight:600;background:rgba(200,60,30,.07);border-left:3px solid #c0392b;padding:10px 12px;border-radius:0 6px 6px 0}
.cstatus.err a{color:#a3341f;text-decoration:underline}
.cdetails{margin-top:26px}
.cdetails .row{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.cdetails .row .k{font-size:12px;letter-spacing:1.3px;text-transform:uppercase;color:var(--muted);font-weight:700;min-width:90px}
.mapembed{position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--line);box-shadow:0 16px 40px rgba(20,45,35,.12)}
.mapembed iframe{width:100%;height:430px;border:0;display:block}
.maploc{position:absolute;top:14px;left:14px;z-index:2;background:#fff;border-radius:8px;padding:10px 14px;box-shadow:0 6px 18px rgba(0,0,0,.18);font-size:13.5px;line-height:1.4;max-width:230px}
.maploc .pin{color:var(--green);font-weight:800;margin-right:6px}
.maploc b{color:var(--ink)}
.maploc span{color:var(--muted)}

/* footer */
footer.site{background:#0c1319;color:#9aa6b2;font-size:13.5px}
footer.site .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px;padding:52px 24px 30px}
footer.site h4{color:#fff;font-size:13px;letter-spacing:1.4px;text-transform:uppercase;margin-bottom:14px}
footer.site a{color:#cdd6df;display:block;padding:4px 0}
footer.site a:hover{color:#fff}
footer.site .brand img{height:34px;margin-bottom:14px}
footer.site .brand p{color:#8b97a3;max-width:260px}
footer.site .bottom{border-top:1px solid #1c2731;padding:18px 24px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;color:#7f8b96}
footer.site .bottom a{display:inline}

/* Desktop framing: every section fills at least one screen, so a section framed
   via the dots never leaves a gap for the next section to bleed into. This is a
   MINIMUM — taller sections keep their natural height and simply scroll. */
@media (min-width:900px) and (min-height:600px){
  body.home section:not(.hero){min-height:calc(100vh - 86px)}
  /* centre the content of ordinary sections in the available space */
  body.home section:not(.hero):not(.psur){display:flex;flex-direction:column;justify-content:center}
  /* Puente Sur keeps its photo band flush at the top, content centred beneath */
  body.home .psur{display:flex;flex-direction:column}
  body.home .psur .wrap{margin-top:auto;margin-bottom:auto}
}

/* section navigation dots (home) */
/* No container, no shadow — just marks in the margin. The label appears only for
   the active section (and on hover), and the whole nav inverts over dark bands. */
.dotnav{position:fixed;right:26px;top:50%;transform:translateY(-50%);z-index:55;display:flex;flex-direction:column;gap:15px;align-items:flex-end}
.dotnav a{display:flex;align-items:center;justify-content:flex-end;gap:10px;transition:.2s}
/* hollow circle markers; filled with the accent colour for the active section */
.dotnav a .dot{width:9px;height:9px;box-sizing:border-box;border-radius:50%;background:none;border:1.7px solid rgba(68,84,106,.5);flex:0 0 auto;transition:.22s}
.dotnav a .lbl{font-size:11px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);white-space:nowrap;opacity:0;transform:translateX(5px);transition:.22s;pointer-events:none}
.dotnav a:hover .dot,.dotnav a.on .dot{border-color:var(--green);background:var(--green);transform:scale(1.35)}
.dotnav a:hover .lbl,.dotnav a.on .lbl{opacity:1;transform:none}
.dotnav a.on .lbl{color:var(--green)}
/* over dark bands (hero, How we work, IBG, Puente Sur): white labels for legibility —
   lime-on-green was the unreadable combination */
.dotnav.dark a .dot{border-color:rgba(255,255,255,.9)}
.dotnav.dark a .lbl{color:rgba(255,255,255,.85);text-shadow:0 1px 6px rgba(0,0,0,.4)}
.dotnav.dark a:hover .dot,.dotnav.dark a.on .dot{border-color:var(--lime);background:var(--lime)}
.dotnav.dark a:hover .lbl,.dotnav.dark a.on .lbl{color:#fff}
/* First-visit cue: a light runs DOWN the triangles, top to bottom, drawing the
   eye to the section nav. Replaces the old "Scroll" prompt and the static word.
   Each triangle pulses brighter+larger in turn via a shared keyframe with a
   per-dot animation-delay (set below), so the highlight sweeps downward and
   repeats. It retires once the visitor engages — see index.html. */
.dotnav.cueing a .dot{--cbright:var(--green);animation:dotwave 2.6s ease-in-out infinite}
.dotnav.cueing.dark a .dot{--cbright:#fff}
@keyframes dotwave{
  /* unlisted border-color/background/transform at 0/25/100% fall back to each dot's
     own base value, which differs by light/dark mode — so the pulse stays correct
     in both. At the peak the hollow circle briefly fills and glows: the "light". */
  0%,25%,100%{filter:none}
  7%{border-color:var(--cbright);background:var(--cbright);transform:scale(1.55);filter:drop-shadow(0 0 5px var(--cbright))}
}
/* stagger: ~0.12s between dots makes the highlight travel down the column */
.dotnav.cueing a:nth-child(1) .dot{animation-delay:0s}
.dotnav.cueing a:nth-child(2) .dot{animation-delay:.12s}
.dotnav.cueing a:nth-child(3) .dot{animation-delay:.24s}
.dotnav.cueing a:nth-child(4) .dot{animation-delay:.36s}
.dotnav.cueing a:nth-child(5) .dot{animation-delay:.48s}
.dotnav.cueing a:nth-child(6) .dot{animation-delay:.60s}
.dotnav.cueing a:nth-child(7) .dot{animation-delay:.72s}
.dotnav.cueing a:nth-child(8) .dot{animation-delay:.84s}
.dotnav.cueing a:nth-child(9) .dot{animation-delay:.96s}
/* Respect users who ask the OS not to animate — no sweep, nav still fully usable. */
@media (prefers-reduced-motion:reduce){ .dotnav.cueing a .dot{animation:none} }
@media(max-width:1100px){.dotnav{display:none}}

.ribbon{position:fixed;bottom:14px;right:14px;z-index:99;background:var(--orange);color:#3a2400;font-weight:700;font-size:12px;letter-spacing:.5px;padding:8px 14px;border-radius:30px;box-shadow:0 6px 18px rgba(0,0,0,.25)}

/* responsive */
@media(max-width:900px){
  .grid3,.steps,.govrow{grid-template-columns:1fr 1fr}
  .split,.coverage .grid2,.ibg .grid2,.contact-grid,.sidebar-layout{grid-template-columns:1fr;gap:34px}
  .ibg .badge{margin:0 auto}
  .sidebar-layout .sidenav{position:static}
  footer.site .cols{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  /* backdrop-filter makes header.site a CONTAINING BLOCK for position:fixed
     descendants. That trapped the nav drawer inside the 81px-tall header instead
     of pinning it to the viewport — so the menu opened as a stunted panel AND its
     off-canvas transform dragged the document ~695px wide on a 375px phone.
     The blur is a desktop nicety; drop it on phones and the drawer works properly.
     overflow-x:clip is belt-and-braces (clip, not hidden: hidden would force
     overflow-y to auto and break the sticky header). */
  header.site{backdrop-filter:none}
  html{overflow-x:clip}
  section{padding:60px 0}
  nav.main{position:fixed;inset:0 0 0 auto;width:min(82vw,330px);background:#fff;flex-direction:column;align-items:flex-start;gap:2px;padding:86px 22px;transform:translateX(100%);transition:.25s;box-shadow:-10px 0 30px rgba(0,0,0,.14);overflow-y:auto}
  nav.main.open{transform:none}
  nav.main>a,.drop-t{width:100%;border-bottom:1px solid var(--line);padding:13px 0}
  /* .has-drop is display:flex for desktop baseline alignment; in the drawer that
     put "Services" side-by-side with its submenu. Stack it instead. */
  .has-drop{width:100%;flex-direction:column;align-items:stretch}
  .dropdown{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding:0 0 8px 14px;min-width:0}
  .dropdown a{padding:9px 0;font-size:14px}
  .navcta{margin-top:12px}
  .ibg-mark{border-left:0;padding-left:0;margin-left:0;margin-top:16px}
  .burger{display:flex;z-index:70}
  .stats .wrap,.grid3,.steps,.govrow,.ibgstats,.markets,.prose ul{grid-template-columns:1fr 1fr;columns:1}
  .stats .item+.item{border-left:0}
  .cinfo{gap:26px}
  .utility{display:none}
  .hero{min-height:78vh;min-height:78dvh}
  /* Scroll-lock: without this the page scrolls behind the open drawer.
     NOTE: body{overflow:hidden} does NOT work here — overflow only propagates from
     body to the viewport when the ROOT element is overflow:visible, and html is
     overflow-x:clip above. So the lock must sit on html itself.
     overscroll-behavior stops the scroll chaining to the page at the drawer's end. */
  html:has(body.navopen){overflow:hidden}
  nav.main{overscroll-behavior:contain}
  .psur .ps-logo{height:48px}
  footer.site .cols{grid-template-columns:1fr}
}
/* Phones: the three-up CONTENT grids need the full width. Two columns leaves
   ~155px per card, which wraps body copy to one word per line. The logo and
   stat grids (.govrow, .ibgstats, .stats, .markets) read fine 2-up, so they stay. */
@media(max-width:600px){
  .grid3,.steps{grid-template-columns:1fr}
  .scard .ph{height:170px}
  /* Grid items default to min-width:auto, so a govcard could not shrink below its
     content floor (140px logo + 28px padding = 170px). Two of those exceeded the
     327px available and pushed the page 8px sideways. Let them shrink. */
  .govcard{min-width:0}
  .govlogo img{max-width:100%}
  /* Same min-width:auto trap in Coverage: the market cards' content floor (303px)
     exceeded the space available on a 320px phone. Let them shrink and wrap. */
  .markets,.market{min-width:0}
  .market .nm,.market .sub{min-width:0;overflow-wrap:break-word}
  /* Contact: the grid ITEM (.contact-grid>*) held a 327px content floor via
     min-width:auto, driven by the unbreakable "bprado@southbridge.cl". Note
     overflow-wrap:break-word alone cannot fix this — it does not reduce intrinsic
     min-content width; the item must be allowed to shrink. */
  .contact-grid>*{min-width:0}
  .profile .who{min-width:0}
  .profile .who a{overflow-wrap:break-word}
  .cdetails .row>*{min-width:0;overflow-wrap:break-word}
  .cdetails .row .k{min-width:78px}
}
/* Very narrow phones (iPhone SE ≈320px): now that the logo cannot shrink, scale it
   down and tighten the header padding so logo + burger still fit without overflow. */
@media(max-width:420px){
  header.site .nav-wrap{padding:12px 16px;gap:12px}
  .logo img{height:42px}
  /* Stack the profile so .who gets the full width — the email then sits on one
     line instead of breaking mid-word. */
  .profile{flex-direction:column;text-align:center;gap:12px}
  /* One market per row: 2-up here split "In-country network" over three lines. */
  .markets{grid-template-columns:1fr}
}
