:root {
  --bg: #f5f9ff;
  --text: #0d1f3a;
  --primary: #0077e6;
  --primary-dark: #02306b;
  --surface: #ffffff;
  --muted: #dcebff;
  --header-scroll-offset: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-scroll-offset);
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid #e2ecf5;
  box-shadow: 0 1px 0 rgba(2, 48, 107, 0.04);
}

.header-content {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  width: clamp(158px, 21.21vw, 282px);
  max-width: 100%;
  display: block;
}

.nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.nav a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition:
    color 0.22s ease,
    background-color 0.22s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.28rem;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary);
  background-color: rgba(0, 119, 230, 0.1);
  outline: none;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background-color: rgba(0, 119, 230, 0.08);
  outline: none;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  display: block;
  border-radius: 99px;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  color: #edf4ff;
  padding: 4.8rem 0 3.6rem;
  position: relative;
  overflow: hidden;
}

.hero.hero-photo {
  min-height: min(72vh, 620px);
}

/* Fallback quando .hero-photo não está presente */
.circuit-bg {
  background:
    radial-gradient(circle at 16% 12%, rgba(26, 154, 255, 0.35), transparent 34%),
    radial-gradient(circle at 84% 72%, rgba(0, 211, 255, 0.2), transparent 32%),
    linear-gradient(130deg, #031534 0%, #032152 52%, #093e88 100%);
}

/* Hero com foto: gradiente escuro por cima da imagem (texto à esquerda) */
.hero.hero-photo.circuit-bg {
  background:
    linear-gradient(
      105deg,
      rgba(2, 17, 40, 0.94) 0%,
      rgba(2, 17, 40, 0.72) 38%,
      rgba(2, 30, 70, 0.42) 62%,
      rgba(2, 30, 70, 0.22) 100%
    ),
    url("assets/website-homepage-banner-main.jpg") center right / cover no-repeat;
}

.circuit-bg::before,
.circuit-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.circuit-bg::before {
  background-image:
    linear-gradient(90deg, rgba(210, 233, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(210, 233, 255, 0.12) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.28;
}

.circuit-bg::after {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 3px, transparent 4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 3px, transparent 4px);
  background-size: 180px 180px, 240px 240px;
  background-position: 42px 48px, 126px 110px;
  opacity: 0.26;
}

/* Foto já é detalhada: decoração quase imperceptível */
.hero.hero-photo.circuit-bg::before,
.hero.hero-photo.circuit-bg::after {
  opacity: 0.07;
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(740px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.42rem 0.86rem;
  border: 1px solid rgba(147, 201, 255, 0.34);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(9, 33, 70, 0.72);
  color: #d7eaff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-title {
  margin: 0;
  max-width: 18ch;
  line-height: 1.05;
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
  font-weight: 800;
  text-wrap: balance;
  color: #ffffff;
}

.hero-title .hero-highlight {
  color: #17a8ff;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
  color: #ffffff;
}

.hero-description {
  max-width: 48ch;
  margin: 0;
  color: #d3e4ff;
  font-size: clamp(0.98rem, 1.7vw, 1.15rem);
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.hero-features {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.52rem 0.8rem;
  border-radius: 11px;
  border: 1px solid rgba(148, 189, 238, 0.28);
  background: rgba(5, 26, 59, 0.72);
  color: #dcedff;
  font-size: 0.86rem;
  font-weight: 600;
}

.feature-chip .icon-inline {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.24rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.btn:hover {
  transform: translateY(-1px) scale(1.01);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1387ff, #0570df);
  box-shadow: 0 10px 22px rgba(0, 119, 230, 0.36);
}

.btn-primary::after {
  content: "\203A";
  font-size: 1rem;
  margin-left: 0.55rem;
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-glass {
  color: #eef6ff;
  border: 1px solid rgba(177, 214, 255, 0.45);
  background: linear-gradient(145deg, rgba(11, 41, 84, 0.82), rgba(4, 25, 55, 0.64));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.section {
  padding: 4rem 0;
}

.section h2 {
  margin-top: 0;
  color: var(--primary-dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-light {
  background: #f6fbff;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.2rem;
  align-items: start;
}

.about-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1488e8;
}

.about-main h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  color: #0b1f3f;
}

.about-highlight {
  color: #0e91f5;
}

.about-main p {
  margin: 0 0 0.8rem;
  color: #667e9d;
  line-height: 1.65;
  max-width: 60ch;
}

.about-main strong {
  color: #132f57;
}

.about-checklist {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.about-checklist li {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  color: #234365;
  font-weight: 600;
}

.about-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecf5ff;
  color: #1389eb;
  flex-shrink: 0;
}

.about-check-icon svg {
  width: 12px;
  height: 12px;
}

.about-values {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.75rem;
}

.about-value-card {
  background: #ffffff;
  border: 1px solid #e3efff;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.82rem;
  align-items: start;
  box-shadow: 0 8px 20px rgba(3, 63, 126, 0.08);
  cursor: default;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.about-value-card:hover {
  transform: translateY(-6px);
  border-color: #8ec8ff;
  box-shadow: 0 16px 34px rgba(9, 74, 147, 0.16);
}

.about-value-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf5ff;
  color: #1389eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-value-icon svg {
  width: 22px;
  height: 22px;
  transform: scale(1);
  transition: transform 0.32s ease;
}

.about-value-card:hover .about-value-icon svg {
  transform: scale(1.08);
}

.about-value-card h3 {
  margin: 0 0 0.22rem;
  font-size: 1.22rem;
  color: #142b4e;
}

.about-value-card p {
  margin: 0;
  color: #607998;
  line-height: 1.55;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid #dcecff;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(2, 48, 107, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card h3 {
  margin-top: 0;
  color: #044186;
}

.services-section {
  display: grid;
  gap: 1.6rem;
}

.services-heading {
  text-align: center;
}

.services-heading h2 {
  margin-bottom: 0.45rem;
}

.services-heading p {
  margin: 0 auto;
  max-width: 62ch;
  color: #5b7395;
}

.services-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.service-icon-wrap {
  width: 100%;
  border: 1px solid #e4f0ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f3f9ff);
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.service-icon-wrap img {
  width: 72%;
  max-width: 160px;
  max-height: 140px;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transition: transform 0.32s ease;
}

.service-card h3 {
  margin: 0.1rem 0 0;
  font-size: 1.32rem;
  color: #0a2f60;
}

.service-card p {
  margin: 0;
  color: #4f6789;
  line-height: 1.6;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #8ec8ff;
  box-shadow: 0 16px 34px rgba(9, 74, 147, 0.16);
}

.service-card:hover .service-icon-wrap img {
  transform: scale(1.08);
}

.contact-box {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 1.2rem;
}

.contact-section {
  display: grid;
  gap: 1.5rem;
}

.contact-header {
  text-align: center;
}

.contact-kicker {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1a8be9;
}

.contact-header h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #0f2344;
}

.contact-header p {
  margin: 0 auto;
  max-width: 64ch;
  color: #617b9b;
  line-height: 1.6;
}

.contact-info-card {
  background: linear-gradient(160deg, #0a2d62, #0d4c95);
  border-radius: 16px;
  padding: 1.4rem;
  color: #eff6ff;
  box-shadow: 0 16px 34px rgba(3, 41, 91, 0.28);
}

.contact-info-card h3 {
  margin: 0;
  font-size: 1.7rem;
  color: #ffffff;
}

.contact-info-subtitle {
  margin: 0.25rem 0 1rem;
  color: #c5dcff;
  font-weight: 600;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-info-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.62rem;
  align-items: start;
}

.contact-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.contact-info-icon svg {
  width: 17px;
  height: 17px;
}

.contact-info-list small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: #c8ddff;
  margin-bottom: 0.15rem;
}

.contact-info-list a,
.contact-info-list p {
  margin: 0;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.contact-form {
  background: #ffffff;
  border: 1px solid #dbeafc;
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 12px 28px rgba(7, 59, 117, 0.08);
  display: grid;
  gap: 0.85rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-field {
  display: grid;
  gap: 0.35rem;
}

.contact-field label {
  color: #18375f;
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid #d7e7fb;
  border-radius: 10px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  color: #143457;
  background: #f9fcff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #2092ef;
  box-shadow: 0 0 0 3px rgba(32, 146, 239, 0.15);
}

.contact-field textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-submit {
  justify-self: start;
  margin-top: 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-submit.btn-primary::after {
  content: none;
}

.contact-submit .icon-send {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.site-footer {
  background: #03142f;
  color: #d8e7ff;
  padding: 1.2rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.whatsapp-float .icon-inline {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 920px) {
  .hero {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .hero-content {
    width: min(100%, 640px);
  }

  .hero-title {
    max-width: 18ch;
  }

  .services-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .about-values {
    margin-top: 0.9rem;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero.hero-photo.circuit-bg {
    background:
      linear-gradient(
        180deg,
        rgba(2, 17, 40, 0.93) 0%,
        rgba(2, 17, 40, 0.8) 40%,
        rgba(2, 30, 70, 0.5) 100%
      ),
      url("assets/website-homepage-banner-main.jpg") center 35% / cover no-repeat;
  }

  .hero.hero-photo {
    min-height: min(68vh, 520px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--surface);
    padding: 0.85rem 4% 1.1rem;
    border-bottom: 1px solid #e2ecf5;
    box-shadow: 0 12px 24px rgba(2, 48, 107, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
      opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.32s,
      transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    opacity: 0;
    transform: translateX(10px);
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      color 0.22s ease,
      background-color 0.22s ease;
  }

  .nav a::after {
    display: none;
  }

  .nav:not(.open) a {
    transition-delay: 0s;
  }

  .nav.open a:nth-child(1) {
    transition-delay: 0.05s;
  }

  .nav.open a:nth-child(2) {
    transition-delay: 0.1s;
  }

  .nav.open a:nth-child(3) {
    transition-delay: 0.15s;
  }

  .nav.open a:nth-child(4) {
    transition-delay: 0.2s;
  }

  .nav.open a {
    opacity: 1;
    transform: translateX(0);
  }

  .contact-box {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
  }

  .hero-title {
    max-width: 18ch;
    font-size: clamp(1.3rem, 5.2vw, 1.9rem);
    line-height: 1.1;
  }

  .hero-description {
    max-width: 100%;
    font-size: 0.98rem;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .feature-chip {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .about-main h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .about-value-card {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .about-value-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .service-icon-wrap {
    min-height: 150px;
  }

  .service-card h3 {
    font-size: 1.18rem;
  }
}
