/*
  LexCorporate Landing Page — Stylesheet
  Design System: Quiet Luxury | Authority | Precision
  Author: Hermes Engineering
  Date: 2026
*/

/* ==========================================================================
   1. CSS VARIABLES & THEME
   ========================================================================== */

:root {
  /* Palette — Quiet Luxury */
  --color-charcoal: #0A0E14;
  --color-charcoal-light: #141921;
  --color-charcoal-dark: #050608;
  --color-gold: #D4AF37;
  --color-gold-light: #E5C85A;
  --color-gold-dark: #B8941E;
  --color-white: #F4F4F9;
  --color-white-dim: #E8E8EE;
  --color-black: #000000;
  --color-gray-100: #F5F5F7;
  --color-gray-200: #E5E5EA;
  --color-gray-300: #D1D1D6;
  --color-gray-400: #AEAEB2;
  --color-gray-500: #8E8E93;
  --color-gray-800: #1C1C1E;

  /* Typography */
  --font-primary: 'Playfair Display', Georgia, serif;
  --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes — clamp() for fluid scaling (min 16px / max Variable) */
  --fs-display: clamp(3rem, 8vw, 5.5rem);
  --fs-h1: clamp(2.25rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-body: clamp(1rem, 1.2vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;

  /* Line Heights */
  --lh-display: 1.1;
  --lh-heading: 1.25;
  --lh-body: 1.6;
  --lh-tight: 1.4;

  /* Spacing Scale — 4px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-padding: clamp(1rem, 5vw, 2rem);
  --section-padding: var(--space-9) var(--container-padding);
  --grid-gap: 2rem;
  --grid-gap-wide: 3rem;

  /* Borders & Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Shadows — Subtle, Additive */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);

  /* Transitions — cubic-bezier(0.25, 0.1, 0.25, 1) / 400ms */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 200ms var(--ease-in-out-cubic);
  --transition-base: 400ms var(--ease-in-out-cubic);
  --transition-slow: 600ms var(--ease-in-out-cubic);
  --transition-reveal: 800ms var(--ease-out-expo);

  /* Z-Index Scale */
  --z-base: 1;
  --z-sticky: 100;
  --z-modal: 500;
  --z-cursor: 9999;

  /* Focus States — WCAG AA Compliant */
  --focus-ring: 3px solid var(--color-gold);
  --focus-ring-offset: 2px;

  /* Custom Cursor */
  --cursor-size: 24px;
  --cursor-size-hover: 40px;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-white);
  background-color: var(--color-charcoal);
  overflow-x: hidden;
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
  .cursor {
    display: none !important;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

h1, .display {
  font-size: var(--fs-display);
  font-weight: 600;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  max-width: 65ch;
  color: var(--color-gray-400);
}

em,
i,
cite,
.italic {
  font-style: italic;
}

strong,
b,
.bold {
  font-weight: 600;
}

.text-gold {
  color: var(--color-gold);
}

.text-muted {
  color: var(--color-gray-400);
}

/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */

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

.section-label {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.section-header {
  max-width: 800px;
}

.section-header--centered {
  text-align: center;
  margin: 0 auto;
}

.section-header__label {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.section-header__title {
  margin-bottom: var(--space-5);
}

.section-header__description {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: 600px;
}

/* ==========================================================================
   5. CUSTOM CURSOR
   ========================================================================== */

.cursor {
  position: fixed;
  width: var(--cursor-size);
  height: var(--cursor-size);
  background-color: rgba(212, 175, 55, 0.6);
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: var(--z-cursor);
  transition: width var(--transition-fast), height var(--transition-fast), opacity var(--transition-fast);
  mix-blend-mode: difference;
  opacity: 0;
}

.cursor.active {
  opacity: 1;
}

.cursor.hover {
  width: var(--cursor-size-hover);
  height: var(--cursor-size-hover);
  background-color: rgba(212, 175, 55, 0.3);
}

/* Hide on devices without hover capability */
@media (hover: none) {
  .cursor {
    display: none;
  }
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 14, 20, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-5) var(--container-padding);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-mark {
  font-size: 1.5rem;
  margin-right: var(--space-2);
}

.logo-text {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav__menu {
  display: none;
}

.nav__cta {
  font-family: var(--font-secondary);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-charcoal);
  background-color: var(--color-gold);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
}

.nav__cta:hover {
  background-color: var(--color-gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* Tablet Navigation — keeps the menu available without crowding the logo */
@media (min-width: 768px) {
  .nav__menu {
    display: flex;
    gap: var(--space-4);
  }

  .nav__cta {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .nav__link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-gray-300);
    position: relative;
    transition: color var(--transition-fast);
  }

  .nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: width var(--transition-base);
  }

  .nav__link:hover {
    color: var(--color-white);
  }

  .nav__link:hover::after {
    width: 100%;
  }
}

/* Desktop Navigation */
@media (min-width: 1024px) {
  .logo-text {
    font-size: 1.5rem;
  }

  .nav__menu {
    gap: var(--space-7);
  }

  .nav__link {
    font-size: var(--fs-small);
  }

  .nav__cta {
    padding: var(--space-3) var(--space-5);
    font-size: var(--fs-small);
  }
}

/* Narrow phones: keep the logo on one line and the CTA comfortable */
@media (max-width: 400px) {
  .nav__cta {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .logo-mark {
    font-size: 1.3rem;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .nav__cta {
    padding: 9px 12px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

/* The hero is a single, self-contained stage:
   copy on the left, Lady Justice fully framed on the right.            */
.hero {
  --hero-title-size: clamp(2.65rem, min(5.4vw, 8.4vh), 5.4rem);
  --hero-pad-top: 104px;
  --hero-pad-bottom: clamp(24px, 4.5vh, 60px);

  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  min-height: 100svh;
  overflow: hidden;
  background-color: var(--color-charcoal);
}

@supports not (min-height: 100svh) {
  .hero {
    min-height: 100vh;
  }
}

/* ── Ambient backdrop ── */
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 28% 38%, #000 0%, rgba(0, 0, 0, 0.5) 42%, transparent 76%);
  mask-image: radial-gradient(ellipse 62% 58% at 28% 38%, #000 0%, rgba(0, 0, 0, 0.5) 42%, transparent 76%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__glow--right {
  right: -20%;
  bottom: -36%;
  width: min(84vw, 1100px);
  height: min(84vw, 1100px);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(212, 175, 55, 0.17) 0%,
    rgba(212, 175, 55, 0.055) 38%,
    transparent 68%
  );
  filter: blur(12px);
}

.hero__glow--top {
  top: -34%;
  left: -18%;
  width: min(64vw, 820px);
  height: min(46vw, 580px);
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.075) 0%, transparent 68%);
}

/* Deepens the top/bottom edges so the statue and type sit in the dark. */
.hero__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 6, 8, 0.55) 0%,
      transparent 18%,
      transparent 74%,
      rgba(5, 6, 8, 0.6) 100%
    );
}

/* ── Hero grid ── */
.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--hero-pad-top) var(--container-padding) var(--hero-pad-bottom);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "copy"
    "visual"
    "stats";
  align-items: stretch;
}

