:root {
  --bg-main: #eef2f6;
  --bg-panel: #ffffff;
  --bg-dark: #0e1d2d;
  --bg-dark-soft: #15293d;
  --text-main: #243342;
  --text-soft: #5d6b7b;
  --line: #d8e0e8;
  --accent: #f5a623;
  --accent-strong: #de8f0f;
  --white: #ffffff;
  --shadow-soft: 0 20px 50px rgba(15, 34, 53, 0.08);
  --shadow-hover: 0 26px 60px rgba(15, 34, 53, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
  font-family: "Montserrat", sans-serif;
}

p {
  margin: 0 0 1rem;
}

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

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(4.75rem, 6vw, 6.5rem) 0;
}

.section-tag {
  margin-bottom: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  max-width: 760px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 24, 40, 0.82);
  backdrop-filter: blur(7px);
}

.header-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 64px;
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(245, 166, 35, 0.5);
  box-shadow: 0 10px 22px rgba(5, 18, 32, 0.22);
  padding: 0.22rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  color: #dfe8f1;
  line-height: 1.08;
}

.brand-text strong {
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: #9eb1c6;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(0.9rem, 1.5vw, 1.6rem);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  padding: 0.25rem 0.05rem;
  color: #d5e3f0;
  font-weight: 500;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.2rem;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #dce8f5;
  border-radius: 999px;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 166, 35, 0.6);
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #222d37;
  font-family: "Montserrat", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(245, 166, 35, 0.3);
}

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--white);
  display: flex;
  align-items: center;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.hero-overlay {
  background:
    linear-gradient(102deg, rgba(5, 17, 31, 0.88), rgba(12, 31, 51, 0.57)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 12px
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: 5.6rem;
  max-width: 830px;
}

.hero-content .eyebrow {
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #ffd083;
  font-size: 0.82rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

.hero p {
  max-width: 700px;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: #dde8f3;
}

.about {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(1.2rem, 2.5vw, 2.1rem);
  align-items: stretch;
}

.about-content {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.about-content h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.about-content p {
  color: #4c5f73;
}

.value-list {
  list-style: none;
  margin: 0;
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border-radius: var(--radius-lg);
  border: 1px solid #2d4258;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 166, 35, 0.25), transparent 52%),
    linear-gradient(160deg, var(--bg-dark), var(--bg-dark-soft));
  box-shadow: 0 22px 46px rgba(13, 30, 48, 0.26);
}

.value-list li {
  color: #e6edf5;
  padding: 0.6rem 0.2rem 0.6rem 2rem;
  position: relative;
  border-bottom: 1px solid rgba(225, 236, 248, 0.12);
  font-size: 1rem;
  font-weight: 500;
}

.value-list li:last-child {
  border-bottom: 0;
}

.value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at center, #ffc965 0%, var(--accent-strong) 62%);
}

.services {
  background:
    linear-gradient(180deg, #edf3f8 0%, #eaf0f6 100%);
}

.cards-grid {
  display: grid;
  gap: 1.15rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-image {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(130deg, #13263b, #294868);
}

.image-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #24313f;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
}

.service-card,
.segment-card,
.diff-card {
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card {
  background: var(--bg-panel);
  border-color: #d7e0e9;
  box-shadow: 0 16px 38px rgba(21, 44, 67, 0.08);
  overflow: hidden;
}

.service-card:hover,
.segment-card:hover,
.diff-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(245, 166, 35, 0.78);
}

.card-content {
  padding: 1.15rem 1.15rem 1.3rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: linear-gradient(155deg, rgba(245, 166, 35, 0.23), rgba(245, 166, 35, 0.07));
  border: 1px solid rgba(245, 166, 35, 0.4);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: #9d6410;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.16rem;
}

.service-card p {
  color: #4f6173;
  font-size: 0.97rem;
}

.segments {
  background:
    radial-gradient(circle at 10% 5%, rgba(245, 166, 35, 0.12), transparent 35%),
    linear-gradient(180deg, #0f2235 0%, #132a40 100%);
  color: #e7eef5;
}

.segments .section-tag {
  color: #ffbd4d;
}

.segments .section-head h2 {
  color: #f3f8fd;
}

.segment-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.segment-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(188, 205, 223, 0.2);
  box-shadow: 0 20px 42px rgba(7, 18, 30, 0.28);
  overflow: hidden;
}

.segment-card .card-image img {
  aspect-ratio: 7 / 5;
}

.segment-card-eletrica .card-image img {
  object-position: center 22%;
}

.segment-card h3 {
  padding: 1.05rem 1rem 1.2rem;
  margin: 0;
  font-size: 1.04rem;
  color: #f4f8fb;
}

.differentials {
  background:
    linear-gradient(180deg, #f5f8fb 0%, #edf3f8 100%);
}

.diff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diff-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #d6e0e9;
  box-shadow: 0 14px 32px rgba(20, 44, 70, 0.08);
  padding: 1.3rem 1.25rem 1.4rem;
}

.diff-card::before {
  content: "";
  width: 42px;
  height: 4px;
  border-radius: 999px;
  display: block;
  margin-bottom: 0.85rem;
  background: linear-gradient(90deg, var(--accent), #ffd080);
}

.diff-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.diff-card p {
  color: #536678;
  font-size: 0.95rem;
  margin: 0;
}

.contact {
  background: #f0f4f9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.contact-content {
  background: var(--bg-panel);
  border: 1px solid #d7e0ea;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.3rem, 3vw, 2rem);
  max-width: 760px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.contact-content p {
  color: #4f6174;
}

.contact-email {
  margin-top: 1.2rem;
  font-weight: 700;
  color: #233648;
}

.contact-email a {
  color: #d28107;
}

.site-footer {
  padding: 2.2rem 0 2.4rem;
  background: #0b1b2d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe6f2;
}

.footer-wrap {
  display: grid;
  gap: 0.25rem;
  text-align: center;
}

.footer-wrap p {
  margin: 0.1rem 0;
  color: #c9d8e9;
}

.footer-wrap a {
  color: #ffc866;
}

.floating-whatsapp {
  position: fixed;
  right: clamp(0.9rem, 1.7vw, 1.4rem);
  bottom: clamp(0.9rem, 1.7vw, 1.4rem);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 85;
  color: #25d366;
  background: #f1fff6;
  border: 2px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 18px 32px rgba(13, 90, 45, 0.26);
  transition: transform 0.3s ease;
  animation: pulse-wa 2.8s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: translateY(-4px);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.25), 0 16px 30px rgba(13, 90, 45, 0.22);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0), 0 20px 32px rgba(13, 90, 45, 0.24);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 16px 30px rgba(13, 90, 45, 0.22);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .diff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 76px;
    display: none;
    padding: 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(217, 231, 245, 0.2);
    background: rgba(10, 24, 40, 0.98);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    display: grid;
    gap: 0.2rem;
  }

  .main-nav a {
    width: 100%;
    padding: 0.64rem 0.5rem;
  }

  .main-nav a::after {
    bottom: 0.18rem;
  }

  .header-wrap {
    min-height: 76px;
  }

  .btn-whatsapp {
    margin-left: 0;
    max-width: 160px;
    font-size: 0.77rem;
    padding-inline: 0.65rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-top: 5.1rem;
  }
}

@media (max-width: 700px) {
  .services-grid,
  .segment-grid,
  .diff-grid {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    width: 94vw;
  }

  .brand-logo {
    width: 54px;
    height: 42px;
  }

  .brand-text small {
    display: none;
  }

  .btn-whatsapp {
    min-height: 40px;
    font-size: 0.73rem;
    max-width: 130px;
  }

  .hero p {
    font-size: 1rem;
  }

  .card-content {
    padding: 1rem 1rem 1.25rem;
  }

  .floating-whatsapp {
    width: 58px;
    height: 58px;
  }

  .floating-whatsapp svg {
    width: 29px;
    height: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
