/* ============================================================
   Paulo Sociedade de Advogados — Stylesheet
   Paleta: Azul-marinho (primária) + Dourado (destaque) + Branco
   ============================================================ */

:root {
  --navy-900: #0a1d3b;
  --navy-800: #102a52;
  --navy-700: #173a6e;
  --navy-600: #1f4d8a;
  --navy-500: #2a60ad;

  --gold-600: #c79a3a;
  --gold-500: #d4a73d;
  --gold-400: #e0b854;
  --gold-300: #ecc97a;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;

  --white: #ffffff;
  --cream: #f8f6f1;
  --mist: #f1f5f9;

  --success: #16a34a;
  --warning: #f59e0b;
  --error: #dc2626;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(10,29,59,.08);
  --shadow-md: 0 6px 24px rgba(10,29,59,.10);
  --shadow-lg: 0 18px 48px rgba(10,29,59,.16);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1140px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--ink-700); }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.section-eyebrow.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-sub { color: var(--ink-500); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 4px 16px rgba(199,154,58,.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(199,154,58,.4);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.btn-full { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ===== Header ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,29,59,.0);
  transition: background .35s ease, box-shadow .35s ease;
}
#header.scrolled {
  background: rgba(10,29,59,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(199,154,58,.35);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: .01em;
}
.logo-sep { color: var(--gold-500); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.btn-nav-cta {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  font-weight: 600;
  font-size: .88rem;
  border-radius: var(--radius-md);
  transition: transform .2s, box-shadow .2s;
}
.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(199,154,58,.4); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(10,29,59,.92), rgba(16,42,82,.78)),
    url('https://images.pexels.com/photos/5660051/pexels-photo-5660051.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
  color: var(--white);
  padding: 120px 24px 80px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(212,167,61,.18), transparent 55%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Highlights ===== */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--navy-900);
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.highlight-item:last-child { border-right: none; }
.h-icon {
  font-size: 1.8rem;
  color: var(--gold-500);
  flex-shrink: 0;
}
.highlight-item h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 4px; }
.highlight-item p { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ===== About ===== */
.about { padding: 100px 0; background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-image { position: relative; }
.about-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.about-image-frame img { width: 100%; height: 460px; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -24px; right: -16px;
  background: var(--navy-900);
  color: var(--white);
  padding: 20px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 2px solid var(--gold-500);
}
.about-badge-num { display: block; font-size: .7rem; letter-spacing: .18em; color: var(--gold-400); }
.about-badge-text { display: block; font-size: .85rem; margin-top: 4px; line-height: 1.4; }

.about-text h2 { margin: 6px 0 20px; }
.about-text p { margin-bottom: 16px; }
.about-list { margin-top: 20px; }
.about-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink-700);
  font-size: .95rem;
}
.about-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--gold-600);
  font-weight: 700;
}

/* ===== Áreas ===== */
.areas { padding: 100px 0; background: var(--white); }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.area-card {
  padding: 36px 30px;
  background: var(--mist);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-300);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.area-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-500);
}
.area-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: var(--gold-400);
  font-size: 1.5rem;
  font-family: var(--font-display);
  border-radius: 12px;
  margin-bottom: 20px;
}
.area-card h3 { margin-bottom: 10px; }
.area-card p { font-size: .92rem; color: var(--ink-500); }

/* ===== Contact ===== */
.contact { padding: 100px 0; background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-info h2 { margin: 6px 0 16px; }
.contact-info > p { color: var(--ink-500); margin-bottom: 28px; }

.contact-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-300);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold-500);
}
.cc-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--navy-900);
  color: var(--gold-400);
  border-radius: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cc-label { display: block; font-size: .75rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .1em; }
.cc-value { display: block; font-weight: 600; color: var(--navy-900); font-size: .95rem; word-break: break-word; }

.contact-correspondence {
  padding: 24px;
  background: var(--navy-900);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold-500);
}
.contact-correspondence h3 { color: var(--white); margin-bottom: 8px; font-size: 1.05rem; }
.contact-correspondence p { color: rgba(255,255,255,.82); font-size: .92rem; line-height: 1.7; }

/* Form */
.contact-form {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ink-300);
}
.contact-form h3 { margin-bottom: 22px; color: var(--navy-900); }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212,167,61,.15);
}
.form-row textarea { resize: vertical; }
.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  color: #166534;
  font-size: .92rem;
  font-weight: 500;
}

/* ===== Location ===== */
.location { padding: 100px 0; background: var(--white); }
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
  outline: 1px solid var(--ink-300);
}
.map-wrapper iframe { display: block; width: 100%; }

/* ===== Footer ===== */
.footer { background: var(--navy-900); color: rgba(255,255,255,.8); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .9rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-400); }
.footer-col p { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.7; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-bottom a { color: var(--gold-400); font-size: .85rem; }
.footer-bottom a:hover { color: var(--gold-300); }

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 640px;
  margin: 0 auto;
  z-index: 1200;
  background: var(--navy-900);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  animation: slideUp .4s ease;
}
.cookie-inner { display: flex; align-items: center; gap: 20px; }
.cookie-banner p { color: rgba(255,255,255,.82); font-size: .88rem; flex: 1; }
.cookie-banner a { color: var(--gold-400); text-decoration: underline; }

@keyframes slideUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image { max-width: 480px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav-cta {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform .35s ease;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { transform: translateY(0); }
  .btn-nav-cta {
    top: auto; bottom: 0; left: 0; right: 0;
    text-align: center;
    transform: translateY(150%);
    margin: 0;
  }
  .btn-nav-cta.open { transform: translateY(-100%); }
  .menu-toggle { display: flex; }

  .highlights { grid-template-columns: 1fr; }
  .highlight-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .highlight-item:last-child { border-bottom: none; }

  .areas-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .cookie-inner { flex-direction: column; text-align: center; gap: 14px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .about-badge { right: 0; bottom: -20px; padding: 14px 18px; }
  .contact-form { padding: 24px 20px; }
}
