/* =============================================
   MAYQUENY REIS ADVOGADOS — Design System
   Inspired by Asten Avocats + Machado Meyer
   ============================================= */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ─── CSS Custom Properties ─── */
:root {
  /* Primary - Green */
  --green-900: #163b21;
  --green-800: #1e4d2b;
  --green-700: #2a6339;
  --green-600: #357a45;
  --green-500: #408f52;
  --green-overlay: rgba(22, 59, 33, 0.88);
  --green-glass: rgba(22, 59, 33, 0.65);

  /* Accent - Gold */
  --gold-600: #b8913e;
  --gold-500: #c9a84c;
  --gold-400: #d4b85c;
  --gold-300: #dfc86c;
  --gold-200: #e8d68a;
  --gold-glow: rgba(201, 168, 76, 0.3);

  /* Neutrals */
  --cream: #faf8f0;
  --cream-dark: #f0ece0;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --dark: #0e1a12;
  --white: #ffffff;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 900px;
  --header-height: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--gold-500);
  color: var(--white);
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-900);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.text-accent {
  font-family: var(--font-accent);
}

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

.text-green {
  color: var(--green-900);
}

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

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 600;
}

.subtitle {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section--dark {
  background-color: var(--green-900);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark p {
  color: rgba(255,255,255,0.75);
}

.section--cream {
  background-color: var(--cream);
}

.section--gradient {
  background: linear-gradient(175deg, var(--green-900) 0%, var(--green-800) 50%, var(--dark) 100%);
  color: var(--white);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
  gap: var(--space-lg);
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  justify-content: space-between;
  align-items: center;
}

/* ─── Decorative Elements ─── */
.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  margin-bottom: var(--space-lg);
}

.gold-line--center {
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-header .gold-line {
  margin-left: auto;
  margin-right: auto;
}

.diagonal-separator {
  position: relative;
  overflow: hidden;
}

.diagonal-separator::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0 100%);
}

.section--cream + .diagonal-separator::after {
  background: var(--cream);
}

/* ─── Header / Navigation ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  background: transparent;
}

.header.scrolled {
  background: rgba(22, 59, 33, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  height: 70px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 1001;
}

.header__logo img {
  height: 50px;
  width: auto;
  transition: height var(--transition-base);
  background: transparent;
}

.header.scrolled .header__logo img {
  height: 42px;
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.header__logo-text span {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gold-500);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

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

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

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

.nav__cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-900);
  background: var(--gold-500);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition-fast);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 8px;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: 
    linear-gradient(to right, rgba(14, 26, 18, 0.97) 0%, rgba(22, 59, 33, 0.92) 35%, rgba(22, 59, 33, 0.7) 55%, rgba(22, 59, 33, 0.4) 75%, rgba(22, 59, 33, 0.15) 100%),
    linear-gradient(to top, rgba(14, 26, 18, 0.95) 0%, transparent 25%);
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 750px;
  padding-top: var(--header-height);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--gold-500);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 76, 0.08);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

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

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 580px;
}

.hero__actions {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero__stats {
  position: relative;
  z-index: 3;
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-4xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.hero__stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero Right Image — seamless blend */
.hero__image {
  position: absolute;
  right: -2%;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 52%;
  max-width: 680px;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, transparent 8%, rgba(0,0,0,0.05) 15%, rgba(0,0,0,0.2) 25%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.8) 60%, black 80%);
  mask-image:
    linear-gradient(to right, transparent 0%, transparent 8%, rgba(0,0,0,0.05) 15%, rgba(0,0,0,0.2) 25%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.8) 60%, black 80%);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.55;
  filter: brightness(0.7) contrast(1.1) saturate(0.6);
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--green-900) 0%, transparent 15%);
  pointer-events: none;
}

.hero__image::before {
  display: none;
}

/* Dot Navigation (Side) */
.dot-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dot-nav__item {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.dot-nav__item:hover,
.dot-nav__item.active {
  background: var(--gold-500);
  box-shadow: 0 0 10px var(--gold-glow);
}

.dot-nav__item::before {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  background: rgba(22, 59, 33, 0.9);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.dot-nav__item:hover::before {
  opacity: 1;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gold-500);
  color: var(--green-900);
  border: 2px solid var(--gold-500);
}

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

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn--outline:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
  transform: translateY(-2px);
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold-500);
  border: 2px solid var(--gold-500);
}

