/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #1f2933;
  background-color: #f8fafc;
  line-height: 1.6;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Layout helpers */
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 64px 0;
}

section + section {
  border-top: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  background: #0b4c8c;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus {
  background: #093d71;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid #0b4c8c;
  color: #0b4c8c;
}

.btn-outline:hover,
.btn-outline:focus {
  background: #0b4c8c;
  color: #fff;
}

.hero .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.hero .btn-outline:hover,
.hero .btn-outline:focus {
  background: #fff;
  color: #0b4c8c;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #d7dee9;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #0b4c8c;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d7dee9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus {
  border-color: #0b4c8c;
  background: rgba(11, 76, 140, 0.08);
}

.nav-toggle-icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: #0b4c8c;
  transition: background 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #0b4c8c;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon::before {
  transform: translateY(-6px);
}

.nav-toggle-icon::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-weight: 500;
  color: #1f2933;
}

.nav a.active {
  color: #0b4c8c;
  font-weight: 600;
}

.dropdown-toggle.active {
  color: #0b4c8c;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus {
  color: #0b4c8c;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #d7dee9;
  box-shadow: 0 12px 24px rgba(15, 27, 47, 0.12);
  border-radius: 8px;
  padding: 12px 0;
  display: none;
}

.dropdown.dropdown-open .dropdown-menu {
  display: block;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #1f2933;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: #f0f4f9;
  color: #0b4c8c;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(96px, 18vw, 140px) 0;
  color: #fff;
  background-color: #0b4c8c;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 43, 79, 0.72);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  max-width: 680px;
}

.hero-home {
  background-image: url("../images/hero-home.jpg");
}

.hero-condominios {
  background-image: url("../images/hero-condominios.jpg");
}

.hero-residencial {
  background-image: url("../images/hero-residencial.jpg");
}

.hero-equipe {
  background-image: url("../images/hero-equipe.jpg");
}

.hero-industrial {
  background-image: url("../images/hero-industrial.jpg");
}

.hero-vistoria {
  background-image: url("../images/hero-vistoria.jpg");
}

.hero-interno {
  background-image: url("../images/controle-obra.jpg");
}

/* Sections */
h2 {
  font-size: clamp(28px, 4vw, 34px);
  margin-bottom: 16px;
  color: #0b4c8c;
}

h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #1f2933;
}

p + p {
  margin-top: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.section-light,
.section-muted,
.section-dark {
  position: relative;
  overflow: hidden;
}

.section-light::before,
.section-light::after,
.section-muted::before,
.section-muted::after,
.section-dark::before,
.section-dark::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 0;
}

.section-light::before {
  top: -130px;
  background: linear-gradient(180deg, rgba(11, 76, 140, 0.22) 0%, rgba(11, 76, 140, 0) 80%);
  clip-path: ellipse(75% 100% at 50% 0%);
}

.section-light::after {
  bottom: -130px;
  background: linear-gradient(0deg, rgba(11, 76, 140, 0.18) 0%, rgba(11, 76, 140, 0) 70%);
  clip-path: ellipse(70% 100% at 50% 100%);
}

.section-muted::before {
  top: -130px;
  background: linear-gradient(180deg, rgba(15, 27, 47, 0.12) 0%, rgba(15, 27, 47, 0) 80%);
  clip-path: ellipse(80% 100% at 50% 0%);
}

.section-muted::after {
  bottom: -130px;
  background: linear-gradient(0deg, rgba(15, 27, 47, 0.12) 0%, rgba(15, 27, 47, 0) 70%);
  clip-path: ellipse(65% 100% at 50% 100%);
}

.section-dark::before {
  top: -130px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 80%);
  clip-path: ellipse(78% 100% at 50% 0%);
}

.section-dark::after {
  bottom: -130px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.section-light .container,
.section-muted .container,
.section-dark .container {
  position: relative;
  z-index: 1;
}

.section-light {
  background: linear-gradient(160deg, #f2f5ff 0%, #dfe9ff 100%);
}

.section-muted {
  background: linear-gradient(160deg, #ffffff 0%, #f1f4fb 100%);
}

.section-dark {
  background: radial-gradient(circle at 20% 20%, #185088 0%, #0b2d4d 55%, #081c31 100%);
  color: #e5ecf6;
}

.section-dark p {
  color: #d6e2f1;
}

.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e1e7ef;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 27, 47, 0.08);
}

.card h3 {
  margin-bottom: 8px;
}

.card[data-icon] {
  position: relative;
  padding-top: 48px;
}

.card[data-icon]::before {
  content: attr(data-icon);
  position: absolute;
  top: -32px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b4c8c 0%, #1f7acc 100%);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(15, 27, 47, 0.22);
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: inherit;
  box-shadow: none;
}

.section-dark .card p {
  color: inherit;
}

.section-dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.section-dark .btn-outline:hover,
.section-dark .btn-outline:focus {
  background: #fff;
  color: #0b243d;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.list li {
  list-style: none;
  padding-left: 28px;
  position: relative;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 10px;
  color: #0b4c8c;
  font-weight: 700;
}

.ordered-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  list-style: none;
  counter-reset: item;
}

.ordered-list li {
  list-style: none;
  padding-left: 36px;
  position: relative;
}

.ordered-list li::before {
  counter-increment: item;
  content: counter(item) ".";
  position: absolute;
  left: 8px;
  color: #0b4c8c;
  font-weight: 700;
}

.split {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.image-frame {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 27, 47, 0.18);
  aspect-ratio: 3 / 2;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card {
  display: grid;
  gap: 16px;
}

.profile-card h3 {
  color: #0b4c8c;
}

.profile-card p {
  color: #425466;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 76, 140, 0.1);
  color: #0b4c8c;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.divider {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b4c8c 0%, #1f7acc 100%);
  margin: 24px 0;
}

.section-dark .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section-dark .divider {
  background: rgba(255, 255, 255, 0.6);
}

.text-contrast {
  color: #fff;
}
/* Form */
form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c6d4e3;
  border-radius: 6px;
  font-size: 16px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
footer {
  background: #0b243d;
  color: #cfd8e5;
  padding: 48px 0;
}

footer a {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.footer-grid h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .container {
    padding: 48px 0;
  }

  .header-bar {
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
  }

  .nav-toggle {
    order: 2;
  }

  .js-enabled .nav-toggle {
    display: inline-flex;
  }

  .nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #d7dee9;
  }

  .nav a {
    width: 100%;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    min-width: unset;
    width: 100%;
    margin-top: 8px;
    border: 1px solid #d7dee9;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: none;
  }

  .dropdown-menu a {
    padding: 12px 16px;
  }

  .nav-actions {
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }

  .js-enabled .nav {
    display: none;
  }

  .js-enabled .nav.is-open {
    display: flex;
  }

  .js-enabled .nav-actions {
    display: none;
  }

  .js-enabled .nav-actions.is-open {
    display: flex;
  }

  .nav-actions .btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .header-bar {
    align-items: stretch;
  }

  .hero .container {
    text-align: left;
  }

  .hero .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero {
    padding: 72px 0;
  }

  .btn-group {
    width: 100%;
  }

  .btn-group .btn {
    flex: 1 1 100%;
  }
}
