/* ==========================================================================
   SocioDigitals - Premium Design System v2.0
   Elegant, sophisticated design with unique page layouts
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Elegant Dark Palette */
  --bg-primary: #fafafa;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #ebebeb;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);

  --text-primary: #0f0f0f;
  --text-secondary: #3d3d3d;
  --text-muted: #6b6b6b;
  --text-accent: #0f0f0f;

  --border-color: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);

  /* Accent - Deep Navy & Gold */
  --accent-primary: #1a1a2e;
  --accent-secondary: #16213e;
  --accent-gold: #c9a227;
  --accent-copper: #b87333;
  --accent-light: #e8e4df;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Container */
  --container-max: 1280px;
  --container-narrow: 900px;
  --container-wide: 1440px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #141414;
  --bg-glass: rgba(10, 10, 10, 0.75);

  --text-primary: #fafafa;
  --text-secondary: #c4c4c4;
  --text-muted: #7a7a7a;
  --text-accent: #fafafa;

  --border-color: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);

  --accent-primary: #fafafa;
  --accent-light: #1f1f1f;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-gold);
  color: var(--text-primary);
}

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

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

ul,
ol {
  list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
}

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

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

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

.section {
  padding: var(--space-24) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-8);
}

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

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

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

.grid-12 {
  grid-template-columns: repeat(12, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {

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

  .grid-mobile-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-4) !important;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-lg {
    padding: var(--space-20) 0;
  }
}

/* Flexbox */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-5) 0;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.header.scrolled {
  padding: var(--space-4) 0;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: all var(--duration-normal) var(--ease-out-expo);
  pointer-events: none;
}

.header.scrolled::before {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Logo */
.logo {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  max-width: 220px;
}

.logo img {
  height: 32px !important;
  /* Force a fixed height to prevent production blow-up */
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* Home Page specific logo size */
.home-page .logo img {
  height: clamp(34px, 4vw, 42px) !important;
}

[data-theme="dark"] .logo img {
  filter: invert(1);
}

/* Navigation */
.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-8);
}

.nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  transition: color var(--duration-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-4);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-right: -10px;
}

.menu-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out-quart);
  transform-origin: center;
}

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

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

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

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    gap: var(--space-8);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
    /* Ensure mobile menu overlays the header and other elements */
    z-index: 2000;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list.active {
    opacity: 1;
    visibility: visible;
    /* allow inner scrolling when content exceeds viewport */
    overflow-y: auto;
  }

  .nav-link {
    font-size: 2rem;
    font-family: var(--font-display);
  }

  /* When menu is open, prevent the body from scrolling to avoid layout shifting */
  body.menu-open {
    overflow: hidden;
    height: 100vh;
  }
}

/* --------------------------------------------------------------------------
   Dropdown Navigation
   -------------------------------------------------------------------------- */
.has-dropdown {
  position: relative;
}

.dropdown-icon {
  font-size: 0.7rem;
  margin-left: 6px;
  opacity: 0.5;
  transition: transform 0.3s var(--ease-out-expo);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-card);
  min-width: 280px;
  padding: var(--space-4) 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out-expo);
  z-index: 100;
  margin-top: 10px;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-8);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: var(--bg-secondary);
  color: var(--accent-gold);
  padding-left: var(--space-10);
}

/* Mobile Dropdown Adjustments */
@media (max-width: 900px) {
  .dropdown-icon {
    font-size: 1.25rem;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: 100%;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo);
  }

  .dropdown-menu::before {
    display: none;
  }

  .has-dropdown.active .dropdown-menu {
    max-height: 800px;
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .dropdown-menu li a {
    justify-content: center;
    font-size: 1.25rem;
    padding: var(--space-3) var(--space-6);
    color: var(--text-muted);
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out-expo);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-gold {
  background: var(--accent-gold);
  color: #fff;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 162, 39, 0.3);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: 1rem;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* Links */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--text-primary);
  transition: gap var(--duration-fast);
}

.link-arrow:hover {
  gap: var(--space-4);
}

.link-arrow svg,
.link-arrow i {
  transition: transform var(--duration-fast);
}

.link-arrow:hover svg,
.link-arrow:hover i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-body {
  padding: var(--space-8);
}

.card-sm .card-body {
  padding: var(--space-6);
}

.card-lg .card-body {
  padding: var(--space-10);
}

/* --------------------------------------------------------------------------
   HOMEPAGE - Hero Section
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   HOMEPAGE - Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 500px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: block;
    /* Ensure it's visible on smaller screens if desired, or keep none */
    width: 100%;
    min-height: 400px;
    margin-top: var(--space-8);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent-gold);
}

