/* ===========================
   Tardioli & Moreau — Estilos
   Paleta: Navy #0B1F3A, Gold #C9A84C, Cream #F7F4EE, Silk #F2EFE8
   =========================== */

:root {
  --navy-deep: #0B1F3A;
  --navy: #142b4f;
  --gold: #C9A84C;
  --gold-soft: #d8be73;
  --cream: #F7F4EE;
  --silk: #F2EFE8;
  --white: #ffffff;
  --foreground: #1B1B1B;
  --muted: #3E3E3E;
  --border: #e6e0d3;
  --shadow-soft: 0 12px 30px -12px rgba(11,31,58,0.18);
  --shadow-lift: 0 18px 40px -16px rgba(11,31,58,0.28);
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--foreground);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: 1.2; color: var(--foreground); }
p { color: var(--muted); }
strong { color: var(--foreground); font-weight: 600; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .22em; color: var(--gold); font-weight: 500; margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 4vw, 48px); margin-bottom: 24px; letter-spacing: -0.01em; }
.divider-gold { width: 80px; height: 2px; background: var(--gold); margin: 0 auto; }
.section { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }
.section-header { text-align: center; margin-bottom: 72px; }

/* Skip link */
.skip-to-content {
  position: absolute; left: -9999px; top: 0; background: var(--navy-deep); color: #fff;
  padding: 12px 20px; z-index: 1000; font-size: 14px;
}
.skip-to-content:focus { left: 16px; top: 16px; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(247,244,238,.95); backdrop-filter: blur(8px);
  padding: 8px 0; transition: all .3s ease;
}
.site-header.scrolled { background: var(--cream); box-shadow: 0 4px 20px rgba(0,0,0,.06); padding: 4px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; gap: 24px; }
@media (min-width: 1024px) { .nav { padding: 0 48px; } }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 56px; width: auto; max-width: 60vw; transition: height .3s ease; }
.site-header.scrolled .logo-img { height: 44px; }
@media (max-width: 768px) { .logo-img { height: 44px; } .site-header.scrolled .logo-img { height: 36px; } }

.nav-links { display: none; list-style: none; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
  color: var(--navy-deep); white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy-deep); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--cream); padding: 24px; border-top: 1px solid rgba(201,168,76,.3); gap: 18px; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background:
  linear-gradient(to bottom, rgba(33,33,33,.2), transparent 40%, rgba(33,33,33,.4)),
  radial-gradient(ellipse at center, transparent 45%, rgba(33,33,33,.55) 100%),
  rgba(255,255,255,.35);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 720px; padding: 80px 24px; }
.hero-bar { width: 96px; height: 2px; background: var(--navy-deep); margin: 0 auto 40px; }
.hero-logo { display: block; margin: 0 auto 32px; width: 78vw; max-width: 420px; height: auto; object-fit: contain; }
@media (min-width: 768px) { .hero-logo { max-width: 500px; } }
@media (min-width: 1024px) { .hero-logo { max-width: 540px; } }
.hero-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(28px, 3.5vw, 40px);
  color: var(--navy-deep); margin-bottom: 40px; max-width: 540px; margin-inline: auto; line-height: 1.3;
}

.btn-premium {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy-deep); color: #fff; padding: 16px 44px;
  font-size: 13px; text-transform: uppercase; letter-spacing: .22em; font-weight: 600;
  border: 1px solid var(--navy-deep); cursor: pointer; min-height: 52px;
  transition: all .35s cubic-bezier(.2,.7,.3,1); position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 20px -8px rgba(11,31,58,.4);
}
.btn-premium:hover {
  transform: translateY(-1px); border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 12px 28px -10px rgba(201,168,76,.45);
}

/* ===== About ===== */
.about { background: var(--silk); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-text h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 32px; line-height: 1.15; }
.about-paragraphs > * + * { margin-top: 20px; }
.about-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.about-pillars h3 { font-size: 18px; color: var(--gold); margin-bottom: 8px; }
.about-pillars p { font-size: 14px; }
.about-image { position: relative; }
.about-image img { box-shadow: var(--shadow-lift); }
.about-image::after {
  content: ''; position: absolute; bottom: -16px; left: -16px; width: 100%; height: 100%;
  border: 2px solid rgba(201,168,76,.3); z-index: -1;
}

/* ===== Practice Areas grid ===== */
.areas-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 1100px; margin: 0 auto;
}
@media (min-width: 768px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }
.area-card {
  display: block; background: #fff; padding: 40px; border: 1px solid transparent; border-radius: 4px;
  box-shadow: var(--shadow-soft); transition: all .4s cubic-bezier(.2,.7,.3,1);
}
.area-card:hover {
  transform: translateY(-6px); border-color: rgba(201,168,76,.5);
  box-shadow: 0 24px 50px -18px rgba(201,168,76,.35);
}
.area-icon { width: 40px; height: 40px; color: var(--navy-deep); margin-bottom: 24px; transition: transform .3s; }
.area-card:hover .area-icon { transform: scale(1.1); }
.area-card h3 { font-size: 22px; margin-bottom: 12px; }
.area-card p { font-size: 14.5px; }
.area-card .more { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--navy-deep); opacity: 0; transition: opacity .3s; }
.area-card:hover .more { opacity: 1; }

/* ===== Team ===== */
.team { background: var(--navy-deep); }
.team .section-title, .team .eyebrow + h2 { color: #fff; }
.team-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.team-card {
  text-align: center; background: rgba(255,255,255,.03); padding: 40px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 4px;
  backdrop-filter: blur(4px); transition: all .4s cubic-bezier(.2,.7,.3,1);
}
.team-card:hover { transform: translateY(-6px); border-color: rgba(201,168,76,.6); box-shadow: 0 24px 50px -18px rgba(201,168,76,.4); }
.team-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 24px; border: 2px solid rgba(201,168,76,.4); transition: border-color .3s; }
.team-card:hover .team-photo { border-color: var(--gold); }
.team-card h3 { font-size: 24px; color: #fff; margin-bottom: 4px; }
.team-card .role { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); margin-bottom: 16px; }
.team-card .bio { font-size: 14px; color: rgba(255,255,255,.75); }

