/* Inovar Construções - Premium Landing Page */

:root {
  --navy: #071827;
  --navy-soft: #0d263d;
  --emerald: #0f9f6e;
  --emerald-dark: #08734f;
  --white: #ffffff;
  --gray: #f4f7f6;
  --gray-2: #e6ecea;
  --text: #1d2b36;
  --muted: #62717c;
  --shadow: 0 24px 60px rgba(7, 24, 39, 0.12);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(7, 24, 39, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img,
.footer-logo {
  width: 165px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--emerald);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(15, 159, 110, 0.24);
}

.btn-primary:hover {
  background: var(--emerald-dark);
}

.btn-whatsapp {
  background: var(--navy);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gray-2);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: 0.25s ease;
}

.hero {
  padding-top: 70px;
  background:
    radial-gradient(circle at 10% 15%, rgba(15, 159, 110, 0.12), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f6faf9 45%, #edf5f2 100%);
}

.hero-grid,
.quote-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.hero h1,
.section-heading h2,
.quote-copy h2,
.final-cta h2 {
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  max-width: 780px;
}

.hero p {
  margin-top: 22px;
  max-width: 650px;
  font-size: 1.14rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  color: var(--navy);
  font-weight: 800;
}

.trust-points span {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--gray-2);
  padding: 12px 14px;
  border-radius: 16px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 610px;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  left: -24px;
  bottom: 32px;
  width: 250px;
  padding: 20px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}

.hero-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.quote-copy h2,
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.section-heading p,
.quote-copy p,
.final-cta p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1.06rem;
}

.lead-section,
.process,
.reviews {
  background: var(--gray);
}

.qualification-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.qualification-card {
  min-height: 112px;
  border: 1px solid var(--gray-2);
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--navy);
  text-align: left;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(7, 24, 39, 0.06);
  cursor: pointer;
  transition: 0.25s ease;
}

.qualification-card:hover {
  border-color: rgba(15, 159, 110, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cards-grid,
.why-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card,
.why-card,
.review-card,
.process-step {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 16px 40px rgba(7, 24, 39, 0.06);
  transition: 0.25s ease;
}

.service-card:hover,
.why-card:hover,
.review-card:hover,
.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(15, 159, 110, 0.1);
  font-size: 1.35rem;
}

.service-card h3,
.why-card h3,
.review-card strong,
.process-step h3 {
  color: var(--navy);
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.service-card p,
.why-card p,
.review-card p,
.process-step p {
  color: var(--muted);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--navy);
  min-height: 340px;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 24, 39, 0.86), transparent 58%);
}

.project-card div {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: var(--white);
}

.project-card h3 {
  font-size: 1.25rem;
}

.project-card p {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.process-step span {
  display: inline-flex;
  color: var(--emerald);
  font-size: 2.2rem;
  font-weight: 950;
  margin-bottom: 16px;
}

.why {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
}

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

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

.stars {
  color: #f3b523;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-size: 1.08rem;
}

.review-card p {
  margin-bottom: 18px;
}

.quote-section {
  background:
    linear-gradient(rgba(7, 24, 39, 0.88), rgba(7, 24, 39, 0.88)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1500&q=80") center/cover;
}

.quote-copy h2,
.quote-copy p,
.quote-copy li {
  color: var(--white);
}

.quote-copy ul {
  list-style: none;
  margin-top: 26px;
}

.quote-copy li {
  margin-bottom: 12px;
  font-weight: 800;
}

.quote-form {
  background: var(--white);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row.full,
.consent,
.form-submit,
.success-message {
  grid-column: 1 / -1;
}

label {
  color: var(--navy);
  font-weight: 800;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--gray-2);
  border-radius: 15px;
  background: #fbfdfc;
  color: var(--navy);
  padding: 14px 15px;
  outline: none;
  transition: 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.12);
}

textarea {
  resize: vertical;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.94rem;
}

.consent input {
  width: auto;
  margin-top: 5px;
}

.form-submit {
  width: 100%;
  border: none;
}

.success-message {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 159, 110, 0.1);
  color: var(--emerald-dark);
  font-weight: 800;
}

