/*
Theme Name: Alora Alkemia
Theme URI: https://globalalora.com
Description: Theme personalizado y modular para Alkemia con arquitectura escalable y bloques reutilizables
Author: Global Alora
Author URI: https://globalalora.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alora-alkemia
Domain Path: /languages
Tags: custom-theme, modular, blocks, acf, clean-code, scalable

Alora Alkemia Theme - Copyright (C) 2025 Global Alora
This theme is licensed under the GPL v2 or later.
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════ */
:root {
  /* Brand */
  --color-red:    #FF3300;
  --color-navy:   #092D4D;
  --color-red-dim: rgba(255,51,0,.15);
  --color-red-glow: rgba(255,51,0,.25);

  /* Dark backgrounds – layered depth */
  --bg-void:   #050c15;
  --bg-deep:   #070e1a;
  --bg-dark:   #0a1525;
  --bg-navy:   #0d1f38;
  --bg-card:   rgba(13,31,56,.6);
  --bg-card-hover: rgba(13,31,56,.9);

  /* Scroll section color zones — animated by JS */
  --section-dark:    oklch(0.10 0.038 262);
  --section-darker:  oklch(0.08 0.030 260);
  --section-navy:    oklch(0.12 0.045 264);
  --section-current: var(--section-dark); /* updated by JS */

  /* Card / panel surfaces */
  --card-bg:     rgba(255,255,255,.04);
  --card-border: rgba(255,255,255,.08);
  --card-border-hover: rgba(255,51,0,.35);

  /* Text */
  --text-white: #ffffff;
  --text-muted: rgba(255,255,255,.7);
  --text-dim:   rgba(255,255,255,.45);
  --text-hint:  rgba(255,255,255,.25);

  /* Brand semantic */
  --color-primary:   var(--color-navy);
  --color-accent:    var(--color-red);
  --color-secondary: #4a6480;
  --color-background: var(--bg-dark);

  /* Typography */
  --font-display: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-family-primary: var(--font-sans);
  --font-family-secondary: var(--font-serif);

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-hero: clamp(2.5rem, 5vw + 1rem, 4.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --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;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

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

  /* Shadow / glow */
  --shadow-card: 0 4px 24px rgba(0,0,0,.35);
  --shadow-card-hover: 0 8px 40px rgba(0,0,0,.5);
  --glow-red:    0 0 60px rgba(255,51,0,.2);
  --glow-navy:   0 0 80px rgba(9,45,77,.4);

  /* Motion */
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   600ms;
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.4, 0, 0.2, 1);

  /* Breakpoints (reference only, use in @media) */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-white);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-red);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
}

p { color: var(--text-muted); }

ul, ol { list-style: none; }

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

/* ═══════════════════════════════════════════════════════════
   SITE STRUCTURE
═══════════════════════════════════════════════════════════ */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  display: block;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--wide   { max-width: 1400px; }
.container--narrow { max-width: 800px; }

@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
  .site-header { padding: 10px 0; }
  .header__logo-image { height: 60px; }
}

/* Grid */
.grid { display: grid; gap: var(--space-8); }
.grid--2-cols { grid-template-columns: repeat(2, 1fr); }
.grid--3-cols { grid-template-columns: repeat(3, 1fr); }
.grid--4-cols { grid-template-columns: repeat(4, 1fr); }

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

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
═══════════════════════════════════════════════════════════ */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-dim     { color: var(--text-dim); }
.text-white   { color: var(--text-white); }
.text-red     { color: var(--color-red); }

/* Red highlight word */
.text-highlight {
  color: var(--color-red);
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════
   SECTION BADGE
═══════════════════════════════════════════════════════════ */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.section-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}
.btn--primary:hover {
  background: #e62e00;
  border-color: #e62e00;
  color: #fff;
  box-shadow: 0 0 24px rgba(255,51,0,.45);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-red);
  color: var(--color-red);
}
.btn--outline:hover {
  background: var(--color-red);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255,255,255,.3);
  color: var(--text-white);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: var(--text-white);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: var(--text-white);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}

/* Arrow icon within button */
.btn .btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-normal) var(--ease-out);
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════
   HEADER  — matches reference: bg-navy/85 + blur-md
═══════════════════════════════════════════════════════════ */

