/* Tecnopetrol prototype. Brand from the real logo: green #006633, yellow #FFCC00, black. */
@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; }

:root {
  --green-900: #0A3D24; --green-950: #072B19; --green: #006633; --green-600: #0B7A40;
  --yellow: #FFCC00; --yellow-600: #E6B800;
  --soft: #E8F1EC; --soft-2: #D7E8DE; --ink: #0F1E16; --muted: #44564B; --line: #C9DACF; --white: #FFFFFF;
  --radius: 6px; --radius-btn: 4px;
  --shadow: 0 10px 30px -12px rgba(10, 61, 36, .35);
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0,102,51,.15); touch-action: manipulation; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--soft); line-height: 1.6; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 2px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--ink); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 800; font-stretch: 105%; }
.h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 800; font-stretch: 105%; }
.h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); max-width: 56ch; }
.section-lead { max-width: 65ch; color: var(--muted); margin-bottom: 2rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.3rem; border-radius: var(--radius-btn); font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: var(--yellow-600); color: var(--ink); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-900); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.75); color: var(--white); background: rgba(7,43,25,.35); }
.btn-outline-light:hover { background: var(--white); color: var(--green-900); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-light { background: var(--white); color: var(--green-900); }
.btn-light:hover { background: var(--yellow); color: var(--ink); }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 4px solid var(--green); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand img { width: 118px; height: auto; }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.menu ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: .4rem 0; border-bottom: 3px solid transparent; }
.menu ul a:hover, .menu ul a[aria-current="page"] { border-bottom-color: var(--yellow); color: var(--green-900); }
.menu-toggle { display: none; background: none; border: 0; color: var(--green-900); width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .icon { width: 30px; height: 30px; }
@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--green-900); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; gap: 1rem; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a { display: block; color: var(--white); padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .menu ul a:hover, .menu ul a[aria-current="page"] { color: var(--yellow); border-bottom-color: rgba(255,255,255,.15); }
}

