/* =========================================================
   HAC ADVOGADOS — STYLE.CSS
   Página principal + páginas legais + responsivo
========================================================= */

/* =========================
   1. VARIÁVEIS
========================= */
:root {
  --blue: #002b5f;
  --blue-dark: #001a3d;
  --blue-light: #0057b8;
  --blue-button: #0057c8;

  --white: #ffffff;
  --text: #081b3a;
  --muted: #5c6b80;
  --line: #e7ecf3;

  --shadow: 0 12px 35px rgba(0, 25, 70, 0.12);
  --shadow-dark: 0 18px 45px rgba(0, 0, 0, 0.35);

  --container: 1180px;
}

/* =========================
   2. RESET / BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* =========================
   3. BOTÕES
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 24px;

  border-radius: 4px;

  font-size: 0.92rem;
  font-weight: 700;

  transition: 0.25s ease;
}

.btn-primary {
  background: var(--blue-button);
  color: #fff;
}

.btn-primary:hover {
  background: #003f98;
}

.btn-dark {
  background: var(--blue-dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--blue);
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background: #fff;
  color: var(--blue-dark);
}

/* =========================
   4. HEADER
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;

  height: 88px;

  display: flex;
  align-items: center;

  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo,
.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  line-height: 1;
  color: var(--blue-dark);
}

.logo span,
.footer-logo span {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -2px;
  text-align: center;
}

.logo small,
.footer-logo small {
  margin-top: 6px;

  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 7px;
  text-align: center;

  transform: translateX(4px);
}

/* Menu */
.nav {
  display: flex;
  align-items: center;
  gap: 34px;

  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--blue-light);
}

.menu-btn {
  display: none;

  border: 0;
  background: none;

  font-size: 2rem;
  line-height: 1;
  color: var(--blue-dark);

  cursor: pointer;
}

/* =========================
   5. HERO
========================= */
.hero {
  position: relative;

  min-height: 620px;

  display: flex;
  align-items: center;

  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image:
    linear-gradient(
      90deg,
      rgba(0, 29, 68, 0.98) 0%,
      rgba(0, 44, 92, 0.88) 42%,
      rgba(0, 0, 0, 0.28) 100%
    ),
    url("../img/hac1.png");

  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: radial-gradient(
    circle at top right,
    rgba(201, 169, 110, 0.18),
    transparent 35%
  );

  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 680px;
}