/*
 * Base state: navy at 85% opacity + 12px blur
 * Scrolled state: navy at 97% + tighter border
 * Transition: 300ms on all (matches reference duration-300)
 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002; /* above mobile menu panel (1001) so logo/lang/X stay visible */
  padding: 20px 0;
  /* oklch(24.5% .11 264 / 0.85) = --navy / 85% */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 300ms ease,
              border-color 300ms ease,
              backdrop-filter 300ms ease;
}

/* Scrolled: deeper navy, near-opaque, stronger border */
.site-header.is-scrolled {
  background: oklch(18% .09 264 / 0.97);
  border-bottom-color: rgba(255,255,255,.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Admin bar offset */
.admin-bar .site-header { top: 32px; }

/* ── Inner row ────────────────────────────────────────────── */
.site-header .header__inner,
.site-header .header-inner,
.site-header > .container > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;                /* h-18 = 72px */
  gap: var(--space-8);
}

/* ── Logo ─────────────────────────────────────────────────── */
.header__logo-link { display: inline-flex; align-items: center; }

.header__logo-image,
.site-logo img {
  height: 90px;
  width: auto;
  display: block;
}

.header__logo-link--text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--text-white);
  text-decoration: none;
}

/* ── Primary navigation ──────────────────────────────────── */
.header__nav-menu,
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;               /* gap-8 = 32px */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Nav item links */
.header__nav-menu li { position: relative; }

.header__nav-menu a,
.main-nav a {
  font-size: 0.875rem;          /* text-sm = 14px */
  font-weight: 500;
  color: rgba(255,255,255,.75); /* white/75 */
  text-decoration: none;
  letter-spacing: 0;
  transition: color 200ms ease;
  white-space: nowrap;
}

.header__nav-menu a:hover,
.header__nav-menu .current-menu-item > a,
.header__nav-menu .current-menu-ancestor > a,
.main-nav a:hover {
  color: #ffffff;               /* hover → full white */
}

/* Hover underline accent */
.header__nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-red);
  transition: width 200ms ease;
}
.header__nav-menu a:hover::after,
.header__nav-menu .current-menu-item > a::after { width: 100%; }

/* ── Actions area ────────────────────────────────────────── */
.header__actions,
.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* Header CTA button */
.header__cta .btn {
  padding: 9px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 2px;
}

/* ── Language switcher ───────────────────────────────────── */
.header__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header__lang-item {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color 200ms ease;
  line-height: 1;
}

.header__lang-item:hover,
.header__lang-item--active {
  color: rgba(255,255,255,.9);
}

.header__lang-sep {
  color: rgba(255,255,255,.30);
  font-size: 0.65rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* ── Phone ───────────────────────────────────────────────── */
.header__phone-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color 200ms ease;
  white-space: nowrap;
}
.header__phone-link:hover { color: rgba(255,255,255,.9); }

/* ── Hamburger toggle ────────────────────────────────────── */
.header__mobile-toggle,
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;   /* stacking context for absolute icon children */
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}

/* Icon images — swap via active class */
.header__toggle-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: opacity 200ms ease;
  position: absolute;
}

.header__toggle-icon--close { opacity: 0; }
.header__toggle-icon--open  { opacity: 1; }

.header__mobile-toggle--active .header__toggle-icon--open  { opacity: 0; }
.header__mobile-toggle--active .header__toggle-icon--close { opacity: 1; }

