/* 2.1: Reset, custom properties e base tipográfica */
:root {
  /* Cores primárias da marca */
  --color-dark:       #1A1A1A;
  --color-dark-bg:    #111111;
  --color-cream:      #F2EDE8;
  --color-cream-dark: #E8E0D8;

  /* Textos */
  --text-primary:     #1A1A1A;
  --text-secondary:   #5A5A5A;
  --text-light:       #FFFFFF;

  /* Acento */
  --accent-star:      #C4622D;
  --accent-gold:      #C9A86C;

  /* Fundos */
  --bg-white:         #FFFFFF;
  --bg-cream:         #F2EDE8;
  --bg-dark:          #1A1A1A;

  /* Bordas */
  --border-subtle:    #E5DDD6;

  /* Sombras */
  --shadow-card:      0 2px 16px rgba(0,0,0,0.07);
  --shadow-hover:     0 6px 24px rgba(0,0,0,0.13);

  /* WhatsApp */
  --color-whatsapp:   #25D366;

  /* Espaçamento e Layout */
  --max-width:           1200px;
  --padding-x-mobile:    24px;
  --padding-x-tablet:    48px;
  --section-py-desktop:  100px;
  --section-py-mobile:   60px;
  --card-radius:         8px;
  --button-radius:       4px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* 2.2: Utilitários e componentes base */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--padding-x-mobile);
  padding-right: var(--padding-x-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--padding-x-tablet);
    padding-right: var(--padding-x-tablet);
  }
}

.btn-primary {
  display: inline-block;
  background: var(--accent-star);
  color: var(--text-light);
  padding: 14px 28px;
  border-radius: var(--button-radius);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary:hover {
  background: #b3531f;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--text-light);
  padding: 13px 27px;
  border-radius: var(--button-radius);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-outline:hover {
  background: var(--text-light);
  color: var(--color-dark);
}

.badge {
  display: inline-flex;
  background: rgba(196, 98, 45, 0.1);
  color: var(--accent-star);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

/* 2.4: Hero — Vídeo de fundo */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--color-dark);
  background-image: url('../assets/images/hero-section2.webp');
  background-size: cover;
  background-position: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.52) 50%,
    rgba(0, 0, 0, 0.70) 100%
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 40px 24px 64px;
  width: 100%;
  max-width: 760px;
}

.hero__logo-img {
  width: 90%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.85)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.hero__divider {
  width: 56px;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.9;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.3;
}

.hero__sub {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.65);
  border-bottom: 2px solid rgba(255, 255, 255, 0.65);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
  40% {transform: translateX(-50%) translateY(-10px);}
  60% {transform: translateX(-50%) translateY(-5px);}
}

@media (min-width: 768px) {
  .hero__inner {
    justify-content: center;
    gap: 32px;
    padding: 80px 24px;
  }

  .hero__logo-img {
    width: auto;
    height: 420px;
  }

  .hero__tagline {
    font-size: 44px;
  }

  .hero__sub {
    font-size: 18px;
    max-width: 580px;
  }

  .hero__actions {
    flex-direction: row;
  }
}

/* Common Section Styling */
.section-padding {
  padding: var(--section-py-mobile) 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: var(--section-py-desktop) 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent-gold);
  margin: 14px auto 0;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 48px;
  }
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bg-cream {
  background-color: var(--bg-cream);
}

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* 2.5: Estilizar seção Sobre Nós */
.sobre__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.sobre__text p {
  margin-bottom: 20px;
  text-align: justify;
}

.sobre__image-container {
  position: relative;
}

.sobre__img {
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card), 10px 10px 0 var(--accent-gold);
  width: 100%;
}

@media (min-width: 1024px) {
  .sobre__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
  }
}

/* 2.6: Estilizar grid de Serviços */
.servicos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .servicos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .servicos__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