.btn--outline-gold:hover {
  background: var(--gold-500);
  color: var(--green-900);
  transform: translateY(-2px);
}

.btn--green {
  background: var(--green-900);
  color: var(--white);
  border: 2px solid var(--green-900);
}

.btn--green:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--large {
  padding: 1.1rem 2.5rem;
  font-size: 0.9rem;
}

.btn__arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ─── Cards ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Area Cards */
.area-card {
  padding: var(--space-2xl);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.area-card:hover::before {
  transform: scaleX(1);
}

.area-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.area-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.area-card:hover .area-card__icon {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  transform: scale(1.05);
}

.area-card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--gold-500);
  transition: fill var(--transition-base);
}

.area-card:hover .area-card__icon svg {
  fill: var(--green-900);
}

.area-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--green-900);
}

.area-card__text {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.area-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-fast);
}

.area-card__link:hover {
  color: var(--gold-400);
  gap: var(--space-md);
}

/* Publication Cards */
.pub-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: all var(--transition-base);
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.pub-card__image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.pub-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.pub-card:hover .pub-card__image img {
  transform: scale(1.05);
}

.pub-card__tag {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--gold-500);
  color: var(--green-900);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
}

.pub-card__body {
  padding: var(--space-xl);
}

.pub-card__date {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

.pub-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: var(--space-md);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.pub-card:hover .pub-card__title {
  color: var(--gold-500);
}

.pub-card__excerpt {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-card__read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ─── About Section ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.about__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.about__image-accent {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__oab {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(22, 59, 33, 0.95);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.about__oab-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-500);
  margin-bottom: 2px;
}

.about__oab-number {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 600;
}

.about__content .subtitle {
  margin-bottom: var(--space-md);
}

.about__content h2 {
  margin-bottom: var(--space-xl);
}

.about__content p {
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about__feature {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--cream);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.about__feature:hover {
  background: var(--green-900);
  color: var(--white);
}

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

.about__feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
}

.about__feature-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  transition: color var(--transition-fast);
}

/* ─── CTA Section ─── */
.cta-section {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--dark) 100%);
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.08);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.1rem;
}

/* ─── Contact Form ─── */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  position: relative;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-900);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--gray-800);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

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

/* ─── Footer ─── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand img {
  height: 60px;
  margin-bottom: var(--space-lg);
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
  background: rgba(201, 168, 76, 0.1);
}

.footer__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-md);
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-500);
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}

.footer__links a:hover {
  color: var(--gold-500);
  padding-left: 6px;
}

.footer__contact-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.footer__contact-icon {
  color: var(--gold-500);
  min-width: 20px;
  margin-top: 2px;
}

.footer__bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer__bar a {
  color: var(--gold-500);
}

/* ─── Page Hero (Internal Pages) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--dark) 100%);
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(201, 168, 76, 0.05));
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-xl);
}

.page-hero__breadcrumb a {
  color: var(--gold-500);
  transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
  color: var(--gold-400);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ─── Internal Area Page ─── */
.area-detail {
  padding: var(--space-4xl) 0;
}

.area-detail__intro {
  max-width: 800px;
  margin-bottom: var(--space-3xl);
}

.area-detail__intro p {
  font-size: 1.1rem;
  line-height: 1.9;
}

.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.practice-item {
  padding: var(--space-xl);
  border-left: 3px solid var(--gold-500);
  background: var(--cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: all var(--transition-base);
}

.practice-item:hover {
  background: var(--green-900);
  transform: translateX(6px);
}

.practice-item:hover h4,
.practice-item:hover p {
  color: var(--white);
}

.practice-item:hover p {
  color: rgba(255,255,255,0.7);
}

.practice-item h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--green-900);
  transition: color var(--transition-base);
}

.practice-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: color var(--transition-base);
  margin-bottom: 0;
}

/* ─── Article / Publication Page ─── */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
}

