/* ============================================================
   Lucas Notaro Advocacia — Azul Royal & Dourado
   Design system: blue #0e2448 + gold #c9a84c + ice #f4f8ff
   Fonts: Cormorant Garamond (display serif) + DM Sans (sans)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --ink: #0e2448;
  --ink-soft: #1a3461;
  --navy: #0e2448;
  --navy-deep: #08162e;
  --navy-soft: #1e3d74;
  --gold: #c9a84c;
  --gold-deep: #a88535;
  --gold-light: #e8d5a3;
  --gold-glow: rgba(201, 168, 76, .35);
  --paper: #f4f8ff;
  --paper-warm: #e8eef9;
  --paper-deep: #d6e0f2;
  --cream: #f8fbff;
  --burgundy: #1e3d74;
  --burgundy-soft: #2651a0;
  --white: #ffffff;
  --muted: #4a5d7e;
  --muted-soft: #7a8fa8;
  --line: #d2ddf0;
  --line-soft: #e4ecf8;

  --shadow-sm: 0 2px 8px rgba(14, 36, 72, .08);
  --shadow-md: 0 8px 24px rgba(14, 36, 72, .12);
  --shadow-lg: 0 24px 60px rgba(14, 36, 72, .18);
  --shadow-xl: 0 40px 90px rgba(14, 36, 72, .26);
  --shadow-gold: 0 16px 40px rgba(201, 168, 76, .32);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --serif: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .35s;
}

* { box-sizing: border-box; }
*::selection { background: var(--gold); color: var(--white); }

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(201,168,76,.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 100%, rgba(14,36,72,.08), transparent 60%),
    var(--paper);
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 52px);
  background: rgba(244, 248, 255, .92);
  border-bottom: 1px solid rgba(201, 168, 76, .22);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(14,36,72,.08);
  background: rgba(248, 251, 255, .97);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: opacity var(--dur) var(--ease);
}
.brand:hover { opacity: .8; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy-deep) url("images/logo-lucas-notaro.jpg") center / 90% auto no-repeat;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  text-indent: -999px;
  overflow: hidden;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.2);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: .5;
}
.brand strong,
.brand small { display: block; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-weight: 500; font-size: 1rem; letter-spacing: .01em; color: var(--navy); }
.brand small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; margin-top: 2px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .88rem;
}
.site-nav a:not(.nav-cta) {
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a:not(.nav-cta):hover { color: var(--navy); }

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-cta {
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border: 1px solid transparent;
  min-height: 40px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  padding: 0 22px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .7s var(--ease);
}
.btn:hover::before { transform: translateX(100%); }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { box-shadow: 0 22px 50px var(--gold-glow); }
.btn-secondary {
  color: var(--navy);
  background: transparent;
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-secondary.light {
  color: var(--white);
  border-color: rgba(255,255,255,.75);
}
.btn-secondary.light:hover {
  background: var(--white);
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 290px);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "eyebrow media"
    "copy    media";
  gap: clamp(4px, 1vw, 10px) clamp(18px, 3vw, 38px);
  justify-content: center;
  align-items: start;
  min-height: auto;
  padding: clamp(22px, 3.6vw, 40px) clamp(18px, 4vw, 52px) clamp(26px, 3.8vw, 44px);
  overflow: hidden;
  position: relative;
  background: #0A1A36;
}
.hero-eyebrow { grid-area: eyebrow; align-self: end; padding-bottom: 6px; }
.hero-copy    { grid-area: copy; }
.hero-media   { grid-area: media; align-self: center; }
/* Hero dark-bg text overrides */
.hero h1 { color: var(--white); }
.hero .hero-lede { color: var(--white) !important; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero .stats-row strong { color: var(--white); }
.hero .stats-row strong em { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .stats-row span { color: rgba(255,255,255,.65); }
.hero .stats-row { border-color: rgba(201,168,76,.3); background: rgba(255,255,255,.04); }
.hero .stats-row > div + div { border-color: rgba(201,168,76,.25); }
.hero .trust-strip span { background: rgba(255,255,255,.07); border-color: rgba(201,168,76,.35); color: var(--white); }
.hero .trust-strip span::before { color: var(--gold); }
.hero .btn-secondary { color: var(--white); border-color: rgba(255,255,255,.6); }
.hero .btn-secondary:hover { background: var(--white); color: var(--navy); }
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 90%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(201, 168, 76, .18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(14, 36, 72, .10) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  left: 8%;
  bottom: 8%;
  width: 180px;
  height: 180px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
}
.hero-copy { position: relative; z-index: 2; }

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold-deep);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
}
.eyebrow::before,
.section-kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.08;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--navy);
}
h1 {
  max-width: 650px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
}
h1 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 50%, #d4a86a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}
h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 400;
  letter-spacing: -.018em;
}
h3 { font-size: 1.2rem; font-weight: 600; font-family: var(--sans); letter-spacing: 0; }

.hero-lede {
  max-width: 540px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: clamp(.94rem, 1.1vw, 1rem);
  line-height: 1.48;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
  color: var(--navy);
  font-size: .76rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(201,168,76,.1);
  transition: all var(--dur) var(--ease);
}
.trust-strip span:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.trust-strip span::before {
  content: '✦';
  color: var(--gold);
  font-size: .7rem;
  transition: color var(--dur) var(--ease);
}
.trust-strip span:hover::before { color: var(--white); }

.hero-media {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 2 / 3;
  justify-self: end;
  z-index: 1;
}
.hero-media::before {
  content: '';
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 50%, rgba(201,168,76,.12) 100%);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,.18), transparent 65%);
  z-index: -1;
  pointer-events: none;
  filter: blur(20px);
}
.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  filter: saturate(1.08) contrast(1.06) brightness(1.02);
  transform: scale(1.22);
  transform-origin: 50% 8%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.hero-card {
  position: absolute;
  left: -18px;
  bottom: -20px;
  z-index: 3;
  width: min(238px, 82%);
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(201,168,76,.3);
  border: 1px solid rgba(201,168,76,.4);
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep), var(--gold));
}
.hero-card::after {
  content: '⚖';
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: var(--gold);
  font-size: 3rem;
  opacity: .15;
  pointer-events: none;
}
.hero-card strong { color: var(--gold-light); }
.hero-card strong,
.hero-card span { display: block; }
.hero-card strong { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; margin-bottom: 5px; }
.hero-card span { color: #c8d8f0; font-size: .82rem; line-height: 1.42; }

/* ---------- Sections ---------- */
.section {
  padding: clamp(48px, 6vw, 84px) clamp(18px, 4vw, 52px);
  position: relative;
}
.intro-band {
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
  position: relative;
  overflow: hidden;
}
.intro-band h2 em {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic !important;
  color: transparent !important;
}
.intro-band::before,
.intro-band::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold);
}
.intro-band::before { top: 28px; }
.intro-band::after { bottom: 28px; }

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

