:root{
  --cream:#FBF3E7; --cream-2:#F3E7D3;
  --ink:#14151A; --ink-soft:#5B5A54;
  --cobalt:#2451FF; --cobalt-deep:#152F99;
  --coral:#FF5A45;
  --line:#E7DCC8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --cream:#181A22; --cream-2:#1F2230;
    --ink:#F2EFE8; --ink-soft:#ABA79C;
    --line:#31344A;
    --cobalt:#6E8CFF; --cobalt-deep:#2C407A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --cream:#181A22; --cream-2:#1F2230;
  --ink:#F2EFE8; --ink-soft:#ABA79C;
  --line:#31344A;
  --cobalt:#6E8CFF; --cobalt-deep:#2C407A;
  color-scheme: dark;
}
*{box-sizing:border-box;}
body{ background:var(--cream); color:var(--ink); font-family:'Work Sans',system-ui,sans-serif; font-size:16px; line-height:1.6; overflow-x:hidden; margin:0; }
h1,h2,h3{ font-family:'Bricolage Grotesque',sans-serif; font-weight:700; margin:0; text-wrap:balance; }
p{ margin:0; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
.wrap{ max-width:1200px; margin-inline:auto; padding-inline:28px; }
.badge{ position:absolute; background:#fff; border:2px solid var(--ink); border-radius:999px; padding:8px 16px; font-weight:700; font-size:0.82rem; box-shadow:4px 4px 0 var(--ink); }

nav{ padding-block:20px; position:relative; z-index:5; background:var(--cream); position:sticky; top:0; }
nav .wrap{ display:flex; align-items:center; justify-content:space-between; }
.logo{ display:flex; align-items:center; gap:8px; text-decoration:none; font-weight:800; font-size:1.3rem; }
.logo-dot{ width:14px; height:14px; border-radius:50%; background:var(--coral); }
.nav-pill{ display:flex; gap:4px; background:#fff; border:2px solid var(--ink); border-radius:999px; padding:6px; }
:root[data-theme="dark"] .nav-pill{ background:var(--cream-2); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .nav-pill{ background:var(--cream-2); } }
.nav-pill a{ text-decoration:none; font-weight:600; font-size:0.88rem; padding:8px 16px; border-radius:999px; color:var(--ink-soft); }
.nav-pill a:hover{ background:var(--cream-2); color:var(--ink); }
.nav-pill a[aria-current="page"]{ background:var(--ink); color:var(--cream); }
@media (max-width:820px){ .nav-pill{ display:none; } }
.btn-cobalt{ background:var(--cobalt); color:#fff; text-decoration:none; font-weight:700; padding:12px 24px; border-radius:999px; border:2px solid var(--ink); box-shadow:3px 3px 0 var(--ink); display:inline-block; }
.icon-btn{ width:38px; height:38px; border:2px solid var(--ink); border-radius:50%; background:#fff; color:var(--ink); display:flex; align-items:center; justify-content:center; cursor:pointer; }
:root[data-theme="dark"] .icon-btn{ background:var(--cream-2); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .icon-btn{ background:var(--cream-2); } }
.nav-right{ display:flex; align-items:center; gap:14px; }

.hero{ position:relative; padding-block:60px 100px; overflow:visible; }
.hero-grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:40px; align-items:center; position:relative; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }
.hero-eyebrow{ display:inline-flex; align-items:center; gap:8px; background:var(--ink); color:var(--cream); padding:8px 16px; border-radius:999px; font-size:0.78rem; font-weight:700; letter-spacing:0.03em; text-transform:uppercase; margin-bottom:24px; }
.hero h1{ font-size:clamp(2.6rem,5.4vw,4.4rem); line-height:0.98; margin-bottom:24px; }
.hero h1 .hl{ color:var(--cobalt); }
.hero p.lede{ font-size:1.1rem; color:var(--ink-soft); max-width:48ch; margin-bottom:32px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.btn-ghost-ink{ text-decoration:none; font-weight:700; padding:12px 22px; border-radius:999px; border:2px solid var(--ink); color:var(--ink); }

.hero-media{ position:relative; }
.media-shape{
  border-radius:32px; overflow:hidden; border:3px solid var(--ink); box-shadow:8px 8px 0 var(--ink);
  aspect-ratio:4/5; background-size:cover; background-position:center;
  filter:saturate(0.5) contrast(1.05);
}
.badge-1{ top:-18px; left:-22px; transform:rotate(-8deg); }
.badge-2{ bottom:20px; right:-26px; transform:rotate(6deg); background:var(--coral); color:#fff; border-color:var(--ink); }
@media (max-width:600px){ .badge-1, .badge-2{ display:none; } }

.marquee-wrap{ border-top:2px solid var(--ink); border-bottom:2px solid var(--ink); background:var(--ink); color:var(--cream); padding-block:14px; overflow:hidden; }
.marquee{ display:flex; gap:48px; white-space:nowrap; font-weight:700; font-size:0.95rem; }
.marquee span::after{ content:"·"; margin-left:48px; color:var(--coral); }

/* pagehead (interior) */
.pagehead{ padding-block:56px 30px; }
.crumb{ font-size:0.82rem; font-weight:600; color:var(--ink-soft); margin-bottom:18px; }
.crumb a{ text-decoration:none; }
.crumb a:hover{ color:var(--ink); }
.pagehead h1{ font-size:clamp(2.2rem,4.6vw,3.6rem); margin-bottom:16px; }
.pagehead p.lede{ font-size:1.05rem; color:var(--ink-soft); max-width:56ch; }
.pagehead-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center; }
@media (max-width:860px){ .pagehead-grid{ grid-template-columns:1fr; } }

.section{ padding-block:88px; }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head .eyebrow{ display:inline-block; font-weight:700; color:var(--cobalt); margin-bottom:14px; font-size:0.9rem; }
.section-head h2{ font-size:clamp(1.9rem,3.4vw,2.6rem); }

.pillar-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:860px){ .pillar-grid{ grid-template-columns:1fr; } }
.pillar-card{ border-radius:24px; padding:32px; border:2px solid var(--ink); color:#fff; box-shadow:6px 6px 0 var(--ink); }
.pillar-card:nth-child(3n+1){ background:var(--cobalt); }
.pillar-card:nth-child(3n+2){ background:var(--coral); }
.pillar-card:nth-child(3n){ background:var(--ink); }
.pillar-icon{ width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center; margin-bottom:20px; }
.pillar-card h3{ font-size:1.25rem; margin-bottom:10px; color:#fff; }
.pillar-card p{ font-size:0.92rem; opacity:0.92; }

.diag-band{ position:relative; background:var(--ink); color:var(--cream); padding-block:96px; clip-path:polygon(0 6%, 100% 0%, 100% 94%, 0% 100%); margin-block:40px; }
.diag-band .wrap{ position:relative; }
.diag-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
@media (max-width:760px){ .diag-grid{ grid-template-columns:1fr 1fr; } }
.diag-stat{ background:var(--cream); color:var(--ink); border-radius:999px; padding:28px 12px; border:2px solid var(--ink); }
.diag-stat .num{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:2rem; }
.diag-stat .lab{ font-size:0.76rem; color:var(--ink-soft); margin-top:6px; }
.diag-band h2{ text-align:center; color:#fff; margin-bottom:40px; font-size:clamp(1.8rem,3vw,2.3rem); }

.service-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:860px){ .service-cards{ grid-template-columns:1fr; } }
.service-card{ background:#fff; border:2px solid var(--ink); border-radius:24px; padding:28px; }
:root[data-theme="dark"] .service-card{ background:var(--cream-2); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .service-card{ background:var(--cream-2); } }
.service-tag{ display:inline-block; background:var(--cream-2); border-radius:999px; padding:6px 14px; font-size:0.76rem; font-weight:700; margin-bottom:16px; }
.service-card h3{ font-size:1.2rem; margin-bottom:10px; }
.service-card p{ color:var(--ink-soft); font-size:0.94rem; }

.testi-strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:860px){ .testi-strip{ grid-template-columns:1fr; } }
.testi-card{ background:#fff; border:2px solid var(--ink); border-radius:24px; padding:26px; position:relative; }
:root[data-theme="dark"] .testi-card{ background:var(--cream-2); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .testi-card{ background:var(--cream-2); } }
.testi-card:nth-child(1){ border-top:6px solid var(--cobalt); }
.testi-card:nth-child(2){ border-top:6px solid var(--coral); }
.testi-card:nth-child(3){ border-top:6px solid var(--ink); }
.testi-card p{ font-size:0.96rem; margin-bottom:14px; }
.testi-card .who{ font-weight:700; font-size:0.85rem; }

.cta-final{ text-align:center; padding-block:40px 20px; }
.cta-box{ background:var(--cobalt); color:#fff; border-radius:32px; border:2px solid var(--ink); box-shadow:8px 8px 0 var(--ink); padding:64px 32px; }
.cta-box h2{ color:#fff; font-size:clamp(1.9rem,3.6vw,2.8rem); margin-bottom:20px; max-width:22ch; margin-inline:auto; }
.cta-box .btn-ghost-ink{ border-color:#fff; color:#fff; }

/* partnership block */
.partner-band{ background:var(--cobalt); color:#fff; border-radius:32px; border:2px solid var(--ink); box-shadow:8px 8px 0 var(--ink); padding:48px; display:grid; grid-template-columns:auto 1fr; gap:32px; align-items:center; }
@media (max-width:700px){ .partner-band{ grid-template-columns:1fr; text-align:center; } }
.partner-band .plogo{ background:#fff; border-radius:16px; padding:16px 22px; }
.partner-band .plogo img{ height:32px; }
.partner-band h3{ color:#fff; font-size:1.4rem; margin-bottom:10px; }
.partner-band p{ color:rgba(255,255,255,0.9); max-width:60ch; }
.partner-tags{ display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
@media (max-width:700px){ .partner-tags{ justify-content:center; } }
.partner-tags span{ background:rgba(255,255,255,0.18); border:2px solid rgba(255,255,255,0.4); padding:6px 14px; border-radius:999px; font-size:0.78rem; font-weight:700; }

/* office cards */
.office-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:760px){ .office-grid{ grid-template-columns:1fr; } }
.office-card{ background:#fff; border:2px solid var(--ink); border-radius:24px; padding:0; overflow:hidden; }
:root[data-theme="dark"] .office-card{ background:var(--cream-2); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .office-card{ background:var(--cream-2); } }
.office-card .oc-head{ padding:20px 26px; border-bottom:2px solid var(--ink); display:flex; justify-content:space-between; align-items:center; }
.office-card .oc-head h3{ font-size:1.1rem; }
.office-card .oc-tag{ background:var(--coral); color:#fff; font-size:0.7rem; font-weight:700; padding:5px 12px; border-radius:999px; }
.office-card .oc-body{ padding:22px 26px; display:flex; flex-direction:column; gap:12px; }
.oc-row{ display:flex; gap:12px; font-size:0.92rem; }
.oc-row .k{ font-weight:700; text-transform:uppercase; font-size:0.7rem; color:var(--ink-soft); width:64px; flex-shrink:0; padding-top:2px; }
.oc-row a{ text-decoration:none; font-weight:600; }
.hours-note{ font-weight:700; margin-top:20px; background:var(--cream-2); display:inline-block; padding:8px 16px; border-radius:999px; font-size:0.85rem; }

/* products */
.prod-category{ margin-bottom:48px; }
.prod-category:last-child{ margin-bottom:0; }
.prod-category-head{ display:flex; align-items:center; gap:14px; margin-bottom:8px; }
.prod-category-num{ background:var(--ink); color:var(--cream); width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.85rem; flex-shrink:0; }
.prod-category-head h3{ font-size:1.35rem; }
.prod-category-desc{ color:var(--ink-soft); font-size:0.94rem; margin:6px 0 18px 46px; }
.prod-list{ display:flex; flex-wrap:wrap; gap:10px; margin-left:46px; }
.prod-chip{ border:2px solid var(--ink); background:#fff; padding:9px 16px; font-size:0.86rem; font-weight:700; border-radius:999px; }
:root[data-theme="dark"] .prod-chip{ background:var(--cream-2); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .prod-chip{ background:var(--cream-2); } }
.prod-chip.bentley{ background:var(--cobalt); color:#fff; }

/* solutions */
.solutions-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:960px){ .solutions-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .solutions-grid{ grid-template-columns:1fr; } }
.solution-card{ background:#fff; border:2px solid var(--ink); border-radius:20px; padding:24px; display:flex; flex-direction:column; gap:10px; }
:root[data-theme="dark"] .solution-card{ background:var(--cream-2); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .solution-card{ background:var(--cream-2); } }
.solution-card-head{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.solution-card h3{ font-family:'Work Sans',sans-serif; font-weight:700; font-size:1.05rem; }
.solution-card .cat{ background:var(--coral); color:#fff; font-size:0.65rem; font-weight:700; padding:4px 10px; border-radius:999px; white-space:nowrap; }
.solution-card .cat.bentley{ background:var(--cobalt); }
.solution-card p{ color:var(--ink-soft); font-size:0.9rem; flex:1; }
.solution-dl{ text-decoration:none; font-weight:700; font-size:0.82rem; color:var(--cobalt); }
.solution-dl:hover{ text-decoration:underline; }

/* contact form */
.form-card{ background:#fff; border:2px solid var(--ink); border-radius:24px; padding:36px; max-width:720px; box-shadow:6px 6px 0 var(--ink); }
:root[data-theme="dark"] .form-card{ background:var(--cream-2); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .form-card{ background:var(--cream-2); } }
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:18px; }
.field label{ font-size:0.76rem; font-weight:700; letter-spacing:0.03em; text-transform:uppercase; color:var(--ink-soft); }
.field input, .field textarea, .field select{
  background:var(--cream); border:2px solid var(--line); color:var(--ink);
  padding:12px 14px; font-family:'Work Sans',sans-serif; font-size:0.94rem; border-radius:12px; resize:vertical;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--cobalt); }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:520px){ .two-col{ grid-template-columns:1fr; } }
.form-confirm{ display:none; align-items:center; gap:10px; margin-top:16px; font-size:0.9rem; font-weight:700; color:var(--cobalt-deep); }
.form-confirm.show{ display:flex; }

footer{ padding-block:56px 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px; margin-bottom:36px; }
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr; } }
footer h4{ font-size:0.8rem; text-transform:uppercase; letter-spacing:0.05em; margin-bottom:14px; color:var(--ink-soft); }
footer .flinks{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
footer .flinks a{ text-decoration:none; font-weight:600; font-size:0.92rem; }
footer .flinks a:hover{ color:var(--cobalt); }
.footer-bottom{ border-top:2px solid var(--ink); padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:0.82rem; color:var(--ink-soft); }

/* mega menu */
.mega-trigger{ position:relative; display:inline-flex; }
.mega-menu{
  display:none; flex-direction:column; position:absolute; top:100%; left:0; margin-top:14px;
  min-width:260px; background:#fff; border:2px solid var(--ink); border-radius:16px; padding:8px; z-index:50; box-shadow:4px 4px 0 var(--ink);
}
:root[data-theme="dark"] .mega-menu{ background:var(--cream-2); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .mega-menu{ background:var(--cream-2); } }
.mega-trigger:hover .mega-menu, .mega-trigger:focus-within .mega-menu{ display:flex; }
.mega-menu a{ display:block; padding:10px 14px; font-size:0.86rem; font-weight:700; text-decoration:none; color:var(--ink); border-radius:10px; }
.mega-menu a:hover{ background:var(--cream-2); color:var(--cobalt); }

/* WhatsApp float */
.wa-float{ position:fixed; right:24px; bottom:24px; z-index:100; width:58px; height:58px; border-radius:50%; background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:3px 3px 0 var(--ink); border:2px solid var(--ink); text-decoration:none; transition:transform .15s ease; }
.wa-float:hover{ transform:scale(1.06); }
.wa-float svg{ width:28px; height:28px; }
@media (max-width:600px){ .wa-float{ right:16px; bottom:16px; width:52px; height:52px; } }

/* newsletter */
.newsletter-section{ border-top:2px solid var(--ink); padding-block:28px; }
.newsletter-block{ display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.newsletter-block h4{ font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:1.05rem; margin:0 0 4px; }
.newsletter-block p{ color:var(--ink-soft); font-size:0.86rem; margin:0; }
.newsletter-form{ display:flex; gap:8px; flex-wrap:wrap; }
.newsletter-form input{ padding:11px 18px; border:2px solid var(--ink); border-radius:999px; background:#fff; color:var(--ink); min-width:220px; font-family:'Work Sans',sans-serif; }
:root[data-theme="dark"] .newsletter-form input{ background:var(--cream-2); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .newsletter-form input{ background:var(--cream-2); } }
.newsletter-form button{ padding:11px 22px; border-radius:999px; border:2px solid var(--ink); background:var(--cobalt); color:#fff; cursor:pointer; font-weight:700; box-shadow:2px 2px 0 var(--ink); }
.newsletter-confirm{ display:none; font-size:0.85rem; font-weight:700; color:var(--cobalt); margin-top:8px; width:100%; }
.newsletter-confirm.show{ display:block; }

/* inline PDF preview */
.pdf-preview-toggle{ background:none; border:none; font-family:'Work Sans',sans-serif; font-size:0.82rem; font-weight:700; color:var(--ink); cursor:pointer; margin-left:8px; text-decoration:underline; padding:0; }
.pdf-preview-toggle:hover{ color:var(--coral); }
.pdf-preview-wrap{ display:none; margin-top:12px; }
.pdf-preview-wrap.open{ display:block; }
.pdf-preview-frame{ width:100%; height:400px; border:2px solid var(--ink); border-radius:12px; }

/* map embed */
.map-embed{ margin-top:16px; border:2px solid var(--ink); border-radius:16px; overflow:hidden; aspect-ratio:16/10; }
.map-embed iframe{ width:100%; height:100%; border:0; display:block; }

/* deals section */
.deals-section{ padding-block:64px; }
.deals-head h2{ font-size:clamp(1.8rem,3vw,2.3rem); margin-top:4px; }
.deals-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:24px; }
@media (max-width:820px){ .deals-grid{ grid-template-columns:1fr; } }
.deal-card{ display:block; background:#fff; border:2px solid var(--ink); border-radius:20px; padding:24px; text-decoration:none; color:var(--ink); box-shadow:4px 4px 0 var(--ink); }
:root[data-theme="dark"] .deal-card{ background:var(--cream-2); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .deal-card{ background:var(--cream-2); } }
.deal-badge{ display:inline-block; background:var(--coral); color:#fff; font-weight:700; font-size:0.74rem; padding:5px 12px; border-radius:999px; margin-bottom:12px; }
.deal-card h3{ font-family:'Bricolage Grotesque',sans-serif; font-size:1.1rem; margin-bottom:8px; }
.deal-card p{ color:var(--ink-soft); font-size:0.92rem; margin-bottom:10px; }
.deal-expiry{ font-size:0.78rem; font-weight:700; color:var(--cobalt); }
.deals-empty{ border:2px dashed var(--ink); border-radius:20px; padding:32px; text-align:center; margin-top:24px; }
.deals-empty p{ color:var(--ink-soft); margin-bottom:14px; }
.deals-empty-cta{ text-decoration:none; font-weight:700; color:var(--cobalt); cursor:pointer; }
