/* ============================================
   FORTEZZA ENGENHARIA — Matching Original Site Layout
   Brand: Gold #D2B689, Blue-gray #8CA4B1, Cream #EFE6D3
   Fonts: Cormorant Garamond + Raleway
   Mobile-first
   ============================================ */

:root {
  --color-gold: #D2B689;
  --color-gold-dark: #b99e6f;
  --color-gold-light: #e0c9a2;
  --color-blue-gray: #8CA4B1;
  --color-blue-gray-dark: #749099;
  --color-cream: #EFE6D3;
  --color-offwhite: #F8F5F0;
  --color-grafite: #404040;
  --color-dark: #1A1A1A;
  --color-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #404040;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Raleway', 'Helvetica Neue', sans-serif;

  --fs-h1: clamp(2.8rem, 8vw, 5rem);
  --fs-h2: clamp(1.6rem, 4vw, 2.4rem);
  --fs-label: 0.85rem;
  --fs-body: 1rem;
  --fs-card: 0.92rem;

  --container-max: 1140px;
  --header-height: 70px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --radius: 8px;
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Section base ---------- */
.section { padding: 5rem 0; }
.section--white { background: var(--color-white); }
.section--cream { background: var(--color-cream); }

.section__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--color-blue-gray);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .section__label { text-align: left; }
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2.5rem;
  line-height: 1.25;
  text-align: center;
}
@media (min-width: 768px) {
  .section__title { text-align: left; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  min-width: 48px;
  justify-content: center;
}
.btn--gold {
  background: var(--color-gold);
  color: var(--color-dark);
  box-shadow: 0 4px 15px rgba(210, 182, 137, 0.3);
}
.btn--gold:hover {
  background: var(--color-gold-dark);
  box-shadow: 0 6px 25px rgba(210, 182, 137, 0.45);
  transform: translateY(-2px);
}
.btn--blue {
  background: var(--color-blue-gray);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(140, 164, 177, 0.3);
}
.btn--blue:hover {
  background: var(--color-blue-gray-dark);
  transform: translateY(-2px);
}
.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ============================================
   HEADER (matches original — dark on scroll)
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}
.header.scrolled {
  background: rgba(26, 26, 26, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.header__logo { display: flex; align-items: center; z-index: 1001; }
.logo-img { height: 40px; width: auto; }
@media (min-width: 768px) { .logo-img { height: 48px; } }

/* Nav mobile */
.nav {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--color-dark);
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  transition: right var(--transition);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.nav.open { right: 0; }
.nav__list { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.nav__link {
  font-family: var(--font-body);
  font-weight: 500; font-size: 1rem;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1rem;
  transition: color var(--transition);
  min-height: 48px; display: flex; align-items: center;
}
.nav__link:hover { color: var(--color-gold); }
.nav__link--cta {
  background: var(--color-gold);
  color: var(--color-dark) !important;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
}
.nav__link--cta:hover { background: var(--color-gold-dark); }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  z-index: 1001; padding: 10px;
  min-height: 48px; min-width: 48px;
  align-items: center; justify-content: center;
}
.hamburger__line {
  display: block; width: 26px; height: 2.5px;
  background: var(--color-white); border-radius: 3px;
  transition: all var(--transition);
}
.hamburger.active .hamburger__line:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger__line:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

.nav-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 999;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.nav-overlay.show { opacity: 1; visibility: visible; }

@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav {
    position: static; width: auto; max-width: none;
    height: auto; background: transparent; box-shadow: none; display: flex;
  }
  .nav__list { flex-direction: row; gap: 0.25rem; }
  .nav__link {
    font-size: 0.85rem; color: rgba(255,255,255,0.9);
    padding: 0.5rem 0.85rem; letter-spacing: 0.06em;
  }
  .nav__link:hover { color: var(--color-gold); }
  .header.scrolled .nav__link { color: rgba(255,255,255,0.85); }
  .nav__link--cta { color: var(--color-dark) !important; }
}

/* ============================================
   HERO (matches original — left-aligned title + cream bar)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--color-dark) url('img/hero-bg.webp') center/cover no-repeat;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: rgba(10, 12, 20, 0.72);
  z-index: 1;
}
.hero__main {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: flex-end;
  padding-bottom: 0;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero__main { justify-content: flex-start; }
}
.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  padding: 0 0 2rem;
  max-width: 800px;
  text-align: center;
}
@media (min-width: 768px) {
  .hero__title { text-align: left; }
}

/* Cream subtitle bar */
.hero__bar {
  position: relative;
  z-index: 2;
  background: var(--color-cream);
  padding: 2rem 0;
}
.hero__bar-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .hero__bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.65;
  max-width: 550px;
  font-weight: 500;
}

/* ============================================
   STATS BAR (Números de Autoridade)
   ============================================ */
