/* =========================================================
   CASA HOUSE - REDESIGN PREMIUM
   HTML + CSS + JS puro
   Cor principal da marca: #d4a017
========================================================= */

:root {
  --gold: #d4a017;
  --gold-dark: #a97807;
  --dark: #0f1418;
  --dark-2: #151b20;
  --text: #222;
  --muted: #6d747c;
  --light: #f7f5f0;
  --white: #ffffff;
  --line: rgba(212, 160, 23, 0.35);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.12);
  --soft-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --transition: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font-family: inherit;
}

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

.section {
  padding: 96px 0;
}

.center {
  text-align: center;
  margin-top: 36px;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  background: linear-gradient(to bottom, rgba(0,0,0,0.62), rgba(0,0,0,0));
}

.site-header.scrolled {
  background: rgba(15, 20, 24, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 15px 45px rgba(0,0,0,0.18);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 14px;
  letter-spacing: -1px;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(212, 160, 23, 0.12);
  border-radius: 50%;
}

.brand-text {
  font-family: "Playfair Display", serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand-logo {
  width: clamp(138px, 15vw, 190px);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.28));
}

.footer-logo {
  width: 170px;
  filter: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.main-nav a {
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.main-nav a:hover {
  color: var(--white);
}

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

.header-cta {
  background: var(--gold);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(212, 160, 23, 0.28);
  transition: transform var(--transition), background var(--transition);
}

.header-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  margin: 5px auto;
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

.mobile-menu {
  position: fixed;
  top: 86px;
  right: 20px;
  width: min(340px, calc(100% - 40px));
  z-index: 49;
  background: rgba(15, 20, 24, 0.97);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(-18px) scale(0.98);
  pointer-events: none;
  transition: all var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-menu a {
  color: var(--white);
  padding: 15px;
  border-radius: 14px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover {
  background: rgba(255,255,255,0.07);
  color: var(--gold);
}

.mobile-cta {
  background: var(--gold);
  text-align: center;
  margin-top: 10px;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

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

.hero-slide {
  opacity: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 75% 35%, rgba(212,160,23,0.16), transparent 28%),
    linear-gradient(90deg, rgba(5, 9, 12, 0.93) 0%, rgba(5, 9, 12, 0.66) 38%, rgba(5, 9, 12, 0.18) 72%, rgba(5, 9, 12, 0.35) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.34), rgba(0,0,0,0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  max-width: 770px;
  letter-spacing: -2px;
  font-weight: 600;
  text-shadow: 0 12px 42px rgba(0,0,0,0.45);
}

.hero h1 span {
  color: var(--gold);
}

.hero-description {
  max-width: 540px;
  margin-top: 26px;
  color: rgba(255,255,255,0.86);
  line-height: 1.8;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.btn {
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border var(--transition);
}

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

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(212, 160, 23, 0.25);
}

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

.btn-outline {
  border: 1px solid rgba(255,255,255,0.45);
  color: var(--white);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 54px;
}

.hero-stats div {
  min-width: 150px;
  padding: 18px 22px;
  border-left: 2px solid var(--gold);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border-radius: 16px;
}

.hero-stats strong {
  font-size: 32px;
  display: block;
  color: var(--white);
}

.hero-stats small {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  right: 48px;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: transparent;
  cursor: pointer;
  transition: width var(--transition), background var(--transition), border var(--transition);
}

.hero-dots button.active {
  width: 36px;
  background: var(--gold);
  border-color: var(--gold);
}

/* =========================================================
   TITLES
========================================================= */

.section-heading {
  text-align: center;
  margin-bottom: 52px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.section-heading p,
.section-kicker {
  color: var(--gold-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.section-heading h2,
.about-content h2,
.contact-copy h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 600;
  color: var(--dark);
}

.line {
  display: block;
  width: 70px;
  height: 2px;
  background: var(--gold);
}

/* =========================================================
   SERVIÇOS
========================================================= */

.services {
  background: linear-gradient(180deg, #fff, #fbfaf7);
}

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

.service-card {
  background: var(--white);
  border: 1px solid rgba(15,20,24,0.06);
  border-radius: var(--radius);
  padding: 30px 18px;
  text-align: center;
  box-shadow: var(--soft-shadow);
  min-height: 230px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto 24px 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: rgba(212,160,23,0.28);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212,160,23,0.11);
  color: var(--gold);
  font-size: 30px;
}

.service-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   SOBRE
========================================================= */

.about {
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.floating-card {
  position: absolute;
  right: -26px;
  bottom: 40px;
  background: var(--white);
  border-radius: 20px;
  padding: 22px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.floating-card strong {
  display: block;
  font-size: 28px;
  color: var(--dark);
}

.floating-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.about-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 18px;
  font-size: 16px;
}

.about-points {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-points div {
  background: var(--white);
  padding: 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.about-points span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212,160,23,0.12);
  color: var(--gold-dark);
  font-weight: 900;
}

.about-points strong {
  color: var(--dark);
  font-size: 14px;
}

/* =========================================================
   PORTFÓLIO / ANTES E DEPOIS
========================================================= */

.portfolio {
  background: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(15,20,24,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.before-after {
  position: relative;
  height: 310px;
  overflow: hidden;
  --position: 50%;
  cursor: ew-resize;
  background: #ddd;
  user-select: none;
}

.before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-img {
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.before-after::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--position);
  width: 2px;
  height: 100%;
  background: var(--white);
  z-index: 3;
  transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.ba-handle {
  position: absolute;
  z-index: 4;
  left: var(--position);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--gold);
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
  cursor: ew-resize;
}

.ba-handle span::before,
.ba-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid white;
  border-left: 2px solid white;
}

.ba-handle span::before {
  left: 13px;
  transform: translateY(-50%) rotate(-45deg);
}

.ba-handle span::after {
  right: 13px;
  transform: translateY(-50%) rotate(135deg);
}

.ba-label {
  position: absolute;
  z-index: 5;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.before-label {
  left: 16px;
  background: rgba(0,0,0,0.68);
}

.after-label {
  right: 16px;
  background: var(--gold);
}

.project-info {
  padding: 22px;
  text-align: center;
}

.project-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 6px;
}

.project-info p {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   DIFERENCIAIS
========================================================= */

.differentials {
  background:
    radial-gradient(circle at 20% 20%, rgba(212,160,23,0.13), transparent 30%),
    linear-gradient(135deg, #0e1317, #171d23);
  color: var(--white);
  padding: 72px 0;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 28px;
  overflow: hidden;
}

.diff-card {
  background: rgba(15,20,24,0.78);
  padding: 38px 30px;
  min-height: 250px;
}

.diff-card span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(212,160,23,0.13);
  margin-bottom: 22px;
  font-size: 28px;
}

.diff-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.diff-card p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-size: 14px;
}

/* =========================================================
   CONTATO
========================================================= */

.contact {
  background: var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.contact-copy p {
  color: var(--muted);
  line-height: 1.8;
  margin: 20px 0 28px;
  max-width: 540px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--white);
  padding: 24px;
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(15,20,24,0.06);
  transition: transform var(--transition), border var(--transition);
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,160,23,0.28);
}

.contact-card span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(212,160,23,0.12);
  color: var(--gold-dark);
  font-size: 21px;
  flex: 0 0 auto;
}

.contact-card strong {
  color: var(--dark);
  display: block;
  margin-bottom: 5px;
}

.contact-card p {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  background: #0d1115;
  color: var(--white);
  padding: 58px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1fr 0.7fr;
  gap: 50px;
}

.footer-brand {
  margin-bottom: 18px;
}

.site-footer p,
.site-footer a {
  color: rgba(255,255,255,0.66);
  line-height: 1.8;
  font-size: 14px;
}

.site-footer h4 {
  margin-bottom: 16px;
  color: var(--white);
}

.site-footer a {
  display: block;
  margin-bottom: 9px;
  transition: color var(--transition);
}

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

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212,160,23,0.55);
  border-radius: 50%;
  color: var(--gold);
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

.social a:hover {
  background: var(--gold);
  color: #0d1115;
  border-color: var(--gold);
  transform: translateY(-2px);
}

.social svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  margin-top: 42px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.to-top {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: var(--gold);
  color: var(--white);
  cursor: pointer;
  font-size: 20px;
  transition: transform var(--transition), background var(--transition);
}

.to-top:hover {
  transform: translateY(-4px);
  background: var(--gold-dark);
}

/* =========================================================
   ANIMAÇÕES
========================================================= */

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

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

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1100px) {
  .services-grid,
  .portfolio-grid,
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 76px 0;
  }

  .hero {
    min-height: 860px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5,9,12,0.94), rgba(5,9,12,0.55)),
      linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-image img {
    height: 420px;
  }

  .floating-card {
    right: 18px;
    bottom: 18px;
  }

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

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

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

  .mobile-menu {
    top: 76px;
    right: 14px;
    width: calc(100% - 28px);
  }

  .brand-text {
    font-size: 21px;
  }

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

  .hero {
    min-height: 820px;
  }

  .hero-content {
    padding-top: 90px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 58px);
    letter-spacing: -1px;
  }

  .hero-description {
    font-size: 15px;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-stats div {
    width: 100%;
  }

  .hero-dots {
    left: auto;
    right: 92px;
    transform: none;
    bottom: 92px;
  }

  .services-grid,
  .portfolio-grid,
  .diff-grid,
  .contact-cards,
  .about-points,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .before-after {
    height: 280px;
  }

  .diff-grid {
    border-radius: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


@media (max-width: 640px) {
  .brand-logo {
    width: 132px;
  }

  .footer-logo {
    width: 150px;
  }
}

/* =========================================================
   AJUSTES - LOGO E TEXTO DO SLIDE
   Corrige sobreposição do logo no header e reduz o texto do hero.
========================================================= */

.brand {
  flex: 0 0 auto;
  min-width: 0;
  overflow: visible;
}

.brand-logo {
  width: auto;
  height: clamp(78px, 9vw, 110px);
  max-width: 270px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-inner {
  gap: 18px;
}

.main-nav {
  gap: clamp(16px, 2vw, 28px);
}

.main-nav a {
  font-size: 13px;
}

.header-cta {
  padding: 12px 16px;
  font-size: 12px;
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(38px, 5.8vw, 72px);
  max-width: 690px;
  line-height: 1.02;
}

.hero-description {
  max-width: 500px;
  font-size: 15.5px;
  line-height: 1.72;
  margin-top: 20px;
}

.eyebrow {
  font-size: 11px;
  margin-bottom: 16px;
}

.hero-actions {
  margin-top: 28px;
}

.hero-stats {
  margin-top: 38px;
}

.hero-stats div {
  min-width: 138px;
  padding: 15px 18px;
}

.hero-stats strong {
  font-size: 27px;
}

@media (max-width: 1180px) {
  .brand-logo {
    height: 84px;
    max-width: 210px;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: auto;
    height: 72px;
    max-width: 165px;
  }

  .hero-content {
    padding-top: 78px;
  }

  .hero h1 {
    font-size: clamp(32px, 10.5vw, 46px);
    max-width: 100%;
    line-height: 1.06;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.65;
    margin-top: 16px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-stats {
    margin-top: 28px;
    gap: 12px;
  }

  .hero-stats div {
    padding: 13px 16px;
  }

  .hero-stats strong {
    font-size: 24px;
  }
}

/* =========================================================
   AJUSTES - LOGO COM RESPIRO E BOTÃO LOGIN
========================================================= */
.site-header .header-inner {
  padding-top: 14px;
}

.brand-logo {
  margin-top: 6px;
}

.login-cta,
.login-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.login-mobile .login-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .site-header .header-inner {
    padding-top: 18px;
  }

  .brand-logo {
    margin-top: 8px;
  }
}


/* =========================================================
   AJUSTES IMPORTADOS DO NOVO MODELO - SERVIÇOS, SOBRE E CONTATO
========================================================= */

.services-model {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  background: transparent;
  padding-left: 40px;
  padding-right: 40px;
}

.services-model h2,
.about-text h2,
.about-text h3,
.contact-chat h2 {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 600;
  color: var(--dark);
}

.services-model .services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  background: transparent;
}

.services-model .card {
  background: #f5f5f5;
  padding: 25px;
  width: 280px;
  border-radius: 10px;
  transition: 0.3s;
  text-align: center;
  box-shadow: none;
  border: none;
}

.services-model .card i {
  font-size: 40px;
  margin-bottom: 15px;
  color: #fbaf30;
}

.services-model .card h3 {
  color: #1f2428;
  font-size: 20px;
  margin-bottom: 10px;
}

.services-model .card p {
  margin-top: 15px;
  line-height: 1.6;
  color: #555;
  font-size: 15px;
}

.services-model .card:hover {
  background: #fbaf30;
  color: white;
  transform: translateY(-6px);
}

.services-model .card:hover i,
.services-model .card:hover h3,
.services-model .card:hover p {
  color: white;
}

.about-text {
  max-width: 1100px;
  margin: auto;
  text-align: justify;
  padding-left: 40px;
  padding-right: 40px;
}

.about-text h2,
.about-text h3 {
  text-align: center;
}

.about-text p {
  margin-top: 15px;
  line-height: 1.8;
  color: #4e565c;
  font-size: 17px;
}

.contact-chat {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  background: transparent;
  padding-left: 40px;
  padding-right: 40px;
}

.chat-form {
  max-width: 600px;
  margin: 40px auto;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  background: white;
}

.chat-box {
  padding: 20px;
  height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafafa;
}

.bot, .user {
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 80%;
  font-size: 14px;
}

.bot {
  background: #eee;
  align-self: flex-start;
}

.user {
  background: #fbaf30;
  color: white;
  align-self: flex-end;
}

.chat-input {
  display: flex;
  align-items: center;
  border-top: 1px solid #eee;
}

.chat-input input {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
  height: 48px;
  font-family: inherit;
}

.btn-send,
.btn-clear {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex: 0 0 48px;
}

.btn-send {
  background: #fbaf30;
  color: white;
}

.btn-clear {
  background: #111;
  color: white;
}

@media (max-width: 768px) {
  .services-model,
  .about-text,
  .contact-chat {
    padding-left: 20px;
    padding-right: 20px;
  }

  .services-model .card {
    width: 100%;
  }

  .about-text {
    text-align: left;
  }
}

/* =========================================================
   AJUSTE - ÂNCORAS DO MENU COM HEADER FIXO
   Evita que o título da seção fique escondido atrás do topo.
========================================================= */
section[id],
#topo {
  scroll-margin-top: 82px;
}

@media (max-width: 1100px) {
  section[id],
  #topo {
    scroll-margin-top: 64px;
  }
}

@media (max-width: 640px) {
  section[id],
  #topo {
    scroll-margin-top: 42px;
  }
}

/* Evita duplicidade do Login no menu mobile: o botão Login já fica fixo no header. */
.mobile-menu .login-mobile {
  display: none !important;
}


/* =========================================================
   AJUSTE MENU MOBILE: abre do meio horizontal para a direita
   Fica alinhado do centro da tela até a borda direita
========================================================= */
@media (max-width: 640px) {
  .mobile-menu {
    top: 96px;
    left: 50%;
    right: 12px;
    bottom: auto;
    width: auto;
    max-width: none;
    min-height: auto;
    padding: 18px 12px;
    border-radius: 22px 0 0 22px;
    border-right: 0;
    align-content: start;
    gap: 8px;
    transform: translateX(115%);
    transform-origin: right top;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .mobile-menu a {
    padding: 16px 14px;
    text-align: left;
    font-size: 16px;
    white-space: nowrap;
  }
}

/* =========================================================
   AJUSTE - LOGO CENTRALIZADO VERTICALMENTE NO HEADER
   Deixa o respiro superior e inferior equilibrados.
========================================================= */
.site-header .header-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

.brand-logo {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 640px) {
  .site-header .header-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 96px;
  }

  .brand-logo {
    height: 72px;
  }

  .mobile-menu {
    top: 104px;
  }
}


/* Botão flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  filter: brightness(1.05);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 31px;
    height: 31px;
  }
}
