/* =========================================================
   Alessandrini & Carneiro Advogados — versão estática
   Tokens e utilitários portados do projeto original (Tailwind v4)
   ========================================================= */

:root {
  --radius: 1.25rem;
  --background: oklch(0.98 0.005 80);
  --foreground: oklch(0.2 0.02 250);

  /* Brand tokens */
  --ink: oklch(0.36 0.035 245);   /* azul ardósia */
  --sand: oklch(0.78 0.03 70);    /* areia quente  */
  --gold: oklch(0.75 0.09 75);    /* dourado suave */

  /* Liquid glass surface tokens */
  --glass-bg: linear-gradient(
    135deg,
    color-mix(in oklab, white 22%, transparent) 0%,
    color-mix(in oklab, white 6%, transparent) 55%,
    color-mix(in oklab, white 18%, transparent) 100%
  );
  --glass-border: color-mix(in oklab, white 45%, transparent);
  --glass-shadow: 0 20px 60px -20px rgb(0 0 0 / 0.35),
                  0 2px 8px -2px rgb(0 0 0 / 0.15),
                  inset 0 1px 0 0 color-mix(in oklab, white 55%, transparent),
                  inset 0 -1px 0 0 color-mix(in oklab, white 12%, transparent);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  --maxw: 72rem;   /* max-w-6xl */
  --maxw7: 80rem;  /* max-w-7xl */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container   { width: 100%; max-width: var(--maxw);  margin-inline: auto; padding-inline: 1.5rem; }
.container-7 { width: 100%; max-width: var(--maxw7); margin-inline: auto; padding-inline: 1.5rem; }

/* ============ LIQUID GLASS ============ */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.75rem;
  isolation: isolate;
  overflow: hidden;
}
.glass-sheen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 30%,
    color-mix(in oklab, white 35%, transparent) 48%,
    color-mix(in oklab, white 10%, transparent) 52%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.2, 0.9, 0.2, 1);
  transform: translateX(-30%);
  pointer-events: none;
  z-index: 1;
}
.glass-sheen:hover::before { opacity: 1; transform: translateX(30%); }

/* Section backgrounds */
.bg-ink {
  background:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in oklab, var(--gold) 25%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, color-mix(in oklab, var(--sand) 30%, transparent), transparent 60%),
    var(--ink);
}
.bg-sand {
  background:
    radial-gradient(900px 500px at 90% 10%, color-mix(in oklab, white 40%, transparent), transparent 60%),
    var(--sand);
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}
.animate-bounce-down { animation: bounce-down 2s ease-in-out infinite; }

@keyframes aurora {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-4%, 3%, 0) scale(1.05); }
}
.animate-aurora { animation: aurora 14s ease-in-out infinite; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(8px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), filter .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* =================== NAV =================== */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 1rem 1rem 0; pointer-events: none;
}
@media (min-width: 640px) { .nav { padding-top: 1.5rem; } }
.nav__inner {
  pointer-events: auto;
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; }
.brand__mark {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff;
}
.brand__name { line-height: 1.05; }
.brand__name b { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.brand__name span { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.brand__img { height: 2.5rem; width: auto; object-fit: contain; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .5)); }
@media (min-width: 640px) { .brand__img { height: 3rem; } }
.footer__img { height: 7.5rem; width: auto; object-fit: contain; }

.nav__pill { border-radius: 999px; padding: .5rem; display: none; }
@media (min-width: 900px) { .nav__pill { display: block; } }
.nav__pill ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__pill a {
  position: relative; display: block; border-radius: 999px; padding: .5rem 1rem;
  font-size: .875rem; font-weight: 500; color: rgb(255 255 255 / .9); transition: color .2s;
}
.nav__pill a:hover { color: #fff; }
.nav__pill a.active { color: #fff; }
.nav__pill a.active::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px;
  background: rgb(255 255 255 / .25);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 6px 16px -6px rgb(0 0 0 / .4);
}
.nav__toggle {
  display: grid; place-items: center; border: 0; cursor: pointer; color: #fff;
  border-radius: 999px; padding: .75rem; background: transparent;
}
@media (min-width: 900px) { .nav__toggle { display: none; } }
.nav__mobile {
  pointer-events: auto; position: fixed; inset-inline: 1rem; top: 6rem; z-index: 40;
  border-radius: 1.5rem; padding: .75rem; display: none;
}
.nav__mobile.open { display: block; }
.nav__mobile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav__mobile a { display: block; border-radius: 1rem; padding: .75rem 1rem; font-size: .875rem; font-weight: 500; color: rgb(255 255 255 / .9); }
.nav__mobile a.active { background: rgb(255 255 255 / .2); color: #fff; }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =================== HERO =================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 90svh; background: var(--ink);
}
@media (min-width: 768px) { .hero { min-height: 100vh; } }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { height: 100%; width: 100%; object-fit: cover; object-position: center 35%; }
@media (min-width: 768px) { .hero__bg img { object-position: center 20%; } }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / .8), rgb(0 0 0 / .3) 55%, var(--ink));
}
.aurora {
  position: absolute; z-index: -10; border-radius: 999px; filter: blur(64px);
}
.aurora--gold { right: -10rem; top: 5rem; width: 520px; height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(255,180,90,.55), transparent 60%); }
.aurora--blue { left: -10rem; bottom: 0; width: 420px; height: 420px;
  background: radial-gradient(circle at 60% 40%, rgba(90,140,255,.45), transparent 60%); }
