:root {
  --navy: #072d4c;
  --navy-deep: #041f35;
  --blue: #0d5e91;
  --sky: #91d7e8;
  --cyan: #4cc0d8;
  --paper: #f3f0e9;
  --white: #fffdf8;
  --ink: #152936;
  --muted: #667782;
  --line: rgba(21, 41, 54, 0.14);
  --display: "Bodoni 72", Didot, "Iowan Old Style", Georgia, serif;
  --body: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  --shadow: 0 28px 60px rgba(4, 31, 53, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--navy); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.section { padding: 112px 0; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 40; color: var(--white); transition: background .3s, color .3s, box-shadow .3s; }
.site-header.is-scrolled { color: var(--navy); background: rgba(255, 253, 248, .94); box-shadow: 0 8px 30px rgba(4, 31, 53, .08); backdrop-filter: blur(16px); }
.nav-shell { width: min(1240px, calc(100% - 36px)); min-height: 86px; margin: auto; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 32px; }
.brand { justify-self: start; padding: 5px; }
.brand img { width: 144px; height: 52px; object-fit: contain; }
.main-nav { display: flex; justify-content: center; gap: clamp(22px, 3vw, 42px); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; inset: auto 0 -7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

.button { min-height: 54px; padding: 0 24px; border: 1px solid transparent; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; background: var(--navy); color: var(--white); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: transform .25s, background .25s, color .25s; }
.button:hover { transform: translateY(-3px); background: var(--blue); }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, .menu-toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.button svg { width: 22px; }
.button--accent { background: var(--cyan); color: var(--navy-deep); }
.button--accent:hover { background: var(--sky); color: var(--navy-deep); }
.button--compact { min-height: 44px; padding-inline: 18px; }
.button--full { width: 100%; }

.eyebrow { margin: 0 0 22px; color: var(--sky); font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow--dark { color: var(--blue); }

.hero { min-height: 820px; height: 100svh; position: relative; display: grid; align-items: center; overflow: hidden; background: var(--navy-deep); color: var(--white); }
.hero__media, .hero__shade { position: absolute; inset: 0; }
.hero__media { background: url("assets/images/frota-6.jpeg") center 44% / cover no-repeat; transform: scale(1.03); animation: hero-settle 1.7s ease-out both; }
.hero__shade { background: linear-gradient(90deg, rgba(4, 31, 53, .96) 0%, rgba(4, 31, 53, .76) 43%, rgba(4, 31, 53, .16) 78%), linear-gradient(0deg, rgba(4, 31, 53, .58), transparent 45%); }
.hero__content { position: relative; z-index: 2; padding-top: 80px; }
.hero h1 { max-width: 820px; margin: 0; font-family: var(--display); font-size: clamp(4rem, 8.1vw, 7.6rem); font-weight: 400; letter-spacing: -.055em; line-height: .88; text-wrap: balance; }
.hero h1 em { display: block; color: var(--sky); font-weight: 400; }
.hero__lead { max-width: 590px; margin: 32px 0 38px; color: rgba(255, 253, 248, .84); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero__actions { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.text-link, .arrow-link { font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link span { display: inline-block; margin-left: 8px; animation: nudge-down 1.4s ease-in-out infinite; }
.hero__note { position: absolute; z-index: 2; right: 30px; bottom: 54px; display: flex; gap: 28px; color: rgba(255,255,255,.7); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; transform: rotate(-90deg) translateX(100%); transform-origin: right bottom; }
.hero__note span + span::before { content: "•"; margin-right: 28px; color: var(--cyan); }
.route-line { pointer-events: none; position: absolute; border: 1px dashed rgba(145, 215, 232, .32); border-radius: 50%; }
.route-line--hero { z-index: 1; width: 560px; height: 260px; right: -160px; bottom: 130px; transform: rotate(-18deg); }

.intro { overflow: hidden; }
.intro__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px 70px; align-items: start; }
.section-heading h2, .services__heading h2, .fleet__top h2, .contact h2 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 5.4vw, 5.6rem); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.intro__copy { max-width: 540px; padding-top: 38px; font-size: 1.08rem; }
.intro__copy p { margin: 0 0 26px; color: var(--muted); }
.arrow-link { color: var(--blue); font-size: .83rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.arrow-link span { margin-left: 10px; }
.intro__photo--main { margin: 0; position: relative; }
.intro__photo--main::before { content: "CVE"; position: absolute; z-index: -1; left: -80px; bottom: -82px; color: rgba(13, 94, 145, .07); font-family: var(--display); font-size: 15rem; line-height: 1; }
.intro__photo img { width: 100%; height: 540px; object-fit: cover; box-shadow: var(--shadow); }
.intro__principles { align-self: center; }
.intro__principles article { padding: 22px 0; display: grid; grid-template-columns: 50px 120px 1fr; gap: 14px; align-items: baseline; border-top: 1px solid var(--line); }
.intro__principles article:last-child { border-bottom: 1px solid var(--line); }
.principle-number { color: var(--blue); font-size: .72rem; font-weight: 800; }
.intro__principles h3, .intro__principles p { margin: 0; }
.intro__principles h3 { color: var(--navy); font-size: 1rem; }
.intro__principles p { color: var(--muted); font-size: .9rem; }

.services { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.services__heading { max-width: 790px; margin-bottom: 70px; }
.services__list { border-top: 1px solid rgba(255,255,255,.18); }
.service-row { padding: 34px 12px; display: grid; grid-template-columns: 80px 50px 1fr; gap: 28px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.18); transition: background .25s, padding .25s; }
.service-row:hover { padding-inline: 28px; background: rgba(255,255,255,.045); }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(145,215,232,.5); border-radius: 50%; color: var(--sky); }
.service-icon svg { width: 27px; height: 27px; }
.service-index { color: var(--sky); font-size: .7rem; font-weight: 800; }
.service-row div:last-child { display: grid; grid-template-columns: minmax(230px, .7fr) 1fr; gap: 40px; align-items: center; }
.service-row h3, .service-row p { margin: 0; }
.service-row h3 { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 3.5rem); font-weight: 400; }
.service-row p { max-width: 480px; color: rgba(255,255,255,.66); }
.route-line--services { width: 650px; height: 280px; right: -260px; top: 60px; transform: rotate(18deg); }

.fleet__top { margin-bottom: 58px; display: flex; justify-content: space-between; gap: 50px; align-items: end; }
.fleet__top > p { max-width: 380px; margin: 0 0 8px; color: var(--muted); }
.fleet-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-auto-rows: 330px; gap: 18px; }
.fleet-card { min-height: 0; margin: 0; position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.fleet-card--wide { grid-column: 1; }
.fleet-card--tall { grid-column: 2; grid-row: span 2; }
.fleet-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.fleet-card--tall img { object-position: center 45%; }
.fleet-card:hover img { transform: scale(1.045); opacity: .76; }
.fleet-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(4,31,53,.86)); }
.fleet-card figcaption { position: absolute; z-index: 2; inset: auto 24px 22px; display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.fleet-card figcaption span { font-size: .65rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.fleet-card figcaption strong { font-family: var(--display); font-size: 1.55rem; font-weight: 400; }

.contact { padding-block: 120px; background: var(--navy-deep); color: var(--white); }
.contact__shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 8vw, 120px); }
.contact__intro > p:not(.eyebrow) { max-width: 500px; color: rgba(255,255,255,.65); }
.contact__details { margin-top: 52px; display: grid; gap: 20px; }
.contact__details a { display: grid; gap: 2px; }
.contact__details span { color: var(--sky); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact__details strong { font-size: 1rem; }
.quote-form { padding: 44px; background: var(--white); color: var(--ink); box-shadow: 20px 20px 0 rgba(76, 192, 216, .14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form label { display: grid; gap: 7px; margin-bottom: 18px; color: var(--navy); font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quote-form input, .quote-form textarea { width: 100%; border: 0; border-bottom: 1px solid #bdc5c9; border-radius: 0; padding: 10px 2px; background: transparent; color: var(--ink); outline: none; text-transform: none; }
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.quote-form textarea { resize: vertical; }
.quote-form .is-invalid { border-color: #a83f32; }
.form-status { min-height: 24px; margin: -4px 0 12px; color: #a83f32; font-size: .82rem; }

.site-footer { padding: 42px 0; background: #031725; color: rgba(255,255,255,.62); }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 26px 50px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand img { width: 105px; height: 45px; object-fit: contain; }
.footer__brand p, .footer__legal { margin: 0; font-size: .78rem; }
.site-footer nav { display: flex; gap: 26px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.footer__legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.whatsapp-float { position: fixed; z-index: 30; right: 22px; bottom: 22px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #26b866; color: white; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: transform .25s; }
.whatsapp-float:hover { transform: translateY(-4px) rotate(-4deg); }
.whatsapp-float svg { width: 31px; fill: currentColor; stroke: none; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes hero-settle { from { opacity: .2; transform: scale(1.1); } to { opacity: 1; transform: scale(1.03); } }
@keyframes nudge-down { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

@media (max-width: 920px) {
  .section { padding: 88px 0; }
  .nav-shell { grid-template-columns: 1fr auto; min-height: 76px; }
  .header-cta { display: none; }
  .menu-toggle { width: 48px; height: 44px; padding: 12px; display: grid; align-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 76px 0 0; padding: 54px 28px; display: flex; flex-direction: column; justify-content: start; align-items: center; gap: 28px; background: var(--navy-deep); color: var(--white); font-size: 1rem; transform: translateX(100%); transition: transform .3s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .hero { min-height: 720px; }
  .hero__media { background-position: 59% center; }
  .hero__shade { background: linear-gradient(90deg, rgba(4,31,53,.95), rgba(4,31,53,.64)), linear-gradient(0deg, rgba(4,31,53,.72), transparent 50%); }
  .hero__note { display: none; }
  .intro__grid, .contact__shell { grid-template-columns: 1fr; }
  .intro__copy { padding-top: 0; }
  .service-row div:last-child { grid-template-columns: 1fr; gap: 7px; }
  .fleet__top { align-items: start; flex-direction: column; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 30px, 1180px); }
  .section { padding: 72px 0; }
  .brand img { width: 118px; height: 44px; }
  .hero { min-height: 690px; }
  .hero__content { padding-top: 40px; }
  .hero h1 { font-size: clamp(3.5rem, 17vw, 5rem); }
  .hero__lead { margin-block: 24px 30px; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .intro__grid { gap: 38px; }
  .intro__photo img { height: 370px; }
  .intro__principles article { grid-template-columns: 38px 1fr; }
  .intro__principles p { grid-column: 2; }
  .services__heading { margin-bottom: 46px; }
  .service-row { grid-template-columns: 58px 1fr; gap: 18px; padding-inline: 0; }
  .service-row:hover { padding-inline: 0; }
  .service-index { display: none; }
  .service-row h3 { font-size: 2.1rem; }
  .fleet__top { margin-bottom: 36px; }
  .fleet-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .fleet-card--wide, .fleet-card--tall { grid-column: auto; grid-row: auto; }
  .fleet-card--tall { height: 430px; }
  .fleet-card figcaption { flex-direction: column; align-items: flex-start; gap: 2px; }
  .contact { padding-block: 80px; }
  .contact__shell { gap: 48px; }
  .quote-form { padding: 28px 20px; box-shadow: 9px 9px 0 rgba(76,192,216,.14); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { align-items: flex-start; flex-direction: column; }
  .site-footer nav { flex-wrap: wrap; gap: 14px 22px; }
  .footer__legal { grid-column: 1; }
  .whatsapp-float { width: 52px; height: 52px; right: 15px; bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
