/* ===== Afthonía — Reformas e Construções =====
   Paleta extraída da identidade visual: azul-marinho + dourado */

:root {
  --navy-950: #071527;
  --navy-900: #0a1a33;
  --navy-800: #132a52;
  --navy-700: #1c3a6e;
  --gold-300: #f4d675;
  --gold-500: #c9a227;
  --gold-700: #a87d1f;
  --cream: #e8d9a8;
  --white: #ffffff;
  --gray-100: #f4f6f9;
  --gray-500: #64748b;
  --gray-800: #1e2734;

  --font-heading: 'Arial Narrow', 'Oswald', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 8px 24px rgba(7, 21, 39, 0.15);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--navy-950);
  outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.section-navy :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-300);
}
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 56px 0; }
.section-alt { background: var(--gray-100); }
.section-navy { background: var(--navy-900); color: var(--white); }
.eyebrow {
  display: inline-block;
  color: var(--gold-500);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.lead { font-size: 1.05rem; color: var(--gray-500); }
.section-navy .lead { color: var(--cream); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-700));
  color: var(--navy-950);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  border-color: var(--gold-500);
  color: var(--gold-500);
}
.section-navy .btn-outline { color: var(--gold-300); border-color: var(--gold-300); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 2px solid var(--gold-500);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: 42px; }
.brand-text { font-family: var(--font-heading); color: var(--gold-300); font-weight: 800; font-size: 1.15rem; letter-spacing: 1px; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 400; letter-spacing: 0.5px; font-size: 0.6rem; color: var(--cream); }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 2px solid var(--gold-500);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold-300);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.main-nav {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--navy-900);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 24px 20px;
}
.main-nav.is-open { transform: translateX(0); }
.main-nav ul { display: flex; flex-direction: column; gap: 4px; }
.main-nav a {
  display: block;
  padding: 14px 6px;
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.main-nav a.is-active,
.main-nav a:hover { color: var(--gold-300); }
.main-nav .btn { margin-top: 16px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    inset: auto;
  }
  .main-nav ul { flex-direction: row; align-items: center; gap: 28px; }
  .main-nav a { border-bottom: none; padding: 6px 0; }
  .main-nav .btn { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 80% 0%, var(--navy-700), var(--navy-900) 60%);
  color: var(--white);
  padding: 64px 0 56px;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); color: var(--white); }
.hero h1 span { color: var(--gold-300); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 24px; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold-500);
}
.card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 { font-size: 1.05rem; color: var(--navy-900); }
.card p { color: var(--gray-500); margin-bottom: 0; font-size: 0.95rem; }

.stat { min-width: 0; padding-inline: 4px; text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 6vw, 2rem);
  color: var(--gold-300);
  overflow-wrap: break-word;
}
.stat span { color: var(--cream); font-size: 0.85rem; }

/* ---------- Portfólio / galeria ---------- */
.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.work-card .compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.work-card .compare figure { margin: 0; position: relative; }
.work-card .compare figcaption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(10, 26, 51, 0.85);
  color: var(--gold-300);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.work-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.work-card .placeholder-img {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--gold-300);
  font-size: 0.75rem;
  text-align: center;
  padding: 10px;
}
.work-card .body { padding: 18px 20px; }
.work-card h3 { color: var(--navy-900); font-size: 1.05rem; }
.work-card p { color: var(--gray-500); font-size: 0.92rem; margin: 0; }

/* ---------- Formulário de contato ---------- */
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 700; font-size: 0.9rem; color: var(--navy-900); }
.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid #d6dce5;
  font-family: inherit;
  font-size: 0.95rem;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold-500);
}
.contact-info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-info-list .label { display: block; color: var(--gold-300); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--cream);
  padding: 40px 0 24px;
  font-size: 0.9rem;
}
.site-footer .footer-grid { display: grid; gap: 24px; margin-bottom: 24px; }
@media (min-width: 700px) {
  .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 { color: var(--gold-300); font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 10px; }
.site-footer a:hover { color: var(--gold-300); }
.social-row { display: flex; gap: 12px; margin-top: 10px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold-500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.social-icon { width: 18px; height: 18px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; text-align: center; font-size: 0.8rem; color: var(--gray-500); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: calc(4px + env(safe-area-inset-right, 0px));
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  font-weight: 700;
}
.whatsapp-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.whatsapp-float .wa-text { display: none; font-size: 0.85rem; padding-right: 4px; }
@media (min-width: 700px) {
  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: auto;
    height: auto;
    padding: 14px;
  }
  .whatsapp-float .wa-text { display: inline; }
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-700);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}
.section-navy .badge { background: rgba(244, 214, 117, 0.14); color: var(--gold-300); }
