:root {
  --color-bg: #f8f4ed;
  --color-bg-alt: #f0ebe2;
  --color-surface: #ffffff;
  --color-accent: #8b6f47;
  --color-accent-light: #b38b5e;
  --color-accent-gold: #c5a46e;
  --color-text: #2b2b2b;
  --color-muted: #6b6560;
  --color-border: rgba(139, 111, 71, 0.18);
  --color-whatsapp: #25d366;
  --shadow-sm: 0 2px 16px rgba(43, 43, 43, 0.06);
  --shadow-md: 0 12px 40px rgba(43, 43, 43, 0.1);
  --radius: 6px;
  --radius-lg: 12px;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --max-width: 1120px;
  --header-h: 72px;
  --section-y: clamp(2.75rem, 8vw, 6rem);
  --transition: 0.25s ease;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --img-scale: 0.7;
  --img-max: 420px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

strong {
  color: var(--color-accent);
  font-weight: 600;
}

.container {
  width: min(calc(100% - var(--container-pad) * 2), var(--max-width));
  margin-inline: auto;
}

.divider {
  width: 64px;
  height: 2px;
  background: var(--color-accent);
  margin-block: 1.25rem;
}

.divider--center {
  margin-inline: auto;
}

/* Padrão de fundo Ref11 — preenchimento gradual */
.geo-motif {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: min(42vw, 420px);
  height: 100%;
  top: 0;
  background: url("../img/pattern-jap.svg") left 2rem top 3rem / 138px auto repeat;
  opacity: 0.55;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    transparent 72%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    transparent 72%
  );
}

.geo-motif--tl {
  left: 0;
}

.geo-motif--br {
  display: none;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(248, 244, 237, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.15;
}

.logo-text em {
  font-style: normal;
  color: var(--color-accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font-size: 1.2rem;
  color: var(--color-accent);
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  transition: color var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--color-accent);
}

.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--color-accent-light) !important;
  color: #fff !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background: rgba(139, 111, 71, 0.08);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: var(--section-y);
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Tipografia Instagram */
.eyebrow {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  color: var(--color-accent);
}

.brand-title--sm .brand-line--lg {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.brand-line {
  display: block;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.brand-line--lg {
  font-size: clamp(2.6rem, 6vw, 4rem);
}

.headline {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

.headline--sm {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.headline em,
.vistoria-card-body h3 em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 700;
}

.lead {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  max-width: 40ch;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.75rem;
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-visual,
.sobre-visual,
.vistoria-highlight-visual,
.cta-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img,
.sobre-visual img,
.vistoria-highlight-visual img,
.cta-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: min(100%, calc(var(--img-max) * var(--img-scale)));
  max-height: min(70vh, 640px);
  margin-inline: auto;
  object-fit: cover;
  object-position: center top;
}

/* Sections */
.section {
  padding-block: var(--section-y);
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-header p,
.cta-content .lead {
  color: var(--color-text);
  font-size: 0.98rem;
}

/* Sobre */
.sobre {
  background: var(--color-surface);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 3.5rem;
}

.sobre-role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.sobre-content p {
  color: var(--color-text);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.stat-card--wide {
  grid-column: span 1;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.stat-label--title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

/* Serviços */
.servicos {
  background: var(--color-bg-alt);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.servico-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.servico-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.servico-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.servico-icon svg {
  width: 24px;
  height: 24px;
}

.servico-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

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

/* Vistoria */
.vistoria-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.highlight-gold {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--color-accent) !important;
  margin-bottom: 0.65rem !important;
}

.vistoria-highlight-text p {
  color: var(--color-muted);
}

.vistoria-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.vistoria-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.vistoria-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.vistoria-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vistoria-card-icon svg {
  width: 24px;
  height: 24px;
}

.vistoria-card-body {
  flex: 1;
}

.vistoria-card-body h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.vistoria-card-body p {
  font-size: 0.92rem;
  color: var(--color-muted);
}

.checklist {
  display: grid;
  gap: 0.4rem;
}

.checklist li {
  font-size: 0.9rem;
  color: var(--color-muted);
  padding-left: 1.5rem;
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent-gold);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 10px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 10px no-repeat;
  background-color: var(--color-accent);
}

/* CTA */
.cta {
  background: var(--color-surface);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cta-brand {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-top: 0.5rem;
}

.cta-brand span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.1;
  margin-top: 0.15rem;
}

.cta-gold {
  font-weight: 600;
  color: var(--color-accent) !important;
  font-size: 1rem;
}

.cta-content p {
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cta-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.cta-link:hover {
  color: var(--color-accent);
}

.cta-link svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.cta-link--static {
  cursor: default;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 1.75rem 0;
  background: var(--color-bg);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-muted);
  transition: color var(--transition);
}

.footer-social-link:hover {
  color: var(--color-accent);
}

.footer-social-link svg {
  width: 22px;
  height: 22px;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

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

/* Responsive — tablet */
@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
    --img-scale: 0.82;
    --img-max: 380px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(248, 244, 237, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem var(--container-pad) 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    font-size: 1rem;
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.85rem 1.1rem !important;
  }

  .hero-grid,
  .sobre-grid,
  .cta-grid,
  .vistoria-highlight {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .hero-content,
  .sobre-content,
  .cta-content,
  .vistoria-highlight-text {
    text-align: center;
  }

  .hero-content .divider,
  .sobre-content .divider,
  .cta-content .divider {
    margin-inline: auto;
  }

  .lead {
    max-width: none;
    margin-inline: auto;
  }

  .hero-meta {
    align-items: center;
  }

  .hero-meta span {
    justify-content: center;
    text-align: left;
    max-width: 28rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card--wide {
    grid-column: span 2;
  }

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

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

/* Responsive — mobile */
@media (max-width: 640px) {
  :root {
    --header-h: 60px;
    --section-y: clamp(2.25rem, 7vw, 3.5rem);
    --img-scale: 1;
    --img-max: 300px;
  }

  body {
    font-size: 1rem;
  }

  .geo-motif {
    display: none;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .hero {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .brand-line {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .brand-line--lg {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
  }

  .headline {
    font-size: clamp(1.25rem, 5.5vw, 1.6rem);
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .stats-grid,
  .vistoria-cards,
  .servicos-grid {
    grid-template-columns: 1fr;
  }

  .stat-card--wide {
    grid-column: span 1;
    flex-direction: column;
  }

  .stat-card,
  .servico-card,
  .vistoria-card {
    padding: 1.5rem 1.25rem;
  }

  .vistoria-highlight {
    padding: 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    width: 52px;
    height: 52px;
  }

  .btn-lg {
    width: 100%;
  }

  .cta-contacts {
    align-items: center;
  }

  .cta-link {
    justify-content: center;
    width: 100%;
  }
}

/* Responsive — desktop amplo */
@media (min-width: 1025px) {
  .hero-grid,
  .sobre-grid,
  .cta-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}