.hero h1 {
  margin-bottom: var(--space-8);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-gold);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-10);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero Stats Grid */
.hero-metrics {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-color);
}

.hero-metric {
  text-align: left;
}

.hero-metric-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.hero-metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   HOMEPAGE - Services Overview
   -------------------------------------------------------------------------- */
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-16);
  align-items: start;
}

.services-intro-header h2 {
  margin-bottom: var(--space-6);
}

.services-intro-header p {
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.service-list {
  counter-reset: service-counter;
}

.service-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--border-color);
  align-items: start;
  cursor: pointer;
  transition: all var(--duration-fast);
  border-radius: var(--radius-lg);
}

.service-item:hover {
  background: var(--bg-card);
  transform: translateX(10px);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.service-item::before {
  counter-increment: service-counter;
  content: counter(service-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-gold);
  margin-top: 6px;
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-item h4 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
}

.service-brief {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-item .arrow {
  opacity: 0.3;
  transform: translateX(0);
  transition: all var(--duration-fast);
  color: var(--accent-gold);
  margin-top: 6px;
}

.service-item:hover .arrow {
  opacity: 1;
  transform: translateX(4px);
}

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

/* --------------------------------------------------------------------------
   HOMEPAGE - Featured Work
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.work-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.work-item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.work-item:hover img {
  transform: scale(1.05);
}

.work-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-8);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.work-item:hover .work-item-overlay {
  opacity: 1;
}

.work-item-overlay h4 {
  color: #fff;
  margin-bottom: var(--space-2);
}

.work-item-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item:first-child {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }
}

/* --------------------------------------------------------------------------
   HOMEPAGE - Clients Marquee
   -------------------------------------------------------------------------- */
.clients-section {
  background: var(--bg-secondary);
  padding: var(--space-16) 0;
  overflow: hidden;
}

.clients-marquee {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.clients-marquee:hover {
  animation-play-state: paused;
}

.clients-marquee-inner {
  display: flex;
  gap: var(--space-12);
  padding: 0 var(--space-6);
}

.client-logo {
  height: 80px;
  opacity: 0.8;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.client-logo:hover {
  opacity: 1;
  transform: scale(1.6);
}

/* Theme-based logo inversion for black/white logos */
[data-theme="dark"] .logo-invert {
  filter: invert(1);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   ABOUT PAGE - Unique Layout
   -------------------------------------------------------------------------- */
.about-hero {
  padding: calc(80px + var(--space-20)) 0 var(--space-20);
}

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

.about-hero-content h1 {
  margin-bottom: var(--space-8);
}

.about-hero-content .lead {
  margin-bottom: var(--space-6);
}

.about-hero-image {
  position: relative;
}

.about-hero-image img {
  border-radius: var(--radius-xl);
}

.about-hero-image::after {
  content: '';
  position: absolute;
  inset: var(--space-8);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-xl);
  z-index: -1;
  transform: translate(var(--space-6), var(--space-6));
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--space-12);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-12) - 4px);
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--accent-gold);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-gold);
  margin-bottom: var(--space-3);
}

.timeline-item h4 {
  margin-bottom: var(--space-2);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.team-member {
  text-align: center;
}

.team-member-image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  position: relative;
  background-color: var(--bg-tertiary);
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transform: scale(1.15);
  transition: transform var(--duration-slow), filter var(--duration-slow);
  filter: grayscale(100%);
}

.team-member:hover .team-member-image img {
  transform: scale(1.22);
  filter: grayscale(0%);
}

/* Social links removed for now */

.team-member h5 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.team-member p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   SERVICES PAGE - Unique Layout
   -------------------------------------------------------------------------- */
.services-hero {
  padding: calc(80px + var(--space-20)) 0 var(--space-16);
  text-align: center;
}

.services-hero h1 {
  margin-bottom: var(--space-6);
}

.services-hero .lead {
  max-width: 600px;
  margin: 0 auto;
}

.service-card {
  scroll-margin-top: 100px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
  transition: all var(--duration-normal);
}

.service-card:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}

.service-card:nth-child(even) .service-card-image {
  order: 2;
}

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