.article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--gray-200);
}

.article__author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.article__author-name {
  font-weight: 600;
  color: var(--green-900);
  font-size: 0.95rem;
}

.article__date {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.article h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  font-size: 1.6rem;
}

.article h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-size: 1.3rem;
}

.article p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: var(--space-lg);
  color: var(--gray-700);
}

.article ul, .article ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article li {
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
  list-style: disc;
}

.article ol li {
  list-style: decimal;
}

.article blockquote {
  border-left: 4px solid var(--gold-500);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--cream);
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--green-900);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ─── WhatsApp Button ─── */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

.whatsapp-btn { border: none; cursor: pointer; }

/* WhatsApp Tooltip */
.whatsapp-tooltip {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 998;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
  animation: tooltip-slide 0.4s var(--ease-out);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 24px;
  width: 16px;
  height: 16px;
  background: var(--white);
  transform: rotate(45deg);
  box-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}
.whatsapp-tooltip strong {
  display: block;
  font-size: 0.9rem;
  color: var(--green-900);
  margin-bottom: 4px;
}
.whatsapp-tooltip span {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.4;
}
.whatsapp-tooltip__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
}
@keyframes tooltip-slide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* WhatsApp Modal */
.whatsapp-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.whatsapp-modal.active { display: flex; }
.whatsapp-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.whatsapp-modal__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modal-in 0.3s var(--ease-out);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.whatsapp-modal__header {
  background: var(--green-900);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.whatsapp-modal__header strong {
  font-size: 1rem;
}
.whatsapp-modal__close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}
.whatsapp-modal__close:hover { opacity: 1; }
.whatsapp-modal__body {
  background: var(--dark);
  padding: 1.5rem;
}
.whatsapp-modal__body .form-group { margin-bottom: 1rem; }
.whatsapp-modal__body .form-group label {
  color: var(--gold-400);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.whatsapp-modal__body .form-group input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}
.whatsapp-modal__body .form-group input::placeholder {
  color: rgba(255,255,255,0.3);
}
.whatsapp-modal__body .form-group input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.whatsapp-modal__submit {
  width: 100%;
  padding: 1rem;
  background: var(--gold-500);
  color: var(--green-900);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  margin-top: 0.5rem;
}
.whatsapp-modal__submit:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}
.whatsapp-modal__privacy {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Footer Credits */
.footer__credits {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}
.footer__credits:hover { opacity: 1; }
.footer__credits img { height: 36px; }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; }
.stagger.revealed > *:nth-child(7) { transition-delay: 0.7s; }

.stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Counter Animation */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ─── Responsive Design ─── */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  
  .hero__image {
    width: 40%;
    opacity: 0.6;
  }
  
  .about-grid {
    gap: var(--space-2xl);
  }
  
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --space-4xl: 4rem;
    --space-5xl: 5rem;
  }

  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--green-900);
    flex-direction: column;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-md);
    transition: right var(--transition-base);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    align-items: flex-start;
  }

  .nav.open {
    right: 0;
  }

  .nav__link {
    font-size: 1rem;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
  }

  .hero {
    min-height: 90vh;
    text-align: center;
  }

  .hero__image {
    display: none;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .dot-nav {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about__image img {
    height: auto;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bar {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }
  
  .hero__badge {
    font-size: 0.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
  
  .area-card {
    padding: var(--space-xl);
  }
}

/* ─── Utility Classes ─── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mt-4 { margin-top: var(--space-3xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }
.mb-4 { margin-bottom: var(--space-3xl); }
.hidden { display: none !important; }

/* Nav overlay for mobile */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Loading animation for page */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--green-900);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.page-loader__logo {
  width: 80px;
  animation: pulse-logo 1.5s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

/* Google Map embed */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact Info Cards */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--cream);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.contact-info-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-info-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-900);
  border-radius: var(--radius-md);
  color: var(--gold-500);
}

.contact-info-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 4px;
}

.contact-info-card__text {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.contact-info-card__text a {
  color: var(--gold-500);
  font-weight: 500;
}

.contact-info-card__text a:hover {
  color: var(--gold-400);
}