/* ── Mobile menu panel — full-screen overlay ─────────────── */
/*
 * Full-screen overlay approach:
 *   - position: fixed; inset: 0  → covers entire viewport including header area
 *   - z-index: 1001              → above page content, BELOW header (1002)
 *   - .site-header z-index: 1002 → logo / lang / X button stay visible on top
 *   - overflow-y: auto           → scrollable if nav items are many
 *
 * JS toggles .is-open on .mobile-menu and .mobile-menu-open on body.
 * visibility delay keeps element in flow during close animation.
 */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: oklch(10% .06 262 / 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  /* Closed state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity     280ms var(--ease-out),
    visibility  0ms   linear 280ms;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity     280ms var(--ease-out),
    visibility  0ms   linear 0ms;
}

/* ── Backdrop overlay (kept in DOM, hidden — menu is the overlay) ── */
.mobile-menu-overlay {
  display: none; /* full-screen menu acts as its own backdrop */
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* ── Mobile menu inner — push content below fixed header ──── */
.mobile-menu__inner {
  min-height: 100%;
  /* Desktop/tablet header: 20px pad + 72px inner + 20px pad = 112px */
  padding-top: 112px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  /* ── Header mobile overrides (must live AFTER base .site-header rule) ── */
  .site-header { padding: 10px 0; }
  .header__logo-image { height: 60px; }

  .mobile-menu__inner {
    /* Mobile header: 10px pad + 72px inner + 10px pad = 92px */
    padding-top: 92px;
  }

  .btn--lg {  font-size: var(--text-sm);
}
}

/* ── Mobile nav list ─────────────────────────────────────── */
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu__nav li {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.mobile-menu__nav li:first-child {
  border-top: 1px solid rgba(255,255,255,.06);
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color 180ms ease, padding-left 180ms ease;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav .current-menu-item > a,
.mobile-menu__nav .current-menu-ancestor > a,
.mobile-menu__nav .current_page_item > a {
  color: #ffffff;
  padding-left: 6px;
}

/* Active dot indicator */
.mobile-menu__nav .current-menu-item > a::after,
.mobile-menu__nav .current_page_item > a::after {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}

/* Sub-menus in mobile */
.mobile-menu__nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 4px 16px;
}

.mobile-menu__nav ul li {
  border-bottom: none;
}

.mobile-menu__nav ul a {
  padding: 10px 0;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
}

.mobile-menu__nav ul a:hover {
  color: rgba(255,255,255,.85);
  padding-left: 4px;
}

/* ── Phone + CTA ─────────────────────────────────────────── */
.mobile-menu__phone {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.08);
}


.mobile-menu__phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color 180ms ease;
}

.mobile-menu__phone-link:hover { color: rgba(255,255,255,.85); }

.mobile-menu__cta { margin-top: var(--space-4); }

.mobile-menu__cta-button {
  width: 100%;
  justify-content: center;
}

/* ── Responsive breakpoints ──────────────────────────────── */
@media (max-width: 1023px) {
  .header__navigation,
  .main-nav { display: none; }

  .header__actions .btn,
  .header-cta .btn,
  .header__phone { display: none; }

  .header__mobile-toggle,
  .nav-toggle { display: flex; }

  /* Keep lang switcher visible on tablet */
  .header__lang { display: flex; }
}
/* Page offset to avoid fixed header overlap */
.page-offset { padding-top: 72px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  background-color: oklch(0.07 0.025 258);
  color: var(--text-dim);
  overflow: hidden;
}

/* ── Footer atmosphere ──────────────────────────────────── */
.footer-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.footer-orb-1 {
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 36rem;
  height: 36rem;
  border-radius: 9999px;
  background: radial-gradient(circle, color-mix(in oklab, var(--color-red) 12%, transparent), transparent 70%);
  filter: blur(80px);
  opacity: 0.4;
}

.footer-orb-2 {
  position: absolute;
  bottom: -6rem;
  left: -6rem;
  width: 28rem;
  height: 28rem;
  border-radius: 9999px;
  background: radial-gradient(circle, color-mix(in oklab, #092D4D 45%, transparent), transparent 70%);
  filter: blur(60px);
  opacity: 0.5;
}

/* ── Top section ────────────────────────────────────────── */
.footer-top {
  position: relative;
  z-index: 1;
  padding: 80px 0 64px;
}

/*
 * 3-column layout: Brand (wider) | Navegación | Contacto
 * Matches reference: grid md:grid-cols-3 gap-12
 */
.footer-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Brand column ───────────────────────────────────────── */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.footer-logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--text-white);
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,.60);    /* text/60 — matches reference */
  max-width: 280px;
  margin: 0;
}

/* ── Column heading ─────────────────────────────────────── */
/* matches reference: text-xs uppercase tracking-[0.25em] text-white/50 */
.footer-col-heading {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,.50);
  margin: 0 0 1.25rem;
}

/* ── Navegación column — wp_nav_menu output ─────────────── */
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-nav-list li { }

.footer-nav-list a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,.80);  /* white/80 — matches reference */
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-nav-list a:hover {
  color: var(--color-red);       /* hover:text-vermilion */
}