.service-card-image {
  height: 100%;
  min-height: 300px;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-content {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-bottom: var(--space-4);
}

.service-card h3 {
  margin-bottom: var(--space-4);
}

.service-card p {
  margin-bottom: var(--space-6);
}

@media (max-width: 768px) {

  .service-card,
  .service-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .service-card-image {
    min-height: 200px;
    order: -1 !important;
  }
}

/* --------------------------------------------------------------------------
   CLIENTS PAGE - Unique Layout
   -------------------------------------------------------------------------- */
.clients-hero {
  padding: calc(80px + var(--space-20)) 0 var(--space-6);
  text-align: center;
}

.clients-hero .lead {
  max-width: 600px;
  margin: 0 auto;
}

.clients-grid-main {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.client-card {
  aspect-ratio: 3/2;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  transition: all var(--duration-fast);
}

.client-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.client-card img {
  max-height: 80px;
  max-width: 80%;
  object-fit: contain;
  transition: all var(--duration-fast);
}

.client-card:hover img {
  transform: scale(1.1);
}

.client-card-cta {
  background: transparent;
  border: 1px dashed var(--border-strong);
  flex-direction: column;
  color: var(--text-muted);
  gap: var(--space-2);
  cursor: pointer;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out-expo);
  animation: pulse-border 3s ease-in-out infinite, shake-box 6s ease-in-out infinite;
}

.client-card-cta:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(201, 162, 39, 0.03);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
  animation: none;
}

.client-card-cta i {
  font-size: 1.25rem;
  margin-bottom: 2px;
  animation: pulse-icon 2s ease-in-out infinite;
}

.client-card-cta span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes pulse-border {

  0%,
  100% {
    border-color: var(--border-strong);
  }

  50% {
    border-color: var(--accent-gold);
  }
}

@keyframes pulse-icon {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
    color: var(--accent-gold);
  }
}

@keyframes shake-box {

  0%,
  85%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  87% {
    transform: rotate(1.5deg) translateY(-2px);
  }

  89% {
    transform: rotate(-1.5deg) translateY(-2px);
  }

  91% {
    transform: rotate(1.5deg) translateY(-2px);
  }

  93% {
    transform: rotate(-1.5deg) translateY(-2px);
  }

  95% {
    transform: rotate(0deg) translateY(0);
  }
}

@keyframes pulse-icon {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
    color: var(--accent-gold);
  }
}

[data-theme="dark"] .client-card img.logo-invert {
  filter: invert(1);
}

@media (max-width: 900px) {
  .clients-grid-main {
    grid-template-columns: repeat(3, 1fr);
  }

  .clients-hero {
    padding: calc(60px + var(--space-12)) 0 var(--space-4);
  }
}

@media (max-width: 500px) {
  .clients-grid-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-lg .card-body {
    padding: var(--space-6);
  }

  /* Stats Refinement */
  .grid-mobile-2 .card-body span[style*="font-size: 3rem"] {
    font-size: 2.25rem !important;
  }

  .clients-hero h1 {
    font-size: 2.25rem;
  }

  .clients-hero .lead {
    font-size: 1.125rem;
  }

  /* Reduce section header spacing */
  .section .text-center[style*="margin-bottom: var(--space-12)"] {
    margin-bottom: var(--space-8) !important;
  }

  .client-card {
    padding: var(--space-3);
  }

  .client-card img {
    max-width: 85%;
    max-height: 60px;
  }
}

/* --------------------------------------------------------------------------
   CONTACT PAGE - Unique Layout
   -------------------------------------------------------------------------- */
.contact-hero {
  padding: calc(80px + var(--space-20)) 0 var(--space-10);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

.contact-hero h1 {
  margin-bottom: var(--space-6);
}

.contact-info-list {
  margin-top: var(--space-10);
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-info-item i {
  color: var(--accent-gold);
  font-size: 1.25rem;
  width: 24px;
}

.contact-info-item h5 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-info-item a:hover {
  color: var(--accent-gold);
}

.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) contrast(1.1);
  transition: filter var(--duration-normal);
}

.contact-map:hover iframe {
  filter: grayscale(0%);
}

@media (max-width: 900px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 300px;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  padding: var(--space-20) 0 var(--space-8);
  margin-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-brand .logo {
  margin-bottom: var(--space-6);
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-fast);
}

.footer-socials a:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.footer-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   WhatsApp Widget
   -------------------------------------------------------------------------- */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.wa-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--duration-fast);
}

.wa-btn:hover {
  transform: scale(1.1);
}

.wa-popup {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-fast);
}