.kicker,
.section-title span {
  display: block;

  margin-bottom: 16px;

  color: #74b7ff;

  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1,
.section-title h2,
.process h2,
.contact-strip h2,
.cta h2 {
  font-family: "Playfair Display", serif;
}

.hero h1 {
  max-width: 560px;

  margin-bottom: 24px;

  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1.02;

  text-wrap: balance;
}

.hero p {
  max-width: 620px;

  margin-bottom: 28px;

  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* =========================
   6. BENEFÍCIOS
========================= */
.benefits {
  padding: 28px 0;

  background: #fff;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.04);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;

  border-right: 1px solid var(--line);
}

.benefit:last-child {
  border-right: 0;
}

.benefit span {
  font-size: 2.2rem;
}

.benefit h3 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.benefit p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* =========================
   7. ÁREAS
========================= */
.areas {
  padding: 72px 0;
}

.section-title {
  max-width: 620px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.area-card {
  padding: 48px 32px;

  text-align: center;

  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.area-card .icon {
  margin-bottom: 20px;
  font-size: 3rem;
}

.area-card h3 {
  margin-bottom: 16px;

  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
}

.area-card p {
  margin-bottom: 22px;

  color: var(--muted);
  line-height: 1.7;
}

.area-card a {
  color: var(--blue);
  font-weight: 700;
}

/* =========================
   8. PROCESSO / SOBRE
========================= */
.process {
  position: relative;

  padding: 70px 0;

  color: #fff;
  overflow: hidden;
}

.process-bg {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      90deg,
      rgba(0, 28, 64, 0.96) 0%,
      rgba(0, 28, 64, 0.72) 18%,
      rgba(0, 28, 64, 0.18) 50%,
      rgba(0, 28, 64, 0.72) 82%,
      rgba(0, 28, 64, 0.96) 100%
    ),
    url("../img/hcjur.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.process-grid {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: center;
}

.process h2 {
  margin-bottom: 22px;

  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.process ul {
  margin-bottom: 28px;
  list-style: none;
}

.process li {
  margin-bottom: 12px;
}

.process li::before {
  content: "✓";
  margin-right: 10px;
}

.process-card {
  width: 240px;
  max-width: 240px;

  margin: 0 auto;
  padding: 0;

  overflow: hidden;

  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-dark);
}

.process-map {
  width: 100%;
  height: auto;

  display: block;
  object-fit: contain;
}

/* =========================
   9. CONTATO
========================= */
.contact-strip {
  padding: 32px 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr;
  gap: 28px;
  align-items: center;
}

.contact-grid > div {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.contact-grid > div:last-child {
  border-right: 0;
}

.contact-strip h2 {
  font-size: 1.8rem;
}

.contact-strip p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =========================
   10. CTA
========================= */
.cta {
  padding: 26px 0;

  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: #fff;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 42px;

  text-align: center;
}

.cta h2 {
  font-size: 1.45rem;
}

/* =========================
   11. FOOTER
========================= */
.footer {
  padding: 64px 0 24px;

  background: linear-gradient(135deg, #001832, #002b5f);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  gap: 52px;
}

.footer-logo {
  margin-bottom: 20px;
  color: #fff;
}

.footer h3 {
  margin-bottom: 18px;
}

.footer p,
.footer a {
  display: block;

  margin-bottom: 10px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 0.95rem;
  line-height: 1.7;
}

.footer a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;

  margin-top: 40px;
  padding-top: 22px;

  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.oab-number,
.footer-oab {
  margin-top: 0.7rem;

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.92rem;
  letter-spacing: 0.4px;
}

/* Powered by */
.powered-by {
  padding: 1rem 0 1.4rem;

  text-align: center;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.powered-by p {
  margin: 0;

  color: rgba(255, 255, 255, 0.65);

  font-size: 0.9rem;
}

.powered-by a {
  color: #7dd3fc;
  font-weight: 600;
  transition: color 0.25s ease;
}

.powered-by a:hover {
  color: #bfe9ff;
}

/* =========================
   12. WHATSAPP FLUTUANTE
========================= */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;

  width: 62px;
  height: 62px;

  overflow: hidden;

  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);

  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  border-radius: 50%;
}

/* =========================
   13. COOKIES
========================= */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;

  padding: 18px 24px;

  background: rgba(0, 26, 61, 0.96);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;

  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.cookie-banner.hide {
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  color: rgba(255, 255, 255, 0.88);

  font-size: 0.92rem;
  line-height: 1.6;
}

.cookie-btn {
  min-width: 140px;

  padding: 14px 22px;

  border: 0;
  border-radius: 8px;

  background: var(--blue-button);
  color: #fff;

  font-weight: 700;

  cursor: pointer;
  transition: 0.25s ease;
}

.cookie-btn:hover {
  background: #0b6eff;
}

/* =========================
   14. PÁGINAS LEGAIS
========================= */
.legal-page {
  padding: 140px 0 80px;
  background: #ffffff;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

.legal-page .kicker {
  color: var(--blue-light);
}

.legal-page h1 {
  margin-bottom: 24px;

  color: #0b1c33;

  font-family: "Playfair Display", serif;
  font-size: 3rem;
  line-height: 1.1;
}

.legal-page h2 {
  margin-top: 42px;
  margin-bottom: 18px;

  color: #0b1c33;

  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
}

.legal-page p,
.legal-page li {
  color: #3d4652;

  font-size: 1.05rem;
  line-height: 1.9;
}

.legal-page p {
  margin-bottom: 14px;
}

.legal-page ul {
  margin-top: 12px;
  margin-bottom: 18px;
  padding-left: 22px;
}

.legal-page li {
  margin-bottom: 10px;
}

/* =========================================================
   15. RESPONSIVO — TABLET
========================================================= */
@media (max-width: 980px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header {
    height: 76px;
  }

  .logo span {
    font-size: 2.35rem;
  }

  .logo small {
    font-size: 0.58rem;
    letter-spacing: 5px;
  }

  .header .btn-dark {
    display: none;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
  }

  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 99;

    display: flex;
    flex-direction: column;
    gap: 0;

    background: #fff;
    box-shadow: var(--shadow);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);

    transition: 0.25s ease;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    padding: 18px 24px;

    color: var(--blue-dark);
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-bg {
    background-position: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 9vw, 3.6rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .benefits {
    padding: 36px 0;
  }

  .benefits-grid,
  .areas-grid,
  .process-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    gap: 0;
  }

  .benefit {
    padding: 22px 0;

    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .benefit:last-child {
    border-bottom: 0;
  }

  .areas {
    padding: 56px 0;
  }

  .areas-grid {
    gap: 24px;
  }

  .process {
    padding: 56px 0;
  }

  .process-grid {
    gap: 32px;
  }

  .process-card {
    width: 100%;
    max-width: 280px;
  }

  .contact-grid {
    gap: 0;
  }

  .contact-grid > div {
    padding: 22px 0;

    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-grid > div:last-child {
    border-bottom: 0;
  }

  .cta-inner {
    gap: 24px;
  }

  .footer {
    padding: 48px 0 20px;
  }

  .footer-grid {
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .legal-page {
    padding: 120px 0 70px;
  }
}

/* =========================================================
   16. RESPONSIVO — CELULAR
========================================================= */
@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero {
    padding: 105px 0 64px;
  }

  .hero-bg {
    background-image:
      linear-gradient(90deg, rgba(0, 29, 68, 0.97), rgba(0, 29, 68, 0.88)),
      url("../img/hac1.png");

    background-position: center;
  }

  .kicker,
  .section-title span {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-actions {
    gap: 14px;
  }

  .btn {
    width: 100%;
    padding: 14px 18px;
  }

  .section-title h2,
  .process h2 {
    font-size: 2rem;
  }

  .area-card {
    padding: 36px 22px;
  }

  .contact-strip h2 {
    font-size: 1.55rem;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;

    width: 54px;
    height: 54px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;

    padding: 16px;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-btn {
    width: 100%;
  }

  .legal-page {
    padding: 110px 0 56px;
  }

  .legal-container {
    width: 100%;
  }

  .legal-page h1 {
    font-size: 2.2rem;
  }

  .legal-page h2 {
    font-size: 1.3rem;
  }

  .legal-page p,
  .legal-page li {
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
  }
}
