/* ============================================================
   RC TAPEÇARIA — Design tokens
   Estilo: clássico e elegante — tons de couro, madeira e linho.
   Assinatura: "costura de tachas" (linha de rebites de latão),
   referência direta ao capitonê/tachas usados em estofados.
   ============================================================ */

:root {
  /* Cor — paleta */
  --bg: #d3ccde;            /* azul escuro */
  --bg-alt: #e6dff1;        /* linho mais escuro, seções alternadas */
 --leather-dark: #282E4C;  /* couro escuro — header, hero, footer */
 --leather: #093dd9;       /* couro conhaque — destaque primário */
  --walnut: #161e48;        /* nogueira — texto principal */
 --brass: #f3f1f5;         /* latão — tachas, linhas, hover */
 --brass-light: #a3a8c0;   /* latão claro — sobre fundo escuro */
 --cream: #f8f9fb;         /* texto claro sobre fundo escuro */
  --line: rgba(13, 67, 73, 0.18);
 
 /* --bg: #F2E8D8;            /* linho cru */
 /*--bg-alt: #E8DAC2;        /* linho mais escuro, seções alternadas */
 /* --leather-dark: #43271A;  /* couro escuro — header, hero, footer */
 /* --leather: #8A4B2A;       /* couro conhaque — destaque primário */
  /*--walnut: #2B1B12;        /* nogueira — texto principal */
 /* --brass: #B68A4E;         /* latão — tachas, linhas, hover */
 /* --brass-light: #D8B97C;   /* latão claro — sobre fundo escuro */
 /* --cream: #F7F1E6;         /* texto claro sobre fundo escuro */
  /*--line: rgba(43, 27, 18, 0.14);

  /* Tipografia */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1140px;
  --radius-s: 4px;
  --radius-m: 8px;
  --shadow-card: 0 8px 24px -12px rgba(43, 27, 18, 0.35);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--walnut);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--walnut);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--leather);
}
.eyebrow.on-dark { color: var(--brass-light); }

.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ============================================================
   Assinatura visual: divisor de tachas (rebites de latão)
   Reaproveitado entre seções e no rodapé.
   ============================================================ */
.stud-divider {
  position: relative;
  height: 22px;
  margin: 0;
}
.stud-divider::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--leather);
  opacity: 0.25;
}
.stud-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--brass) 0 3.2px, transparent 3.6px);
  background-size: 34px 100%;
  background-position: center;
  opacity: 0.9;
}
.stud-divider.on-dark::before { background: var(--brass-light); opacity: 0.3; }

/* ============================================================
   Botões
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--leather);
  color: var(--cream);
  border-color: var(--leather);
}
.btn-primary:hover { background: #9C5830; }

.btn-outline {
  background: transparent;
  color: var(--leather-dark);
  border-color: var(--leather-dark);
}
.btn-outline:hover { background: var(--leather-dark); color: var(--cream); }

.btn-outline.on-dark {
  color: var(--cream);
  border-color: var(--brass-light);
}
.btn-outline.on-dark:hover { background: var(--brass-light); color: var(--leather-dark); }

.btn-whatsapp {
  background: var(--brass);
  color: var(--leather-dark);
  border-color: var(--brass);
}
.btn-whatsapp:hover { background: var(--brass-light); }

.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   Cabeçalho / navegação
   ============================================================ */
