*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; color: var(--text-main); background: var(--page-bg); font-family: var(--font-body); font-size: 1rem; line-height: 1.45; -webkit-font-smoothing: antialiased; transition: color .2s ease, background-color .2s ease; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--link-hover-color); }
:focus-visible { outline: var(--focus-ring); outline-offset: 4px; }
.container { width: min(1376px, calc(100% - 3rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .75rem 1rem; transform: translateY(-160%); color: #fff; background: #12384d; }
.skip-link:focus { transform: translateY(0); }

/* Cabeçalho claro com marca, idade calculada, telefone e navegação. */
.site-header { position: relative; z-index: 10; background: var(--surface-bg); }
.header-top { display: flex; min-height: 70px; align-items: center; gap: 1.8rem; }
.brand { display: flex; align-items: center; gap: 1.8rem; }
.brand-home { display: flex; align-items: center; gap: 1.9rem; text-decoration: none; }
.brand-logo-window { display: block; width: 176px; height: 64px; overflow: hidden; background: #fff; border-radius: 4px; }
.brand-logo-window img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.brand-age { display: flex; width: 56px; height: 56px; flex: 0 0 56px; flex-direction: column; align-items: center; justify-content: center; color: #07559f; background: #fff; border: 2px solid #0759a5; border-radius: 50%; font-size: .67rem; font-weight: 700; line-height: 1.05; }
.brand-age strong { font-size: 1.35rem; line-height: 1.05; }
.brand-phone { color: #092c55; font-size: 1rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.phone-icon { margin-right: .45rem; color: #064f9a; }
.site-nav { order: 1; display: flex; align-items: center; gap: clamp(1.5rem, 2.8vw, 2.65rem); margin-left: auto; }
.site-nav a, .footer-nav a { color: #344963; font-size: .98rem; font-weight: 500; text-decoration: none; }
.site-nav a:first-child { color: #0759ad; font-weight: 750; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .55rem; }
.site-nav a:hover, .footer-nav a:hover { color: #0759ad; }
.menu-toggle { display: none; }
.theme-toggle { order: 2; display: inline-flex; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; padding: 0; color: #fff; background: #0759ad; border: 0; border-radius: 50%; cursor: pointer; }
.theme-toggle:hover { color: #fff; background: #034982; }
.theme-toggle-icon { font-size: 1.65rem; line-height: 1; }
.theme-label { display: none; }

/* Hero: foto da referência, escurecida apenas no lado do texto. */
.hero-banner { position: relative; min-height: 296px; overflow: hidden; color: #fff; background: #102b40; }
.hero-banner-image { position: absolute; inset: 0; background-color: #172d40; background-image: linear-gradient(90deg, rgb(7 24 37 / 76%) 0%, rgb(7 24 37 / 67%) 40%, transparent 74%), url("../assets/hero-repair.png"); background-position: center, right center; background-size: auto, auto 100%; background-repeat: no-repeat; }
.hero-banner-content { position: relative; z-index: 1; display: flex; min-height: 296px; align-items: center; }
.hero-copy { width: min(650px, 56%); padding-block: 1.5rem; }
.hero-accent, .section-accent { display: block; width: 51px; height: 6px; margin-bottom: .7rem; background: #ffa000; border-radius: 99px; }
.hero-copy h1 { max-width: 650px; margin: 0 0 .48rem; color: #fff; font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 750; line-height: 1.03; letter-spacing: -.025em; }
.hero-description { max-width: 620px; margin: 0 0 .8rem; color: #f5f7fa; font-size: 1.02rem; line-height: 1.48; }
.hero-actions { display: flex; align-items: center; gap: .85rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: .7rem; padding: .72rem 1.45rem; border-radius: 999px; font-size: .9rem; font-weight: 750; text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: #0763c8; }
.button-primary:hover { color: #fff; background: #0756ab; }
.hero-phone { display: inline-flex; min-height: 50px; align-items: center; gap: .65rem; padding: .65rem 1.2rem; color: #fff; border: 1px solid #fff; border-radius: 999px; font-size: .88rem; font-weight: 750; text-decoration: none; }
.hero-phone:hover { color: #fff; background: rgb(255 255 255 / 12%); }

/* Cards de serviço organizados como na composição de referência. */
.services-section { padding-block: 1.25rem 1rem; }
.section-heading { margin-bottom: .65rem; }
.section-title-wrap { display: flex; align-items: center; gap: .55rem; }
.section-accent { width: 32px; height: 5px; flex: 0 0 32px; margin: 0; align-self: start; }
.section-heading h2 { margin: 0; color: #0b2749; font-size: clamp(1.5rem, 2.1vw, 1.9rem); font-weight: 750; line-height: 1.15; letter-spacing: -.025em; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.service-card { min-width: 0; overflow: hidden; background: var(--surface-bg); border: 1px solid #e9eef2; border-radius: 10px; box-shadow: 0 8px 19px rgb(27 55 78 / 8%); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgb(27 55 78 / 14%); }
.service-card > img { width: 100%; height: 116px; object-fit: cover; }
.service-card-body { display: flex; min-height: 125px; align-items: flex-start; gap: 1.05rem; padding: .95rem 1.2rem .8rem; }
.service-icon { display: grid; width: 64px; height: 64px; flex: 0 0 64px; place-items: center; color: #f39200; background: #fff4e6; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.service-card-copy { min-width: 0; }
.service-card h3 { margin: .05rem 0 .25rem; color: #0a2648; font-size: 1.02rem; font-weight: 750; line-height: 1.25; }
.service-card p { margin: 0 0 .35rem; color: #4e6078; font-size: .85rem; line-height: 1.4; }
.service-card a { color: #0759b7; font-size: .82rem; font-weight: 750; text-decoration: none; }
.service-card a span { margin-left: .25rem; }

/* História ocupa uma faixa; aqui a fachada é a foto real do acervo. */
.history-section { background: #f4f7fa; }
.history-inner { padding-block: .25rem; }
.history-card { display: grid; min-height: 177px; grid-template-columns: .91fr 1.09fr; align-items: center; gap: 2rem; }
.history-copy { padding-block: .5rem; }
.history-copy .eyebrow { display: flex; align-items: baseline; gap: .4rem; margin: 0 0 .55rem; color: #173a63; font-size: 1.05rem; font-weight: 650; }
.history-copy .eyebrow span { color: #09274a; font-size: 1.35rem; font-weight: 800; }
.history-copy .eyebrow::before { display: block; width: 33px; height: 5px; margin-bottom: .55rem; background: #ffa000; border-radius: 99px; content: ""; }
.history-copy h2 { margin: 0 0 .35rem; color: #09274a; font-size: clamp(1.65rem, 2.65vw, 2.45rem); font-weight: 750; line-height: 1.05; letter-spacing: -.03em; }
.history-copy > p:not(.eyebrow) { max-width: 610px; margin: 0; color: #4f627b; font-size: .93rem; line-height: 1.45; }
.history-card > img { display: block; width: 100%; height: auto; object-fit: contain; object-position: center top; border-radius: 11px; }

/* Barra de contato e rodapé usam azul escuro contínuo como no mockup. */
.contact-band { color: #fff; background: radial-gradient(ellipse at 80% 30%, rgb(10 72 131 / 45%), transparent 42%), linear-gradient(110deg, #03284d, #062e59 56%, #03264a); }
.contact-inner { display: grid; min-height: 81px; grid-template-columns: 1.18fr 1.05fr 1.05fr 1.15fr; align-items: center; }
.contact-lead, .contact-item { min-height: 48px; display: flex; align-items: center; }
.contact-lead { flex-direction: column; align-items: flex-start; justify-content: center; padding-right: 1rem; }
.contact-lead h2 { margin: 0; color: #fff; font-size: 1.45rem; line-height: 1.15; }
.contact-lead p { margin: .12rem 0 0; color: #e2ebf5; font-size: .83rem; }
.contact-item { gap: .8rem; padding-inline: 1.25rem; border-left: 1px solid rgb(255 255 255 / 52%); }
.contact-icon { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center; color: #fff; background: #0e66c9; border-radius: 50%; font-size: 1.65rem; }
.contact-item p { display: flex; min-width: 0; flex-direction: column; margin: 0; color: #fff; font-size: .85rem; line-height: 1.25; }
.contact-item small { margin-bottom: .2rem; color: #d6e4f2; font-size: .7rem; }
.contact-item a, .contact-item strong { overflow-wrap: anywhere; color: #fff; font-size: .9rem; font-weight: 750; text-decoration: none; }
.contact-item p > span { margin-top: .15rem; color: #d6e4f2; font-size: .7rem; }
.site-footer { color: #d9e1e5; background: #032447; }
.footer-main { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 1.1rem; }
.footer-brand { color: #fff; font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; letter-spacing: -.07em; text-decoration: none; }
.footer-brand:hover { color: #fff; }
.footer-brand small { font-size: .5rem; letter-spacing: -.02em; }
.footer-nav { display: flex; align-items: center; gap: .85rem; }
.footer-nav a { color: #dbe5ef; font-size: .65rem; font-weight: 450; }
.footer-nav a + a::before { margin-right: .85rem; color: #91a8bf; content: "|"; }
.footer-main > p { margin: 0; color: #c5d0d5; font-size: .62rem; text-align: right; }

:root[data-theme="dark"] .brand-phone, :root[data-theme="dark"] .contact-main-phone, :root[data-theme="dark"] .contact-secondary-phone, :root[data-theme="dark"] .contact-email { color: var(--link-color); }
:root[data-theme="dark"] .site-nav a { color: var(--text-main); }
:root[data-theme="dark"] .brand-age { color: #c8e3f1; background: #253b49; border-color: #9fcbe0; }
:root[data-theme="dark"] .section-heading h2, :root[data-theme="dark"] .service-card h3, :root[data-theme="dark"] .history-copy h2 { color: var(--text-heading); }
:root[data-theme="dark"] .service-card p, :root[data-theme="dark"] .history-copy > p:not(.eyebrow) { color: var(--text-muted); }
:root[data-theme="dark"] .service-card { border-color: var(--border-color); }
:root[data-theme="dark"] .history-section { background: var(--surface-muted); }
:root[data-theme="dark"] .history-copy .eyebrow, :root[data-theme="dark"] .history-copy .eyebrow span { color: var(--text-heading); }
:root[data-theme="dark"] .theme-toggle { color: #16232c; background: #a6cfe5; }

@media (max-width: 1100px) {
  .container { width: min(100% - 2.5rem, 1376px); }
  .brand, .brand-home { gap: .75rem; }
  .brand-logo-window { width: 150px; }
  .site-nav { gap: 1rem; }
  .contact-inner { grid-template-columns: 1.1fr 1fr 1fr 1fr; }
  .contact-item { gap: .55rem; padding-inline: .7rem; }
  .contact-icon { width: 44px; height: 44px; flex-basis: 44px; font-size: 1.35rem; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 1rem; }
  .container { width: calc(100% - 2rem); }
  .header-top { min-height: 76px; gap: .5rem; }
  .brand { min-width: 0; gap: .35rem; }
  .brand-home { gap: .4rem; }
  .brand-logo-window { width: clamp(98px, 27vw, 150px); height: 56px; }
  .brand-age { width: 44px; height: 44px; flex-basis: 44px; font-size: .57rem; }
  .brand-age strong { font-size: 1.1rem; }
  .brand-phone { display: none; }
  .menu-toggle { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; padding: 0; color: var(--brand-color); background: var(--surface-bg); border: 1px solid var(--border-color); border-radius: 50%; }
  .menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 18px; height: 2px; background: currentColor; }
  .menu-toggle-lines { position: relative; }
  .menu-toggle-lines::before, .menu-toggle-lines::after { position: absolute; left: 0; content: ""; }
  .menu-toggle-lines::before { top: -6px; }
  .menu-toggle-lines::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 0; transform: rotate(-45deg); }
  .theme-toggle { order: 0; width: 40px; height: 40px; flex-basis: 40px; }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; order: 0; display: none; align-items: stretch; gap: 0; margin: 0; padding: .5rem 1rem 1rem; background: var(--surface-bg); box-shadow: 0 14px 20px var(--shadow-color); }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav a { padding: .75rem .35rem; border-bottom: 1px solid var(--border-color); }
  .hero-banner, .hero-banner-content { min-height: 360px; }
  .hero-banner-image { background-image: linear-gradient(90deg, rgb(7 24 37 / 91%) 0%, rgb(7 24 37 / 77%) 70%, rgb(7 24 37 / 40%) 100%), url("../assets/hero-repair.png"); background-position: center, 60% center; background-size: auto, auto 100%; }
  .hero-copy { width: min(570px, 100%); padding-block: 2rem; }
  .hero-copy h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  .hero-description { font-size: .9rem; }
  .hero-actions { align-items: flex-start; flex-wrap: wrap; gap: .55rem; }
  .button, .hero-phone { min-height: 44px; padding-inline: 1rem; font-size: .8rem; }
  .services-section { padding-block: 1.2rem 1rem; }
  .section-heading h2 { font-size: 1.45rem; }
  .service-grid { grid-template-columns: 1fr; gap: .8rem; }
  .service-card { display: grid; grid-template-columns: minmax(125px, .78fr) 1fr; align-items: stretch; }
  .service-card > img { height: 100%; min-height: 165px; }
  .service-card-body { min-height: 165px; gap: .65rem; padding: .8rem; }
  .service-icon { width: 42px; height: 42px; flex-basis: 42px; font-size: 1.25rem; }
  .service-card h3 { font-size: .9rem; }
  .service-card p { font-size: .76rem; }
  .history-inner { padding-block: .8rem; }
  .history-card { grid-template-columns: 1fr; gap: .7rem; padding-block: .4rem; }
  .history-copy h2 { font-size: 1.7rem; }
  .history-copy > p:not(.eyebrow) { font-size: .85rem; }
  .history-card > img { height: auto; }
  .contact-inner { grid-template-columns: 1fr 1fr; gap: .7rem 0; padding-block: 1rem; }
  .contact-lead { grid-column: 1 / -1; min-height: auto; padding: 0 0 .45rem; }
  .contact-lead h2 { font-size: 1.35rem; }
  .contact-item { padding: .3rem .55rem; border-left: 0; }
  .contact-item:nth-of-type(odd) { border-left: 1px solid rgb(255 255 255 / 45%); }
  .contact-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: 1.15rem; }
  .contact-item a, .contact-item strong { font-size: .76rem; }
  .footer-main { min-height: 54px; flex-wrap: wrap; gap: .5rem; padding-block: .65rem; }
  .footer-nav { gap: .35rem; }
  .footer-nav a { font-size: .6rem; }
  .footer-nav a + a::before { margin-right: .35rem; }
  .footer-main > p { width: 100%; text-align: left; }
}
@media (max-width: 390px) {
  .header-top { gap: .25rem; }
  .brand-logo-window { width: 90px; height: 48px; }
  .brand-age { width: 38px; height: 38px; flex-basis: 38px; font-size: .5rem; }
  .brand-age strong { font-size: .95rem; }
  .menu-toggle, .theme-toggle { width: 36px; height: 36px; flex-basis: 36px; }
  .service-card { grid-template-columns: 112px 1fr; }
  .service-card-body { gap: .45rem; padding: .65rem; }
  .service-icon { width: 34px; height: 34px; flex-basis: 34px; font-size: 1rem; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-lead { grid-column: auto; }
  .contact-item, .contact-item:nth-of-type(odd) { border-left: 0; }
  .footer-brand { width: 100%; }
  .footer-nav { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.contact-item .contact-whatsapp { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 650; }
.whatsapp-icon { width: .9rem; height: .9rem; flex: 0 0 .9rem; fill: #45d477; }

.contact-phones { gap: .12rem; }
.contact-item .contact-phones > small { margin-bottom: .15rem; }
.contact-item .contact-phones > a { font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact-item .contact-phones > .contact-whatsapp { margin-top: .08rem; font-size: .9rem; font-weight: 750; }
.contact-phones > a:not(.contact-whatsapp) { position: relative; padding-left: 1.2rem; }
.contact-phones > a:not(.contact-whatsapp)::before { position: absolute; left: 0; width: .9rem; content: ""; }

.contact-location { line-height: 1.15; }
.contact-item .contact-location > strong { font-size: .82rem; }
.contact-item .contact-location > span { font-size: .68rem; }

.contact-item .contact-location > .address-map-link { color: #fff; font-size: .82rem; font-weight: 750; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 55%); text-underline-offset: .15em; }
.contact-item .contact-location > .address-map-link:hover { text-decoration-color: #fff; }
.contact-item .contact-location > .address-map-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