.stats-bar {
  background: var(--color-white);
  padding: 2.5rem 0;
  border-bottom: 1px solid #eae5dc;
}
.stats-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-bar__inner {
    flex-direction: row;
    justify-content: space-around;
    gap: 1rem;
  }
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.stat-item__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}
.stat-item__text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  display: none;
}
@media (min-width: 768px) {
  .stat-divider {
    display: block;
    width: 1px;
    height: 60px;
    background: #eae5dc;
  }
}

/* ============================================
   SERVICES (horizontal cards — icon left, text right)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(210, 182, 137, 0.3);
}
@media (min-width: 768px) {
  .service-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 2.5rem 2rem;
  }
}

.service-card__icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  color: var(--color-gold);
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.service-card__text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   COMO FUNCIONA (O Processo)
   ============================================ */
.how-it-works {
  padding: 6rem 0;
}
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  margin-top: 3.5rem;
}
@media (min-width: 768px) {
  .steps-container {
    flex-direction: row;
    gap: 2rem;
  }
}
.step-line {
  display: none;
}
@media (min-width: 768px) {
  .step-line {
    display: block;
    position: absolute;
    top: 30px;
    left: 40px;
    right: 40px;
    height: 1px;
    background: #eae5dc;
    z-index: 1;
  }
  .step-line::after {
    content: '';
    position: absolute;
    top: -1px; left: 0; width: 30%; height: 3px;
    background: var(--color-gold);
    z-index: 2;
  }
}
.step {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 2.5rem 1.5rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}
.step__number {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  margin: 0;
  background: var(--color-white);
  border: 1px solid #eae5dc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.step__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.step__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   VANTAGENS (big title + 5-col grid, light overlay)
   ============================================ */
.vantagens {
  position: relative; padding: 5rem 0;
  background: var(--color-cream) url('img/vantagens-bg.webp') center/cover no-repeat;
  overflow: hidden;
}
.vantagens__overlay {
  position: absolute; inset: 0;
  background: rgba(200, 195, 185, 0.75);
  z-index: 1;
}
.vantagens__content { position: relative; z-index: 2; }

.vantagens__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 3.8rem);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  line-height: 1.05;
  margin-bottom: 3.5rem;
}

.vantagens-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 500px) {
  .vantagens-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (min-width: 768px) {
  .vantagens-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .vantagens-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

.vantagem-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.35); /* Transparência aumentada */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vantagem-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(210, 182, 137, 0.8);
}
.vantagem-item__icon {
  width: 40px; height: 40px;
  margin: 0 auto 0.75rem;
  color: var(--color-gold);
}
.vantagem-item__icon svg { width: 100%; height: 100%; }
.vantagem-item__title {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}
.vantagem-item__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   SOBRE (photo left, text right)
   ============================================ */
.about__inner {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; align-items: center;
}
@media (min-width: 768px) {
  .about__inner { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
}
.about__image { display: flex; justify-content: center; }
.about__photo {
  width: 100%; max-width: 420px;
  object-fit: cover;
}
@media (min-width: 768px) { .about__photo { max-width: 100%; } }
.about__description {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ============================================
   FAQ / ACCORDION
   ============================================ */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion__item {
  background: var(--color-white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid #eae5dc;
}
.accordion__header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.15rem 1.5rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600; font-size: 1.05rem;
  color: var(--color-text);
  text-align: left; gap: 1rem;
  min-height: 48px;
  transition: color var(--transition);
}
.accordion__header:hover { color: var(--color-gold-dark); }
.accordion__chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-gold);
}
.accordion__item.active .accordion__chevron { transform: rotate(180deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion__item.active .accordion__body { max-height: 300px; }
.accordion__body p {
  padding: 0 1.5rem 1.25rem;
  font-size: var(--fs-card);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   CONTATO (cream background)
   ============================================ */
.contact__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contact__text {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #5a7a8a; /* Mais escuro para contraste com texto branco (Acessibilidade) */
  padding: 2rem 0;
  position: relative;
}
.footer__inner { text-align: center; }
.footer__text { color: var(--color-white); font-size: 0.85rem; }

.back-to-top {
  position: fixed; bottom: 100px; right: 1.25rem;
  width: 40px; height: 40px;
  border-radius: 4px;
  background: var(--color-blue-gray);
  color: var(--color-white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 998;
  opacity: 0; transform: translateY(20px);
  visibility: hidden; transition: all var(--transition);
}
.back-to-top.show { opacity: 1; transform: translateY(0); visibility: visible; }
.back-to-top:hover { background: var(--color-blue-gray-dark); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.25rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 999;
  transition: all var(--transition);
  animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes pulse-wa {
  0% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 12px rgba(37,211,102,0.15); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 24px rgba(37,211,102,0); }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .whatsapp-float { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