@media (min-width: 960px) {
  .hero {
    --hero-pad-top: clamp(100px, 12.5vh, 136px);
  }

  .hero__container {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "copy visual"
      "stats visual";
    column-gap: clamp(24px, 3vw, 48px);
    row-gap: clamp(30px, 4.6vh, 48px);
    align-content: stretch;
  }
}

/* ── Copy column ── */
.hero__content {
  grid-area: copy;
  align-self: center;
  width: 100%;
  max-width: 600px;
  min-width: 0;
}

/* Eyebrow */
.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  max-width: none;
  margin-bottom: clamp(20px, 3.2vh, 30px);
  font-family: var(--font-secondary);
  font-size: clamp(0.68rem, 0.8vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero__eyebrow-rule {
  flex: none;
  width: clamp(28px, 3.4vw, 46px);
  height: 1px;
  background-color: currentColor;
  opacity: 0.75;
}

.hero__eyebrow-text {
  min-width: 0;
}

/* Headline — deliberate four-line cadence, never left to chance */
.hero__title {
  margin-bottom: clamp(22px, 3.2vh, 32px);
  font-family: var(--font-primary);
  font-size: var(--hero-title-size);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--color-white);
}

.hero__title-line {
  display: block;
}

.hero__title em {
  color: var(--color-gold);
  font-style: italic;
  font-weight: 500;
}

/* Supporting copy */
.hero__description {
  max-width: 47ch;
  margin-bottom: clamp(26px, 3.8vh, 38px);
  font-size: clamp(0.98rem, 1.05vw, 1.0625rem);
  line-height: 1.75;
  color: var(--color-gray-400);
  text-wrap: pretty;
}

