:root {
  --petroleo: #0E4C5C;
  --petroleo-dark: #0A3843;
  --azul-claro: #5B9AA6;
  --verde-agua: #34D1B7;
  --off-white: #F4F1EC;
  --grafite: #2B2B2B;
  --branco: #FFFFFF;

  --font-body: 'Outfit', sans-serif;
  --font-display: 'Montserrat', sans-serif;

  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--grafite);
  background: var(--off-white);
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--grafite);
  outline-offset: 2px;
}

.site-header :focus-visible,
.hero-carousel :focus-visible,
.site-footer :focus-visible,
.section-dark :focus-visible,
.page-banner :focus-visible {
  outline-color: var(--off-white);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 24px;
  z-index: 100;
  background: var(--petroleo-dark);
  color: var(--off-white);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  transition: top .2s ease;
}

.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--off-white);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--verde-agua);
  color: var(--petroleo-dark);
}

.btn-accent:hover { box-shadow: 0 8px 24px rgba(52, 209, 183, .35); }

.btn-outline {
  border-color: var(--off-white);
  color: var(--off-white);
}

.btn-outline:hover { background: rgba(244, 241, 236, .1); }

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--petroleo);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav a {
  color: var(--off-white);
  font-weight: 500;
  font-size: 0.9375rem;
  opacity: .9;
}

.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-whatsapp { display: none; }

.nav a.nav-whatsapp {
  color: var(--petroleo-dark);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: 1;
}

.nav a.nav-whatsapp:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .nav-toggle span {
    transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), opacity .2s ease;
  }
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero carousel ---------- */

.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 56, 67, .62), rgba(10, 56, 67, .62));
}

.hero-slide.is-active { opacity: 1; }

.hero-slide-1 { background-image: url('assets/hero-1.jpg'); }
.hero-slide-2 { background-image: url('assets/hero-2.jpg'); }

.hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 0 96px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: hero-rise .7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-content .eyebrow { animation-delay: .05s; }
  .hero-content .display { animation-delay: .15s; }
  .hero-content .hero-sub { animation-delay: .3s; }
  .hero-content .hero-actions { animation-delay: .42s; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: var(--hero-rise-opacity, 1); transform: translateY(0); }
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--verde-agua);
  margin: 0 0 20px;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: var(--off-white);
  margin: 0 0 24px;
  max-width: 14ch;
}

.hero-sub {
  --hero-rise-opacity: .88;
  font-size: 1.125rem;
  color: var(--off-white);
  opacity: .88;
  max-width: 56ch;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal,
  .reveal-group > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.is-visible,
  .reveal-group.is-visible > * {
    opacity: 1;
    transform: none;
  }

  .reveal-group.is-visible > *:nth-child(2) { transition-delay: .08s; }
  .reveal-group.is-visible > *:nth-child(3) { transition-delay: .16s; }
  .reveal-group.is-visible > *:nth-child(4) { transition-delay: .24s; }
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--off-white);
  border-bottom: 1px solid rgba(14, 76, 92, .1);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 24px;
}

.trust-item { text-align: center; }

.trust-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--verde-agua);
  background: var(--petroleo);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.trust-item p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--petroleo);
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section-dark {
  background: var(--petroleo);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--petroleo);
  margin: 0 0 12px;
}

.section-label-light { color: var(--off-white); opacity: .85; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  color: var(--petroleo);
  margin: 0 0 20px;
  max-width: 20ch;
}

.section-title-light { color: var(--off-white); }

.section-desc {
  font-size: 1.0625rem;
  color: var(--grafite);
  max-width: 62ch;
  margin: 0 0 48px;
}

.section-desc-light { color: var(--off-white); opacity: .85; }

/* ---------- Cards (Sobre) ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--branco);
  border: 1px solid rgba(14, 76, 92, .1);
  border-radius: 16px;
  padding: 32px;
}

.card-icon {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--petroleo);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--petroleo);
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--grafite);
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.equipamentos-cta-row {
  text-align: center;
}

.product-card {
  background: rgba(244, 241, 236, .02);
  border: 1px solid rgba(244, 241, 236, .15);
  border-radius: 16px;
  padding: 28px;
}

.product-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--verde-agua);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.product-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--off-white);
  opacity: .85;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--petroleo);
  color: var(--off-white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--petroleo);
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--grafite);
}

/* ---------- CTA banner ---------- */

.cta-banner {
  padding: 72px 0;
  background-image:
    linear-gradient(rgba(91, 154, 166, .88), rgba(91, 154, 166, .88)),
    url('assets/cta-1.jpg');
  background-size: cover;
  background-position: center;
}

.cta-banner-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  color: var(--grafite);
  margin: 0 auto 14px;
  max-width: 26ch;
}

.cta-banner p {
  color: var(--grafite);
  margin: 0 0 32px;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---------- Page banner (internal pages) ---------- */

.page-banner {
  background-image:
    linear-gradient(rgba(10, 56, 67, .62), rgba(10, 56, 67, .62)),
    url('assets/equipamentos-banner.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 0 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--off-white);
  opacity: .85;
}

.back-link:hover { opacity: 1; text-decoration: underline; }

.back-link svg { width: 16px; height: 16px; }

.page-banner .eyebrow { margin-bottom: 16px; }

.page-banner h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--off-white);
  margin: 0 0 16px;
  max-width: 18ch;
}