/* ── Contacto column ────────────────────────────────────── */
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,.80);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-contact-link:hover { color: var(--color-red); }

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.40);
  flex-shrink: 0;
  transition: color 200ms ease;
}

.footer-contact-link:hover .footer-contact-icon { color: var(--color-red); }

/* ── Bottom bar ─────────────────────────────────────────── */
.footer-bottom-bar {
  position: relative;
  z-index: 1;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.10);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,.50);   /* text/50 — matches reference */
  margin: 0;
}

/* Social icons row */
.footer-social-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: background 200ms ease,
              border-color 200ms ease,
              color 200ms ease,
              transform 200ms ease;
}

.footer-social-icon:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1023px) {
  .footer-columns { gap: 32px; }
}

@media (max-width: 767px) {
  .footer-top { padding: 56px 0 48px; }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-tagline { max-width: 100%; }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

/* Delay variants */
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }
.reveal--d4 { transition-delay: 0.32s; }
.reveal--d5 { transition-delay: 0.40s; }
.reveal--d6 { transition-delay: 0.50s; }

/* Direction variants */
.reveal--left {
  transform: translateX(-32px);
}
.reveal--left.is-visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(32px);
}
.reveal--right.is-visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.94);
}
.reveal--scale.is-visible {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal--scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL COLOR PROGRESSION — Global state machine
═══════════════════════════════════════════════════════════ */

/* Global scroll variables (updated by JS on every scroll tick) */
:root {
  --scroll-progress: 0;
  --scroll-intensity: 0;
}

/*
 * APPROACH: global #site-bg-layer (mirrors the Lovable reference).
 *
 * Architecture:
 *   1. #site-bg-layer — fixed full-viewport div at z-index 0.
 *      JS sets its background-color when the dominant section changes.
 *      CSS transition animates the global background shift.
 *   2. [data-section-theme] sections — background-color: transparent
 *      so the bg-layer shows through everywhere on the page.
 *   3. .page-ambient orbs — fixed at z-index 2, add secondary glow.
 *   4. section--in-view — per-section overlays (::after gradients) intensify.
 */

/* ── #site-bg-layer: the global background state machine ────────────────── */
#site-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg-dark);          /* initial value, matches body */
  transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: background-color;
}

/*
 * Sections must be transparent so #site-bg-layer shows through.
 * background-image (noise/grid textures) is intentionally left in place —
 * those are separate CSS properties and remain visible on the transparent base.
 * !important is required because block stylesheets are enqueued AFTER theme
 * CSS in WordPress and override specificity regardless of selector weight.
 */
[data-section-theme] {
  background-color: transparent !important;
}

/* ═══════════════════════════════════════════════════════════
   LIGHT SECTION THEME — [data-section-bg="light"]
   ───────────────────────────────────────────────────────────
   Placed AFTER [data-section-theme] transparent rule so equal-
   specificity !important cascade gives the white bg the win.
   CSS custom-property overrides cascade to all descendants
   automatically — tokens fix most colors without per-element
   !important rules; only hardcoded rgba values need overrides.
═══════════════════════════════════════════════════════════ */

/* White background — overrides dark transparent + block bg-images */
[data-section-bg="light"] {
  background-color: #ffffff !important;
  background-image: none !important;
  /* Re-scope global dark tokens → light values for all children */
  --text-white:        #0e1a2d;
  --text-muted:        rgba(14, 26, 45, 0.62);
  --text-dim:          rgba(14, 26, 45, 0.40);
  --bg-deep:           #f4f6f8;
  --card-bg:           rgba(14, 26, 45, 0.04);
  --card-border:       rgba(14, 26, 45, 0.08);
  --card-border-hover: rgba(255, 51, 0, 0.30);
}

/* Block CSS uses hardcoded rgba (not vars) for some text — override explicitly */
[data-section-bg="light"] .about-description,
[data-section-bg="light"] .about-card-body,
[data-section-bg="light"] .why-description,
[data-section-bg="light"] .why-card-desc {
  color: rgba(14, 26, 45, 0.62) !important;
}