/* Actions */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.hero__actions .btn {
  min-height: 54px;
  padding: 0 clamp(22px, 2.4vw, 30px);
  font-size: 0.95rem;
}

/* ── Stats ── */
.hero__stats {
  grid-area: stats;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 3.4vw, 52px);
  width: 100%;
  max-width: 580px;
  padding-top: clamp(20px, 2.8vh, 28px);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hero__stat-value {
  display: flex;
  align-items: baseline;
  font-family: var(--font-primary);
  line-height: 0.9;
  color: var(--color-gold);
}

.hero__stat-number {
  font-size: clamp(2.1rem, 2.7vw, 2.75rem);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}

.hero__stat-suffix {
  margin-left: 3px;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  font-weight: 500;
}

.hero__stat-label {
  font-family: var(--font-secondary);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-gray-500);
  white-space: nowrap;
}

.hero__stats-divider {
  flex: none;
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.4), transparent);
}

/* ── Right column : Lady Justice ── */
.hero__visual {
  grid-area: visual;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
}

/* Warm pool of light behind the figure */
.hero__visual-halo {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: min(120%, 680px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at 50% 62%,
    rgba(212, 175, 55, 0.16) 0%,
    rgba(212, 175, 55, 0.05) 40%,
    transparent 66%
  );
  filter: blur(16px);
  z-index: 0;
}

/* Hairline ring: an architectural frame around the upper body */
.hero__visual-ring {
  position: absolute;
  top: 9%;
  left: 50%;
  width: min(68%, 430px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 50%;
  -webkit-mask-image: linear-gradient(to bottom, #000 18%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 18%, transparent 82%);
  z-index: 0;
}

/* The figure keeps its entire silhouette inside the column. */
.hero__statue {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: min(82vh, 780px);
  height: min(82svh, 780px);
  max-height: calc(100% - clamp(0px, 2vh, 24px));
  will-change: transform;
}

.hero__statue-img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter:
    brightness(1.04)
    contrast(1.06)
    saturate(1.05)
    drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 45px rgba(212, 175, 55, 0.18));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 95%, transparent 100%);
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition:
    opacity 1.3s 150ms var(--ease-out-expo),
    transform 1.6s 150ms var(--ease-out-expo);
  user-select: none;
}

.hero.loaded .hero__statue-img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Light pooling at the plinth */
.hero__statue-glow {
  position: absolute;
  bottom: -24px;
  left: 50%;
  z-index: -1;
  width: 80%;
  height: 160px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(212, 175, 55, 0.38) 0%,
    rgba(212, 175, 55, 0.08) 48%,
    transparent 72%
  );
  filter: blur(28px);
  opacity: 0;
  transition: opacity 1.6s 0.6s var(--ease-out-expo);
}

.hero.loaded .hero__statue-glow {
  opacity: 1;
}

/* Thin gold datum under the statue */
.hero__visual-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: min(76%, 460px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.35), transparent);
}

/* ── Stacked composition (phones + portrait tablets) ── */
@media (max-width: 959.98px) {
  .hero {
    min-height: 0;
  }

  .hero__container {
    padding-bottom: clamp(32px, 6vw, 48px);
  }

  .hero__content {
    align-self: start;
    max-width: 640px;
  }

  .hero__visual {
    width: 100%;
    height: clamp(340px, 52vh, 540px);
    height: clamp(340px, 52svh, 540px);
    margin-top: clamp(20px, 4vw, 36px);
  }

  .hero__statue {
    height: 100%;
    max-height: none;
  }

  .hero__visual-ring {
    top: 2%;
    width: min(52%, 330px);
  }

  .hero__visual-halo {
    bottom: -14%;
    width: min(104%, 540px);
  }

  .hero__visual-line {
    width: min(70%, 360px);
  }

  .hero__stats {
    margin-top: clamp(26px, 4.5vw, 38px);
  }
}

/* Portrait tablets: size the stage so the whole figure lands above the fold */
@media (min-width: 700px) and (max-width: 959.98px) {
  .hero__visual {
    height: min(52vh, calc(100vh - 560px));
    height: min(52svh, calc(100svh - 560px));
    min-height: 340px;
  }
}

/* Small screens: actions take the full measure */
@media (max-width: 639.98px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* Narrow phones */
@media (max-width: 479.98px) {
  .hero__eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  .hero__eyebrow-rule {
    width: 24px;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    align-items: start;
  }

  .hero__stats-divider {
    display: none;
  }

  .hero__stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    white-space: normal;
  }
}

