/* Tipografia e cores */
:root {
  --header-height: 72px;
  --color-bg: #0b1b2b; /* navy escuro */
  --color-bg-alt: #0f253a;
  --color-surface: #faf7f2; /* off-white (paleta anterior) */
  --color-surface-2: #f5efe6; /* bege suave */
  --color-chip-beige-3: #d4c3ad; /* bege 3 tons mais escuro para chips */
  --color-card-beige-1: #e7dbc9; /* bege 2 tons mais escuro */
  --color-card-beige-2: #d9cbb6; /* degradê 2 tons mais escuro */
  --color-text: #1a1f29;
  --color-text-inverse: #ffffff;
  --color-primary: #1a2c42; /* navy inspirado na roupa */
  --color-primary-700: #102333;
  --color-accent: #c9a227; /* dourado como contraste */
  --color-whatsapp: #1DB954; /* verde WhatsApp mais escuro */
  --color-whatsapp-700: #179e48; /* hover mais escuro */
  --color-border: #e3ddd3;
  --color-success: #2e7d32;
  --color-danger: #c62828;
  --shadow-sm: 0 6px 18px rgba(11, 27, 43, 0.12);
  --shadow-md: 0 12px 30px rgba(11, 27, 43, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --space-1: 8px; --space-2: 12px; --space-3: 16px; --space-4: 20px; --space-5: 24px; --space-6: 32px; --space-7: 40px; --space-8: 64px;
}

/* Tema escuro: override de variáveis principais */
[data-theme="dark"] {
  --color-surface: #0b1b2b;
  --color-surface-2: #0f253a;
  --color-text: #e6edf7;
  --color-bg: #0b1b2b;
  --color-border: rgba(255,255,255,.14);
  --color-accent: #c9a227;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
  padding-top: var(--header-height); /* espaço para header fixo */
  overflow-x: hidden; /* evitar cortes/scroll horizontal em mobile */
}

html { scroll-behavior: smooth; }

h1, h2, h3 { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }
h1 { font-size: 2.6rem; line-height: 1.2; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p.lead { font-size: 1.1rem; color: #344155; }
/* Melhor legibilidade do herói */
.hero-copy .lead { color: #344155; }

/* Usar container do Bootstrap */

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 16px; top: 16px; width: auto; height: auto; padding: 8px 12px;
  background: var(--color-primary); color: var(--color-text-inverse);
}

/* Header fixo */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.site-header .navbar { background: var(--color-bg); border-bottom: 1px solid rgba(255,255,255,.14); }
.site-header .navbar-brand .brand-text { color: var(--color-text-inverse); }
.site-header .navbar-brand .brand-sub { color: var(--color-accent); }
.site-header .navbar .nav-link { color: #e6edf7; font-weight: 500; position: relative; }
.site-header .navbar .navbar-nav .nav-link:hover, .site-header .navbar .nav-link:hover { color: var(--color-accent); }
.site-header .navbar .nav-link::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--color-primary); transition: width .2s ease; }
.site-header .navbar .navbar-nav .nav-link:hover::after, .site-header .navbar .nav-link:hover::after { width:100%; background: var(--color-accent); }
/* Acessibilidade: destacar também no foco teclado */
.site-header .navbar .navbar-nav .nav-link:focus-visible, .site-header .navbar .nav-link:focus-visible { color: var(--color-accent); outline: none; }
.site-header .navbar .navbar-nav .nav-link:focus-visible::after, .site-header .navbar .nav-link:focus-visible::after { width:100%; background: var(--color-accent); }
.site-header .btn-outline-primary { border-color: var(--color-primary); color: var(--color-primary); }
.site-header .btn-outline-primary:hover { background: var(--color-primary); color: var(--color-bg); }
.header-inner {
  display: flex; align-items: center; gap: 24px; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--color-bg);
  color: var(--color-accent); font-weight: 700; border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.brand-text { font-weight: 600; color: #1a2433; }
.brand-sub { color: #6a778a; font-weight: 500; }

.nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav a { color: #1a2433; text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--color-accent); }
.nav-toggle { display:none; border: 2px solid var(--color-primary); background: transparent; color: #1a2433; padding: 8px 12px; border-radius: 999px; font-weight:600; }
.nav-toggle:hover { box-shadow: var(--shadow-sm); }

/* Botão de toggle de tema */
.theme-toggle { display: inline-grid; place-items:center; width: 40px; height: 40px; border-radius: 999px; border: 2px solid var(--color-primary); background: transparent; color: #1a2433; }
.theme-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.theme-toggle:hover { box-shadow: var(--shadow-sm); }
[data-theme="dark"] .theme-toggle { color: #e6edf7; border-color: var(--color-primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform .08s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--color-primary); color: var(--color-text-inverse); border: 2px solid var(--color-accent); }
.btn-primary:hover { background: var(--color-primary-700); box-shadow: 0 0 0 4px rgba(201,162,39,.18); }
.btn-gold { background: var(--color-accent); color: var(--color-text-inverse); border: 2px solid var(--color-accent); }
.btn-gold:hover { box-shadow: 0 0 0 4px rgba(201,162,39,.18); }
.btn-whatsapp { position: relative; background: var(--color-whatsapp); color: #fff; border: 2px solid rgba(29,185,84,.6); }
.btn-whatsapp:hover { background: var(--color-whatsapp-700); box-shadow: 0 0 0 4px rgba(29,185,84,.24); }
.btn-whatsapp::after { content:""; position:absolute; inset:-4px; border-radius:999px; border:2px solid rgba(201,162,39,.24); animation: haloPulse 2.4s ease-in-out infinite; }
.btn-outline { border: 2px solid var(--color-primary); color: var(--color-bg); }
.btn-ghost { border: 2px solid transparent; color: var(--color-accent); background: transparent; }
/* Ajustes Bootstrap */
.btn-outline-primary { border: 2px solid var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline-primary:hover { background: var(--color-primary); color: var(--color-bg); }
.btn-outline-secondary { border: 2px solid var(--color-accent); color: var(--color-accent); background: transparent; }
.btn-outline-secondary:hover { background: var(--color-accent); color: var(--color-text-inverse); }

/* Hero */
.hero-section {
  background:
    radial-gradient(1200px 300px at 40% -100px, rgba(201,162,39,.15), transparent),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  padding: 64px 0; position: relative;
}
.hero-section, .section { scroll-margin-top: var(--header-height); }
.hero-section::before { content: none; }
.authority-badge { margin: 8px 0 12px; }
.badge-gold { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--color-accent); color: var(--color-primary); font-weight: 600; box-shadow: 0 8px 24px rgba(201,162,39,.24); }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero-copy .cta-row { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.highlights { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.highlights li { padding: 10px 14px; border-radius: 999px; background: var(--color-chip-beige-3); color: #1a2433; font-weight: 600; border: 1px solid #cbbca3; box-shadow: 0 10px 24px rgba(11,27,43,.12); }
.highlights li a.chip-link { display: block; color: inherit; text-decoration: none; }
.highlights li:hover { border-color: var(--color-primary); box-shadow: 0 14px 30px rgba(11,27,43,.18); }

/* Destaque quando navegado por âncora */
.area-card:target { outline: 2px solid var(--color-primary); box-shadow: 0 18px 42px rgba(11,27,43,.3), 0 0 0 6px rgba(201,162,39,.18); }
.hero-copy h1 { position: relative; }
.hero-copy h1::after { content: none; }

.hero-photo { display: grid; place-items: center; }
.hero-photo picture, .hero-photo img { width: 100%; max-width: 440px; }
.hero-photo img { aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hero-photo.fallback { width: 100%; max-width: 440px; aspect-ratio: 3/4; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background:
  linear-gradient(135deg, #1a2c42, #0b1b2b),
  radial-gradient(400px 200px at 70% 10%, rgba(201,162,39,.25), transparent);
  display: grid; place-items: center; color: var(--color-primary); }
.hero-photo.fallback::after { content: 'Foto Profissional'; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { padding: 72px 0; background: linear-gradient(180deg, var(--color-surface-2) 0%, #fff 100%); }
.section h2 { position: relative; padding-bottom: 12px; }
.section h2::after { content:""; position:absolute; left:0; bottom:0; width:64px; height:4px; background: var(--color-primary); border-radius: 4px; }
.section-lead { color: #4e5b6d; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }

.content p { margin: 0 0 14px; }
.cta-stack { display: flex; gap: 12px; margin-top: 20px; }

.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px; }
.card h3 { position: relative; padding-left: 12px; }
.card h3::before { content:""; position:absolute; left:0; top:0.4em; width:6px; height:1.2em; background: var(--color-primary); border-radius: 6px; }
.card .card-title { position: relative; padding-left: 12px; }
.card .card-title::before { content:""; position:absolute; left:0; top:0.4em; width:6px; height:1.2em; background: var(--color-primary); border-radius: 6px; }
.contact-card .icon { width: 20px; height: 20px; fill: var(--color-accent); margin-right: 10px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: #2a3648; }

/* Áreas de atuação */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 24px; }
.areas-grid .card { transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease; }
.areas-grid .card:hover { transform: translateY(-2px); border-color: var(--color-primary); box-shadow: 0 8px 24px rgba(201,162,39,.18); }
.area-card { position: relative; background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-md); padding: 18px; box-shadow: 0 14px 34px rgba(11,27,43,.22), inset 0 1px 0 rgba(255,255,255,.12); transition: transform .14s ease, box-shadow .2s ease, border-color .2s ease; color: var(--color-text-inverse); }
.area-card::before { content:""; position:absolute; inset:0; border-radius: var(--radius-md); pointer-events:none; border: 1px solid rgba(201,162,39,.14); }
.area-card:hover { transform: translateY(-4px) scale(1.01); border-color: rgba(255,255,255,.35); box-shadow: 0 18px 40px rgba(11,27,43,.28), 0 0 0 6px rgba(201,162,39,.18); }
.area-card h3 { margin: 6px 0 10px; }
.area-card h3 { font-weight: 700; color: var(--color-text-inverse); }
.area-card ul { list-style: none; padding: 0; margin: 0 0 12px; color: rgba(255,255,255,.92); }
.area-card li { padding: 4px 0; }
.area-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); }
.area-icon svg { fill: var(--color-accent); }
.area-icon svg { width: 26px; height: 26px; fill: var(--color-accent); }
.link-cta { color: var(--color-accent); font-weight: 600; text-decoration: none; }
.link-cta:hover { text-decoration: underline; }

/* Formulário */
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px; }
.form-row { display: grid; gap: 8px; margin-bottom: 14px; }
.form-row label { font-weight: 600; color: #2a3648; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d9d3c9; border-radius: 10px; background: #fff;
  font-size: 1rem; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(31,78,121,.12); }
.form-row input:invalid, .form-row textarea:invalid { border-color: rgba(198,40,40,.6); }
.form-success { color: var(--color-success); font-weight: 600; }
.form-error { color: var(--color-danger); font-weight: 600; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.form-note { font-size: .9rem; color: #6a778a; }

/* Footer */
.site-footer { background: var(--color-bg); color: var(--color-text-inverse); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.site-footer .brand-text { color: #ffffff; }
.footer-contact { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; opacity: .9; }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact .icon { width: 18px; height: 18px; fill: var(--color-accent); flex: 0 0 18px; }
.footer-contact a { color: #ffffff; text-decoration: none; }
.footer-contact a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding: 16px 0; font-size: .95rem; color: #ffffff; opacity: 1; }

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--color-whatsapp); display: grid; place-items: center; box-shadow: var(--shadow-md);
  box-shadow: 0 10px 24px rgba(11,27,43,.18), 0 0 0 4px rgba(201,162,39,.18), 0 0 24px rgba(201,162,39,.25);
  outline: 2px solid rgba(201,162,39,.32);
}
.floating-whatsapp::after { content:""; position:absolute; inset:-6px; border-radius:50%; border:2px solid rgba(201,162,39,.28); box-shadow: 0 0 24px rgba(201,162,39,.22); animation: haloPulse 2.4s ease-in-out infinite; }
.floating-whatsapp svg { width: 28px; height: 28px; fill: #fff; }
.floating-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(11,27,43,.22), 0 0 0 6px rgba(201,162,39,.22), 0 0 32px rgba(201,162,39,.32); }

@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Links CTA com sublinhado animado */
.link-cta { color: inherit; text-decoration: none; position: relative; }
.link-cta::after { content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--color-primary); transition: width .2s ease; }
.link-cta:hover { color: var(--color-primary); }
.link-cta:hover::after { width:100%; }
/* Variações de CTA como botões */
.link-cta.quick { display:inline-block; padding: 10px 14px; border-radius: 999px; background: var(--color-accent); color: var(--color-bg); font-weight: 700; box-shadow: var(--shadow-sm); border: 1px solid rgba(201,162,39,.32); }
.link-cta.quick:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.link-cta.whatsapp { display:inline-block; padding: 10px 14px; border-radius: 999px; background: var(--color-whatsapp); color: #fff; font-weight: 700; box-shadow: var(--shadow-sm); border: 1px solid rgba(29,185,84,.5); position: relative; }
.link-cta.whatsapp::after { content:""; position:absolute; inset:-4px; border-radius:999px; border:2px solid rgba(201,162,39,.24); animation: haloPulse 2.4s ease-in-out infinite; }
.link-cta.whatsapp:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(29,185,84,.28); }

/* CTA mobile bar */
.cta-bar-mobile { display:none; position: fixed; left:0; right:0; bottom:0; padding: var(--space-3); background: rgba(250,247,242,.95); border-top: 1px solid var(--color-border); backdrop-filter: blur(8px); z-index: 60; }
.cta-bar-mobile .btn { width: 100%; justify-content: center; }
.cta-bar-mobile .btn:hover { box-shadow: 0 0 0 4px rgba(201,162,39,.24); }

/* Reveal animations */
@keyframes fadeUp { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }
.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity:1; transform: none; }

/* Responsividade */
@media (max-width: 980px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  /* Botões do hero em largura total para evitar desalinhamento */
  .hero-copy .cta-row { gap: 10px; }
  .hero-copy .cta-row .btn,
  .hero-copy .cta-row a.btn,
  .hero-copy .cta-row .btn-whatsapp,
  .hero-copy .cta-row .btn-gold,
  .hero-copy .cta-row .btn-primary { width: 100%; }

  /* Ajuste sutil de subtítulo para telas pequenas */
  .section-subtitle { font-size: .95rem; }

  /* Diminuir ligeiramente o botão flutuante para não cobrir conteúdo */
  .floating-whatsapp { right: 12px; bottom: 12px; width: 50px; height: 50px; }
  .nav-toggle { display: inline-flex; }
  .nav ul { display: none; position: absolute; right: 24px; top: 60px; background: rgba(250,247,242,.98); border: 1px solid var(--color-border); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); min-width: 220px; }
  .nav ul.show { display: grid; gap: 10px; }
  .nav ul a { padding: 10px 12px; border-radius: 10px; }
  .nav ul a:hover { background: var(--color-surface-2); }
  .areas-grid { grid-template-columns: 1fr; }
h1 { font-size: 2.2rem; }
  .cta-bar-mobile { display:block; }

  /* Footer responsivo: empilhar e aumentar área de toque */
  .footer-inner { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .footer-contact { flex-direction: column; gap: 8px; align-items: center; }
  /* Evitar quebra feia em telefones, permitir quebra apenas em e-mails */
  .footer-contact a[href^="tel:"] { white-space: nowrap; }
  .footer-contact a[href^="mailto:"] { overflow-wrap: anywhere; word-break: break-word; }
  .footer-bottom { text-align: center; }
  :root { --header-height: 64px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .form-actions .btn { width: 100%; }
}

/* Footer também empilhado em telas até 768px para cobrir mais dispositivos móveis */
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .footer-contact { flex-direction: column; gap: 8px; align-items: center; }
  .footer-contact a[href^="tel:"] { white-space: nowrap; }
  .footer-contact a[href^="mailto:"] { overflow-wrap: anywhere; word-break: break-word; }
  .footer-bottom { text-align: center; }
}

/* Hero: em mobile, quebrar linha e centralizar Nome/Título */
@media (max-width: 640px) {
  .hero-copy h1 { text-align: center; }
  .hero-copy h1 .hero-name,
  .hero-copy h1 .hero-title { display: block; }
  .hero-copy h1 .hero-sep { display: none; }
}

/* Em telas muito estreitas, forçar quebra do e-mail para evitar overflow */
@media (max-width: 400px) {
  .footer-contact a[href^="mailto:"] { word-break: break-all; }
}

/* Evitar qualquer overflow horizontal no rodapé */
.site-footer { overflow-x: hidden; }

/* Overrides para dark mode de componentes com cores fixas */
[data-theme="dark"] .site-header { background: rgba(13, 22, 32, 0.85); border-bottom-color: rgba(255,255,255,.12); }
[data-theme="dark"] .nav a { color: #e6edf7; }
[data-theme="dark"] .highlights li { background: rgba(255,255,255,.08); color: #c9d7ea; }
[data-theme="dark"] .card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .area-card { background: #10263c; border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .area-card ul { color: #c2ccda; }
[data-theme="dark"] .area-icon { background: rgba(255,255,255,.08); }
[data-theme="dark"] .area-icon svg { fill: #8ab4f8; }
[data-theme="dark"] .form-row label { color: #e6edf7; }
[data-theme="dark"] .form-row input,
[data-theme="dark"] .form-row textarea { background: #0f253a; border-color: rgba(255,255,255,.14); color: #e6edf7; }
[data-theme="dark"] .form-row input:focus,
[data-theme="dark"] .form-row textarea:focus { box-shadow: 0 0 0 4px rgba(138,180,248,.18); }
/* Subtítulo de seção com ênfase discreta */
.section-subtitle { font-size: 1rem; color: var(--color-accent); margin-top: .25rem; margin-bottom: 1rem; font-weight: 500; }