/* About photo in Sobre section */
.about-media {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 2 / 3;
  justify-self: center;
  overflow: hidden;
  border-radius: var(--radius);
}
.about-media::before {
  content: '';
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(201,168,76,.1) 0%, transparent 60%);
  z-index: 0;
}
.about-media::after {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse, rgba(201,168,76,.2), transparent 65%);
  filter: blur(24px);
  z-index: -1;
}
.about-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.18);
  transform-origin: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  filter: saturate(1.06) contrast(1.04);
  image-rendering: -webkit-optimize-contrast;
}
.about-media .signature-tag {
  position: absolute;
  right: -16px;
  bottom: 28px;
  z-index: 3;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(201,168,76,.4);
}
.about-media .signature-tag strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  color: var(--gold-light);
  font-style: italic;
}
.about-media .signature-tag span {
  display: block;
  color: #b8cceb;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-top: 3px;
  font-weight: 600;
}
.split > div > p { color: var(--ink-soft); font-size: .98rem; line-height: 1.65; }
.split > div > p:first-child { margin-top: 0; }

.section-heading {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-heading .section-kicker { justify-content: center; }
.section-heading p {
  margin-top: 12px;
  color: var(--muted);
  font-size: .98rem;
}
.section-center-cta {
  display: flex;
  justify-content: center;
  margin: 28px auto 0;
  text-align: center;
}
.section-center-cta.inline {
  justify-content: flex-start;
  margin-top: 28px;
}
.section-center-cta.dark {
  position: relative;
  z-index: 1;
}

/* ---------- Service grid ---------- */
.service-grid-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
}
.grid-arrow {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--white);
  color: var(--gold-deep);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.grid-arrow:hover {
  background: var(--gold);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: var(--shadow-gold);
}
.grid-arrow svg { pointer-events: none; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}
.service-card {
  position: relative;
  min-height: 225px;
  padding: 26px 22px;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(201,168,76,.05);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 24px 50px rgba(201,168,76,.25);
  background: linear-gradient(135deg, var(--cream) 0%, var(--paper-warm) 100%);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(201,168,76,.35);
  transition: transform var(--dur) var(--ease);
}
.service-card:hover span {
  transform: scale(1.08) rotate(-5deg);
}
.service-card h3 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.service-card p {
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.service-card::after {
  content: 'Saiba mais →';
  display: inline-block;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(201,168,76,.25);
  color: var(--gold-deep);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .02em;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.service-card:hover::after {
  transform: translateX(6px);
  color: var(--navy);
}

/* ---------- Dark section / diferenciais ---------- */
.dark-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
  overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, .08) 0%, transparent 70%);
  pointer-events: none;
}
.dark-section h2 { color: var(--white); }
.dark-section .section-kicker { color: var(--gold); }
.dark-section .section-heading p { color: #b8cceb; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.feature-list div {
  min-height: 155px;
  padding: 26px 22px;
  border-right: 1px solid rgba(201,168,76,.18);
  transition: background var(--dur) var(--ease);
  position: relative;
}
.feature-list div:last-child { border-right: 0; }
.feature-list div:hover {
  background: linear-gradient(180deg, rgba(201,168,76,.08), transparent);
}
.feature-list div::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width var(--dur) var(--ease);
}
.feature-list div:hover::before { width: 60px; }
.feature-list strong,
.feature-list span { display: block; }
.feature-list strong {
  margin-top: 12px;
  margin-bottom: 8px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
}
.feature-list span { color: #b8cceb; font-size: .84rem; line-height: 1.5; }

/* ---------- Testimonials ---------- */
.testimonial-slider {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.testimonial-viewport { width: 100%; }
.testimonial-track blockquote { display: none; }
.testimonial-track blockquote.is-active { display: block; }
.testimonial-track blockquote {
  flex: 0 0 100%;
}
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.slider-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
  line-height: 1;
}
.slider-arrow:hover {
  background: var(--gold);
  color: var(--white);
  transform: scale(1.08);
}
.slider-arrow svg { pointer-events: none; }
.slider-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--gold-light);
  cursor: pointer;
  padding: 0;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  opacity: .4;
}
.dot.active {
  background: var(--gold);
  opacity: 1;
  transform: scale(1.35);
}
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; display: block; }
.google-badge { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .78rem; color: var(--ink-soft); font-family: var(--sans); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.google-badge::before { content: 'G'; display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #4285f4 0%, #ea4335 50%, #fbbc04 75%, #34a853 100%); color: white; font-size: .7rem; font-weight: 700; align-items: center; justify-content: center; flex-shrink: 0; }
blockquote {
  margin: 0;
  padding: 30px 28px 26px;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.48;
  color: var(--navy);
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  overflow: hidden;
}
blockquote::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  left: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--serif);
  font-size: 4.8rem;
  line-height: 1;
  opacity: .8;
  font-weight: 700;
}
blockquote::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
blockquote:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(201,168,76,.18);
  border-color: var(--gold);
}
blockquote:hover::after { transform: scaleX(1); }
cite {
  display: block;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: .85rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .04em;
}
cite::before { content: '— '; color: var(--gold); }
.note {
  margin: 24px auto 0;
  max-width: 1280px;
  color: var(--muted-soft);
  font-size: .82rem;
  font-style: italic;
}

/* ---------- Blog preview ---------- */
.blog-preview {
  background:
    linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--paper-warm) 100%);
  position: relative;
  overflow: hidden;
}

/* ---------- Automation / scheduling ---------- */
.automation-home {
  background: #0A1A36;
  border-top: 1px solid rgba(201,168,76,.3);
  border-bottom: 1px solid rgba(201,168,76,.3);
}
/* Automation dark-bg text overrides */
.automation-home .section-heading h2 { color: var(--white); }
.automation-home .section-heading p { color: rgba(255,255,255,.70); }
.automation-home .section-kicker { color: var(--gold); }
.automation-home .section-kicker::before { background: var(--gold); }
.automation-home .automation-grid h3 { color: var(--white); }
.automation-home .automation-grid p { color: rgba(255,255,255,.65); }
.automation-home .automation-grid span { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); }
.automation-home .automation-grid article { background: rgba(255,255,255,.05); border-color: rgba(201,168,76,.2); }
.automation-home .automation-cta { background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.04)); border: 1px solid rgba(201,168,76,.35); }
.automation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}
.automation-grid article,
.scheduler-card,
.automation-panel,
.confirmation-card,
.admin-warning {
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.automation-grid article {
  min-height: 185px;
  padding: 22px;
}
.automation-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  font-family: var(--serif);
  font-weight: 600;
}
.automation-grid h3 { margin-bottom: 12px; color: var(--navy); }
.automation-grid p,
.automation-cta p,
.workflow-list span,
.privacy-box p,
.form-feedback { color: var(--muted); }
.automation-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 26px 28px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
}
.automation-cta strong {
  display: block;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}