.wa-widget.active .wa-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wa-header {
  background: #25D366;
  padding: var(--space-6);
  color: #fff;
}

.wa-header h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.wa-header p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.wa-contacts {
  padding: var(--space-4);
}

.wa-contact {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast);
}

.wa-contact:hover {
  background: var(--bg-secondary);
}

.wa-contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.wa-contact h6 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
}

.wa-contact span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Back to Top
   -------------------------------------------------------------------------- */
.back-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--duration-fast);
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow), transform var(--duration-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Smooth reveal animation */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* Stagger children */
[data-animate-stagger]>* {
  opacity: 0;
  transform: translateY(20px);
}

[data-animate-stagger].animated>* {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

[data-animate-stagger].animated>*:nth-child(1) {
  transition-delay: 0.1s;
}

[data-animate-stagger].animated>*:nth-child(2) {
  transition-delay: 0.2s;
}

[data-animate-stagger].animated>*:nth-child(3) {
  transition-delay: 0.3s;
}

[data-animate-stagger].animated>*:nth-child(4) {
  transition-delay: 0.4s;
}

[data-animate-stagger].animated>*:nth-child(5) {
  transition-delay: 0.5s;
}

[data-animate-stagger].animated>*:nth-child(6) {
  transition-delay: 0.6s;
}

/* Popup Banner Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%) scale(0.9);
  max-width: 620px;
  width: 95%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-16) var(--space-10);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
  overflow: hidden;
}

.popup-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}

.popup-banner.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

/* Popup Trigger (Minimized state) */
.popup-trigger {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  background: var(--accent-gold);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 998;
  transition: all var(--duration-normal);
  transform: scale(0);
  opacity: 0;
  visibility: hidden;
}

.popup-trigger.visible {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.popup-trigger:hover {
  transform: scale(1.1);
  background: var(--text-primary);
}

.popup-trigger .notification-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  background: #ff4d4d;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.popup-graphic {
  font-size: 5rem;
  color: var(--accent-gold);
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 15px 25px rgba(201, 162, 39, 0.3));
  animation: popupFloat 3s ease-in-out infinite;
}

@keyframes popupFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.popup-content {
  position: relative;
}

.popup-banner h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.popup-banner p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

/* Countdown Timer */
.popup-timer {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.timer-unit {
  background: var(--bg-tertiary);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  min-width: 70px;
  border: 1px solid var(--border-strong);
}

.timer-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-mono);
  line-height: 1;
}

.timer-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-2);
  letter-spacing: 0.05em;
}

.popup-cta-container {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

.popup-cta-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: transform 0.3s ease;
}

.popup-cta-btn:hover {
  transform: translateY(-3px);
}

.popup-banner .close-btn {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--duration-fast);
  box-shadow: var(--shadow-sm);
}

.popup-banner .close-btn:hover {
  background: var(--accent-gold);
  color: white;
  border-color: var(--accent-gold);
}

