:root {
  --ink: #111817;
  --muted: #5d6663;
  --paper: #f2f0ea;
  --white: #ffffff;
  --line: rgba(17, 24, 23, 0.14);
  --steel: #202927;
  --steel-soft: #2d3835;
  --sand: #b89364;
  --sand-dark: #80613e;
  --mist: #e5e7e1;
  --shadow: 0 24px 70px rgba(17, 24, 23, 0.16);
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(242, 240, 234, 0.94);
  border-bottom: 1px solid rgba(17, 24, 23, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--steel);
  color: var(--white);
  font-weight: 900;
}

.brand-text {
  font-size: 1.08rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: rgba(17, 24, 23, 0.76);
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-nav a {
  padding: 8px 0;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}

.header-cta,
.button.primary {
  background: var(--sand);
  color: var(--ink);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button.outline-dark {
  border-color: rgba(17, 24, 23, 0.24);
  color: var(--ink);
  background: transparent;
}

.button.dark-button {
  background: var(--steel);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  margin: 7px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 170px clamp(22px, 6vw, 86px) 86px;
  color: var(--white);
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 15, 14, 0.88) 0%, rgba(10, 15, 14, 0.62) 42%, rgba(10, 15, 14, 0.22) 100%),
    linear-gradient(0deg, rgba(10, 15, 14, 0.6), rgba(10, 15, 14, 0.04));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 770px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--sand-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 6vw, 5.9rem);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.8vw, 5rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  line-height: 1.25;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  font-weight: 700;
}

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

section {
  padding: clamp(74px, 9vw, 128px) clamp(20px, 6vw, 86px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
  max-width: 1180px;
  margin: 0 auto;
}

.section-grid.reverse {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.section-copy p,
.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

.proof-panel {
  padding: clamp(28px, 4vw, 44px);
  background: var(--steel);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proof-panel span {
  display: block;
  margin-bottom: 16px;
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof-panel strong {
  display: block;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
}

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

.proof-panel li {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
}

.project-carousel-section {
  overflow: hidden;
  background: var(--mist);
}

.carousel-heading,
.section-heading {
  max-width: 1180px;
  margin: 0 auto 34px;
}

.carousel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.carousel-heading h2,
.section-heading h2 {
  max-width: 850px;
}

.carousel-note {
  max-width: 1180px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-carousel {
  display: flex;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4px 0 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) rgba(17, 24, 23, 0.12);
}

.project-slide {
  flex: 0 0 clamp(340px, 32vw, 410px);
  min-width: 340px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 46px rgba(17, 24, 23, 0.08);
}

.project-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.project-slide div {
  display: grid;
  align-content: start;
  padding: 26px;
  min-height: 214px;
}

.project-slide span {
  display: block;
  margin-bottom: 14px;
  color: var(--sand-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-slide h3 {
  font-size: 1.08rem;
}

.project-slide p {
  margin-bottom: 0;
  color: var(--muted);
}

.carousel-cta {
  display: flex;
  justify-content: center;
  max-width: 1180px;
  margin: 18px auto 0;
}

.management-section {
  background: var(--paper);
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.management-grid article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
}

.management-grid span,
.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--steel);
  color: var(--sand);
  font-weight: 900;
}

.management-grid p {
  color: var(--muted);
}

.process-section {
  background: var(--white);
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-list span {
  margin: 0;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.audience-section {
  background: var(--steel);
  color: var(--white);
}

.audience-section .section-heading p,
.audience-section .section-heading h2 {
  color: var(--white);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.audience-grid span {
  min-height: 96px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.contact-section {
  background:
    linear-gradient(rgba(17, 24, 23, 0.84), rgba(17, 24, 23, 0.84)),
    url("assets/fortis-construtora-alto-padrao-02.webp") center/cover;
  color: var(--white);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: clamp(32px, 6vw, 86px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  padding: 14px;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 86px);
  background: #0c1110;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer div {
  display: grid;
  gap: 3px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer a {
  font-weight: 800;
  color: var(--sand);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  background: #1f8f55;
  color: var(--white);
  box-shadow: 0 16px 46px rgba(17, 24, 23, 0.26);
  font-weight: 900;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: currentColor;
}

.desktop-only {
  display: inline-flex;
}

@media (max-width: 1040px) {
  .primary-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-open .primary-nav {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    background: var(--paper);
    color: var(--ink);
  }

  .nav-open .primary-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .section-grid,
  .section-grid.reverse,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 78px;
    padding: 14px 20px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .nav-open .primary-nav {
    top: 78px;
  }

  .hero {
    min-height: 735px;
    padding: 132px 20px 54px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 15, 14, 0.86), rgba(10, 15, 14, 0.5)),
      linear-gradient(0deg, rgba(10, 15, 14, 0.82), rgba(10, 15, 14, 0.18));
  }

  h1 {
    max-width: 345px;
    font-size: clamp(2.65rem, 11vw, 3.55rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(2.35rem, 12vw, 3.85rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  section {
    padding: 76px 20px;
  }

  .desktop-only {
    display: none;
  }

  .project-carousel {
    gap: 16px;
    margin-left: 0;
    margin-right: -20px;
    padding-right: 20px;
  }

  .project-slide {
    flex-basis: min(86vw, 340px);
    min-width: min(86vw, 340px);
  }

  .project-slide img {
    aspect-ratio: 4 / 3;
  }

  .project-slide div {
    padding: 22px;
    min-height: 218px;
  }

  .management-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .management-grid article {
    min-height: 0;
  }

  .site-footer {
    display: grid;
    padding: 30px 20px;
  }

  .footer-links {
    justify-content: start;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    min-height: 50px;
    padding: 0 16px;
    font-size: 0.9rem;
  }
}