.automation-cta p { margin: 6px 0 0; color: #b8cceb; }
.automation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  max-width: 1280px;
  margin: 0 auto;
}
.scheduler-card,
.automation-panel,
.confirmation-card,
.admin-warning {
  padding: 26px;
}
.scheduler-card h2,
.confirmation-card h2 { margin-bottom: 22px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.scheduler-card label,
.admin-gate label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .88rem;
}
.scheduler-card input,
.scheduler-card select,
.scheduler-card textarea,
.admin-gate input,
.admin-table select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.scheduler-card textarea { min-height: 110px; resize: vertical; }
.scheduler-card > label,
.consent-line { margin-top: 14px; }
.consent-line {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 12px !important;
  padding: 12px;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.consent-line input {
  width: auto;
  margin-top: 4px;
}
.form-feedback {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f0f6ff;
  border: 1px solid var(--gold-light);
}
.scheduler-card button { margin-top: 20px; }
.workflow-list {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.workflow-list li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.workflow-list strong,
.workflow-list span { display: block; }
.workflow-list strong { color: var(--navy); }
.privacy-box {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.privacy-box a {
  color: var(--gold-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.confirmation-card {
  max-width: 980px;
  margin: 0 auto;
}
.admin-gate .contact-card {
  max-width: 560px;
  margin: 0 auto;
}
.admin-warning { margin-bottom: 24px; background: var(--cream); }
.admin-warning p { margin: 6px 0 0; color: var(--muted); }
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.admin-metrics div {
  padding: 24px;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.admin-metrics strong,
.admin-metrics span { display: block; }
.admin-metrics strong {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 2.3rem;
  line-height: 1;
}
.admin-metrics span {
  margin-top: 6px;
  color: var(--muted);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}
.table-wrap {
  overflow-x: auto;
  margin: 16px 0 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.admin-table th,
.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: var(--navy);
  background: var(--cream);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-table small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.blog-preview::before {
  content: '';
  position: absolute;
  top: 40px;
  right: -100px;
  width: 300px;
  height: 300px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: .2;
  pointer-events: none;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.article-grid a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  padding: 24px 22px;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.article-grid a::after {
  content: '→';
  position: absolute;
  bottom: 26px;
  right: 26px;
  color: var(--gold);
  font-size: 1.3rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.article-grid a:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 44px rgba(201,168,76,.22);
  background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
}
.article-grid a:hover::after { opacity: 1; transform: translateX(0); }
.article-grid span {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(201,168,76,.25);
}
.article-grid strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--navy);
}

/* ---------- CTA ---------- */
.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(201,168,76,.28), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(14,36,72,.4), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 50%, #0f2d5a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(201,168,76,.12), transparent 70%);
  pointer-events: none;
}
.cta-section > div { max-width: 780px; position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); }
.cta-section .section-kicker { color: var(--gold); }
.cta-section p { color: #b8cceb; font-size: 1.08rem; max-width: 620px; }
.cta-section .btn { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px clamp(18px, 4vw, 52px) 32px;
  color: #a8bdd8;
  background: var(--navy-deep);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(20px, 5vw, 64px);
  right: clamp(20px, 5vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.site-footer strong {
  display: block;
  margin-bottom: 16px;
  color: var(--white);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.site-footer p,
.site-footer a {
  display: block;
  color: #8aaacb;
  font-size: .92rem;
  line-height: 1.8;
  margin: 0 0 4px;
}
.site-footer a:hover { color: var(--gold); }
.legal-note {
  grid-column: 1 / -1;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted-soft);
  font-size: .82rem;
  line-height: 1.6;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  color: var(--white);
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 18px 40px rgba(37, 211, 102, .35);
  font-weight: 600;
  font-size: .95rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.whatsapp-float::before {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 50px rgba(37, 211, 102, .45);
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding: clamp(58px, 7vw, 92px) clamp(18px, 4vw, 52px) clamp(44px, 6vw, 70px);
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(201,168,76,.12), transparent 60%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  color: var(--gold-light);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-hero .breadcrumb::after { content: '  →'; color: var(--gold); margin-left: 8px; }
.page-hero h1 {
  max-width: 960px;
  margin-top: 0;
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.05;
}
.page-hero p {
  max-width: 720px;
  margin-top: 16px;
  color: #b8cceb;
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Content layout (area / blog post) ---------- */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
.article-body {
  max-width: 780px;
  font-size: .98rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.article-body p { margin: 18px 0; }
.article-body h2 {
  margin-top: 38px;
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  color: var(--navy);
}
.article-body h3 { margin-top: 32px; margin-bottom: 10px; color: var(--navy); }
.article-body a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--gold-deep); }
.article-body ul,
.article-body ol { padding-left: 24px; margin: 18px 0; }
.article-body li { margin-bottom: 8px; color: var(--ink-soft); }
.check-list {
  list-style: none;
  padding-left: 0;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

.sidebar-card,
.contact-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
}
.sidebar-card::before,
.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}
.sidebar-card { position: sticky; top: 104px; }
.sidebar-card h3,
.contact-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
}
.sidebar-card p,
.contact-card p { color: var(--muted); font-size: .95rem; line-height: 1.7; margin: 0 0 12px; }
.sidebar-card .btn,
.contact-card .btn {
  width: 100%;
  margin-top: 18px;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.contact-card strong { color: var(--navy); font-weight: 600; }
.contact-card a { color: var(--gold-deep); font-weight: 500; }
.contact-card a:hover { color: var(--gold); }

.contact-form {
  display: grid;
  gap: 18px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .02em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201,168,76,.12);
}
.contact-form textarea { min-height: 140px; resize: vertical; font-family: var(--sans); }

.map-frame {
  width: 100%;
  min-height: 300px;
  max-width: 1280px;
  margin: 0 auto;
  display: block;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Stats row (new) ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 640px;
  margin: 18px 0 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--paper-warm) 100%);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(201,168,76,.12);
  position: relative;
}
.stats-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.stats-row > div {
  text-align: left;
  padding-right: 14px;
}
.stats-row > div + div { border-left: 1px solid rgba(201,168,76,.3); padding-left: 14px; }
.stats-row strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.stats-row strong em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats-row span {
  color: var(--ink-soft);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .automation-grid { grid-template-columns: repeat(2, 1fr); }
  .automation-layout { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .feature-list div {
    border-right: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .feature-list div:nth-child(2n) { border-right: 0; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { min-height: 330px; max-width: 270px; justify-self: center; order: -1; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-header { min-height: 64px; padding: 0 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand small { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .nav-toggle .hb-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .nav-toggle.is-open .hb-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open .hb-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.is-open .hb-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none !important; }
  .hero {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 20px 48px;
    min-height: auto;
  }
  .hero-eyebrow { order: 0; width: 100%; text-align: center; margin: 0; }
  .hero-media   { order: 1; width: min(92%, 300px); max-height: 420px; min-height: auto; flex-shrink: 0; overflow: hidden; border-radius: var(--radius); }
  .hero-media img { transform: none; transform-origin: unset; }
  .hero-copy    { order: 2; width: 100%; padding-top: 0; }
  .eyebrow,
  .section-kicker { margin-bottom: 10px; font-size: .60rem; letter-spacing: .08em; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-copy .eyebrow::before { display: none; }
  .hero .eyebrow { font-size: .56rem; letter-spacing: .05em; white-space: normal; max-width: 100%; line-height: 1.35; }
  .hero-actions { justify-content: center; }
  .hero .stats-row { text-align: center; }
  .service-grid-wrap,
  .testimonial-wrap { gap: 10px; padding: 0 2px; }
  .grid-arrow { display: flex; }
  .service-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding-bottom: 6px;
  }
  .service-grid::-webkit-scrollbar { display: none; }
  .service-grid .service-card {
    flex: 0 0 70%;
    scroll-snap-align: start;
    min-height: 165px;
  }
  h1 { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.05; }
  .hero-lede { margin-top: 8px; font-size: .85rem; line-height: 1.38; }
  .hero-actions { gap: 8px; margin-top: 12px; }
  .hero .btn { min-height: 40px; padding: 0 16px; font-size: .82rem; }
  .hero-media {
    min-height: auto;
    max-width: min(92%, 300px);
    max-height: 400px;
    aspect-ratio: 3 / 4;
    justify-self: center;
    margin-bottom: 0;
  }
  .hero-media img { object-position: center 30%; object-fit: cover; }
  .hero-copy { padding-top: 4px; }
  .hero h1 { font-size: clamp(1.45rem, 6.8vw, 1.9rem); line-height: 1.08; }
  .hero .stats-row { padding: 12px 10px; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
  .hero .stats-row > div { padding: 4px 8px; }
  .hero .stats-row strong { font-size: 1rem; }
  .hero .stats-row span { font-size: .55rem; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; }
  /* Testimonials mobile carousel */
  .testimonial-wrap { gap: 8px; }
  .testimonial-track {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding-bottom: 6px;
  }
  .testimonial-track::-webkit-scrollbar { display: none; }
  .testimonial-track .testimonial-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .hero-media::before { display: none; }
  .hero-media::after { inset: -8px; filter: blur(10px); }
  .hero-card { left: 8px; bottom: -14px; padding: 10px 12px; width: min(210px, 76%); }
  .hero-card strong { font-size: .92rem; margin-bottom: 3px; }
  .hero-card span { font-size: .72rem; line-height: 1.3; }
  .hero::before { display: none; }
  .hero::after { display: none; }
  .about-media::before { inset: 0; }
  .about-media::after { display: none; }
  .signature-tag { right: 0; left: auto; }
  .section { padding-left: clamp(16px, 5vw, 32px); padding-right: clamp(16px, 5vw, 32px); }
  .section-heading { text-align: left; }
  .section-heading .section-kicker { justify-content: flex-start; }

  .stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px; margin-top: 12px; }
  .stats-row > div { padding-right: 8px; }
  .stats-row > div + div { padding-left: 8px; }
  .stats-row > div:nth-child(3) { grid-column: auto; border-left: 1px solid rgba(201,168,76,.3); padding-left: 8px; border-top: 0; padding-top: 0; margin-top: 0; }
  .stats-row strong { font-size: .92rem; margin-bottom: 3px; }
  .stats-row span { font-size: .55rem; line-height: 1.25; letter-spacing: .07em; }
  .trust-strip { display: none; }

  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .cta-section { flex-direction: column; align-items: flex-start; text-align: left; }
  .service-grid,
  .automation-grid,
  .feature-list,
  .article-grid { grid-template-columns: 1fr; }
  .automation-cta,
  .form-grid,
  .admin-metrics { grid-template-columns: 1fr; }
  .automation-cta { display: grid; }
  .feature-list div { border-right: 0; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; padding: 56px 20px 32px; }
  .whatsapp-float { right: 16px; bottom: 16px; padding: 0 18px; min-height: 48px; }
}

/* ---------- Admin nav link ---------- */
.nav-admin {
  color: var(--muted-soft) !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
  letter-spacing: .04em;
  padding: 4px 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-pill) !important;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease) !important;
}
.nav-admin:hover {
  color: var(--navy) !important;
  border-color: var(--navy) !important;
}
.nav-admin::after { display: none !important; }

.mobile-sidebar-admin {
  margin-top: auto;
  color: rgba(255,255,255,.35) !important;
  font-size: .82rem !important;
  border-bottom: 0 !important;
  border-top: 1px solid rgba(255,255,255,.07) !important;
  letter-spacing: .04em;
}
.mobile-sidebar-admin:hover {
  color: rgba(255,255,255,.65) !important;
  background: rgba(255,255,255,.04) !important;
  padding-left: 24px !important;
}

/* ---------- Mobile sidebar & overlay ----------
   IMPORTANTE: backdrop-filter fica APENAS no overlay, NUNCA no sidebar.
   Colocar backdrop-filter no painel do sidebar causa blur nos próprios
   elementos filhos (bug confirmado no protótipo Rafael Neves).
   ------------------------------------------------------------ */
body.sidebar-open { overflow: hidden; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 17, 32, .52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(320px, 88vw);
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--shadow-xl);
  transform: translateX(-110%);
  will-change: transform;
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
  overflow-x: hidden;
}
.mobile-sidebar.open { transform: translateX(0); }

.mobile-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(201, 168, 76, .2);
  flex-shrink: 0;
}
.mobile-sidebar-head .brand { gap: 12px; }
.mobile-sidebar-head .brand strong { color: var(--gold-light); font-size: .95rem; }
.mobile-sidebar-head .brand small { display: block; color: rgba(255,255,255,.5); }

.mobile-sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid rgba(201, 168, 76, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--gold-light);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.mobile-sidebar-close:hover {
  background: rgba(201, 168, 76, .15);
  border-color: var(--gold);
}

.mobile-sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 8px 0;
}
.mobile-sidebar-nav a {
  display: block;
  padding: 16px 24px;
  color: rgba(255, 255, 255, .82);
  font-size: .96rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.mobile-sidebar-nav a:last-child { border-bottom: 0; }
.mobile-sidebar-nav a:hover {
  color: var(--gold-light);
  background: rgba(201, 168, 76, .08);
  padding-left: 30px;
}

.mobile-sidebar-footer {
  padding: 20px 22px;
  border-top: 1px solid rgba(201, 168, 76, .2);
  flex-shrink: 0;
}
.mobile-sidebar-footer .btn {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  justify-content: center;
}

/* ============================================================
   Section photo backgrounds — TODAS as páginas
   Fotos 100% jurídicas via Unsplash; overlay preserva paleta
   ============================================================ */

/* Hero homepage — documentos jurídicos sobre mesa */
.hero {
  background: #0A1A36;
}

/* page-hero (todas as páginas internas) — fachada de tribunal */
.page-hero {
  background:
    linear-gradient(160deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.93) 100%),
    url('https://images.unsplash.com/photo-1589994160839-163cd867cfe8?auto=format&fit=crop&w=1600&q=60') center / cover no-repeat;
}
.page-hero .breadcrumb { color: rgba(255,255,255,.65); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.80); }

/* Sobre — prateleiras de livros jurídicos */
.intro-band {
  background:
    linear-gradient(160deg, rgba(247,240,225,.91) 0%, rgba(239,228,204,.89) 100%),
    url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?auto=format&fit=crop&w=1600&q=60') center 30% / cover no-repeat;
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
}

/* Áreas — livros jurídicos empilhados */
#areas {
  background:
    linear-gradient(180deg, rgba(253,248,238,.93) 0%, rgba(247,240,225,.92) 100%),
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1600&q=60') center / cover no-repeat;
}

/* Diferenciais (dark) — biblioteca jurídica escura */
.dark-section {
  background:
    linear-gradient(135deg, rgba(0,0,0,.93) 0%, rgba(0,0,0,.91) 100%),
    url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1600&q=60') center / cover no-repeat fixed;
}

/* Depoimentos — martelo de juiz sobre mesa */
#depoimentos {
  background:
    linear-gradient(180deg, rgba(247,240,225,.92) 0%, rgba(239,228,204,.91) 100%),
    url('https://images.unsplash.com/photo-1589829085893-a91e4e07d99d?auto=format&fit=crop&w=1600&q=60') center / cover no-repeat;
}

/* Blog preview (home) — livros jurídicos antigos */
.blog-preview {
  background:
    linear-gradient(160deg, rgba(239,228,204,.91) 0%, rgba(247,240,225,.92) 100%),
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1600&q=60') center bottom / cover no-repeat;
}


/* ============================================================
   Premium redesign upgrades — R$10.000 quality uplift
   ============================================================ */

/* H1 hero — larger, more cinematic */
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem) !important;
  letter-spacing: -.02em;
  line-height: 1.05 !important;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 50%, #e8c88a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), transparent);
  border-radius: 2px;
}