.service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-card__photo {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__photo img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.service-card__body h3 {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.service-card__cta {
  display: block;
  width: 100%;
  background: var(--accent-star);
  color: white;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 6px;
  text-align: center;
  transition: background 0.2s ease;
}

.service-card__cta:hover {
  background: #b3531f;
  color: white;
}

.servicos__cta {
  text-align: center;
}

/* 2.7: Estilizar seção Diferenciais */
.diferenciais__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .diferenciais__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.diferencial-item {
  text-align: center;
}

.diferencial-item__icon {
  color: var(--accent-star);
  margin-bottom: 20px;
  width: 72px;
  height: 72px;
  background: rgba(196, 98, 45, 0.12);
  border: 1.5px solid rgba(196, 98, 45, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.diferencial-item h3 {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.diferencial-item p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* 2.8: Estilizar seção Como Funciona */
.steps {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 700;
  color: var(--border-subtle);
  line-height: 1;
  display: block;
  margin-bottom: -20px;
}

.step h3 {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.steps__cta {
  text-align: center;
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .steps::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: var(--border-subtle);
    z-index: 0;
  }
}

/* 2.9: Estilizar seção Depoimentos */
.depoimentos__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .depoimentos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.testimonial-card {
  background: white;
  padding: 40px;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-card__quote {
  font-family: Georgia, serif;
  font-size: 60px;
  color: var(--accent-star);
  line-height: 1;
  margin-bottom: -20px;
  display: block;
}

.testimonial-card__text {
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonial-card__author {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(196, 98, 45, 0.15);
  color: var(--accent-star);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.testimonial-card__stars {
  color: var(--accent-star);
  letter-spacing: 2px;
}

/* 2.10: Estilizar seção Contato */
.contato__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .contato__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
  }
}

.contato__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contato__item {
  display: flex;
  gap: 16px;
}

.contato__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(196, 98, 45, 0.10);
  border: 1.5px solid rgba(196, 98, 45, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-star);
  margin-top: 2px;
}

.contato__text strong {
  display: block;
  margin-bottom: 4px;
}

.contato__text a:hover {
  color: var(--accent-star);
}

.contato__cta {
  margin-top: 20px;
}

/* 2.11: Estilizar CTA Final e Footer */
.cta-final {
  text-align: center;
  background-image: radial-gradient(circle, rgba(201, 168, 108, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.cta-final h2 {
  font-size: 36px;
  margin-bottom: 24px;
}

.cta-final p {
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-light {
  display: inline-block;
  background: transparent;
  color: white;
  border: 1.5px solid white;
  padding: 14px 28px;
  border-radius: var(--button-radius);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-light:hover {
  background: white;
  color: var(--color-dark);
}

.cta-trust {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 24px;
}

.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-subtle);
}

.footer__grid {
  display: grid;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer__tagline {
  font-size: 14px;
  margin: 20px 0;
  color: var(--text-secondary);
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  color: var(--text-secondary);
}

.footer__socials a:hover {
  color: var(--accent-star);
}

.footer__title {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer__links li, .footer__info li {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer__links a:hover {
  color: var(--accent-star);
  padding-left: 5px;
}

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* 2.12: Estilizar botão WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 1000;
  width: 52px;
  height: 52px;
  background-color: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float__icon {
  width: 32px;
  height: 32px;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Placeholder for missing images */
.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-cream);
  display: none;
  border-radius: var(--card-radius);
}

img:not([src]), img[src=""] {
  display: none;
}

img:not([src]) + .image-placeholder, img[src=""] + .image-placeholder {
  display: block;
  min-height: 200px;
}

/* 2.13: Fade-in ao scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll offset para compensar header fixo */
section[id] {
  scroll-margin-top: 80px;
}

/* Placeholder de fundo para cards de serviço sem foto */
.service-card__photo {
  background-color: var(--bg-cream);
}


/* 2.3: Estilizar Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.header__container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__img {
  height: 52px;
  width: auto;
}

.logo__placeholder {
  display: none;
}

.nav {
  display: none; /* Mobile first: hidden */
}

.nav__list {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-star);
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

@media (min-width: 1024px) {
  .nav {
    display: block;
  }
  
  .header {
    height: 80px;
  }
}

.header__cta {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-white);
  padding: 28px 28px 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.nav-overlay.open .nav-mobile {
  transform: translateX(0);
}

.nav-mobile__close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px;
  margin-bottom: 32px;
}

.nav-mobile__list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-mobile__link {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: block;
  transition: color 0.2s, padding-left 0.2s;
}

.nav-mobile__link:hover {
  color: var(--accent-star);
  padding-left: 6px;
}

.nav-mobile .btn-primary {
  margin-top: 32px;
  text-align: center;
  width: 100%;
  display: block;
}

@media (min-width: 1024px) {
  .header__cta {
    display: inline-block;
  }

  .hamburger {
    display: none;
  }
}

@media (max-width: 640px) {
  .logo__placeholder {
    font-size: 18px;
  }
}
