/* NexBeacon Smart Connectivity — shared styles */
:root{
  --harbour:#13324A;
  --harbour-2:#1C4563;
  --fog:#F3F6F7;
  --paper:#FFFFFF;
  --ink:#1E2A33;
  --muted:#566571;
  --line:#D7DFE3;
  --spruce:#2E7D5B;
  --amber:#E3A23B;
  --dead:#C8453B;
  --display:"Red Hat Display","Segoe UI",system-ui,-apple-system,sans-serif;
  --text:"Red Hat Text","Segoe UI",system-ui,-apple-system,sans-serif;
  --wrap:1160px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--text);font-size:17px;line-height:1.6;color:var(--ink);background:var(--paper)}
img,svg{max-width:100%;display:block}
a{color:var(--harbour-2)}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--amber);outline-offset:2px;border-radius:4px}
h1,h2,h3{font-family:var(--display);line-height:1.15;margin:0 0 .5em;color:var(--harbour)}
h1{font-size:clamp(2.1rem,4.6vw,3.4rem);font-weight:800;letter-spacing:-.015em}
h2{font-size:clamp(1.6rem,3vw,2.25rem);font-weight:700;letter-spacing:-.01em}
h3{font-size:1.2rem;font-weight:700}
p{margin:0 0 1em;max-width:68ch}
ul{padding-left:1.2em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
section{padding:88px 0}
.lede{font-size:1.15rem;color:var(--muted)}
.tint{background:var(--fog)}
.dark{background:var(--harbour);color:#DCE6EC}
.dark h2,.dark h3{color:#fff}
.dark .lede{color:#B8C9D4}
.section-head{max-width:760px;margin-bottom:40px}

/* Header */
.site-header{background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.site-header .bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px;padding-bottom:12px}
.site-header .logo img{height:42px;width:auto}
.site-header .util{display:flex;gap:18px;align-items:center;font-weight:500}
.site-header .util a{text-decoration:none;color:var(--harbour);white-space:nowrap}
.site-header .util a:hover{text-decoration:underline}
.subnav{border-top:1px solid var(--line);background:var(--fog)}
.subnav .wrap{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.subnav .wrap::-webkit-scrollbar{display:none}
.subnav a{font-family:var(--display);font-weight:600;font-size:.95rem;color:var(--muted);text-decoration:none;padding:12px 14px;white-space:nowrap;border-bottom:3px solid transparent}
.subnav a:hover{color:var(--harbour)}
.subnav a[aria-current="page"]{color:var(--harbour);border-bottom-color:var(--amber)}

/* Buttons */
.btn{display:inline-block;font-family:var(--display);font-weight:700;font-size:1rem;text-decoration:none;padding:13px 24px;border-radius:6px;border:2px solid transparent;cursor:pointer;line-height:1.2}
.btn-primary{background:var(--amber);color:#1B1B1B}
.btn-primary:hover{background:#EDB358}
.btn-ghost{border-color:rgba(255,255,255,.55);color:#fff;background:transparent}
.btn-ghost:hover{border-color:#fff}
.btn-outline{border-color:var(--harbour);color:var(--harbour);background:transparent}
.btn-outline:hover{background:var(--harbour);color:#fff}
.btn-sm{padding:9px 16px;font-size:.92rem}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}

/* Hub hero + map */
.hero{background:var(--harbour);color:#E6EEF3;padding:72px 0 80px}
.hero .grid{display:grid;grid-template-columns:1fr 1.05fr;gap:56px;align-items:center}
.hero h1{color:#fff}
.hero .lede{color:#C4D3DD}
.kicker{font-family:var(--display);font-weight:600;color:var(--amber);margin-bottom:14px}
.map-card{background:var(--harbour-2);border-radius:14px;padding:18px 18px 14px;margin:0}
.map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.toggle{display:inline-flex;background:rgba(0,0,0,.25);border-radius:999px;padding:4px}
.toggle button{font-family:var(--display);font-weight:700;font-size:.95rem;border:0;background:transparent;color:#C4D3DD;padding:8px 18px;border-radius:999px;cursor:pointer}
.toggle button[aria-pressed="true"]{background:#fff;color:var(--harbour)}
.legend{display:flex;gap:14px;font-size:.85rem;color:#C4D3DD}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:12px;height:12px;border-radius:3px;display:inline-block}
.map-caption{font-size:.88rem;color:#A9BCC9;margin:10px 2px 0}
.heat-after{opacity:0;transition:opacity .7s ease}
.heat-before{opacity:1;transition:opacity .7s ease}
.map-card[data-state="after"] .heat-after{opacity:1}
.map-card[data-state="after"] .heat-before{opacity:0}

/* Scenario page banner */
.banner{position:relative;background:var(--harbour);color:#fff;overflow:hidden}
.banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.38}
.banner .illo{position:absolute;right:0;top:0;bottom:0;width:50%;-webkit-mask-image:linear-gradient(to right,transparent,#000 35%);mask-image:linear-gradient(to right,transparent,#000 35%)}
.banner .illo{background:#DDE8EE}
.banner .illo svg{width:100%;height:100%}
.banner.has-illo .wrap{padding-right:calc(50% - 40px)}
.banner .wrap{position:relative;padding-top:96px;padding-bottom:96px}
.banner h1{color:#fff;max-width:17ch}
.banner p{color:#D5E0E7;font-size:1.15rem;max-width:56ch}
.crumbs{font-size:.92rem;margin-bottom:18px;color:#B8C9D4}
.crumbs a{color:#fff}

/* Pillars / simple grids */
.cols-4{display:grid;grid-template-columns:repeat(4,1fr);gap:32px}
.cols-3{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.cols-2{display:grid;grid-template-columns:repeat(2,1fr);gap:32px}
.pillar{border-top:4px solid var(--spruce);padding-top:18px}
.pillar:nth-child(4n+2){border-top-color:var(--amber)}
.pillar:nth-child(4n+3){border-top-color:var(--harbour-2)}
.pillar:nth-child(4n+4){border-top-color:var(--dead)}
.pillar p{margin:0;color:var(--muted)}

/* Scenario cards on hub */
.scenarios{display:grid;grid-template-columns:repeat(6,1fr);gap:24px}
.scenario{grid-column:span 2;display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden;text-decoration:none;color:var(--ink)}
.scenario:nth-child(1),.scenario:nth-child(2){grid-column:span 3}
.scenario .thumb{aspect-ratio:16/9;background:#DCE6EE;overflow:hidden}
.scenario .thumb img,.scenario .thumb svg{width:100%;height:100%;object-fit:cover}
/* Keep the subject in frame when a photo is cropped (adjust the % if needed) */
.scenario .thumb img.focus-top{object-position:50% 0%}
.scenario .body{padding:22px 24px 24px;display:flex;flex-direction:column;flex:1}
.scenario .body p{color:var(--muted);flex:1;margin-bottom:14px}
.scenario .go{font-family:var(--display);font-weight:700;color:var(--harbour-2)}
.scenario:hover{border-color:var(--harbour-2)}
.scenario:hover .go{text-decoration:underline}

/* Problems */
.problems{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.problems .photo{border-radius:14px;overflow:hidden;background:#DCE6EE;aspect-ratio:16/10}
.problems .photo img,.problems .photo svg{width:100%;height:100%;object-fit:cover}
.problem-list{list-style:none;padding:0;margin:0}
.problem-list li{padding:16px 0 16px 34px;border-bottom:1px solid var(--line);position:relative}
.problem-list li::before{content:"";position:absolute;left:0;top:23px;width:14px;height:14px;border-radius:50%;background:var(--dead);box-shadow:0 0 0 4px rgba(200,69,59,.18)}

/* Solution rows */
.solution{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.solution + .solution{margin-top:72px}
.solution:nth-child(even) .media{order:2}
.solution .media{border-radius:14px;overflow:hidden;background:#DCE6EE;aspect-ratio:16/10}
.solution .media img{width:100%;height:100%;object-fit:cover}
.solution ul{margin:0 0 1em;color:var(--muted)}
.solution li{margin-bottom:.35em}
.outcome{font-weight:600;color:var(--spruce);margin:0}

/* Project steps */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:28px;counter-reset:step;position:relative}
.steps::before{content:"";position:absolute;top:22px;left:22px;right:22px;height:2px;background:var(--line)}
.dark .steps::before{background:rgba(255,255,255,.2)}
.steps li{position:relative;counter-increment:step}
.steps li::before{content:counter(step);display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--harbour);color:#fff;font-family:var(--display);font-weight:800;font-size:1.15rem;margin-bottom:18px;position:relative}
.dark .steps li::before{background:var(--amber);color:#1B1B1B}
.steps li:last-child::before{background:var(--spruce);color:#fff}
.steps p{color:var(--muted)}
.dark .steps p{color:#B8C9D4}

/* Benefits */
.benefits{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0 36px}
.benefits div{padding:20px 0;border-top:1px solid var(--line)}
.dark .benefits div{border-top-color:rgba(255,255,255,.18)}
.benefits h3{margin-bottom:.3em}
.benefits p{margin:0;color:var(--muted)}
.dark .benefits p{color:#B8C9D4}

/* Illustration */
.illustration{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.illustration figure{margin:0;background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.illustration img{width:100%;height:auto;background:#DCE6EE;min-height:180px}
.illustration figcaption{font-size:.9rem;color:var(--muted);padding:12px 16px}

/* Split */
.split{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.panel{border:2px solid var(--spruce);border-radius:14px;padding:28px}
.note{font-size:.9rem;color:var(--muted);border-left:3px solid var(--line);padding-left:14px}

/* Plans */
.plan-grid{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:24px;align-items:stretch}
.plan{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:30px;display:flex;flex-direction:column}
.plan p{flex:1}
.plan .tag{font-size:.88rem;font-weight:600;color:var(--spruce);margin:0 0 8px;flex:0}
.plan.featured{border:2px solid var(--harbour);box-shadow:0 18px 40px -24px rgba(19,50,74,.55)}

/* CTA band */
.cta-band{background:var(--harbour-2);color:#fff;padding:64px 0}
.cta-band .wrap{display:flex;justify-content:space-between;align-items:center;gap:32px;flex-wrap:wrap}
.cta-band h2{color:#fff;margin-bottom:.25em}
.cta-band p{color:#C4D3DD;margin:0}

/* Related */
.related{display:flex;flex-wrap:wrap;gap:12px}
.related a{border:1px solid var(--line);border-radius:999px;padding:9px 18px;text-decoration:none;font-weight:600;color:var(--harbour)}
.related a:hover{border-color:var(--harbour)}

/* FAQ */
.faq-list{max-width:820px}
.faq-list details{border-bottom:1px solid var(--line);padding:20px 0}
.faq-list details:first-child{border-top:1px solid var(--line)}
.faq-list summary{font-family:var(--display);font-weight:700;font-size:1.1rem;color:var(--harbour);cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--muted);transition:transform .2s}
.faq-list details[open] summary::after{transform:rotate(45deg)}
.faq-list details p{margin:12px 0 0}

/* Footer */
footer{background:var(--harbour);color:#A9BCC9;padding:28px 0;font-size:.92rem}
footer a{color:#fff}

/* Quote dialog */
.quote-dialog{border:0;padding:0;border-radius:14px;width:min(640px,calc(100vw - 24px));max-height:calc(100vh - 24px);color:var(--ink);box-shadow:0 30px 80px -20px rgba(0,0,0,.5)}
.quote-dialog::backdrop{background:rgba(10,25,38,.62)}
.quote-dialog .q-head{background:var(--harbour);color:#fff;padding:22px 26px;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;position:sticky;top:0;z-index:1}
.quote-dialog .q-head h2{color:#fff;font-size:1.45rem;margin:0 0 4px}
.quote-dialog .q-head p{margin:0;color:#C4D3DD;font-size:.95rem}
.q-close{background:transparent;border:0;color:#fff;font-size:1.8rem;line-height:1;cursor:pointer;padding:0 4px}
.quote-dialog form{padding:22px 26px 26px}
.q-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.q-full{grid-column:1/-1}
.quote-dialog label,.quote-dialog legend{display:block;font-weight:600;font-size:.92rem;margin-bottom:6px;color:var(--harbour)}
.quote-dialog .opt{font-weight:400;color:var(--muted)}
.quote-dialog input[type=text],.quote-dialog input[type=email],.quote-dialog input[type=tel],.quote-dialog select,.quote-dialog textarea{width:100%;font:inherit;font-size:1rem;padding:10px 12px;border:1px solid #B9C6CE;border-radius:6px;background:#fff;color:var(--ink)}
.quote-dialog textarea{min-height:96px;resize:vertical}
.quote-dialog fieldset{border:0;padding:0;margin:0}
.checks{display:flex;flex-wrap:wrap;gap:8px 18px}
.checks label{display:flex;align-items:center;gap:8px;font-weight:400;color:var(--ink);margin:0}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.q-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px;flex-wrap:wrap}
.q-foot small{color:var(--muted);max-width:36ch}
.q-status{margin-top:14px;padding:12px 14px;border-radius:6px;display:none}
.q-status.ok{display:block;background:#E3F2EA;color:#1F5A40}
.q-status.err{display:block;background:#FBE7E5;color:#8A2C24}
.q-status a{color:inherit;font-weight:600}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .heat-after,.heat-before,.faq-list summary::after{transition:none}
}
@media (max-width:960px){
  section{padding:64px 0}
  .hero .grid,.problems,.solution,.split,.illustration{grid-template-columns:1fr;gap:32px}
  .solution:nth-child(even) .media{order:0}
  .cols-4{grid-template-columns:1fr 1fr}
  .cols-3,.plan-grid{grid-template-columns:1fr}
  .scenarios{grid-template-columns:1fr 1fr}
  .scenario,.scenario:nth-child(1),.scenario:nth-child(2){grid-column:span 1}
  .steps{grid-template-columns:1fr 1fr}
  .steps::before{display:none}
  .banner .illo{display:none}
  .banner.has-illo .wrap{padding-right:24px}
}
@media (max-width:600px){
  body{font-size:16px}
  .cols-4,.cols-2,.scenarios,.steps,.q-grid{grid-template-columns:1fr}
  .site-header .logo img{height:34px}
  .site-header .util{gap:12px;font-size:.9rem}
  .site-header .util .hide-sm{display:none}
  .banner .wrap{padding-top:64px;padding-bottom:64px}
}