/* Floating orbs behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 600px;
  height: 600px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(201,168,76,.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(14,36,72,.10) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: heroOrb 8s ease-in-out infinite alternate;
}
@keyframes heroOrb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, 20px) scale(1.1); }
}

/* Service cards — premium hover with gradient border */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold), transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--gold-light); }
.service-card:hover::after { opacity: .06; }

/* Section headings — editorial upgrade */
.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -.015em;
  line-height: 1.1;
}

/* Blockquote testimonials — premium glass cards */
blockquote {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(253,248,238,.95)) !important;
  backdrop-filter: blur(12px);
  border: none !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.8) !important;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease) !important;
}
blockquote:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.8) !important; }

/* Footer — richer dark */
.site-footer {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%) !important;
  border-top: 1px solid rgba(201,168,76,.2);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============================================================
   CRM — Painel administrativo
   ============================================================ */
.crm-topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:32px; flex-wrap:wrap; gap:16px; }
.crm-tabs { display:flex; gap:4px; background:rgba(0,0,0,.06); border-radius:var(--radius-pill); padding:4px; }
.crm-tab { padding:10px 22px; border:none; border-radius:var(--radius-pill); background:transparent; color:var(--ink-soft); font-weight:600; font-size:.88rem; cursor:pointer; transition:background var(--dur) var(--ease),color var(--dur) var(--ease); }
.crm-tab.active { background:var(--navy); color:var(--white); }
.crm-tab:not(.active):hover { background:rgba(0,0,0,.1); }