/* Short desktop viewports: tighten the vertical rhythm */
@media (min-width: 960px) and (max-height: 740px) {
  .hero__container {
    padding-top: 96px;
    padding-bottom: 24px;
  }

  .hero__title {
    margin-bottom: 18px;
  }

  .hero__description {
    margin-bottom: 22px;
  }

  .hero__stats {
    padding-top: 18px;
  }
}

/* ==========================================================================
   8. SERVICES GRID
   ========================================================================== */

.services {
  padding: var(--section-padding);
  background-color: var(--color-charcoal);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-7);
}

.service-card {
  position: relative;
  background: linear-gradient(180deg, var(--color-charcoal-light) 0%, var(--color-charcoal) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.2);
}

/* Progress Line Animation */
.service-card__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
  transition: width var(--transition-base) var(--ease-out-expo);
}

.service-card:hover .service-card__progress {
  width: 100%;
}

.service-card__content {
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
  transition: transform var(--transition-base);
}

.service-card:hover .service-card__icon {
  transform: scale(1.05);
}

.service-card__title {
  font-size: var(--fs-h3);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.service-card__text {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-gray-400);
  margin-bottom: var(--space-5);
  flex-grow: 1;
}

.service-card__link {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: transform var(--transition-fast);
}

.service-card__link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}

/* ==========================================================================
   9. AUTHORITY SECTION
   ========================================================================== */

.authority {
  padding: var(--section-padding);
  background-color: var(--color-white);
  color: var(--color-charcoal);
}

.authority__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-9);
  align-items: center;
}

@media (min-width: 768px) {
  .authority__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-10);
  }
}

/* Quote */
.authority__content .section-label {
  color: var(--color-charcoal);
}

.authority__quote {
  position: relative;
  margin-top: var(--space-5);
}

.authority__quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: var(--font-primary);
  font-size: 8rem;
  line-height: 1;
  color: rgba(10, 14, 20, 0.05);
  z-index: 0;
}

.authority__quote-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--color-charcoal);
  margin-bottom: var(--space-6);
}

.authority__quote-citation {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.authority__author {
  font-family: var(--font-primary);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-charcoal);
}

.authority__title {
  font-size: var(--fs-small);
  color: var(--color-gray-400);
}

/* Image */
.authority__image-wrapper {
  position: relative;
}

.authority__image-frame {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 380px;
  margin-left: auto;
}

.authority__image {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, var(--color-gray-200) 0%, var(--color-gray-300) 100%);
  overflow: hidden;
}

.authority__image-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

/* Placeholder style — replace with actual .jpg/.webp */
.authority__image::after {
  content: 'DR. RAFAEL MENDES';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.3);
}

.authority__image-decoration {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  z-index: -1;
}

.authority__credentials {
  margin-top: var(--space-5);
}

.credential-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-gray-400);
}

.credential-list li {
  position: relative;
  padding-left: var(--space-4);
}

.credential-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
}

/* ==========================================================================
   10. EXPERTISE & SOCIAL PROOF
   ========================================================================== */

.expertise {
  padding: var(--section-padding);
  background-color: var(--color-charcoal);
}

.expertise__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  max-width: 900px;
  margin: var(--space-8) auto 0;
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-base),
    background var(--transition-base);
}

.stat-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.stat-card__number {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--color-gold);
  display: inline;
  line-height: 1;
}

.stat-card__suffix {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-gold);
}

.stat-card__label {
  font-size: var(--fs-small);
  color: var(--color-gray-400);
  margin-top: var(--space-2);
}

/* Client Logos */
.expertise__clients {
  margin-top: var(--space-10);
}

.expertise__clients-label {
  text-align: center;
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gray-500);
  margin-bottom: var(--space-6);
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-8) var(--space-12);
}

.client-logo {
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.4;
  transition:
    filter var(--transition-base),
    opacity var(--transition-base),
    transform var(--transition-base);
  cursor: pointer;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.logo-placeholder {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-white);
  white-space: nowrap;
}

/* ==========================================================================
   11. CONTACT SECTION
   ========================================================================== */

.contact {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--color-charcoal-light) 0%, var(--color-charcoal) 100%);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-9);
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

.contact__title {
  margin-bottom: var(--space-5);
}

.contact__title em {
  color: var(--color-gold);
}

.contact__description {
  margin-bottom: var(--space-7);
}

.contact__contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-item__label {
  display: block;
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: var(--space-1);
}

