:root {
  --navy: #071b35;
  --navy-2: #0d2b52;
  --blue: #164f8f;
  --yellow: #f5b400;
  --yellow-deep: #dc9700;
  --white: #fff;
  --paper: #f5f3ed;
  --line: #d9dde3;
  --ink: #102238;
  --muted: #5f6d7a;
  --container: 1180px;
  --shadow: 0 20px 60px rgba(2, 20, 43, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.container { width: calc(100% - 40px); max-width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; padding: 10px 14px; background: var(--yellow); color: var(--navy); }
.skip-link:focus { top: 10px; }

.site-header { position: absolute; z-index: 20; inset: 0 0 auto; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.22); }
.header-inner { min-height: 92px; display: flex; align-items: center; gap: 18px; }
.brand { margin-right: auto; }
.brand img { width: 190px; filter: brightness(0) invert(1); }
.main-nav { display: flex; gap: 15px; align-items: center; }
.main-nav a { position: relative; text-decoration: none; font-size: .82rem; font-weight: 750; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--yellow); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 0; border-radius: 3px; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--yellow); }
.button-primary:hover { background: #ffc42d; }
.button-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.72); background: rgba(7,27,53,.28); }
.header-cta { min-height: 44px; padding: 10px 17px; font-size: .88rem; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.contact-button { min-height: 44px; padding: 9px 13px; color: var(--white); border: 1px solid rgba(255,255,255,.55); border-radius: 3px; background: rgba(7,27,53,.24); font-weight: 800; cursor: pointer; }

.hero { position: relative; min-height: 790px; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--navy); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 52%; }
.hero-shade { background: linear-gradient(90deg, rgba(3,16,34,.96) 0%, rgba(3,20,41,.84) 35%, rgba(4,23,47,.32) 69%, rgba(4,18,38,.14) 100%), linear-gradient(0deg, rgba(3,17,35,.5), transparent 45%); }
.hero-content { position: relative; z-index: 2; min-width: 0; padding-top: 115px; }
.eyebrow { margin: 0 0 14px; color: var(--yellow); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.dark { color: var(--blue); }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1 { max-width: 850px; margin: 0; font-size: clamp(2.6rem, 5vw, 5.25rem); letter-spacing: -.045em; }
.hero-lead { max-width: 720px; margin: 25px 0 32px; color: #e5edf7; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 780px; margin: 62px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.28); }
.hero-proof li { padding: 22px 24px 0 0; }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { color: var(--yellow); font-size: 1.35rem; }
.hero-proof span { color: #d8e0ea; font-size: .86rem; }

.quick-needs { position: relative; z-index: 4; margin-top: -1px; color: var(--white); background: var(--navy); }
.quick-needs-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-needs a { min-height: 92px; display: flex; align-items: center; gap: 13px; padding: 18px; border-left: 1px solid rgba(255,255,255,.13); text-decoration: none; font-size: .9rem; font-weight: 750; }
.quick-needs a:last-child { border-right: 1px solid rgba(255,255,255,.13); }
.quick-needs a:hover { color: var(--yellow); background: rgba(255,255,255,.04); }
.quick-needs span { color: var(--yellow); font-size: .7rem; }

.section { padding: 110px 0; }
.split-heading { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 8vw; align-items: start; }
.split-heading.compact { align-items: end; }
h2 { margin: 0 0 24px; font-size: clamp(2rem, 3.4vw, 3.55rem); letter-spacing: -.035em; }
h3 { margin: 0 0 12px; font-size: 1.35rem; }
.lead-copy { color: var(--muted); font-size: 1.09rem; }
.lead-copy p:first-child { margin-top: 0; }
.section-lead { max-width: 840px; color: var(--muted); font-size: 1.12rem; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 70px; }
.service-card { display: grid; grid-template-columns: 45% 55%; min-height: 320px; overflow: hidden; color: var(--white); background: var(--navy); }
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.card-content { position: relative; padding: 37px 32px; }
.card-number { display: block; margin-bottom: 48px; color: var(--yellow); font-size: .72rem; font-weight: 900; }
.service-card p { margin-bottom: 0; color: #ced9e6; font-size: .95rem; }
.service-card.featured { background: var(--blue); }

.equipment-section { padding-top: 30px; background: var(--paper); }
.section-heading-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: end; }
.section-heading-row > p { margin: 0 0 24px; color: var(--muted); font-size: 1.05rem; }
.equipment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 60px; }
.equipment-card { display: grid; grid-template-columns: 46% 54%; min-height: 330px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.equipment-card img { width: 100%; height: 100%; object-fit: cover; }
.equipment-card img[src*="guindaste-articulado-rps-venda"] { object-fit: contain; object-position: center; background: #dfe7e9; }
.equipment-card > div { padding: 34px 30px; }
.equipment-card span { display: block; margin-bottom: 30px; color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.equipment-card p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }

.for-sale { background: var(--white); }
.for-sale-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 7vw; align-items: center; }
.for-sale-grid > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.for-sale-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.check-list.dark-checks li { color: var(--ink); }

.crane-feature { color: var(--white); background: var(--navy); }
.crane-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 7vw; align-items: center; }
.crane-copy p:not(.eyebrow) { color: #cad7e5; }
.check-list { margin: 30px 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 13px 0; padding-left: 30px; color: #eef4fa; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--yellow); font-weight: 900; }
.crane-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0; }
.crane-stats div { padding: 18px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); }
.crane-stats strong, .crane-stats span { display: block; }
.crane-stats strong { color: var(--yellow); font-size: 2rem; line-height: 1; }
.crane-stats span { margin-top: 8px; color: #d9e4ef; font-size: .8rem; line-height: 1.4; }
.crane-copy .spec-note { margin-top: -12px; font-size: .74rem; line-height: 1.45; }
.text-link { display: inline-flex; gap: 12px; align-items: center; color: var(--yellow); font-weight: 850; text-decoration: none; }
.crane-photo { margin: 0; box-shadow: var(--shadow); }
.crane-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.crane-photo figcaption { display: flex; justify-content: space-between; gap: 15px; padding: 17px 20px; color: var(--navy); background: var(--yellow); }
.crane-photo figcaption span { font-size: .88rem; }

.operations { background: var(--white); }
.operation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.operation-card { overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 34px rgba(7,27,53,.08); }
.operation-card img { width: 100%; height: 235px; object-fit: cover; }
.operation-card > div { padding: 30px; }
.operation-card > div > span { color: var(--blue); font-size: .72rem; font-weight: 900; }
.operation-card h3 { margin-top: 24px; }
.operation-card p { color: var(--muted); }
.operation-card ul { margin: 22px 0 0; padding: 18px 0 0 18px; border-top: 1px solid var(--line); font-size: .88rem; }
.operation-card li { margin: 7px 0; }

.engineering { background: var(--paper); }
.engineering-grid { display: grid; grid-template-columns: 280px 1fr; gap: 8vw; align-items: center; }
.seal-wrap { display: grid; place-items: center; min-height: 280px; border: 1px solid #cbd2d9; border-radius: 50%; background: var(--white); }
.seal-wrap img { width: 72%; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 45px; }
.process-grid div { border-top: 2px solid var(--navy); padding-top: 18px; }
.process-grid span { color: var(--blue); font-size: .72rem; font-weight: 900; }
.process-grid h3 { margin-top: 22px; }
.process-grid p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

.sectors { color: var(--white); background: var(--blue); }
.sectors .lead-copy { color: #dae7f5; }
.sector-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 54px; }
.sector-list span { padding: 14px 18px; border: 1px solid rgba(255,255,255,.36); border-radius: 2px; background: rgba(255,255,255,.05); }

.regions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; }
.regions p { color: var(--muted); }
.region-note { padding: 18px; border-left: 4px solid var(--yellow); background: var(--paper); font-size: .9rem; }
.unit-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.unit-grid div { min-height: 125px; display: flex; flex-direction: column; justify-content: center; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.unit-grid div:nth-child(even) { border-right: 0; }
.unit-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.unit-grid div:last-child { color: var(--white); background: var(--navy); }
.unit-grid span { color: var(--blue); font-size: .75rem; font-weight: 900; }
.unit-grid div:last-child span { color: var(--yellow); }

.quote { color: var(--white); background: linear-gradient(125deg, var(--navy), #0f3d70); }
.quote-grid { display: grid; grid-template-columns: .83fr 1.17fr; gap: 8vw; align-items: start; }
.quote-copy > p:not(.eyebrow) { color: #d4e0ed; }
.data-list { margin: 32px 0; padding-left: 20px; color: #e9eff6; }
.direct-contact { display: grid; gap: 10px; margin-top: 35px; }
.direct-contact a, .contact-choice { display: flex; align-items: center; gap: 12px; color: var(--white); text-align: left; text-decoration: none; font-weight: 800; }
.contact-choice { width: 100%; padding: 8px 0; border: 0; background: transparent; cursor: pointer; }
.direct-contact img { width: 22px; filter: brightness(0) invert(1); }
.quote-form { padding: 38px; color: var(--ink); background: var(--white); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form label { display: grid; gap: 7px; margin-bottom: 18px; font-size: .84rem; font-weight: 800; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; border: 1px solid #b9c1ca; border-radius: 2px; padding: 12px 13px; color: var(--ink); background: #fbfcfd; }
.quote-form input, .quote-form select { height: 50px; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 3px solid rgba(245,180,0,.24); border-color: var(--yellow-deep); }
.form-note, .form-status { color: var(--muted); font-size: .78rem; }

.faq { background: var(--paper); }
.faq-heading { max-width: 850px; margin-bottom: 50px; text-align: center; }
.faq-heading > p:last-child { color: var(--muted); font-size: 1.06rem; }
.faq-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: start; }
.faq-list { border-top: 1px solid #bfc7d0; }
.faq-list details { border-bottom: 1px solid #bfc7d0; }
.faq-list summary { position: relative; padding: 23px 45px 23px 0; cursor: pointer; list-style: none; font-weight: 850; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 18px; color: var(--blue); font-size: 1.6rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 40px 25px 0; color: var(--muted); }

.site-footer { padding: 75px 0 25px; color: #dce5ee; background: #041326; }
.footer-intro { display: grid; grid-template-columns: 1.25fr .75fr .8fr; gap: 7vw; padding-bottom: 45px; }
.footer-brand img { width: 180px; filter: brightness(0) invert(1); }
.site-footer h2 { margin: 0 0 15px; color: var(--yellow); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer p { font-size: .9rem; }
.site-footer a { text-decoration: none; }
.catalog-link { display: inline-block; margin-top: 14px; color: var(--yellow); font-weight: 800; }
.footer-navigation { display: grid; align-content: start; gap: 8px; }
.footer-navigation a { color: #dce5ee; font-size: .88rem; }
.footer-credentials img { width: 100px; margin-top: 16px; }
.footer-units { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.footer-unit { padding: 28px 20px; border-right: 1px solid rgba(255,255,255,.12); }
.footer-unit:last-child { border-right: 0; }
.footer-unit h3 { color: var(--white); font-size: 1rem; }
.footer-unit p { margin: 12px 0; }
.footer-unit a { color: var(--yellow); }
.footer-unit address { color: #aebbc8; font-size: .78rem; font-style: normal; line-height: 1.55; }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 30px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; font-size: .82rem; }
.footer-social img { filter: brightness(0) invert(1); }
.footer-policy { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 25px; color: #aebbc8; font-size: .8rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); color: #aab6c3; }
.signature-agenzzia a { color: var(--yellow); font-weight: 800; }

.floating-cta { position: fixed; z-index: 30; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 40px; color: var(--white); background: #168b50; box-shadow: 0 10px 32px rgba(0,0,0,.28); text-decoration: none; font-weight: 850; }
.floating-cta img { filter: brightness(0) invert(1); }
.floating-cta { border: 0; cursor: pointer; animation: whatsappPulse 2s ease-in-out infinite; }
@keyframes whatsappPulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.whatsapp-panel, .phone-panel { display: none; position: fixed; z-index: 31; right: 20px; bottom: 82px; width: min(390px, calc(100% - 28px)); padding: 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--white); box-shadow: 0 18px 44px rgba(0,0,0,.26); }
body.whatsapp-open .whatsapp-panel, body.phone-open .phone-panel { display: block; }
.whatsapp-panel h3, .phone-panel h3 { margin: 0 0 8px; color: var(--navy); }
.whatsapp-panel a, .phone-panel a { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fbfcfd; text-decoration: none; font-weight: 800; }
.whatsapp-panel a::before, .phone-panel a::before { content: ""; width: 28px; height: 28px; flex: 0 0 28px; background: url("../icons/whatsapp.svg") center/contain no-repeat; }
.phone-panel a::before { background-image: url("../icons/telefone.svg"); }
.whatsapp-panel a:hover { border-color: #168b50; }
.phone-panel a:hover { border-color: var(--blue); }
.whatsapp-panel span, .phone-panel span { margin-left: auto; color: var(--muted); font-size: .85rem; font-weight: 500; }

@media (max-width: 1020px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; padding: 9px 12px; color: var(--white); border: 1px solid rgba(255,255,255,.5); background: transparent; }
  .main-nav.open { position: absolute; inset: 92px 20px auto; display: grid; gap: 0; padding: 12px; color: var(--navy); background: var(--white); box-shadow: var(--shadow); }
  .main-nav.open a { padding: 12px; }
  .hero { min-height: 760px; }
  .hero-shade { background: linear-gradient(90deg, rgba(3,16,34,.94), rgba(3,20,41,.68)); }
  .quick-needs-grid { grid-template-columns: repeat(2, 1fr); }
  .split-heading, .section-heading-row, .for-sale-grid, .crane-grid, .regions-grid, .quote-grid { grid-template-columns: 1fr; gap: 45px; }
  .equipment-card { grid-template-columns: 1fr; }
  .equipment-card img { height: 260px; }
  .operation-grid { grid-template-columns: 1fr; }
  .footer-units { grid-template-columns: repeat(2, 1fr); }
  .footer-unit:nth-child(even) { border-right: 0; }
  .service-card { grid-template-columns: 1fr; }
  .service-card img { height: 240px; }
  .card-number { margin-bottom: 25px; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 28px); }
  .header-inner { min-height: 76px; }
  .brand img { width: 156px; }
  .main-nav.open { inset: 76px 14px auto; }
  .hero { min-height: 790px; align-items: flex-end; }
  .hero-media img { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,16,34,.98) 10%, rgba(3,18,38,.8) 62%, rgba(3,20,41,.3)); }
  .hero-content { padding: 125px 0 48px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.45rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-proof { grid-template-columns: 1fr; margin-top: 40px; }
  .hero-proof li { padding-top: 13px; }
  .quick-needs-grid, .service-grid, .equipment-grid, .engineering-grid, .process-grid, .field-row, .faq-columns, .footer-intro { grid-template-columns: 1fr; }
  .quick-needs a { min-height: 70px; border-right: 1px solid rgba(255,255,255,.13); }
  .section { padding: 75px 0; }
  .service-grid { margin-top: 45px; }
  .service-card img { height: 230px; }
  .engineering-grid { gap: 45px; }
  .seal-wrap { width: 230px; min-height: 230px; margin-inline: auto; }
  .crane-photo figcaption { display: grid; }
  .crane-stats { grid-template-columns: 1fr; }
  .unit-grid { grid-template-columns: 1fr; }
  .unit-grid div, .unit-grid div:nth-child(even), .unit-grid div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .unit-grid div:last-child { border-bottom: 0; }
  .quote-form { padding: 25px 20px; }
  .footer-bottom { display: grid; gap: 8px; }
  .footer-units { grid-template-columns: 1fr; }
  .footer-unit, .footer-unit:nth-child(even) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .footer-unit:last-child { border-bottom: 0; }
  .floating-cta span { display: none; }
  .floating-cta { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