/* KPI grid */
.crm-kpi-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; margin-bottom:32px; }
.crm-kpi { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:24px 20px; text-align:center; box-shadow:var(--shadow-sm); position:relative; overflow:hidden; }
.crm-kpi::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--gold),var(--gold-deep)); }
.crm-kpi strong { display:block; font-family:var(--serif); font-size:2.2rem; font-weight:500; color:var(--navy); line-height:1; margin-bottom:8px; }
.crm-kpi span { font-size:.78rem; color:var(--muted); text-transform:uppercase; letter-spacing:.12em; font-weight:600; }

/* Charts */
.crm-charts-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; }
.crm-chart-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-sm); }
.crm-chart-card h3 { font-family:var(--serif); font-weight:500; font-size:1rem; color:var(--navy); margin:0 0 18px; }
.crm-bar-row { display:flex; align-items:center; gap:10px; margin-bottom:8px; font-size:.82rem; }
.crm-bar-row span { min-width:130px; color:var(--ink-soft); font-weight:500; }
.crm-bar-track { flex:1; height:22px; background:var(--paper); border-radius:4px; overflow:hidden; }
.crm-bar-fill { height:100%; background:linear-gradient(90deg,var(--gold),var(--gold-deep)); border-radius:4px; color:var(--white); font-size:.7rem; font-weight:700; display:flex; align-items:center; padding:0 6px; min-width:20px; transition:width .4s var(--ease); }

/* Leads list */
.crm-list-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.crm-list-header h3 { font-family:var(--serif); font-weight:500; font-size:1.25rem; color:var(--navy); margin:0; }
.crm-lead-list { display:flex; flex-direction:column; gap:10px; }
.crm-lead-row { display:grid; grid-template-columns:2fr 1.5fr 1fr 1.2fr auto; gap:16px; align-items:center; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:16px 20px; box-shadow:var(--shadow-sm); transition:box-shadow var(--dur) var(--ease); }
.crm-lead-row:hover { box-shadow:var(--shadow-md); }
.crm-lead-row > div strong { display:block; font-weight:600; color:var(--navy); }
.crm-lead-row small { display:block; color:var(--muted); font-size:.8rem; }
.crm-lead-btns { display:flex; gap:8px; }

