/* =========================================================
   v4: quote builder, illustrated families, fixes
   ========================================================= */

/* About: timeline paragraphs must not inherit the story lead style */
.story__text .tl p,.story__text .tl p:first-of-type{font:400 16px/1.6 var(--f-body);color:var(--ink-2);letter-spacing:0;margin:0;max-width:52ch}
.story__text .tl h3{font-size:1.35rem}

/* Process: less dead air between steps */
@media (min-width:1101px){
  .step{min-height:46vh;opacity:.34}
  .step:first-child{min-height:38vh}
}

/* Product families without a photo get an illustration plate from the catalog */
.fcard__ill{position:relative;aspect-ratio:16/8.5;display:grid;place-items:center;overflow:hidden;isolation:isolate;background:radial-gradient(70% 90% at 50% 55%,#ffffff 0%,#eef6fc 60%,#dfeef9 100%)}
.fcard__ill::before{content:"";position:absolute;z-index:-1;width:42%;aspect-ratio:1/1.08;clip-path:var(--hex);background:linear-gradient(160deg,rgba(1,137,198,.16),rgba(1,137,198,.03))}
.fcard__ill img{height:84%;width:auto;max-width:80%;object-fit:contain;mix-blend-mode:multiply;transition:transform 1000ms var(--ease-expo)}
@media (hover:hover){.fcard:hover .fcard__ill img{transform:scale(1.06) rotate(-2deg)}}

/* Specialties: every tile now carries a picture */
.spec__item > .spec__img{aspect-ratio:16/10;min-height:0}
.spec__item--wide > .spec__img{aspect-ratio:auto;min-height:260px}
.spec__img--tall img{object-position:50% 28%}
.spec__img--cat img{object-position:50% 0}
.spec__img img{transition:transform 1200ms var(--ease-expo)}
@media (hover:hover){.spec__item:hover .spec__img img{transform:scale(1.05)}}
.spec__item{transition:transform 500ms var(--ease-expo),box-shadow 500ms ease}
@media (hover:hover) and (pointer:fine){.spec__item:hover{transform:translateY(-4px);box-shadow:0 28px 50px -28px rgba(3,85,127,.45)}}

/* ---------- Quote builder ---------- */
.quote{background:var(--paper);position:relative;overflow:hidden;isolation:isolate}
.quote::before{content:"";position:absolute;z-index:-1;left:-10%;top:10%;width:46%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(127,205,240,.22),transparent 65%)}
.quote__grid{display:grid;grid-template-columns:1.25fr 1fr;gap:clamp(32px,5vw,80px);align-items:start}
.qsteps{list-style:none;margin:0;padding:0;display:grid;gap:clamp(32px,4vw,48px)}
.qstep__t{display:flex;align-items:center;gap:14px;font-size:clamp(1.35rem,2vw,1.7rem);margin-bottom:18px}
.qstep__n{flex-shrink:0;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--blue-600);color:#fff;font:600 15px/1 var(--f-body)}
.qopts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.qopt{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-height:108px;padding:16px;border:1.5px solid var(--line);border-radius:18px;background:var(--card);cursor:pointer;text-align:left;font:500 15px/1.25 var(--f-body);color:var(--heading);transition:border-color 200ms ease,background-color 200ms ease,color 200ms ease,box-shadow 250ms ease,transform 160ms var(--ease-out)}
.qopt i{font-size:24px;color:var(--blue-600);transition:color 200ms ease,transform 400ms var(--ease-expo)}
.qopt:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){.qopt:hover{border-color:var(--blue-300);box-shadow:0 14px 30px -18px rgba(3,85,127,.5)}.qopt:hover i{transform:translateY(-2px)}}
.qopt[aria-checked="true"]{background:var(--blue-600);border-color:var(--blue-600);color:#fff;box-shadow:0 16px 30px -16px rgba(1,137,198,.8)}
.qopt[aria-checked="true"] i{color:#fff}
.qhint{color:var(--ink-3);font-size:15px;padding:18px 20px;border:1.5px dashed var(--line);border-radius:16px}
.qfr{display:grid;gap:20px}
.qfam__name{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px;color:var(--heading);margin-bottom:10px}
.qfam__name i{color:var(--blue-600);font-size:17px}
.qfam__tag{margin-left:4px;padding:3px 9px;border-radius:999px;background:var(--blue-50);color:var(--blue-700);font-size:12px;font-weight:600}
.qfam__chips,.qchips{display:flex;flex-wrap:wrap;gap:8px}
.qchip{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:999px;border:1.5px solid var(--line);background:var(--card);cursor:pointer;font:500 14px/1.2 var(--f-body);color:var(--ink-2);transition:border-color 180ms ease,background-color 180ms ease,color 180ms ease,transform 140ms var(--ease-out)}
.qchip:active{transform:scale(.96)}
@media (hover:hover) and (pointer:fine){.qchip:hover{border-color:var(--blue-300);color:var(--heading)}}
.qchip[aria-pressed="true"],.qchip[aria-checked="true"]{background:var(--heading);border-color:var(--heading);color:#fff}
.qchip--fr[aria-pressed="true"]::before{content:"";width:7px;height:9px;background:var(--blue-300);clip-path:path("M3.5 0C3.5 0 0 4.2 0 6A3.5 3.5 0 0 0 7 6C7 4.2 3.5 0 3.5 0Z")}
.qchips .qchip{padding:12px 18px;font-size:15px}
.qmore{margin-top:16px;border:0;background:none;cursor:pointer;font-size:15px;padding:0 0 2px}

.quote__out{position:sticky;top:110px}
.qcard{background:var(--card);border:1px solid var(--line);border-radius:28px;padding:clamp(18px,2.4vw,26px);box-shadow:0 2px 6px rgba(3,85,127,.05),0 40px 80px -36px rgba(3,85,127,.45)}
.qcard__label{font-size:13px;font-weight:600;color:var(--ink-3);margin-bottom:10px}
.qwhos{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.qwho{display:flex;align-items:center;gap:10px;padding:10px;border:1.5px solid var(--line);border-radius:16px;background:var(--card);cursor:pointer;text-align:left;transition:border-color 200ms ease,background-color 200ms ease,transform 160ms var(--ease-out)}
.qwho:active{transform:scale(.97)}
.qwho b{display:block;font-size:15px;color:var(--heading);font-weight:600}
.qwho small{display:block;font-size:12px;color:var(--ink-3);white-space:nowrap}
.qwho__av{flex-shrink:0;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--blue-100);color:var(--heading);font:600 1.05rem/1 var(--f-display);transition:background-color 200ms ease,color 200ms ease}
.qwho[aria-checked="true"]{border-color:var(--blue-600);background:var(--blue-50)}
.qwho[aria-checked="true"] .qwho__av{background:var(--blue-600);color:#fff}
.qchat{margin:18px 0;padding:18px 16px 14px;border-radius:20px;min-height:260px;display:flex;flex-direction:column;
  background-color:#eef3f7;background-image:radial-gradient(rgba(3,85,127,.07) 1px,transparent 1.2px);background-size:14px 14px}
.qchat__day{align-self:center;font-size:12px;font-weight:600;color:#54656f;background:rgba(255,255,255,.85);padding:5px 12px;border-radius:8px;margin-bottom:16px;box-shadow:0 1px 1px rgba(0,0,0,.05)}
.bubble{position:relative;align-self:flex-end;max-width:94%;background:#d9fdd3;color:#111b21;padding:10px 12px 22px;border-radius:12px 2px 12px 12px;font-size:15px;line-height:1.5;box-shadow:0 1px 1px rgba(11,20,26,.12)}
.bubble::before{content:"";position:absolute;right:-7px;top:0;width:8px;height:12px;background:#d9fdd3;clip-path:polygon(0 0,100% 0,0 100%)}
.bubble::after{content:"agora \2713\2713";position:absolute;right:10px;bottom:5px;font-size:11px;color:#3d8fb8;letter-spacing:.02em}
.bubble__ln{display:block;overflow-wrap:anywhere}
.bubble__ln + .bubble__ln{margin-top:2px}
.bubble b{font-weight:600}
.bubble.is-new{animation:bubbleIn 260ms var(--ease-out)}
@keyframes bubbleIn{from{opacity:.55;transform:translateY(4px) scale(.985)}}
.qchat__meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:14px;font-size:13px;color:#54656f}
.qreset{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:4px 6px;border-radius:8px;cursor:pointer;font:500 13px var(--f-body);color:#54656f}
.qreset:hover{color:var(--heading);background:rgba(255,255,255,.7)}
.qsend{width:100%}
.qcard__note{margin-top:12px;font-size:13px;color:var(--ink-3);text-align:center;text-wrap:balance}

html[data-theme="dark"] .quote::before{opacity:.35}
html[data-theme="dark"] .qopt[aria-checked="true"]{background:var(--blue-500);border-color:var(--blue-500)}
html[data-theme="dark"] .qopt i,html[data-theme="dark"] .qfam__name i{color:var(--blue-300)}
html[data-theme="dark"] .qopt[aria-checked="true"] i{color:#fff}
html[data-theme="dark"] .qchip[aria-pressed="true"],html[data-theme="dark"] .qchip[aria-checked="true"]{background:var(--blue-500);border-color:var(--blue-500)}
html[data-theme="dark"] .qfam__tag{color:var(--blue-300)}
html[data-theme="dark"] .qwho[aria-checked="true"]{border-color:var(--blue-500)}
html[data-theme="dark"] .qchat{background-color:#0b141a;background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1.2px)}
html[data-theme="dark"] .qchat__day{background:#1f2c34;color:#aebac1}
html[data-theme="dark"] .bubble,html[data-theme="dark"] .bubble::before{background:#005c4b;color:#e9edef}
html[data-theme="dark"] .bubble::after{color:#8fd3f5}
html[data-theme="dark"] .qchat__meta,html[data-theme="dark"] .qreset{color:#8696a0}
html[data-theme="dark"] .qreset:hover{background:rgba(255,255,255,.06);color:#fff}

@media (max-width:1100px){
  .quote__grid{grid-template-columns:1fr}
  .quote__out{position:static;max-width:560px}
}
@media (max-width:720px){
  .qopts{grid-template-columns:1fr 1fr}
  .qopt{min-height:0;flex-direction:row;align-items:center;gap:10px;padding:14px;font-size:14px}
  .qopt i{font-size:20px;flex-shrink:0}
  .qchips .qchip{flex:1 1 calc(50% - 8px);justify-content:center}
  .qwho small{white-space:normal}
  .quote__out{max-width:none}
  .step,.step:first-child{min-height:0}
}

/* Tablet: the catalog tile closes the grid at full width */
@media (max-width:1100px) and (min-width:721px){
  .spec__item:last-child{grid-column:span 6;display:grid;grid-template-columns:1fr 1fr}
  .spec__item:last-child > .spec__img{aspect-ratio:auto;min-height:240px}
}

/* Contact hours: keep each day on one line on phones */
@media (max-width:720px){
  .hours th{padding:9px 6px 9px 10px;font-size:14px}
  .hours td{padding:9px 10px 9px 6px;font-size:13.5px;white-space:nowrap}
  .phero__hex{opacity:.18}
}
html[data-theme="dark"] .fcard__ill{filter:brightness(.9)}
@media (max-width:1100px) and (min-width:721px){.quote__out{max-width:none}}

/* Contrast on the brighter brand blue: secondary text is a white tint, never gray */
.btn--primary{background:var(--blue-700)}
.btn--primary::before{background:#025b88}
.qstep__n,.qopt[aria-checked="true"],.qwho[aria-checked="true"] .qwho__av{background:var(--blue-700)}
.qopt[aria-checked="true"]{border-color:var(--blue-700)}
.hero{color:rgba(255,255,255,.88)}
.hero__sub{color:rgba(255,255,255,.9)}
.hero__trust{color:rgba(255,255,255,.82)}
.chip small{color:rgba(255,255,255,.85)}
.cta,.cta p{color:rgba(255,255,255,.9)}
.foot{color:rgba(255,255,255,.86)}
.foot__bottom{color:rgba(255,255,255,.78)}
.foot__team span{color:rgba(255,255,255,.78)}
.foot__hours{color:#fff}
.mp__aside,.spec__item--navy,.spec__item--blue,.person--lead{color:rgba(255,255,255,.9)}
.person--lead .person__role,.person--lead .copy{color:rgba(255,255,255,.82)}
.person--lead .person__dept{color:#fff;background:rgba(255,255,255,.16)}
.spec__item--blue{background:var(--blue-700);border-color:var(--blue-700)}
.app--text{background:linear-gradient(155deg,var(--blue-600),var(--blue-700) 70%)}
.sheet li a span{color:#fff;opacity:.8}
.foot .link,.foot__col .link{color:#fff!important}
.intro p{color:rgba(255,255,255,.85)}
.line p,.line__count,.app h3 small{color:rgba(255,255,255,.9)}
.link,.empty a,.crumb a:hover{color:var(--blue-700)}
.person--lead,.mp__aside,.spec__item--navy{background:var(--blue-700);border-color:var(--blue-700)}
.person--lead .person__line{color:#fff}
html[data-theme="dark"] .link{color:var(--blue-300)}
.tl b,.step__ico,.person__dept,.mp__ico,.qfam__name i,.qopt i,.copy:hover{color:var(--blue-700)}
.app--text{background:linear-gradient(155deg,var(--blue-700),#025b88)}
html[data-theme="dark"] .tl b,html[data-theme="dark"] .step__ico,html[data-theme="dark"] .person__dept,html[data-theme="dark"] .mp__ico{color:var(--blue-300)}

/* Header: frosted glass band so content never collides with the menu */
.nav,.nav[class]{inset:0 0 auto;padding:12px 16px;isolation:isolate}
.nav::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:rgba(245,248,251,.8);backdrop-filter:blur(24px) saturate(170%);-webkit-backdrop-filter:blur(24px) saturate(170%);border-bottom:1px solid rgba(20,36,61,.07);box-shadow:0 10px 30px -22px rgba(3,85,127,.35);transition:transform 500ms var(--ease-expo),background-color 400ms ease}
.nav--dark::before{background:rgba(3,85,127,.45);border-bottom-color:rgba(255,255,255,.1)}
.nav.is-hidden::before{transform:translateY(-105%)}
html[data-theme="dark"] .nav::before{background:rgba(8,17,31,.8);border-bottom-color:rgba(255,255,255,.06)}
@media (max-width:720px){.nav,.nav[class]{padding:8px 10px}}
@media (prefers-reduced-transparency:reduce){.nav::before{background:var(--paper);backdrop-filter:none}}

/* About: caption sits inside the rounded clip */
.story__media figcaption{padding:0 14px 4px}
.tl::after{transition:height 500ms var(--ease-expo)}

/* Specialties: images fill their frame and show the product whole */
.spec__img{position:relative}
.spec__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.spec__item--wide > .spec__img{height:100%}
.spec__item:not(.spec__item--wide) > .spec__img img[src*="hs.webp"]{object-position:50% 18%}
.spec__img--tall{background:radial-gradient(80% 90% at 50% 45%,#ffffff,#ece8e6)}
.spec__img--tall img{object-fit:contain;padding:12px 0 0}
.spec__item--navy .spec__img img{object-position:60% 100%}
.foot__credit a{color:#fff;font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.35)}.foot__credit a:hover{text-decoration-color:#fff}
.app--perf{display:block;text-decoration:none;color:#fff}
.app--perf img{object-position:50% 40%}
.app--perf h3{font-size:1.3rem}
.app__go{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font:600 14px/1 var(--f-body);color:#fff;letter-spacing:0}
.app__go i{transition:transform 300ms var(--ease-out)}
@media (hover:hover){.app--perf:hover .app__go i{transform:translateX(3px)}}
.app--perf::before{background:linear-gradient(180deg,rgba(3,25,45,0) 30%,rgba(3,25,45,.9) 92%)}.app--perf img{object-position:65% 30%}

/* Mobile menu: light sheet, calmer type */
.sheet{background:var(--paper);color:var(--heading);padding:104px 24px calc(28px + env(safe-area-inset-bottom))}
.sheet::before{content:"";position:absolute;left:24px;top:30px;width:120px;height:46px;background:url(../img/logo.png) left center/contain no-repeat}
html[data-theme="dark"] .sheet::before{background-image:url(../img/logo-branca.png)}
.sheet__close{border-color:var(--line);color:var(--heading);background:var(--surface);top:28px;right:20px}
.sheet li a{font:500 1.75rem/1.1 var(--f-display);color:var(--heading);padding:18px 4px;border-bottom:1px solid var(--line);border-radius:0;outline-offset:-2px}
.sheet li a span{color:var(--blue-700);opacity:1;font:600 13px var(--f-body)}
.sheet li a[aria-current="page"]{color:var(--blue-700)}
.sheet li a:focus:not(:focus-visible){outline:none}
.sheet__foot > div{color:var(--ink-2)!important}
.sheet .theme{background:var(--surface);border-color:var(--line)}
.sheet .theme::before{background:var(--card)}
.sheet__foot .btn{border-radius:999px}
.sheet li a[aria-current="page"] span{color:var(--blue-700)}
/* Mobile menu as frosted glass over the page */
.sheet{background:rgba(245,248,251,.72);backdrop-filter:blur(28px) saturate(170%);-webkit-backdrop-filter:blur(28px) saturate(170%)}
html[data-theme="dark"] .sheet{background:rgba(8,17,31,.72)}
.sheet li a{border-bottom-color:rgba(20,36,61,.12)}
.sheet__close,.sheet .theme{background:rgba(255,255,255,.6)}
@media (prefers-reduced-transparency:reduce){.sheet{background:var(--paper);backdrop-filter:none}}