@media (max-width: 576px) {
  .popup-banner {
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-10) var(--space-6) var(--space-8);
    gap: var(--space-2);
  }

  .popup-graphic {
    font-size: 3rem;
    margin-bottom: var(--space-2);
  }

  .popup-banner h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-2);
  }

  .popup-banner p {
    font-size: 0.95rem;
    margin-bottom: var(--space-6);
    line-height: 1.5;
  }

  .popup-timer {
    gap: var(--space-2);
    margin-bottom: var(--space-6);
  }

  .timer-unit {
    min-width: 50px;
    padding: var(--space-2);
  }

  .timer-value {
    font-size: 1.25rem;
  }

  .popup-banner .close-btn {
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
    background: var(--bg-tertiary);
    z-index: 10;
  }

  .popup-trigger {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .popup-cta-container {
    margin-top: var(--space-4);
  }

  .popup-cta-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   HOMEPAGE REFERENCE HERO (index)
   -------------------------------------------------------------------------- */
.home-page {
  --home-overlay-start: rgba(250, 250, 250, 1);
  --home-overlay-mid: rgba(250, 250, 250, 0.88);
  --home-overlay-end: rgba(250, 250, 250, 0);
  --home-overlay-clear: rgba(250, 250, 250, 0);
  --home-bottom-fade-start: rgba(250, 250, 250, 0);
  --home-bottom-fade-end: rgba(250, 250, 250, 1);
  --home-subtext: #575757;
  --home-toggle-bg: #f3f3f3;
  --home-toggle-fg: #111111;
}

[data-theme="dark"] .home-page {
  --home-overlay-start: rgba(10, 10, 10, 1);
  --home-overlay-mid: rgba(10, 10, 10, 0.82);
  --home-overlay-end: rgba(10, 10, 10, 0);
  --home-overlay-clear: rgba(10, 10, 10, 0);
  --home-bottom-fade-start: rgba(10, 10, 10, 0);
  --home-bottom-fade-end: rgba(10, 10, 10, 1);
  --home-subtext: #b6b6b6;
  --home-toggle-bg: #1c1c1c;
  --home-toggle-fg: #f1f1f1;
}

.home-page .header {
  position: fixed;
  padding-top: var(--space-5);
}

.home-page .header .container,
.home-page .hero .container {
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

.home-page .header::before {
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .header.scrolled {
  padding-top: var(--space-4);
}

.home-page .header.scrolled::before {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
}

.home-page .nav-list {
  gap: var(--space-8);
}

.home-page .theme-toggle {
  background: var(--home-toggle-bg);
  color: var(--home-toggle-fg);
}

.home-page .hero {
  min-height: 90vh;
  padding-top: 100px;
  padding-bottom: var(--space-8);
}

.home-page .hero .container {
  max-width: 1460px;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 1.5rem;
  align-items: stretch;
}

.home-page .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 1.5rem;
  padding-left: clamp(0.25rem, 1.2vw, 1rem);
}

.home-page .hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.home-page .hero h1 em {
  display: block;
  margin: 0.15rem 0;
  color: #d1ab4d;
}

.home-page .hero-description {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 580px;
  color: var(--home-subtext);
  margin-bottom: 1.5rem;
}

.home-page .hero-visual {
  min-height: clamp(400px, 65vh, 650px);
  border-radius: 0;
  box-shadow: none;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  /* Better practice: Calculate exact bleed amount to reach viewport edge */
  --bleed-amount: calc(max(0px, (100vw - var(--container-max)) / 2) + var(--space-6));
  width: calc(100% + var(--bleed-amount));
  margin-right: calc(-1 * var(--bleed-amount));
  margin-left: var(--space-4);
  background: var(--bg-primary);
  isolation: isolate;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 25%),
    linear-gradient(to left, transparent 0%, black 8%),
    linear-gradient(to bottom, transparent 0%, black 10%),
    linear-gradient(to top, transparent 0%, black 12%);
  mask-image:
    linear-gradient(to right, transparent 0%, black 25%),
    linear-gradient(to left, transparent 0%, black 8%),
    linear-gradient(to bottom, transparent 0%, black 10%),
    linear-gradient(to top, transparent 0%, black 12%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.home-page .hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--home-overlay-start) 0%, var(--home-overlay-mid) 20%, var(--home-overlay-end) 60%);
  z-index: 2;
  pointer-events: none;
}

.home-page .hero-visual::after {
  display: none;
}

.home-page .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: saturate(1.02) contrast(0.98);
}

.home-page .hero-metrics {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.home-page .hero-metric-value {
  font-size: 3rem;
}

@media (max-width: 1200px) {
  .home-page .logo img {
    height: 32px;
  }

  .home-page .logo {
    font-size: 2rem;
  }

  .home-page .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .home-page .hero-visual {
    width: 100%;
    min-height: 400px;
    margin-top: 2rem;
    margin-right: 0;
    margin-left: 0;
    border-radius: 16px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }

  .home-page .hero-visual::before {
    background: linear-gradient(180deg, var(--home-overlay-mid) 0%, rgba(0, 0, 0, 0) 40%);
  }

  .home-page .hero h1 {
    font-size: clamp(2.6rem, 9vw, 3.8rem);
  }

  .home-page .hero-description {
    font-size: 1.1rem;
  }

  .home-page .hero-metrics {
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .home-page .hero-metric-value {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .home-page .hero .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    gap: 2rem;
  }

  .home-page .hero-visual {
    min-height: 250px;
    margin-top: 1.5rem;
  }

  .home-page .hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .home-page .hero-metric-label {
    font-size: 0.7rem;
  }

  .home-page .hero-metric-value {
    font-size: 2rem;
  }

  .home-page .hero-metric:last-child {
    grid-column: span 2;
    text-align: center;
  }

  .home-page .hero h1 {
    font-size: 2.4rem;
  }

  .home-page .hero-description {
    font-size: 1rem;
  }

  .home-page .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .home-page .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
}