:root {
  --bg: #071428;
  --bg-2: #0d1f3a;
  --surface: #11284a;
  --surface-soft: #f4f8ff;
  --text: #e8f0ff;
  --text-dark: #10213f;
  --muted: #98abc9;
  --primary: #00b3ff;
  --primary-2: #37d2b4;
  --border: #2c4469;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 20, 40, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand img,
.footer-brand img {
  width: 80px;
  height: 80px;
}

.footer-brand .dualbase-logo {
  width: 156px;
  height: 48px;
  object-fit: contain;
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.brand small,
.footer-brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

nav a:hover {
  opacity: 1;
}

nav a.is-active {
  opacity: 1;
  color: #9ee8ff;
}

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  background: linear-gradient(120deg, rgba(7, 20, 40, 0.9), rgba(7, 20, 40, 0.2)),
    url("assets/img/dualbase/Capa-solar-e-clima.png")
      center / cover no-repeat;
}

.page-hero {
  background: linear-gradient(180deg, #081a34, #0f2950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.products-hero {
  background: linear-gradient(120deg, rgba(8, 26, 52, 0.95), rgba(15, 41, 80, 0.78)),
    url("assets/img/dualbase/produtos-bg.webp") center / cover no-repeat;
}

.services-hero {
  background: linear-gradient(120deg, rgba(8, 26, 52, 0.9), rgba(15, 41, 80, 0.72)),
    url("assets/img/Man.jpeg") center / cover no-repeat;
}

.page-hero-content {
  max-width: 760px;
  padding: 4rem 0;
}

.page-hero-content h1 {
  margin-top: 0.8rem;
}

.page-hero-content p {
  margin-top: 0.8rem;
  color: #d0def8;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(0, 179, 255, 0.28), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: 6rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.hero p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: #d5e3ff;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-carousel {
  margin-top: 1.25rem;
  display: none;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hero-thumb {
  width: 96px;
  height: 64px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  opacity: 0.86;
  transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.hero-thumb.is-active {
  border-color: #9ee8ff;
  opacity: 1;
}

.badge {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-dark {
  border-color: rgba(16, 33, 63, 0.2);
  color: var(--text-dark);
}

.btn {
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #042235;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--surface-soft);
  color: var(--text-dark);
}

.section-head {
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section-head p {
  color: var(--muted);
  max-width: 700px;
}

.section-alt .section-head p {
  color: #3f567e;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: #c4d6f6;
  font-size: 0.95rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.22);
  min-height: 250px;
  background-size: cover;
  background-position: center;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 17, 36, 0.38), rgba(5, 17, 36, 0.82));
}

.service-card h3,
.service-card p,
.service-card .service-link-row {
  position: relative;
  z-index: 1;
}

.service-card p {
  color: #e4efff;
}

.service-bg-pirano {
  background-image: url("assets/img/dualbase/Calibracao-de-Piranometros.jpg");
}

.service-bg-anemo {
  background-image: url("assets/img/dualbase/Anemo-1400x932.jpg");
}

.service-bg-pcdweb {
  background-image: url("assets/img/dualbase/PCDWeb.jpg");
}

.service-bg-instalacion {
  background-image: url("assets/img/dualbase/img_1.webp");
}

.service-link-row {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-link {
  color: #9ee8ff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(158, 232, 255, 0.5);
}

.service-link:hover {
  border-bottom-color: #9ee8ff;
}

.service-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #2f4872;
  display: grid;
  gap: 0.6rem;
}

.service-list li {
  line-height: 1.45;
}

.product-grid {
  align-items: stretch;
}

.product-card {
  display: grid;
  gap: 0.6rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  outline: none;
}

.product-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.5rem;
}

.product-popup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #eaf2ff;
  background: rgba(5, 17, 36, 0.86);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-media:hover .product-popup {
  opacity: 1;
  transform: translateY(0);
}

.product-card.light {
  background: #fff;
  border-color: #d5e0f2;
}

.product-card.light h3 {
  color: #10213f;
}

.product-card.light p {
  color: #3f567e;
}

.service-link.dark {
  color: #205f92;
  border-bottom-color: rgba(32, 95, 146, 0.55);
}

.service-media {
  margin-top: 1.25rem;
}

.partner-inline {
  margin-top: 1.25rem;
}

.image-grid {
  align-items: stretch;
}

.image-card {
  margin: 0;
  background: #fff;
  border: 1px solid #d5e0f2;
  border-radius: 14px;
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.image-card figcaption {
  padding: 0.9rem;
  font-size: 0.9rem;
  color: #2f4872;
}

.partner-box {
  background: linear-gradient(180deg, #e6f4ff, #f9fcff);
  border: 1px solid #cce4f8;
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dark);
}

.partner-box p {
  margin-top: 0.6rem;
  color: #3f567e;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-status {
  display: none;
  margin-bottom: 1rem;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: #def7ea;
  border: 1px solid #a7e3c6;
  color: #0d5d3b;
}

.form-status.error {
  background: #ffe6e6;
  border: 1px solid #ffc6c6;
  color: #8e1d1d;
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.contact-info {
  background: #fff;
  border: 1px solid #d5e0f2;
  border-radius: 14px;
  padding: 1rem;
  color: var(--text-dark);
}

.contact-info h3 {
  margin-bottom: 0.5rem;
}

.contact-info p {
  margin-top: 0.4rem;
  color: #3f567e;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
}

.contact-form label:last-of-type {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #c7d9f2;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.contact-form button {
  width: fit-content;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-row p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .cards-3 {
    grid-template-columns: 1fr 1fr;
  }

  .partner-box,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    background: #0b1d38;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.7rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  nav.open {
    display: flex;
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }

  .hero-thumb {
    width: 78px;
    height: 54px;
  }
}