/* Why-card & about-card: hardcoded color-mix whites invisible on white bg */
[data-section-bg="light"] .why-card,
[data-section-bg="light"] .about-card {
  background: rgba(14, 26, 45, 0.05) !important;
  border-color: rgba(14, 26, 45, 0.10) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Atmospheric elements — suppress on white background */
[data-section-bg="light"] .about-orb-1,
[data-section-bg="light"] .about-orb-2,
[data-section-bg="light"] .why-orb-1,
[data-section-bg="light"] .why-orb-2 {
  opacity: 0 !important;
}

[data-section-bg="light"] .grain-overlay {
  opacity: 0 !important;
}

[data-section-bg="light"] .grid-pattern {
  opacity: 0.025 !important;
  color: #0e1a2d !important;
}

[data-section-bg="light"] .ambient-glow {
  opacity: 0 !important;
}

/* Kill screen-blend pseudo-element glows (screen on white = washed out) */
[data-section-bg="light"]::after,
[data-section-bg="light"].section--in-view::after {
  display: none !important;
}

/* Cancel in-view orb intensification for light sections */
[data-section-bg="light"].section--in-view .about-orb-1,
[data-section-bg="light"].section--in-view .about-orb-2 {
  opacity: 0 !important;
}


/* Orbs smooth out their transition for scroll-driven opacity */
.hero-orb-1, .hero-orb-2,
.about-orb-1, .about-orb-2 {
  transition: opacity 0.9s ease;
}

/* ═══════════════════════════════════════════════════════════
   SECTION IN-VIEW — clear per-section visual effects
   ───────────────────────────────────────────────────────────
   When JS marks a section as section--in-view (most visible
   in viewport), its internal atmospheric elements intensify.

   Rules:
   • No filter:blur on pseudo-elements — sections have overflow:hidden
     which clips blurred content; pure radial-gradients work cleanly.
   • Inline-opacity overrides use !important (only for ambient-glow
     elements whose opacity is set via inline style attribute).
   • cta-section uses both ::before and ::after — no new pseudo needed.
   • hero-section orbs already run heroPulse animation; CSS opacity
     is overridden by keyframes so we skip hero-orb rules.
═══════════════════════════════════════════════════════════ */

/* ── Transitions on internal glows so in-view changes are smooth ── */
.about-orb-1,
.about-orb-2   { transition: opacity 0.8s ease; }
.ambient-glow  { transition: opacity 0.7s ease; }

/* ── About (dark): doubled opacity jump — was 0.45→0.65, now 0.45→0.90 ── */
/* !important needed: block CSS (blocks/about/style.css) is enqueued AFTER
   theme CSS in WP's block-style system, so it wins the cascade regardless
   of selector specificity. */
[data-section-theme].section--in-view .about-orb-1 { opacity: 0.90 !important; }
[data-section-theme].section--in-view .about-orb-2 { opacity: 0.90 !important; }

/* ── Industries (navy): top-center blue spotlight via ::after ── */
/* z-index:2 + mix-blend-mode:screen renders above content without
   obscuring text — same technique as the page-ambient orbs.        */
.industries-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 0%,
    rgba(26, 125, 204, 0.55) 0%,
    transparent 70%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 2;
}
.industries-section.section--in-view::after { opacity: 1 !important; }

/* ── Services (darker): intensify navy ambient glow (override inline) ── */
.services-section.section--in-view .ambient-glow--navy { opacity: 0.65 !important; }
.services-section.section--in-view .ambient-glow--red  { opacity: 0.25 !important; }

/* ── Services ::after: bottom-left blue glow spotlight ── */
.services-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 65% at 10% 90%,
    rgba(16, 85, 160, 0.50) 0%,
    transparent 70%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 2;
}
.services-section.section--in-view::after { opacity: 1 !important; }

/* ── Why Us (dark): right-side red glow via ::after ── */
.why-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 70% at 92% 40%,
    rgba(255, 51, 0, 0.35) 0%,
    transparent 70%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 2;
}
.why-section.section--in-view::after { opacity: 1 !important; }

/* ── Testimonials (dark): centered warm bottom glow ── */
.testimonials-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 100%,
    rgba(255, 51, 0, 0.30) 0%,
    transparent 70%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 2;
}
.testimonials-section.section--in-view::after { opacity: 1 !important; }

/* ── Manifesto (darker): intensify existing inline ambient glows ── */
.manifesto-section.section--in-view .ambient-glow--red  { opacity: 0.45 !important; }
.manifesto-section.section--in-view .ambient-glow--navy { opacity: 0.55 !important; }