/* hero */
.hero, .page-hero { position: relative; isolation: isolate; color: var(--white); background: var(--green-900); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after, .page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7,43,25,.94) 0%, rgba(10,61,36,.86) 45%, rgba(10,61,36,.55) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; min-height: min(640px, calc(100dvh - 80px)); padding-block: 4rem; }
.hero h1 { max-width: 16ch; }
.hero .lead { color: #E3EEE7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-quick { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.hero-quick a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: rgba(7,43,25,.72); border: 1px solid rgba(255,255,255,.18); border-left: 4px solid var(--yellow); color: var(--white); text-decoration: none; backdrop-filter: blur(6px); transition: background-color .2s, transform .2s; }
.hero-quick a:hover { background: rgba(7,43,25,.92); transform: translateX(3px); }
.hero-quick .icon { width: 30px; height: 30px; color: var(--yellow); }
.hero-quick .icon.go { width: 20px; height: 20px; margin-left: auto; color: var(--white); }
.hero-quick strong { display: block; font-size: 1.05rem; }
.hero-quick small { display: block; color: #CFE0D5; font-size: .9rem; line-height: 1.4; }
.page-hero { padding-block: 3.5rem 3.25rem; }
.page-hero-short { padding-block: 2.75rem; }
.page-hero h1 { max-width: 24ch; }
.page-hero .lead { color: #E3EEE7; }
.crumbs { font-size: .92rem; margin-bottom: .8rem; color: #CFE0D5; }
.crumbs a { color: var(--white); }

/* credentials strip */
.creds { background: var(--soft-2); border-bottom: 1px solid var(--line); }
.creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 1.8rem; }
.cred { display: flex; gap: .8rem; align-items: flex-start; }
.cred .icon { width: 30px; height: 30px; color: var(--green); margin-top: .1rem; }
.cred strong { display: block; color: var(--green-900); }
.cred p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* sections */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-soft { background: var(--soft); }
.section-dark { background: var(--green-900); color: var(--white); }
.section-dark p { color: #E3EEE7; }
#servicos { background: var(--white); }

/* services grid (asymmetric: 2 wide + 6) */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.svc { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--green-900); color: var(--white); text-decoration: none; min-height: 280px; }
.svc-wide { grid-column: span 2; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,43,25,.05) 25%, rgba(7,43,25,.92) 78%); }
.svc:hover img { transform: scale(1.04); }
.svc-body { position: relative; z-index: 1; margin-top: auto; padding: 1.2rem; }
.svc-title { display: flex; gap: .5rem; align-items: center; font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.svc-title .icon { color: var(--yellow); }
.svc-text { display: block; font-size: .93rem; color: #DCE9E0; margin-top: .3rem; line-height: 1.45; }
.svc:hover .svc-title { text-decoration: underline; text-decoration-color: var(--yellow); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-img { border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* products */
.prod-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.prod { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: var(--radius); text-decoration: none; color: var(--ink); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.prod:hover { box-shadow: var(--shadow); border-color: var(--green); }
.prod-img { display: block; height: 210px; padding: 1rem; background: var(--white); }
.prod-img img { min-height: 0; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; }
.prod-name { display: flex; align-items: center; min-height: 3.9em; padding: .85rem 1rem; font-weight: 700; background: var(--green-900); color: var(--white); border-top: 3px solid var(--yellow); margin-top: auto; }

/* photo band */
.photo-band { position: relative; isolation: isolate; color: var(--white); }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,43,25,.92), rgba(7,43,25,.55)); }
.photo-band-inner { max-width: var(--wrap); }
.photo-band-inner p { max-width: 58ch; color: #E3EEE7; }

/* CTA band */
.cta-band { background: var(--yellow); color: var(--ink); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2.5rem; flex-wrap: wrap; }
.cta-inner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .3rem; }
.cta-inner p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band .btn-accent { background: var(--green-900); color: var(--white); }
.cta-band .btn-accent:hover { background: var(--green-950); color: var(--white); }
.cta-band .btn-outline-light { border-color: var(--green-900); color: var(--green-900); background: transparent; }
.cta-band .btn-outline-light:hover { background: var(--green-900); color: var(--white); }

/* detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.section:has(.detail) { background: var(--white); }
.prose { max-width: 72ch; }
.prose figure { margin: 2rem 0 0; }
.inline-img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 1rem; background: var(--soft); }
.related { position: sticky; top: 100px; background: var(--green-900); color: var(--white); border-radius: var(--radius); padding: 1.4rem; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 0; color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.14); font-weight: 600; }
.related li a:hover { color: var(--yellow); }
.related .icon { color: var(--yellow); }
.cred-list li { display: flex; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .95rem; line-height: 1.45; }
.cred-list .icon { width: 26px; height: 26px; color: var(--yellow); }
.cred-list strong { display: block; }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.checks.cols { grid-template-columns: 1fr 1fr; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; }
.checks .icon { color: var(--green); margin-top: .25rem; }
.model-grid { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.model { display: flex; flex-direction: column; background: var(--soft); border-radius: var(--radius); padding: 1rem; border: 1px solid var(--line); }
.model-img { display: block; height: 240px; background: var(--white); border-radius: 4px; margin-bottom: .8rem; padding: .5rem; }
.model-img img { width: 100%; height: 100%; object-fit: contain; }
.model-name { font-weight: 800; font-size: 1.15rem; color: var(--green-900); }
.model-var { color: var(--muted); font-size: .92rem; }
.model-cta { margin-top: auto; padding-top: .7rem; font-weight: 700; }
.gallery { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.gallery li { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; font-size: .9rem; color: var(--muted); }
.gallery img { height: 140px; width: 100%; object-fit: contain; background: var(--white); border-radius: 4px; margin-bottom: .5rem; }

/* contact + form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.card { background: var(--white); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--line); }
.card-dark { background: var(--green-900); color: var(--white); border: 0; }
.contact-side .inline-img { margin-top: 1rem; }
address { font-style: normal; display: grid; gap: .9rem; }
address a { display: flex; gap: .7rem; align-items: flex-start; color: inherit; text-decoration: none; }
address a:hover span { text-decoration: underline; }
address .icon { width: 22px; height: 22px; color: var(--yellow); margin-top: .15rem; }
address small { display: block; font-size: .85rem; opacity: .8; }
.quote-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin-bottom: 1rem; display: grid; gap: .35rem; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; width: 100%; padding: .75rem .85rem; border: 1.5px solid #8FA898; border-radius: 4px; background: var(--white); color: var(--ink); min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(0,102,51,.35); outline-offset: 0; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: #B42318; }
.help { margin: 0; font-size: .88rem; color: var(--muted); }
.error { margin: 0; font-size: .9rem; color: #B42318; font-weight: 600; }
.field.check { grid-template-columns: auto 1fr; align-items: start; column-gap: .7rem; }
.field.check input { width: 22px; height: 22px; min-height: 0; margin-top: .2rem; accent-color: var(--green); }
.field.check label { font-weight: 400; }
.field.check .error { grid-column: 1 / -1; }
.form-note { font-size: .9rem; color: var(--muted); }
.status { min-height: 1.4em; font-weight: 600; color: #B42318; margin: .5rem 0; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.2rem; margin: 0 0 1.5rem; }
.summary dt { font-weight: 700; color: var(--green-900); }
.summary dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* footer */
.site-footer { background: var(--green-950); color: #D4E3D9; padding-top: 3.5rem; font-size: .95rem; }
.site-footer a { color: #F1F6F2; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-name { font-weight: 800; color: var(--white); font-size: 1.05rem; }
.footer-h { font-size: 1rem; color: var(--yellow); margin-bottom: .8rem; }
.footer-links, .footer-creds { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-creds { margin-top: 1rem; }
.footer-creds .icon { color: var(--yellow); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-block: 1.2rem; font-size: .88rem; }
.footer-base p { margin: 0; }

/* responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; min-height: 0; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .related { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 68px; }
  .brand img { width: 100px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .creds-grid { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.4rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-wide { grid-column: auto; }
  .svc { min-height: 220px; }
  .prod-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .prod-name { font-size: .92rem; padding: .7rem; }
  .prod-img { height: 150px; padding: .6rem; }
  .quote-form .row2 { grid-template-columns: 1fr; }
  .checks.cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .summary { grid-template-columns: 1fr; }
  .model-img { height: 200px; }
}
[hidden] { display: none !important; }
.inline-img.contain { object-fit: contain; background: var(--white); border: 1px solid var(--line); max-height: 380px; padding: 1rem; }

/* detail pass: touch targets >= 44px (WCAG 2.5.5) */
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .15rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .4rem; }
.footer-links a, .footer-base a, .site-footer a[href^="mailto:"], .site-footer a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links { gap: 0; }
.field.check input[type=checkbox] { width: 24px; height: 24px; margin-top: .55rem; }
.field.check label { padding-block: .45rem; }
.field.check label a { display: inline-block; padding-block: .6rem; }
.crumbs a { min-width: 44px; justify-content: center; }
.contact-list a, .contact a[href^="mailto:"], .contact a[href^="tel:"], main a[href^="mailto:"], main a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
.model-cta { display: inline-flex; align-items: center; min-height: 44px; padding-top: 0; }
.field.check input[type=checkbox] { width: 24px; height: 24px; position: relative; }
.field.check input[type=checkbox]::after { content: ""; position: absolute; inset: -10px; }