.success-message.show {
  display: block;
}

.final-cta {
  text-align: center;
  background: var(--gray);
}

.final-cta .container {
  max-width: 820px;
}

.final-cta .hero-actions {
  justify-content: center;
}

.site-footer {
  background: #F3F4F6;
  color: #4b5563;
  padding: 64px 0 92px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
}

.site-footer h3,
.site-footer h4 {
  color: var(--navy);
  margin: 18px 0 12px;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
}

.site-footer a:hover {
  color: var(--emerald);
}

.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(7, 24, 39, 0.10);
  text-align: center;
}

.mobile-cta {
  display: none;
}

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

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    height: 460px;
  }

  .cards-grid,
  .reviews-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qualification-grid,
  .project-gallery,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 820px) {
  .main-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 92px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--gray-2);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 13px;
    border-radius: 12px;
  }

  .main-nav a:hover {
    background: var(--gray);
  }

  .menu-toggle {
    display: block;
  }

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

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

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

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-card {
    left: 16px;
    bottom: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 72px;
  }

  .brand img,
  .footer-logo {
    width: 140px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-actions,
  .trust-points {
    grid-template-columns: 1fr;
  }

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

  .trust-points {
    display: grid;
  }

  .hero-image img {
    height: 360px;
    border-radius: 24px;
  }

  .hero-card {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .qualification-grid,
  .cards-grid,
  .project-gallery,
  .process-grid,
  .why-grid,
  .reviews-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quote-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .site-footer {
    padding-bottom: 110px;
  }

  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border-radius: 18px;
    background: var(--navy);
    box-shadow: 0 18px 50px rgba(7, 24, 39, 0.28);
  }

  .mobile-cta a {
    padding: 14px 8px;
    text-align: center;
    color: var(--white);
    font-weight: 900;
    font-size: 0.9rem;
  }

  .mobile-cta a:nth-child(2) {
    background: var(--emerald);
  }
}


.service-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 159, 110, 0.22);
  background: rgba(15, 159, 110, 0.08);
  color: var(--emerald-dark);
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.service-more-btn:hover {
  transform: translateY(-2px);
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(15, 159, 110, 0.18);
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.service-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 39, 0.68);
  backdrop-filter: blur(8px);
}

.service-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 28px 80px rgba(7, 24, 39, 0.3);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.25s ease;
}

.service-modal.open .service-modal-dialog {
  transform: translateY(0) scale(1);
}

.service-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-2);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.25s ease;
}

.service-modal-close:hover {
  background: var(--navy);
  color: var(--white);
}

.service-modal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(15, 159, 110, 0.1);
  font-size: 1.8rem;
}

.service-modal-dialog h3 {
  color: var(--navy);
  font-size: 1.85rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.service-modal-dialog p {
  color: var(--muted);
  margin-bottom: 18px;
}

.service-modal-dialog ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin-bottom: 26px;
}

.service-modal-dialog li {
  position: relative;
  padding-left: 25px;
  color: var(--text);
  font-weight: 700;
}

.service-modal-dialog li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 950;
}

.service-modal-cta {
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .service-modal-dialog {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .service-modal-dialog h3 {
    font-size: 1.55rem;
  }
}


.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card p {
  flex: 1;
}

.service-more-btn {
  margin-top: auto;
  align-self: flex-start;
}


/* Header logo alignment fix */
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 55px;
  max-height: 55px;
}

.logo img,
.brand .logo img {
  display: block;
  width: auto;
  height: 50px;
  max-height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo span,
.brand .logo span {
  display: inline-block;
  color: var(--navy);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.main-nav,
.header-cta {
  align-self: center;
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 76px;
  }

  .logo {
    height: 48px;
    max-height: 48px;
    gap: 8px;
  }

  .logo img,
  .brand .logo img {
    height: 42px;
    max-height: 42px;
  }

  .logo span,
  .brand .logo span {
    font-size: 0.92rem;
  }
}


.success-message.error {
  background: rgba(185, 28, 28, 0.10);
  color: #b91c1c;
}