.contact-item__value {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  color: var(--color-white);
  transition: color var(--transition-fast);
}

a.contact-item__value:hover {
  color: var(--color-gold);
}

.address {
  font-style: normal;
  line-height: var(--lh-body);
}

/* ==========================================================================
   12. CONTACT FORM
   ========================================================================== */

.contact-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-7);
  transition: border-color var(--transition-base);
}

.contact-form:hover,
.contact-form:focus-within {
  border-color: rgba(212, 175, 55, 0.2);
}

.form-title {
  margin-bottom: var(--space-2);
}

.form-description {
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-gray-300);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-secondary);
  font-size: var(--fs-body);
  color: var(--color-white);
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  outline: none;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-500);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-gold);
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-disclaimer {
  margin-top: var(--space-4);
  font-size: var(--fs-caption);
  color: var(--color-gray-500);
}

/* ==========================================================================
   13. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-secondary);
  font-size: var(--fs-body);
  font-weight: 500;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn--primary {
  color: var(--color-charcoal);
  background-color: var(--color-gold);
  border: 1px solid transparent;
}

.btn--primary:hover {
  background-color: var(--color-gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn--primary:hover .btn__icon {
  transform: translateX(4px);
}

.btn--primary.post-submit {
  background-color: var(--color-white);
  pointer-events: none;
}

.btn--secondary {
  color: var(--color-white);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn--secondary:hover .btn__icon {
  transform: translateX(4px);
}

.btn--full {
  width: 100%;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.footer {
  padding: var(--space-8) 0;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  background-color: var(--color-charcoal-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 2fr 1fr;
    align-items: end;
  }
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-2);
}

.footer__tagline {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-style: italic;
  color: var(--color-gray-500);
}

.footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
}

.footer__menu a {
  font-size: var(--fs-small);
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer__menu a:hover {
  color: var(--color-gold);
}

.footer__copyright,
.footer__regulation {
  font-size: var(--fs-caption);
  color: var(--color-gray-500);
  line-height: var(--lh-tight);
}

/* ==========================================================================
   15. TOAST NOTIFICATION
   ========================================================================== */

.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background-color: var(--color-gold);
  color: var(--color-charcoal);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
  z-index: var(--z-modal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   16. ANIMATIONS & SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-next {
  opacity: 0;
  transform: translateY(50px);
}

.reveal-next.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 150ms;
}

/* Hero intro animation — the copy arrives line by line, then the data */
.hero__eyebrow,
.hero__title-line,
.hero__description,
.hero__actions,
.hero__stats {
  opacity: 0;
  transform: translateY(18px);
}

.hero.loaded .hero__eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms 100ms var(--ease-out-expo), transform 700ms 100ms var(--ease-out-expo);
}

.hero.loaded .hero__title-line {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 800ms var(--ease-out-expo), transform 800ms var(--ease-out-expo);
}

.hero.loaded .hero__title-line:nth-child(1) { transition-delay: 160ms; }
.hero.loaded .hero__title-line:nth-child(2) { transition-delay: 240ms; }
.hero.loaded .hero__title-line:nth-child(3) { transition-delay: 320ms; }
.hero.loaded .hero__title-line:nth-child(4) { transition-delay: 400ms; }

.hero.loaded .hero__description {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 800ms 500ms var(--ease-out-expo), transform 800ms 500ms var(--ease-out-expo);
}

.hero.loaded .hero__actions {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 800ms 600ms var(--ease-out-expo), transform 800ms 600ms var(--ease-out-expo);
}

.hero.loaded .hero__stats {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 800ms 700ms var(--ease-out-expo), transform 800ms 700ms var(--ease-out-expo);
}

/* ==========================================================================
   17. FOCUS STATES & ACCESSIBILITY
   ========================================================================== */

*:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-gold);
  color: var(--color-charcoal);
  padding: var(--space-3) var(--space-4);
  z-index: var(--z-cursor);
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   18. RESPONSIVE BREAKPOINTS (Mobile-first approach)
   ========================================================================== */

/* Medium devices (tablets, 768px and up) — hero is handled in Section 7 */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* XL devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  :root {
    --grid-gap: 3rem;
  }
}

/* ==========================================================================
   19. PRINT STYLES
   ========================================================================== */

@media print {
  .cursor,
  .header,
  .btn,
  .contact-form,
  .toast {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* ==========================================================================
   20. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-next {
    opacity: 1;
    transform: none;
  }
}