.hero__content {
  position: relative; z-index: 10; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 90svh; padding: 0 1.5rem 5rem; color: #fff;
  max-width: var(--maxw); margin-inline: auto;
}
@media (min-width: 768px) { .hero__content { min-height: 100vh; } }
.hero h1 {
  max-width: 56rem; font-weight: 300; line-height: .95; letter-spacing: -.02em;
  font-size: clamp(3rem, 9vw, 110px);
  animation: heroIn 1s cubic-bezier(.2,.8,.2,1) both;
}
.hero p {
  margin-top: 1.5rem; max-width: 42rem; font-size: 1rem; line-height: 1.7; color: rgb(255 255 255 / .85);
  animation: heroIn .9s ease .3s both;
}
@media (min-width: 768px) { .hero p { margin-top: 2rem; font-size: 1.25rem; } }
.hero__scroll {
  margin-top: 2.5rem; display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
  align-self: flex-start; border-radius: 1rem; color: #fff; animation: fadeIn 1s ease 1s both;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =================== SECTIONS =================== */
.section { position: relative; padding: 6rem 0; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .35em; color: var(--gold); }

/* História */
.history {
  display: grid; gap: 2.5rem; border-radius: 2.5rem; padding: 2rem;
}
@media (min-width: 768px) { .history { grid-template-columns: 300px 1fr; padding: 3.5rem; } }
.history h2 { font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.05; color: #fff; }
.history__rule { margin-top: 1rem; height: 3px; width: 4rem; background: var(--gold); }
.history__body { display: flex; flex-direction: column; gap: 1.25rem; font-size: 15px; line-height: 1.7; color: rgb(255 255 255 / .85); }

/* Equipe */
.team-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%;
  overflow: hidden; border-radius: 1.5rem; border: 1px solid rgb(255 255 255 / .1);
  background: var(--ink); padding: 1.5rem; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .6);
  transition: transform .3s ease;
}
.team-card:hover { transform: translateY(-4px); }
.team-card__photo { position: relative; overflow: hidden; border-radius: 1rem; height: 16rem; }
.team-card__photo img { height: 100%; width: 100%; object-fit: cover; object-position: top; }
.team-card__ph {
  height: 16rem; border-radius: 1rem; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in oklab, var(--gold) 35%, var(--ink)), var(--ink));
  color: #fff; font-family: var(--font-display); font-size: 3.5rem; font-weight: 600; letter-spacing: .02em;
}
.team-card h3 { margin-top: 1.25rem; font-size: 1.5rem; line-height: 1.15; color: #fff; }
.team-card .role { margin-top: .25rem; font-size: .875rem; color: var(--gold); }
.team-card .oab { margin-top: .25rem; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: rgb(255 255 255 / .6); }
.team-card .bio { margin-top: 1rem; font-size: .875rem; line-height: 1.7; color: rgb(255 255 255 / .75); }

/* Áreas — carrossel */
.areas-head { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media (min-width: 768px) { .areas-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.areas-head h2 { margin-top: .75rem; font-size: clamp(2.5rem, 6vw, 3.75rem); color: #fff; }
.areas-head p { max-width: 28rem; font-size: .875rem; color: rgb(255 255 255 / .7); }

.carousel { position: relative; width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: 18px; transition: transform .5s cubic-bezier(.2,.8,.2,1); padding: 1.5rem 0; }
.carousel__slide { flex: 0 0 100%; min-width: 0; }
@media (min-width: 640px) { .carousel__slide { flex-basis: calc(50% - 9px); } }
@media (min-width: 1024px) { .carousel__slide { flex-basis: calc(33.333% - 12px); } }
.area-card { position: relative; height: 100%; padding: 1.5rem; }
.area-card__bg { position: absolute; inset: 0; z-index: -10; opacity: .4; }
.area-card__bg img { height: 100%; width: 100%; object-fit: cover; filter: blur(12px); }
.area-card__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(255 255 255 / .4), rgb(255 255 255 / .1) 50%, rgb(255 255 255 / .5)); }
.area-card__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; color: var(--ink); }
.area-card h3 { margin-top: 1.5rem; font-size: 2.25rem; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.area-card p { margin-top: .75rem; min-height: 9rem; font-size: .875rem; line-height: 1.7; color: rgb(255 255 255 / .9); }

.carousel__arrow {
  position: absolute; top: 50%; z-index: 10; width: 46px; height: 46px; transform: translateY(-50%);
  display: grid; place-items: center; border: 1px solid color-mix(in oklab, white 45%, transparent);
  border-radius: 50%; background: color-mix(in oklab, var(--gold) 85%, transparent);
  backdrop-filter: blur(12px) saturate(160%); box-shadow: 0 10px 30px -10px rgb(0 0 0 / .35);
  cursor: pointer; color: #fff; transition: transform .2s;
}
.carousel__arrow:hover { transform: translateY(-50%) scale(1.05); }
.carousel__arrow--prev { left: -62px; }
.carousel__arrow--next { right: -62px; }
.carousel__dots { margin-top: 1.5rem; display: flex; justify-content: center; gap: .5rem; }
.carousel__dots button { height: 6px; width: 8px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .4); cursor: pointer; transition: all .3s; padding: 0; }
.carousel__dots button.active { width: 32px; background: #fff; }
@media (max-width: 1100px) {
  .carousel { width: calc(100% - 80px); }
  .carousel__arrow--prev { left: -44px; }
  .carousel__arrow--next { right: -44px; }
}
@media (max-width: 767px) {
  .carousel { width: calc(100% - 28px); padding-bottom: 4rem; }
  .carousel__arrow { top: auto; bottom: 0; transform: none; }
  .carousel__arrow:hover { transform: scale(1.05); }
  .carousel__arrow--prev { left: calc(50% - 58px); }
  .carousel__arrow--next { right: calc(50% - 58px); }
}

/* =================== FOOTER =================== */
.footer { color: rgb(255 255 255 / .8); scroll-margin-top: 6rem; }
.footer__grid {
  display: grid; gap: 2.5rem 3rem; padding: 4rem 1.5rem; max-width: var(--maxw7); margin-inline: auto;
  align-items: start;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer__grid { grid-template-columns: minmax(0,1.1fr) minmax(0,.8fr) minmax(0,1.2fr) minmax(0,1.4fr); } }
.footer__logo { display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) { .footer__logo { justify-content: flex-start; } }
.footer__logo .wordmark { text-align: center; }
.footer h4 { font-size: 1.25rem; color: #fff; }
.footer .rule { margin-top: .5rem; display: block; height: 1px; width: 3rem; background: color-mix(in oklab, var(--gold) 70%, transparent); margin-bottom: 1.25rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer .menu li { margin-bottom: .5rem; font-size: .875rem; }
.footer .menu a { transition: color .2s; }
.footer .menu a:hover { color: var(--gold); }
.contact-row { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; margin-bottom: .75rem; transition: color .2s; }
.contact-row:hover { color: #fff; }
.contact-ic { display: grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 auto; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .15); background: rgb(255 255 255 / .05); color: var(--gold); }
.contact-ic .icon { width: 14px; height: 14px; }
.contact-row .lead { display: block; color: #fff; }
.contact-row .sub { color: rgb(255 255 255 / .7); }
.socials { margin-top: 1.25rem; display: flex; gap: .5rem; }
.socials a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .15); background: rgb(255 255 255 / .05); color: rgb(255 255 255 / .8); transition: all .2s; }
.socials a:hover { transform: scale(1.05); background: color-mix(in oklab, var(--gold) 20%, transparent); color: #fff; }
.footer__bar { border-top: 1px solid rgb(255 255 255 / .1); }
.footer__bar .row { display: flex; flex-direction: column; align-items: center; gap: .5rem;
  max-width: var(--maxw); margin-inline: auto; padding: 1.5rem; font-size: .75rem; color: rgb(255 255 255 / .5); }
@media (min-width: 768px) { .footer__bar .row { flex-direction: row; justify-content: space-between; } }
.footer__bar a { color: var(--gold); transition: color .2s; }
.footer__bar a:hover { color: #fff; }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark b { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: #fff; }
.wordmark span { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: color-mix(in oklab, var(--gold) 85%, white); margin-top: .35rem; }
.footer__logo .wordmark b { font-size: 2rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