.page-banner p {
  font-size: 1.0625rem;
  color: var(--off-white);
  opacity: .85;
  max-width: 56ch;
  margin: 0;
}

/* ---------- Equipment catalog ---------- */

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}

.category-filter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: none;
  border: 1px solid rgba(14, 76, 92, .2);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--petroleo);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.category-filter:hover {
  border-color: var(--petroleo);
}

.category-filter[aria-pressed="true"] {
  background: var(--petroleo);
  border-color: var(--petroleo);
  color: var(--off-white);
}

.catalog-hint {
  font-size: 0.875rem;
  color: var(--grafite);
  opacity: .8;
  margin: 0 0 32px;
}

.catalog-hint a {
  color: var(--petroleo);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.equipment-catalog-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--petroleo);
  margin: 0 0 20px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 250px));
  gap: 24px;
}

.equipment-card {
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border: 1px solid rgba(14, 76, 92, .1);
  border-radius: 16px;
  padding: 20px;
}

.equipment-card[hidden] {
  display: none;
}

.equipment-photo {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.equipment-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.equipment-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--petroleo);
  margin: 0 0 6px;
}

.equipment-card p {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--grafite);
  opacity: .8;
}

.equipment-card-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 44px;
  padding: 10px 16px;
  background: transparent;
  color: var(--petroleo);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: background-color .15s ease, color .15s ease, text-decoration-color .15s ease, transform .15s ease;
}

.equipment-card-whatsapp:hover,
.equipment-card-whatsapp:focus-visible {
  background: var(--verde-agua);
  color: var(--petroleo-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(14, 76, 92, .12);
  font-size: 0.9375rem;
  color: var(--grafite);
}

.contact-list strong {
  color: var(--petroleo);
  font-weight: 600;
  margin-right: 6px;
}

.contact-list a {
  color: var(--petroleo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--branco);
  border: 1px solid rgba(14, 76, 92, .1);
  border-radius: 16px;
  padding: 32px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--petroleo);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(14, 76, 92, .2);
  background: var(--off-white);
  color: var(--grafite);
  resize: vertical;
}

.contact-form button { align-self: flex-start; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-privacidade {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--grafite);
  opacity: .75;
}

.form-status {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--petroleo);
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(4px);
}

@media (prefers-reduced-motion: no-preference) {
  .form-status {
    transition: opacity .3s ease, transform .3s ease;
  }
}

.form-status.is-shown {
  opacity: 1;
  transform: none;
}

.form-status.is-error {
  color: var(--grafite);
}

.contact-form button:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--petroleo-dark);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand { max-width: 320px; }

.footer-brand .logo-light { margin-bottom: 14px; }

.footer-brand p,
.footer-col li {
  margin: 0;
  color: var(--off-white);
  opacity: .75;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  margin: 0 0 14px;
  color: var(--off-white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .9;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a,
.footer-brand p a {
  color: var(--off-white);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(244, 241, 236, .12);
  padding: 20px 0;
}

.footer-copy {
  margin: 0;
  color: var(--off-white);
  font-size: 0.75rem;
  opacity: .55;
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--verde-agua);
  color: var(--petroleo-dark);
  box-shadow: 0 4px 16px rgba(10, 56, 67, .3);
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear;
}

.back-to-top:hover { transform: translateY(-2px); }

.back-to-top svg { width: 20px; height: 20px; }

.back-to-top:focus-visible {
  outline: none;
  box-shadow: 0 4px 16px rgba(10, 56, 67, .3), 0 0 0 2px var(--off-white), 0 0 0 4px var(--petroleo-dark);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 720px) {
  .header-inner { gap: 12px; }
  .logo img { height: 36px; }
  .header-cta { padding: 10px 16px; }
  .nav-toggle { display: flex; }

  .hero-content,
  .page-banner .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-slide-1 { background-image: url('assets/hero-1-mobile.jpg'); }
  .hero-slide-2 { background-image: url('assets/hero-2-mobile.jpg'); }

  .cta-banner {
    background-image:
      linear-gradient(rgba(91, 154, 166, .88), rgba(91, 154, 166, .88)),
      url('assets/cta-1-mobile.jpg');
  }

  .page-banner {
    background-image:
      linear-gradient(rgba(10, 56, 67, .62), rgba(10, 56, 67, .62)),
      url('assets/equipamentos-banner-mobile.jpg');
  }

  .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--petroleo);
    padding: 16px 24px 24px;
    gap: 16px;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }

  .nav.open {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear;
  }

  .nav.open .nav-whatsapp {
    display: inline-block;
    text-align: center;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .nav { transform: none; transition: opacity .15s linear, visibility 0s linear .15s; }
  .nav.open { transition: opacity .15s linear, visibility 0s linear; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-content { padding-top: 72px; padding-bottom: 56px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
