:root {
  --ink: #39312F;
  --ink-soft: #4A4340;
  --text-muted: #7D746E;
  --cream: #F1E0CF;
  --bg: #FFFFFF;
  --bg-alt: #FAF6F1;
  --border: #E8DFD3;
  --accent: #A9835A;
  --accent-dark: #8C6B45;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1140px;

  --shadow-sm: 0 4px 16px -8px rgba(57, 49, 47, 0.18);
  --shadow-md: 0 20px 45px -18px rgba(57, 49, 47, 0.28);
  --shadow-lg: 0 30px 70px -20px rgba(57, 49, 47, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--accent-dark); }

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.lead {
  font-size: 1.1rem;
  max-width: 760px;
}

.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--bg-alt);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(169, 131, 90, 0.55);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(169, 131, 90, 0.6);
}
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}
.btn-full { width: 100%; text-align: center; border: none; font-family: inherit; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.brand-logo {
  height: 57px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--accent-dark); }
.nav .btn-nav { color: #fff; padding: 11px 22px; }
.nav .btn-nav:hover { color: #fff; }

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

/* Hero */
.hero {
  position: relative;
  padding: 160px 0 130px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--ink);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>"),
    radial-gradient(ellipse 90% 70% at 20% 15%, rgba(169, 131, 90, 0.22) 0%, transparent 60%),
    linear-gradient(160deg, #4A3F3B 0%, #39312F 45%, #2C2523 100%);
}
.hero-inner {
  max-width: 780px;
}
.hero h1,
.hero .eyebrow {
  color: #fff;
}
.hero-sub {
  font-size: 1.15rem;
  margin: 24px auto 36px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.85);
}

/* Como atuamos */
.como-card {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 4px 20px 20px 4px;
  padding: 44px 48px;
  box-shadow: var(--shadow-md);
}
.como-card .lead { margin-bottom: 0; }

/* Escritorio */
.escritorio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.escritorio-media img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* Areas */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 44px;
}
.area-card {
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.area-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}
.area-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--cream) 0%, #fff 100%);
  color: var(--accent-dark);
  margin-bottom: 20px;
  padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(169, 131, 90, 0.18);
}
.area-icon svg { width: 100%; height: 100%; }
.area-short {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.7em;
}
.area-full {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Blog */
.blog-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 56px 48px;
}
.blog-inner .lead { margin-left: auto; margin-right: auto; }

/* Contato */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.contact-list a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.contact-list a:hover { color: var(--accent-dark); }

.contact-form {
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row {
  margin-bottom: 20px;
}
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-feedback {
  margin: 14px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-feedback.success { color: #3E6B4A; }
.form-feedback.error { color: #A5433A; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 56px 0 40px;
}
.footer-mark {
  width: 56px;
  margin: 0 auto 20px;
}
.site-footer p { margin: 0 0 6px; }
.footer-address { font-size: 0.9rem; }
.footer-copy { font-size: 0.82rem; margin-top: 18px; color: rgba(255, 255, 255, 0.5); }
.footer-copy a { color: rgba(255, 255, 255, 0.7); }
.footer-copy a:hover { color: #fff; }

.form-consent { margin-bottom: 22px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}
.consent-label input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.consent-label a { color: var(--accent-dark); }

/* Tablet+ */
@media (min-width: 640px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .escritorio-grid { grid-template-columns: 0.85fr 1.15fr; }
  .contato-grid { grid-template-columns: 1fr 1.1fr; }
}

@media (min-width: 980px) {
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.7);
}
@media (max-width: 640px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.4);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  max-width: 640px;
}
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.btn-cookie { padding: 11px 22px; font-size: 0.88rem; }
.cookie-banner .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.cookie-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Mobile nav */
@media (max-width: 859px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav .btn-nav {
    margin-top: 14px;
    text-align: center;
    border-bottom: none;
  }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