/* Tags & temp */
.crm-tag { display:inline-block; padding:3px 10px; border-radius:var(--radius-pill); background:var(--paper-warm); color:var(--navy); font-size:.75rem; font-weight:600; }
.crm-tag-row { display:flex; gap:6px; flex-wrap:wrap; margin:4px 0; }
.crm-temp { display:inline-block; padding:3px 10px; border-radius:var(--radius-pill); font-size:.75rem; font-weight:700; }
.crm-hot { background:#fff0f0; color:#c0392b; }
.crm-warm { background:#fffbf0; color:#d68910; }
.crm-cold { background:#f0f4ff; color:#2471a3; }
.crm-temp.crm-hot { background:#fff0f0; color:#c0392b; }
.crm-temp.crm-warm { background:#fffbf0; color:#d68910; }
.crm-temp.crm-cold { background:#f0f4ff; color:#2471a3; }

/* Kanban */
.crm-kanban { display:flex; gap:16px; overflow-x:auto; padding-bottom:16px; min-height:400px; }
.crm-col { flex:0 0 220px; background:var(--paper); border-radius:var(--radius); padding:16px; display:flex; flex-direction:column; gap:10px; border:1px solid var(--line); }
.crm-col h3 { font-size:.82rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--navy); margin:0 0 8px; display:flex; align-items:center; justify-content:space-between; }
.crm-col-count { background:var(--navy); color:var(--white); border-radius:999px; padding:1px 8px; font-size:.72rem; }
.crm-col-body { flex:1; display:flex; flex-direction:column; gap:8px; }
.crm-empty { color:var(--muted-soft); font-size:.85rem; text-align:center; padding:16px 0; }
.crm-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius-sm); padding:14px; box-shadow:var(--shadow-sm); cursor:grab; transition:box-shadow var(--dur) var(--ease),transform var(--dur) var(--ease); }
.crm-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.crm-card strong { display:block; font-size:.9rem; color:var(--navy); margin-bottom:4px; }
.crm-card small { display:block; color:var(--muted); font-size:.75rem; line-height:1.4; margin-bottom:4px; }
.crm-card-actions { display:flex; gap:6px; margin-top:10px; }

/* Small buttons */
.btn-small { min-height:34px; padding:0 14px; font-size:.8rem; }

/* Drawer */
.crm-backdrop { position:fixed; inset:0; z-index:200; pointer-events:none; }
.crm-backdrop.open { background:rgba(0,0,0,.5); backdrop-filter:blur(4px); pointer-events:all; display:flex; align-items:stretch; justify-content:flex-end; }
.crm-drawer { width:min(480px,96vw); background:var(--white); display:flex; flex-direction:column; gap:0; overflow-y:auto; box-shadow:var(--shadow-xl); animation:slideInRight .3s var(--ease); }
@keyframes slideInRight { from { transform:translateX(100%); } to { transform:translateX(0); } }
.crm-drawer-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:28px 28px 20px; border-bottom:1px solid var(--line); }
.crm-drawer-head h2 { margin:0; font-family:var(--serif); font-size:1.4rem; color:var(--navy); }
.crm-drawer-meta { margin:4px 0 0; color:var(--muted); font-size:.85rem; }
.crm-drawer-actions { display:flex; flex-wrap:wrap; gap:10px; padding:20px 28px; border-bottom:1px solid var(--line); }
.crm-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:20px 28px; border-bottom:1px solid var(--line); }
.crm-detail-grid > div span { display:block; font-size:.72rem; color:var(--muted); text-transform:uppercase; letter-spacing:.1em; margin-bottom:2px; }
.crm-detail-grid > div strong { color:var(--navy); font-size:.9rem; }
.crm-notes { padding:20px 28px; border-bottom:1px solid var(--line); }
.crm-notes strong,.crm-history strong { display:block; font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; color:var(--gold-deep); margin-bottom:8px; }
.crm-notes p { margin:0; color:var(--ink-soft); font-size:.9rem; line-height:1.6; }
.crm-history { padding:20px 28px; border-bottom:1px solid var(--line); }
.crm-history ul { margin:0; padding-left:18px; }
.crm-history li { color:var(--ink-soft); font-size:.85rem; margin-bottom:4px; }
.crm-selects { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:20px 28px; }
.crm-selects label { display:flex; flex-direction:column; gap:6px; font-size:.8rem; font-weight:600; color:var(--ink-soft); }
.crm-selects select { border:1px solid var(--line); border-radius:var(--radius-sm); padding:8px 10px; font-size:.85rem; color:var(--navy); background:var(--paper); }

@media (max-width:760px) {
  .crm-lead-row { grid-template-columns:1fr; gap:10px; }
  .crm-lead-btns { flex-wrap:wrap; }
  .crm-topbar { flex-direction:column; align-items:flex-start; gap:12px; }
  .crm-tabs { flex-wrap:wrap; width:100%; }
  .crm-tab { flex:1; text-align:center; padding:10px 12px; font-size:.82rem; }
  .crm-charts-grid { grid-template-columns:1fr; }
  .crm-detail-grid { grid-template-columns:1fr; }
  .crm-selects { grid-template-columns:1fr; }
  .crm-kanban { flex-direction:column; overflow-x:unset; padding-bottom:0; }
  .crm-col { flex:none; width:100%; }
  .crm-kpi-grid { grid-template-columns:repeat(2,1fr); }
  .crm-bar-row { flex-direction:column; align-items:flex-start; gap:6px; }
  .crm-bar-row span { min-width:unset; }
  .crm-list-header { flex-direction:column; align-items:flex-start; gap:10px; }
  .admin-metrics { grid-template-columns:repeat(2,1fr); }
  .admin-actions { flex-direction:column; }
  .admin-actions .btn { width:100%; }
  .crm-drawer { width:100%; }
  .crm-drawer-head { padding:20px 18px 16px; }
  .crm-drawer-actions { padding:14px 18px; }
  .crm-detail-grid { padding:14px 18px; }
  .crm-notes, .crm-history, .crm-selects { padding:14px 18px; }
}

/* CTA section — balança da justiça, overlay azul+dourado */
.cta-section {
  background:
    linear-gradient(135deg, rgba(8,22,46,.94) 0%, rgba(14,36,72,.80) 60%, rgba(8,22,46,.96) 100%),
    url('https://images.unsplash.com/photo-1589578228447-e1a4e481c6c8?auto=format&fit=crop&w=1600&q=60') center / cover no-repeat fixed;
}

/* Agendamento — martelo de juiz, tom cálido */
.automation-layout {
  background:
    linear-gradient(180deg, rgba(253,248,238,.92) 0%, rgba(247,240,225,.91) 100%),
    url('https://images.unsplash.com/photo-1568605114967-8130f3a36994?auto=format&fit=crop&w=1600&q=60') center / cover no-repeat;
}

/* Admin login gate — fachada tribunal com overlay claro */
.admin-gate {
  background:
    linear-gradient(160deg, rgba(253,248,238,.94) 0%, rgba(247,240,225,.93) 100%),
    url('https://images.unsplash.com/photo-1589994160839-163cd867cfe8?auto=format&fit=crop&w=1600&q=60') center / cover no-repeat fixed;
}

/* Admin content — documentos jurídicos, overlay suave */
[data-admin-content] {
  background:
    linear-gradient(180deg, rgba(247,240,225,.95) 0%, rgba(253,248,238,.95) 100%),
    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1600&q=60') center / cover no-repeat;
}

/* Páginas internas (blog posts, áreas) — biblioteca */
.content-layout {
  background:
    linear-gradient(160deg, rgba(253,248,238,.94) 0%, rgba(247,240,225,.93) 100%),
    url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?auto=format&fit=crop&w=1600&q=60') center / cover no-repeat;
}

/* ============================================================
   Financeiro — honorários
   ============================================================ */
.fin-kpi-green::before { background: linear-gradient(90deg,#27ae60,#2ecc71) !important; }
.fin-kpi-blue::before  { background: linear-gradient(90deg,#2471a3,#5dade2) !important; }
.fin-kpi-amber::before { background: linear-gradient(90deg,#d4ac0d,#f4d03f) !important; }
.fin-kpi-green strong  { color: #1e8449; }
.fin-kpi-blue strong   { color: #1a5276; }
.fin-kpi-amber strong  { color: #9a7d0a; }

.fin-actions { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:24px; }

.fin-badge { display:inline-block; padding:3px 12px; border-radius:999px; font-size:.75rem; font-weight:700; letter-spacing:.06em; }
.fin-pago      { background:#eafaf1; color:#1e8449; border:1px solid #a9dfbf; }
.fin-pendente  { background:#fef9e7; color:#9a7d0a; border:1px solid #f9e79f; }
.fin-parcelado { background:#eaf4fb; color:#1a5276; border:1px solid #a9cce3; }
.fin-cancelado { background:#fdedec; color:#922b21; border:1px solid #f1948a; }

/* ============================================================
   WhatsApp Templates
   ============================================================ */
.wat-header { margin-bottom:28px; }
.wat-header h3 { font-family:var(--serif); font-size:1.4rem; font-weight:500; color:var(--navy); margin:0 0 8px; }
.wat-sub { color:var(--ink-soft); font-size:.9rem; margin:0; line-height:1.6; }

.wat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.wat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.wat-card-head { display:flex; align-items:center; gap:10px; }
.wat-icon { font-size:1.4rem; line-height:1; flex-shrink:0; }
.wat-card-head strong { font-size:.95rem; font-weight:700; color:var(--navy); }
.wat-text {
  font-size:.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0;
  border-left: 3px solid var(--gold-light);
  flex: 1;
}
.wat-card-actions { display:flex; gap:8px; flex-wrap:wrap; }

/* ============================================================
   Relatório mensal
   ============================================================ */
.rel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.rel-header h3 { font-family:var(--serif); font-size:1.5rem; font-weight:500; color:var(--navy); margin:0; }
.rel-header h3 em { font-style:italic; color:var(--gold-deep); }

.rel-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}
.rel-summary strong { display:block; font-size:.78rem; text-transform:uppercase; letter-spacing:.12em; color:var(--gold-deep); margin-bottom:10px; }
.rel-summary p { margin:0; color:var(--ink-soft); font-size:.95rem; line-height:1.7; }

@media (max-width:760px) {
  .wat-grid { grid-template-columns:1fr; }
  .rel-header { flex-direction:column; align-items:flex-start; }
}

/* ============================================================
   Modal — sistema de formulários reais (substitui prompt())
   ============================================================ */
.ln-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ln-modal-backdrop.open { display: flex; }

.ln-modal {
  background: var(--white);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.3), 0 0 0 1px rgba(201,168,76,.15);
  animation: modalIn .22s cubic-bezier(.34,1.2,.64,1);
}
@keyframes modalIn {
  from { opacity:0; transform:translateY(16px) scale(.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.ln-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.ln-modal-head h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0;
}
.ln-modal-close {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ln-modal-close:hover { background: var(--paper); color: var(--navy); }
.ln-modal-body { padding: 24px 28px 28px; }

/* ── Form inside modal ──────────────────────────────────────── */
.ln-form { display: flex; flex-direction: column; gap: 20px; }
.ln-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ln-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ln-input {
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: .93rem;
  color: var(--navy);
  background: var(--paper);
  font-family: var(--sans);
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
  box-sizing: border-box;
}
.ln-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.14);
  background: var(--white);
}
.ln-input::placeholder { color: var(--muted-soft); }
.ln-textarea { resize: vertical; min-height: 80px; }
select.ln-input { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ── Status / temp pill radios ──────────────────────────────── */
.ln-status-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pill-opt { cursor: pointer; }
.pill-opt input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.pill-opt span {
  display: inline-block;
  padding: 7px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  transition: all .16s;
  cursor: pointer;
  user-select: none;
}
.pill-opt:hover span { border-color: var(--gold-light); color: var(--navy); }
.pill-opt input[type="radio"]:checked + span {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
/* Status colors when checked */
.pill-pendente input[type="radio"]:checked + span { background:#9a7d0a; border-color:#9a7d0a; }
.pill-pago     input[type="radio"]:checked + span { background:#1e8449; border-color:#1e8449; }
.pill-parcelado input[type="radio"]:checked + span { background:#1a5276; border-color:#1a5276; }
.pill-cancelado input[type="radio"]:checked + span { background:#922b21; border-color:#922b21; }
.pill-hot  input[type="radio"]:checked + span { background:#c0392b; border-color:#c0392b; }
.pill-warm input[type="radio"]:checked + span { background:#d68910; border-color:#d68910; }
.pill-cold input[type="radio"]:checked + span { background:#2471a3; border-color:#2471a3; }

.ln-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

/* ============================================================
   Search bar + filter controls
   ============================================================ */
.crm-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.crm-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color .18s, box-shadow .18s;
  min-width: 200px;
}
.crm-search-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
  background: var(--white);
}
.crm-search-input-wrap svg { color: var(--muted); flex-shrink: 0; }
.crm-search-input-wrap input {
  border: none;
  background: transparent;
  font-size: .88rem;
  color: var(--navy);
  outline: none;
  width: 100%;
  min-width: 0;
}
.crm-search-input-wrap input::placeholder { color: var(--muted-soft); }
.crm-search-grow { flex: 1; min-width: 220px; }
.wat-search { min-width: 220px; max-width: 280px; }

.crm-filter-select {
  padding: 8px 32px 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .83rem;
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color .18s;
  white-space: nowrap;
}
.crm-filter-select:focus { outline: none; border-color: var(--gold); }

.crm-list-meta {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 12px;
  padding-left: 2px;
}
.crm-list-meta strong { color: var(--navy); }

.crm-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: .9rem;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.crm-empty-state p { margin: 0 0 16px; }

/* ── table-empty cell ───────────────────────────────────────── */
.table-empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: .9rem;
}

/* ============================================================
   Financeiro — toolbar + filter tabs
   ============================================================ */
.fin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.fin-filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.fin-filter-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .16s;
}
.fin-filter-tab em {
  font-style: normal;
  background: var(--line);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 700;
}
.fin-filter-tab:hover { border-color: var(--gold-light); color: var(--navy); }
.fin-filter-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.fin-filter-tab.active em { background: rgba(255,255,255,.2); color: var(--white); }

.fin-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fin-value { color: var(--gold-deep); font-weight: 700; }
.fin-value-sm { margin-left: auto; white-space: nowrap; color: var(--gold-deep); font-size: .85rem; font-weight: 700; }
.fin-obs { color: var(--muted); max-width: 200px; display: block; }

/* ============================================================
   Relatório — controls
   ============================================================ */
.rel-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rel-month-select {
  padding: 9px 36px 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--serif);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color .18s;
  text-transform: capitalize;
}
.rel-month-select:focus { outline: none; border-color: var(--gold); }

/* ── wat-header layout fix ──────────────────────────────────── */
.wat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* ── CRM stage label ────────────────────────────────────────── */
.crm-stage-label {
  display: inline-block;
  background: var(--paper-warm);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: .75rem;
}
.crm-origin-tag { background: var(--paper); color: var(--ink-soft); }

@media (max-width:760px) {
  .ln-form-row { grid-template-columns: 1fr; }
  .fin-toolbar { flex-direction: column; align-items: flex-start; }
  .fin-toolbar-right { width: 100%; }
  .crm-search-bar { flex-direction: column; align-items: stretch; }
  .crm-search-grow, .crm-search-input-wrap { min-width: unset; width: 100%; }
  .wat-header { flex-direction: column; }
}

/* ============================================================
   Admin shell — layout sidebar + main (estilo Larissa Maguese)
   ============================================================ */

/* Shell: 2 colunas quando sidebar está ativo */
[data-admin].admin-shell-active {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
  background: #f4f5f7;
}

/* Sidebar */
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 4px 0 24px rgba(0,0,0,.18);
  z-index: 30;
  border-right: 1px solid rgba(201,168,76,.15);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 26px 22px 22px;
  border-bottom: 1px solid rgba(201,168,76,.18);
  flex-shrink: 0;
}
.admin-sidebar-brand .brand-mark {
  width: 40px;
  height: 40px;
  font-size: .95rem;
}
.admin-sidebar-brand strong {
  display: block;
  color: var(--gold-light);
  font-family: var(--serif);
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.2;
}
.admin-sidebar-brand small {
  display: block;
  color: rgba(255,255,255,.4);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-top: 3px;
}

/* Nav items */
.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  flex: 1;
}
.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.58);
  font-size: .875rem;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  text-align: left;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  position: relative;
}
.admin-nav-btn:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.88);
}
.admin-nav-btn.active {
  background: rgba(201,168,76,.15);
  color: var(--gold-light);
  font-weight: 600;
}
.admin-nav-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}
.admin-nav-icon {
  font-size: 1rem;
  opacity: .7;
  flex-shrink: 0;
}
.admin-nav-btn.active .admin-nav-icon { opacity: 1; }

/* Footer link */
.admin-sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.25);
  color: var(--gold-light);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background var(--dur) var(--ease);
  flex-shrink: 0;
}
.admin-sidebar-footer-link:hover {
  background: rgba(201,168,76,.22);
  color: var(--gold-light);
}

/* Main content area */
[data-admin].admin-shell-active [data-admin-content] {
  min-height: 100vh;
  background: #f4f5f7;
}
[data-admin].admin-shell-active .section {
  padding: 36px clamp(20px, 3vw, 44px);
}

/* KPI cards — estilo Larissa (barra dourada à esquerda) */
.crm-kpi {
  position: relative;
  padding-left: 20px !important;
  border-left: 3px solid var(--gold) !important;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  text-align: left !important;
}
.crm-kpi::before { display: none !important; } /* remove o top bar */
.crm-kpi strong { font-size: 1.9rem; line-height: 1.1; margin-bottom: 6px; }
.crm-kpi span { font-size: .75rem; }

/* Admin metrics (agendamentos) — mesma barra */
.admin-metrics div {
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding-left: 20px;
}

/* Mobile admin */
@media (max-width: 900px) {
  [data-admin].admin-shell-active {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
  }
  .admin-sidebar-brand { padding: 16px 18px; border-bottom: 0; border-right: 1px solid rgba(201,168,76,.18); }
  .admin-sidebar-nav { flex-direction: row; flex-wrap: wrap; padding: 8px; gap: 4px; }
  .admin-nav-btn { padding: 8px 12px; font-size: .78rem; }
  .admin-nav-btn.active::before { display: none; }
  .admin-sidebar-footer-link { margin: 8px; padding: 8px 14px; }
}

/* ============================================================
   Infinite marquee — Áreas de atuação + Avaliações Google
   Técnica: duplica itens via JS, anima translateX(-50%) para
   loop sem corte. Pausa no hover.
   ============================================================ */
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Container com fade nas bordas */
.marquee-outer {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg,
    transparent 0%,
    black 7%,
    black 93%,
    transparent 100%);
  mask: linear-gradient(90deg,
    transparent 0%,
    black 7%,
    black 93%,
    transparent 100%);
  margin-left: calc(-1 * clamp(18px, 4vw, 52px));
  margin-right: calc(-1 * clamp(18px, 4vw, 52px));
  padding: 8px 0 16px;
}

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--paper); }
.testimonial-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(10,26,54,.06);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  margin: 0;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(201,168,76,.18);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: .1em;
}
.testimonial-card p {
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
  font-style: italic;
}
.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 14px;
  border-top: 1px solid rgba(201,168,76,.2);
}
.testimonial-card footer strong {
  color: var(--navy);
  font-size: .9rem;
  font-family: var(--serif);
}
.testimonial-card footer span {
  color: var(--ink-soft);
  font-size: .75rem;
  letter-spacing: .04em;
}

/* Track animado — service-grid */
.service-grid.is-marquee {
  display: flex !important;
  width: max-content !important;
  grid-template-columns: none !important;
  gap: 16px;
  animation: marquee-left 36s linear infinite;
  padding: 4px 0;
}
.service-grid.is-marquee:hover { animation-play-state: paused; }
.service-grid.is-marquee .service-card {
  flex: 0 0 270px;
  min-height: 225px;
}

/* Track animado — testimonial */
.testimonial-track.is-marquee {
  display: flex !important;
  width: max-content !important;
  gap: 20px;
  animation: marquee-left 44s linear infinite;
  align-items: stretch;
}
.testimonial-track.is-marquee:hover { animation-play-state: paused; }
.testimonial-track.is-marquee blockquote {
  display: block !important;
  flex: 0 0 400px;
  margin: 0;
}

@media (max-width: 760px) {
  .marquee-outer {
    margin-left: -18px;
    margin-right: -18px;
    -webkit-mask: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    mask: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
  }
  .service-grid.is-marquee { animation-duration: 28s; }
  .service-grid.is-marquee .service-card { flex: 0 0 230px; }
  .testimonial-track.is-marquee { animation-duration: 36s; }
  .testimonial-track.is-marquee blockquote { flex: 0 0 300px; }
}