/* ===== Blog / Contato ===== */
.blog, .contact { background: var(--silk); }
.posts-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 768px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  background: #fff; padding: 36px; border: 1px solid var(--border); border-radius: 4px;
  box-shadow: var(--shadow-soft); transition: all .4s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(201,168,76,.5); box-shadow: 0 24px 50px -18px rgba(201,168,76,.3); }
.post-meta { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.post-source { font-size: 10px; text-transform: uppercase; letter-spacing: .22em; color: var(--gold); }
.post-date { font-size: 11px; color: var(--muted); }
.post-card h3 { font-size: 22px; margin-bottom: 14px; }
.post-card p { font-size: 14.5px; margin-bottom: 28px; }
.post-link { margin-top: auto; font-size: 12px; text-transform: uppercase; letter-spacing: .22em; color: var(--gold); }

.blog-refresh-wrap { display: flex; justify-content: center; margin-top: 24px; }
.blog-refresh { background: none; border: 0; color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit; }
.blog-refresh:hover { text-decoration: underline; }
.blog-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; margin: 48px 0 40px; }
.blog-filter { position: relative; background: none; border: 0; padding: 4px 0; font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); cursor: pointer; font-family: inherit; transition: color .2s; }
.blog-filter:hover { color: var(--foreground, #1a1a1a); }
.blog-filter.active { color: var(--foreground, #1a1a1a); }
.blog-filter.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--gold); }
.blog-status { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.blog-status[hidden] { display: none; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 7fr 5fr; } }
.contact-form-card { background: #fff; border: 1px solid var(--border); padding: 40px; border-radius: 4px; box-shadow: var(--shadow-soft); }
@media (min-width: 768px) { .contact-form-card { padding: 56px; } }
.form-row { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-row + .form-row { margin-top: 24px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.form-row .field + .field { margin-top: 0; }
.field label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--foreground); margin: 0 0 12px; }
.field input, .field textarea {
  width: 100%; padding: 16px; font-family: inherit; font-size: 16px; line-height: 1.4; color: var(--foreground);
  background: var(--cream); border: 1px solid var(--border); border-radius: 2px;
  transition: all .3s; height: 56px; box-sizing: border-box; display: block;
}
.field textarea { resize: vertical; height: auto; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--navy-deep); box-shadow: 0 0 0 3px rgba(11,31,58,.08); }
.field.error input, .field.error textarea { border-color: #c0392b; }
.field .err { display: block; font-size: 12px; color: #c0392b; margin-top: 8px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; margin-top: 32px; border-top: 1px solid var(--border); }
.form-actions .note { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .form-actions .note { display: none; } }
.form-alert { padding: 16px; border-radius: 2px; margin-bottom: 24px; font-size: 14px; }
.form-alert.success { background: #eaf6ee; color: #1e6a3a; border: 1px solid #b8dcc4; }
.form-alert.error { background: #fbeaea; color: #8a2020; border: 1px solid #e8c0c0; }

.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info-block { display: flex; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.contact-info-block:last-child { border: 0; }
.contact-info-icon { color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.contact-info-block h3 { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; margin-bottom: 8px; color: var(--foreground); }
.contact-info-block a { font-size: 15px; color: var(--muted); }
.contact-info-block a:hover { color: var(--gold); }
.map-frame { width: 100%; height: 280px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-soft); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.85); padding: 64px 0 32px; border-top: 1px solid rgba(201,168,76,.3); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 48px; margin-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.5fr 1.2fr; } }
.footer-title-brand { color: #fff; font-size: 20px; margin-bottom: 8px; }
.footer-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); margin-bottom: 16px; }
.footer-text { font-size: 14px; color: rgba(255,255,255,.85); }
.footer-heading { color: #fff; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; margin-bottom: 20px; }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-list a { font-size: 14px; color: rgba(255,255,255,.85); }
.footer-list a:hover { color: var(--gold); }
.footer-areas .footer-area-link { display: inline-flex; align-items: center; gap: 12px; }
.footer-areas .dash { display: inline-block; height: 1px; width: 16px; background: rgba(201,168,76,.4); transition: all .3s; }
.footer-areas .footer-area-link:hover .dash { width: 32px; background: var(--gold); }
.footer-contact { font-style: normal; }
.footer-contact p { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 12px; font-style: normal; }
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-contact a:hover { color: var(--gold); }
.footer-address { font-size: 11.5px; line-height: 1.5; white-space: nowrap; font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.8); }

/* ===== WhatsApp FAB ===== */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(37,211,102,.4); transition: transform .3s;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ===== Scroll fade-in ===== */
.scroll-fade { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.scroll-fade.is-visible { opacity: 1; transform: none; }

/* ===== Area detail page ===== */
.area-hero { padding: calc(var(--nav-h) + 64px) 0 64px; background: var(--silk); border-bottom: 1px solid var(--border); }
.breadcrumbs { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.area-detail { padding: 80px 0; }
.area-detail h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 24px; }
.area-detail .lead { font-size: 18px; max-width: 760px; margin-bottom: 48px; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 900px; margin: 32px 0 48px; }
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service-item { background: #fff; padding: 20px 24px; border-left: 3px solid var(--gold); box-shadow: var(--shadow-soft); font-size: 15px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scroll-fade { opacity: 1; transform: none; }
}