.site-header {
  background: var(--leather-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--leather);
  border: 2px solid var(--brass);
  color: var(--brass-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  background-image: url(LOGO_OFICIAL.png);
  background-size: cover;      /* Faz a imagem cobrir todo o espaço */
  background-position: center; /* Centraliza a imagem */
  background-repeat: no-repeat; /* Evita que a imagem se repita */

}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.50rem;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.logo-text strong { color: var(--brass-light); font-weight: 700; }

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
.main-nav a {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { color: var(--brass-light); }
.main-nav a[aria-current="page"] {
  border-color: var(--brass);
  color: var(--brass-light);
}

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-phone {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.92rem;
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 880px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--leather-dark);
    border-top: 1px solid rgba(216, 185, 124, 0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 18px; }
  .main-nav li { border-bottom: 1px solid rgba(247, 241, 230, 0.08); }
  .main-nav a { display: block; padding: 14px 4px; }
  .nav-toggle { display: flex; }
  .header-whatsapp { display: none; }
}
@media (min-width: 881px) {
  .header-phone { display: inline; }
}

/* ============================================================
   Hero (página inicial)
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--leather-dark);
  background-image:
    repeating-linear-gradient(45deg, rgba(216, 185, 124, 0.07) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(-45deg, rgba(216, 185, 124, 0.07) 0 1px, transparent 1px 42px);
  color: var(--cream);
  padding: 100px 0 96px;
  overflow: hidden;
}
.hero-inner { max-width: 680px; }
.hero h1 { color: var(--cream); margin-top: 14px; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--brass-light);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Cabeçalho simples de subpáginas */
.page-header {
  background-color: var(--leather-dark);
  background-image:
    repeating-linear-gradient(45deg, rgba(216, 185, 124, 0.07) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(-45deg, rgba(216, 185, 124, 0.07) 0 1px, transparent 1px 42px);
  color: var(--cream);
  padding: 64px 0 58px;
}
.page-header h1 { color: var(--cream); margin-top: 10px; }
.page-header .lead { color: var(--brass-light); max-width: 560px; font-size: 1.05rem; margin: 0; }

/* ============================================================
   Grids & cartões
   ============================================================ */
.grid {
  display: grid;
  gap: 28px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px 26px;
  position: relative;
}
.section.alt .card { background: var(--cream); }
.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--leather-dark);
  color: var(--brass-light);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--walnut); opacity: 0.85; font-size: 0.97rem; }

/* Diferenciais — lista com tacha como marcador */
.stud-list { list-style: none; display: grid; gap: 18px; }
.stud-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.02rem;
}
.stud-list .stud {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brass);
  margin-top: 6px;
  box-shadow: 0 0 0 3px rgba(182, 138, 78, 0.18);
}

/* Processo numerado (sequência real: avaliação > orçamento > execução > entrega) */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
@media (max-width: 880px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.process-step { position: relative; padding-left: 4px; }
.process-step .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--brass);
  display: block;
  margin-bottom: 6px;
}
.process-step h3 { margin-bottom: 6px; }
.process-step p { font-size: 0.95rem; opacity: 0.85; margin: 0; }

/* Tags de materiais (página de serviços) */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  border: 1.5px solid var(--leather);
  color: var(--leather-dark);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA band */
.cta-band {
  background: var(--leather-dark);
  color: var(--cream);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: var(--brass-light); max-width: 480px; margin: 0 auto 28px; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   Contato
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 34px;
}
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--leather-dark);
  color: var(--brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-row .icon svg { width: 20px; height: 20px; }
.contact-row strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--leather); margin-bottom: 4px; }
.contact-row a { font-weight: 600; }
.contact-row a:hover { color: var(--leather); }

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ============================================================
   Galeria (espaço reservado para fotos antes/depois)
   ============================================================ */
.gallery-placeholder {
  border: 1.5px dashed var(--leather);
  border-radius: var(--radius-m);
  background: var(--cream);
  padding: 40px 24px;
  text-align: center;
  color: var(--leather-dark);
}
.gallery-placeholder svg { width: 40px; height: 40px; color: var(--leather); margin: 0 auto 14px; }
.gallery-placeholder p { margin: 0; font-size: 0.95rem; opacity: 0.8; }

/* ============================================================
   Rodapé
   ============================================================ */
.site-footer { background: var(--leather-dark); color: var(--cream); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 36px;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-inner h4 {
  color: var(--brass-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand .logo-text { font-size: 1.15rem; }
.footer-brand p { color: rgba(247, 241, 230, 0.75); font-size: 0.92rem; margin-top: 14px; max-width: 280px; }
.footer-contact p, .footer-contact a { display: block; color: rgba(247, 241, 230, 0.85); font-size: 0.92rem; margin-bottom: 10px; }
.footer-contact a:hover { color: var(--brass-light); }
.footer-nav ul { list-style: none; display: grid; gap: 10px; }
.footer-nav a { color: rgba(247, 241, 230, 0.85); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--brass-light); }
.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(247, 241, 230, 0.55);
  padding: 18px 24px 26px;
  margin: 0;
}