/* ── CTA (darker): ::after glow already defined in cta/style.css —
   just add opacity transition + intensify on in-view ── */
.cta-section::after           { transition: opacity 0.7s ease; opacity: 0.4; }
.cta-section.section--in-view::after { opacity: 1 !important; }

/* ── Section boundary blend ─────────────────────────────── */
/*
 * Adds a subtle gradient at the TOP of each section that
 * fades from the PREVIOUS section's bg color to transparent,
 * creating seamless section-to-section transitions.
 */
.section-blend-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}

/* ── Fixed ambient scroll glow ──────────────────────────── */
/*
 * Two large blurred orbs fixed to the viewport.
 * JS lerps their opacity + position on every scroll/RAF tick.
 * NO opacity gate — always visible; JS controls intensity.
 */
.page-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* z-index: 2 — sits above sections (z-index:auto) but below header (1000).
     Sections have position:relative + z-index:auto so they appear after orbs
     in document order, which would normally cover z-index:0 orbs.
     Raising to 2 ensures orbs render on top of section backgrounds. */
  z-index: 2;
  overflow: hidden;
}

/* NO CSS transition on orbs — JS RAF lerp already smooths.
   A competing CSS transition creates a jerky double-animation. */
.page-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  will-change: transform, opacity;
  /* mix-blend-mode: screen — on near-black section backgrounds, screen
     adds the orb colour on top. Result: warm red glow / cool navy cast
     that changes as the user scrolls. pointer-events:none on parent
     ensures clicks pass through to content underneath. */
  mix-blend-mode: screen;
}

.page-ambient__orb--red {
  width: 900px;
  height: 900px;
  /* 25% colour-mix = vivid enough to see against dark bg */
  background: radial-gradient(circle at center,
    color-mix(in oklab, var(--color-red) 25%, transparent) 0%,
    transparent 70%
  );
}

.page-ambient__orb--navy {
  width: 1200px;
  height: 1200px;
  background: radial-gradient(circle at center,
    color-mix(in oklab, #1055A0 55%, transparent) 0%,
    transparent 70%
  );
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb-1, .hero-orb-2, .about-orb-1, .about-orb-2 { transition: none; }
  .page-ambient { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   AMBIENT GLOW EFFECTS
═══════════════════════════════════════════════════════════ */
.ambient-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform, opacity;
}

.ambient-glow--red {
  background: radial-gradient(circle, rgba(255,51,0,.4) 0%, transparent 70%);
  animation: ambientFloat 8s ease-in-out infinite;
}

.ambient-glow--navy {
  background: radial-gradient(circle, rgba(9,45,77,.6) 0%, transparent 70%);
  animation: ambientFloat 10s ease-in-out infinite reverse;
}

.ambient-glow--blue {
  background: radial-gradient(circle, rgba(30,80,140,.4) 0%, transparent 70%);
  animation: ambientFloat 12s ease-in-out infinite;
}

.ambient-glow--pulse {
  animation: ambientPulse 4s ease-in-out infinite;
}

.ambient-glow--mouse {
  transition: transform 0.3s ease;
}

@keyframes ambientFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.96); }
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%       { opacity: 0.6;  transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-glow { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   GLASSMORPHISM CARD
═══════════════════════════════════════════════════════════ */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.glass-card:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════
   STAT NUMBERS (animated counters)
═══════════════════════════════════════════════════════════ */
.stat-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-dim);
  margin-top: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════
   DIVIDER LINES
═══════════════════════════════════════════════════════════ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
}

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════
   VISIBILITY UTILITIES
═══════════════════════════════════════════════════════════ */
.hide-on-mobile  { display: none; }
.hide-on-desktop { display: block; }

@media (min-width: 768px) {
  .hide-on-mobile  { display: block; }
  .hide-on-desktop { display: none; }
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ═══════════════════════════════════════════════════════════
   BLOCK EDITOR SUPPORT
═══════════════════════════════════════════════════════════ */
.wp-block { max-width: none; }

/* ACF block preview placeholders */
.block-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  padding: var(--space-6);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   LEGACY COMPATIBILITY (kept for existing blocks)
═══════════════════════════════════════════════════════════ */
.container--wide { max-width: 1400px; }
