/* PowerBros Automation: light, simple site */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F3F6F9;
  --white: #FFFFFF;
  --ink: #0F1F33;
  --ink-soft: #4A5B70;
  --line: #D7E0EA;
  --blue: #0B6BCB;
  --blue-dark: #08509A;
  --blue-tint: #E6F0FB;
  --green: #3FA34D;
  --green-text: #2B7A37; /* darker green for text on white (contrast 5:1) */
  --navy: #0E2A47;
  --navy-ink: #C9D6E5;
  --wa: #1FA855;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 31, 51, .06), 0 8px 24px rgba(15, 31, 51, .06);
  --ease: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.1; color: var(--ink); }
h1, h2 { font-stretch: 112%; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .fill, .wa-float .fill { fill: currentColor; stroke: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--blue); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 700; color: var(--blue); text-decoration: none;
}
.text-link::after { content: "\2192"; transition: transform .2s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(15, 31, 51, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wm-top { font-weight: 800; font-stretch: 115%; font-size: 19px; letter-spacing: -.01em; }
.wm-bottom { font-weight: 600; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav > a:not(.btn):hover { color: var(--blue); }
.nav-toggle, .header-call { display: none; }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); }
.hero .lede { margin-top: 22px; font-size: 19px; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 14px; height: 2px; background: var(--green); border-radius: 2px; }

/* 3D building card */
.twin-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.twin { position: relative; height: 520px; }
.twin-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.twin-labels { position: absolute; inset: 0; pointer-events: none; }
.twin-label {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 14px 10px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(15, 31, 51, .08);
  color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none;
  opacity: 0; transition: opacity .25s var(--ease), border-color .2s;
}
.twin-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.twin-label.show { opacity: 1; }
.twin-label.hot, .twin-label:hover { border-color: var(--c); }
.twin-hint { position: absolute; left: 20px; top: 16px; margin: 0; font-size: 13.5px; color: var(--ink-soft); pointer-events: none; }
.twin.off .twin-canvas, .twin.off .twin-hint { display: none; }
.twin.off::after { content: ""; position: absolute; inset: 25%; background: url("assets/mark.svg") center / contain no-repeat; }

/* Sections */
.section { padding: 96px 0; }
.section-white { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p, .split-head p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }

/* Services */
.split { display: grid; grid-template-columns: .8fr 1.6fr; gap: 64px; align-items: start; }
.split-head { position: sticky; top: 110px; }
.split-head .text-link { margin-top: 22px; }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.service-grid li { display: flex; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.service-grid li:nth-child(-n+2) { border-top: 0; padding-top: 4px; }
.service-grid p { margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; }
.svc-ico {
  width: 44px; height: 44px; padding: 10px; flex: none; border-radius: 12px;
  background: var(--blue-tint); stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.service-grid li:target .svc-ico { background: var(--blue); stroke: #fff; }

/* Compare slider */
.compare {
  --pos: 50%;
  position: relative; display: grid; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.compare-panel { grid-area: 1 / 1; padding: 32px clamp(20px, 4vw, 44px) 36px; }
.compare-panel.before { background: #FBF7F2; }
.compare-panel.after { background: var(--white); clip-path: inset(0 0 0 var(--pos)); }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 22px; }
.panel-head strong { font-size: 22px; font-stretch: 110%; }
.panel-tag { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.before .panel-tag { background: #F4E3CF; color: #8A4B12; }
.after .panel-tag { background: #DDF1E0; color: #23692E; }
.panel-total { margin-left: auto; font-weight: 800; font-size: 20px; font-stretch: 110%; }
.before .panel-total { color: #A04A12; }
.after .panel-total { color: var(--green-text); }
.flowline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.flowline li {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .8);
}
.flowline b { font-size: 16px; }
.flowline span { color: var(--ink-soft); font-size: 14.5px; }
.flowline em { margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 800; font-size: 18px; }
.before .flowline em { color: #A04A12; }
.after .flowline em { color: var(--green-text); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px;
  display: grid; place-items: center; cursor: ew-resize; z-index: 2;
}
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: var(--ink); }
.compare-handle .grip {
  position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(15, 31, 51, .25);
  transition: transform .15s var(--ease), background-color .2s;
}
.compare-handle .grip svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.compare-handle:hover .grip, .compare.dragging .grip { background: var(--blue); transform: scale(1.06); }
.compare-handle:focus { outline: none; }
.compare-handle:focus-visible .grip { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Digital twin showcase */
.twin-show { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.twin-show-copy > p:first-of-type { margin-top: 16px; color: var(--ink-soft); font-size: 18px; }
.twin-show .checks { margin: 22px 0 26px; }
.twin-show-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.fine-left { margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.twin-video { margin: 0; }
.twin-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--navy); box-shadow: var(--shadow); }
.twin-video figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); text-align: center; }
@media (max-width: 1000px) { .twin-show { grid-template-columns: 1fr; gap: 36px; } }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.product:hover { border-color: #B8C8DA; box-shadow: var(--shadow); transform: translateY(-2px); }
.product-ico { align-self: flex-start; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--ink); margin-bottom: 18px; }
.product-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product h3 { font-size: 24px; font-stretch: 110%; }
.product-sub { margin-top: 4px; font-weight: 600; color: var(--blue); font-size: 15px; }
.product > p:not(.product-sub) { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-3px) rotate(-45deg); }
.product .text-link { margin-top: auto; align-self: flex-start; }

/* How it works */
.section-dark { background: var(--navy); color: var(--navy-ink); }
.section-dark h2, .section-dark h3 { color: #fff; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { border-top: 2px solid rgba(255, 255, 255, .16); padding-top: 24px; }
.steps .num { display: block; font-size: 64px; line-height: 1; font-weight: 800; font-stretch: 120%; color: var(--green); margin-bottom: 18px; }
.steps h3 { font-size: 21px; }
.steps p { margin-top: 10px; font-size: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-info > p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }
.contact-list { margin: 32px 0 0; display: grid; gap: 18px; }
.contact-list dt { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list dd { margin: -4px 0 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { display: inline-block; padding: 8px 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact-list a:hover { color: var(--blue); text-decoration-color: var(--blue); }

.quote-form {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); display: grid; gap: 20px;
}
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.field legend { margin-bottom: 10px; }
.opt { font-weight: 500; color: var(--ink-soft); }
input:not([type="checkbox"]):not([type="radio"]), textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #8796A8; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(11, 107, 203, .14); }
[aria-invalid="true"] { border-color: #C2362B !important; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input, .segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip span:hover { border-color: var(--ink-soft); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span, .segmented input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; gap: 4px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; }
.segmented span {
  display: grid; place-items: center; min-height: 42px; border-radius: 9px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink-soft);
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.segmented input:checked + span { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 31, 51, .14); }

.form-error { color: #C2362B; font-weight: 600; font-size: 15px; }
.fine { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin-top: -8px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--navy-ink); padding: 44px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.brand-footer { color: #fff; }
.brand-footer .wm-bottom { color: var(--navy-ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #9CC8F5; }
.copy { width: 100%; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; }

/* WhatsApp button */
.wa-float {
  position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(31, 168, 85, .35);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .split-head { position: static; }
  .flowline { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; max-width: 620px; }
}
@media (max-width: 860px) {
  .header-call {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; margin-left: auto; border-radius: 999px;
    background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
  }
  .header-inner { gap: 10px; }
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
    font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--white);
    border: 1.5px solid var(--line); cursor: pointer;
  }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    box-shadow: 0 16px 30px rgba(15, 31, 51, .08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav .btn { margin-top: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 56px; }
  .hero .lede { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 24px; }
  .flowline { grid-template-columns: 1fr; gap: 10px; }
  .flowline li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 14px 16px; }
  .flowline span { order: 3; width: 100%; }
  .flowline em { margin: 0 0 0 auto; padding: 0; font-size: 16px; }
  .panel-total { margin-left: 0; width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps .num { font-size: 48px; }
  .field-pair { grid-template-columns: 1fr; }
  .twin { height: 380px; }
  .wa-float { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 54px; height: 54px; }
}
@media (max-width: 440px) {
  .site-header .brand { gap: 7px; flex-shrink: 0; }
  .site-header .brand img { width: 32px; height: 32px; }
  .site-header .wm-top { font-size: 16px; }
  .site-header .wm-bottom { font-size: 9.5px; letter-spacing: .2em; }
}
@media (max-width: 374px) {
  .header-call { width: 44px; padding: 0; justify-content: center; }
  .call-text { display: none; }
  .nav-toggle { padding: 0 14px; }
}
