/* ============================================
   AEGIS LAW FIRM - DESIGN SYSTEM
   ============================================ */

/* CSS Variables - Design Tokens */
:root {
    /* Colors - Dark Mode */
    --color-primary: #beb448;
    /* Pistachio Accent as primary for headings/highlights */
    --color-primary-light: #d4cc7a;
    --color-secondary: #94a3b8;
    /* Muted Text */
    --color-accent: #beb448;
    /* Pistachio */
    --color-accent-hover: #a39b3d;

    /* Backgrounds */
    --color-background: #080a0c;
    /* Deep Graphite/Midnight */
    --color-background-alt: #0d1116;
    /* Slightly lighter */
    --color-surface: #12151a;
    /* Cards/Forms */
    --color-border: #1e2329;

    /* Text */
    --color-text: #f5f5f5;
    /* Off-white */
    --color-text-light: #a3a3a3;
    --color-white: #ffffff;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;

    /* Font Sizes */
    --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;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Spacing */
    --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;

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --container-padding: 1.5rem;

    /* Borders */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2.5rem;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Darker shadows */
    --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 48px -12px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

svg {
    stroke-width: 1.5px !important;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0;
    /* Star hidden */
}

/* Helper to delay children */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-semibold);
    line-height: 1.2;
    color: var(--color-white);
    /* Headings always white */
}

h1 {
    font-size: var(--text-5xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-4);
}

.text-serif {
    font-family: var(--font-serif);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
}

.text-light {
    color: var(--color-text-light);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    max-width: var(--max-width-narrow);
}

.section {
    padding: var(--space-20) 0;
}

.section-large {
    padding: 160px 0;
    /* Doubled vertical spacing */
}

/* 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);
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.gap-4 {
    gap: var(--space-4);
}

.gap-8 {
    gap: var(--space-8);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    letter-spacing: 0.025em;
    border-radius: 9999px !important;
    /* Force pill shape */
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4) var(--space-10);
    /* More padding for pill */
}

.btn-primary {
    background-color: var(--color-accent);
    color: #000000;
    /* Black text on Pistachio for contrast */
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline-dark:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-accent);
    padding: var(--space-2) 0;
}

.btn-ghost:hover {
    color: var(--color-accent-hover);
}

.btn-ghost::after {
    content: ' →';
    transition: transform var(--transition-fast);
}

.btn-ghost:hover::after {
    transform: translateX(4px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: var(--space-4);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 95%;
    max-width: var(--max-width);
    z-index: 1000;
    background-color: transparent;
    /* Default transparent */
    backdrop-filter: blur(0px);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(226, 232, 240, 0.6);
    box-shadow: var(--shadow-md);
    top: var(--space-4);
    /* Maintain floating position */
}


.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    /* Requested "much bigger" banner */
    padding: 0 var(--space-8);
    width: 100%;
}

.navbar-logo {
    font-size: var(--text-2xl);
    /* Larger text logo fallback */
    font-weight: var(--font-bold);
    letter-spacing: 0.1em;
    color: var(--color-white);
    /* Default to white for dark backgrounds */
    display: flex;
    align-items: center;
    transition: color var(--transition-base);
}

.navbar-logo span {
    color: var(--color-accent);
}

.navbar-logo img {
    height: 180px;
    width: auto;
    aspect-ratio: 360 / 180;
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    transition: height var(--transition-base);
}

/* Logo Switching Logic */
/* Default (Transparent Header): Show White Logo, Hide Dark Logo */
.navbar:not(.scrolled) .navbar-logo img.logo-dark {
    display: none;
}

.navbar:not(.scrolled) .navbar-logo img.logo-light {
    display: block;
}

.navbar:not(.scrolled) .navbar-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar:not(.scrolled) .navbar-link:hover {
    color: var(--color-accent);
}

.navbar:not(.scrolled) .navbar-toggle span {
    background-color: var(--color-white);
}

/* Scrolled (White Background): Show Dark Logo and Dark Text */
.navbar.scrolled .navbar-logo img.logo-dark {
    display: block !important;
}

.navbar.scrolled .navbar-logo img.logo-light {
    display: none !important;
}

.navbar.scrolled .navbar-link {
    color: var(--color-background);
}

.navbar.scrolled .navbar-link:hover {
    color: var(--color-accent);
}

.navbar.scrolled .navbar-toggle span {
    background-color: var(--color-background);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.navbar-link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-secondary);
    position: relative;
}

.navbar-link:hover {
    color: var(--color-primary);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-cta {
    margin-left: var(--space-6);
}

/* Mobile Menu Toggle — Apple Style */
.navbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.navbar-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background-color: var(--color-white);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.navbar-toggle span:nth-child(1) {
    top: 15px;
}

.navbar-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.navbar-toggle span:nth-child(3) {
    bottom: 15px;
}

/* Scrolled state: dark lines */
.navbar.scrolled .navbar-toggle span {
    background-color: var(--color-background);
}

/* Active state: × close icon */
.navbar-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background-color: var(--color-background) !important;
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0);
}

.navbar-toggle.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background-color: var(--color-background) !important;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.lang-selector {
    position: relative;
    margin-left: var(--space-4);
}

.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.08); /* Fondo semi-transparente para más visibilidad */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Borde más contrastado */
    border-radius: var(--radius-pill);
    color: var(--color-white); /* Texto blanco puro */
    font-size: var(--text-sm);
    font-weight: var(--font-semibold); /* Letra un poco más gruesa */
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-selector-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-white);
}

.lang-selector.open .lang-selector-btn {
    border-color: var(--color-accent);
    color: var(--color-white);
}

.lang-icon {
    opacity: 0.7;
}

.lang-code {
    font-weight: var(--font-semibold);
    letter-spacing: 0.05em;
}

.lang-arrow {
    opacity: 0.5;
    transition: transform var(--transition-fast);
}

.lang-selector.open .lang-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: rgba(18, 21, 26, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1001;
    overflow: hidden;
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: none;
    color: var(--color-text-light);
    font-size: var(--text-sm);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}

.lang-option.active {
    background: rgba(190, 180, 72, 0.15);
    color: var(--color-accent);
}

.lang-option.active::after {
    content: '✓';
    margin-left: auto;
    font-size: 0.75rem;
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

/* Scrolled navbar - light version */
.navbar.scrolled .lang-selector-btn {
    color: var(--color-background);
    border-color: rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .lang-selector-btn:hover,
.navbar.scrolled .lang-selector.open .lang-selector-btn {
    border-color: var(--color-accent);
    color: var(--color-background);
}

/* Mobile responsive */
@media (max-width: 900px) {
    .lang-selector {
        margin-left: 0;
        margin-top: var(--space-4);
        padding-top: var(--space-4);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .lang-selector-btn {
        width: 100%;
        justify-content: center;
    }

    .lang-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: var(--space-2);
        display: none;
    }

    .lang-selector.open .lang-dropdown {
        display: block;
    }
}

/* ============================================
   PAGE HEADER (Service Pages)
   ============================================ */
.page-header {
    padding: 280px 0 80px;
    /* Increased to accommodate 180px logo */
    background-color: var(--color-background);
    position: relative;
    color: var(--color-white);
}

/* Remove the overlay since we are removing banner images */
.page-header::before {
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-background);
    /* Specific Fix: Use Black, not Primary */
    color: var(--color-white);
    padding: 160px 0 100px;
    background-color: var(--color-background);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img-visual {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    filter: brightness(0.9);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(184, 163, 105, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(184, 163, 105, 0.05) 0%, transparent 20%);
    pointer-events: none;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
    font-weight: var(--font-medium);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: var(--font-serif);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    max-width: 500px;
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-wrapper {
        margin-top: var(--space-8);
    }
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   TRUST SECTION (New Design)
   ============================================ */
.section-trust {
    padding: 160px 0;
    background-color: var(--color-background);
}

.trust-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.trust-image-col {
    position: relative;
}

.trust-image-wrapper {
    position: relative;
}

.trust-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.trust-overlay-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-overlay-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: var(--color-background);
    font-weight: var(--font-semibold);
}

.trust-overlay-header svg {
    color: var(--color-accent);
}

.trust-overlay-stats {
    display: flex;
    gap: var(--space-6);
}

.trust-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-stat-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: #000;
}

.trust-stat-label {
    font-size: var(--text-xs);
    color: rgba(0, 0, 0, 0.6);
}

.trust-content-col .section-label {
    margin-bottom: var(--space-4);
}

.trust-content-col .trust-title {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.trust-content-col .trust-description {
    color: var(--color-text-light);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

.trust-content-col .feature-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.trust-content-col .feature-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.trust-content-col .feature-icon-box {
    width: 2px;
    height: 100%;
    min-height: 40px;
    background-color: var(--color-accent);
    border-radius: 0;
    display: block;
    margin-right: var(--space-4);
}

.trust-content-col .feature-icon-box svg {
    display: none;
}

.trust-content-col .feature-item {
    display: flex;
    flex-direction: row;
    /* Horizontal alignment */
    align-items: flex-start;
    gap: 0;
}

.trust-content-col .feature-item-title {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--color-white);
}

.trust-content-col .feature-item-text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.5;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.trust-badge svg {
    color: var(--color-accent);
}

/* Button Link Arrow Style */
.btn-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-accent);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.btn-link-arrow:hover {
    gap: var(--space-3);
}

.btn-link-arrow span {
    transition: transform var(--transition-fast);
}

.btn-link-arrow:hover span {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .trust-grid-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .trust-overlay-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: var(--space-4);
    }

    .trust-main-image {
        height: 350px;
    }

    .trust-content-col .feature-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values {
    background-color: var(--color-background-alt);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
}

.value-card {
    text-align: center;
    padding: var(--space-8);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-6);
    color: var(--color-accent);
}

.value-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.value-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
    color: var(--color-white);
    /* White text for value titles */
}

.value-description {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   AREAS SECTION
   ============================================ */
.areas {
    background-color: var(--color-background);
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
    display: inline-block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: var(--text-5xl);
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: var(--text-lg);
    line-height: 1.6;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

/* ============================================
   AREA CARDS - LA FIRMA BLOCK STYLE
   Unified design matching "nuestro método" blocks
   ============================================ */
.area-card {
    background-color: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: background-color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-height: 220px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Hover - Inverted colors like La Firma */
.area-card:hover {
    background-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Remove old pseudo-element */
.area-card::before {
    display: none;
}

/* Title styling - matches La Firma method h3 */
.area-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: var(--space-3);
    line-height: 1.2;
    letter-spacing: -0.01em;
    transition: color 0.4s ease;
}

/* Hover: Title inverts to dark */
.area-card:hover .area-title {
    color: #0a0a0a;
}

/* Description - matches La Firma method p */
.area-description {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
    line-height: 1.6;
    flex-grow: 1;
    transition: color 0.4s ease;
}

/* Hover: Description inverts to dark gray */
.area-card:hover .area-description {
    color: #333333;
}

/* Link styling */
.area-link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: color 0.4s ease;
    margin-top: auto;
}

/* Hover: Link changes */
.area-card:hover .area-link {
    color: #1a1a1a;
}

/* Sidebar text - used on service pages */
.sidebar-text {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Service hero image - used on service pages */
.service-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-10);
    box-shadow: var(--shadow-lg);
}

/* Area icon box - used on areas.html and service pages */
.area-icon-box {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
    padding: 0;
    transition: color 0.4s ease;
}

.area-icon-box svg {
    width: 24px;
    height: 24px;
}

/* Icon inversion on hover */
.area-card:hover .area-icon-box,
.area-card:active .area-icon-box,
.area-card:focus-visible .area-icon-box {
    color: #1a1a1a;
}

@media (max-width: 1024px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        margin-bottom: var(--space-4);
    }

    /* Mobile: Reduce card size and hide description */
    .area-card {
        min-height: auto;
        padding: var(--space-6);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .area-card .area-description {
        display: none;
    }
}

/* Touch-friendly active states (same as hover) */
.area-card:active,
.area-card:focus-visible {
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.area-card:active .area-title,
.area-card:focus-visible .area-title {
    color: #0a0a0a;
}

.area-card:active .area-description,
.area-card:focus-visible .area-description {
    color: #333333;
}

.area-card:active .area-link,
.area-card:focus-visible .area-link {
    color: #1a1a1a;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background-color: var(--color-background);
    text-align: center;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-quote {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: var(--space-10);
}

.about-text {
    font-size: var(--text-lg);
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--space-10);
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team {
    background-color: var(--color-background);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-6);
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--color-border);
    filter: grayscale(100%);
    transition: filter var(--transition-base);
}

.team-card:hover .team-photo {
    filter: grayscale(0%);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.team-role {
    font-size: var(--text-sm);
    color: var(--color-accent);
    margin-bottom: var(--space-1);
}

.team-specialty {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* ============================================
   TRUST SECTION (Legacy Grid)
   ============================================ */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.trust-content .section-label {
    margin-bottom: var(--space-4);
}

.trust-title {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.trust-description {
    color: var(--color-text-light);
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

.feature-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.feature-icon-box {
    width: 40px;
    height: 40px;
    background-color: var(--color-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-background);
}

.feature-item-title {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--color-white);
}

.feature-item-text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ============================================
   FIRM SECTION (Values Grid)
   ============================================ */
.firm-section {
    background-color: var(--color-background);
}

.firm-container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.firm-text-col .section-title {
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.firm-description {
    color: var(--color-text-light);
    margin-bottom: var(--space-8);
    font-size: var(--text-lg);
    line-height: 1.8;
}

.firm-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.firm-card {
    background-color: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.firm-card:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.firm-card-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-accent);
    color: var(--color-background);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.firm-card:hover .firm-card-icon {
    background-color: var(--color-background);
    color: var(--color-accent);
}

.firm-card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-white);
    margin-bottom: var(--space-2);
    transition: color 0.3s ease;
}

.firm-card:hover .firm-card-title {
    color: var(--color-background);
}

.firm-card-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.firm-card:hover .firm-card-text {
    color: rgba(10, 10, 10, 0.8);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background-color: var(--color-surface);
    color: var(--color-white);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.cta-title {
    font-size: var(--text-3xl);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.cta-contact {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.cta-contact a {
    color: var(--color-white);
}

.cta-contact a:hover {
    color: var(--color-accent);
}

/* ============================================
   FOOTER - Redesigned Premium Layout
   ============================================ */
.footer {
    background-color: #0a0a0a;
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

/* Brand Column */
.footer-brand {
    max-width: 320px;
}

.footer-logo {
    margin-bottom: var(--space-4);
}

.footer-logo img {
    height: auto;
    width: 140px;
    opacity: 0.95;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

/* Contact List with Icons */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent);
    opacity: 0.8;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
    color: var(--color-accent);
}

/* Navigation Columns */
.footer-column {
    padding-top: var(--space-1);
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-5);
    position: relative;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(3px);
}

.footer-link-accent {
    color: var(--color-accent);
    font-weight: 500;
}

.footer-link-accent:hover {
    color: var(--color-primary-light);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: var(--space-4);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10) var(--space-8);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-contact-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-6);
    }

    .footer-contact-item {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: var(--space-10) 0 var(--space-6);
    }

    /* ── Main Grid: brand full-width, then 2-col nav ── */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8) var(--space-6);
        text-align: left;
    }

    /* Brand spans full width */
    .footer-brand {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
        padding-bottom: var(--space-4);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-logo img {
        width: 110px;
    }

    .footer-tagline {
        font-size: 0.8rem;
        margin-bottom: var(--space-4);
    }

    /* Contact list: compact horizontal layout */
    .footer-contact-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-2) var(--space-5);
        align-items: flex-start;
    }

    .footer-contact-item {
        font-size: 0.8rem;
        min-width: auto;
        justify-content: flex-start;
    }

    .footer-contact-item svg {
        width: 14px;
        height: 14px;
    }

    /* Hide address on mobile to save space, keep phone + email */
    .footer-contact-item:first-child {
        flex-basis: 100%;
    }

    /* Navigation columns side by side */
    .footer-column {
        padding-top: 0;
    }

    .footer-heading {
        font-size: 0.65rem;
        margin-bottom: var(--space-3);
    }

    .footer-links {
        gap: var(--space-2);
        align-items: flex-start;
    }

    .footer-link {
        font-size: 0.8rem;
    }

    .footer-link:hover {
        transform: none;
    }

    /* Legal column spans full width, links inline */
    .footer-column:last-child {
        grid-column: 1 / -1;
        padding-top: var(--space-4);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-column:last-child .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-2) var(--space-5);
    }

    /* Footer bottom */
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-3);
        text-align: left;
        padding-top: var(--space-6);
    }

    .footer-bottom p {
        font-size: 0.7rem;
        margin-bottom: 0;
    }

    .footer-social {
        gap: var(--space-3);
    }

    .footer-social a svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-4);
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--color-white);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(184, 163, 105, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {

    .trust-grid,
    .trust-grid-layout,
    .firm-container-grid {
        grid-template-columns: 1fr;
    }

    .firm-cards-grid,
    .feature-grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
    }

    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    .section {
        padding: var(--space-16) 0;
    }

    .section-large {
        padding: var(--space-20) 0;
    }

    /* ── Navbar Pill: Scale Down ── */
    .navbar {
        width: 92%;
        top: var(--space-3);
    }

    .navbar-inner {
        height: 70px;
        padding: 0 var(--space-4);
    }

    .navbar-logo img {
        height: 90px;
        max-height: 90px;
    }

    /* ═══════════════════════════════════════════
       MOBILE MENU — Overlay approach
       ═══════════════════════════════════════════ */

    /* Hide the inline navbar-menu on mobile; overlay handles it */
    .navbar-menu {
        display: none !important;
    }

    /* Toggle button visible on mobile */
    .navbar-toggle {
        display: flex;
        flex-shrink: 0;
        position: relative;
        z-index: 1002;
    }

    /* ── Hero Mobile ── */
    .hero {
        min-height: auto;
        padding: calc(70px + var(--space-16)) 0 var(--space-16);
    }

    .hero-scroll {
        display: none;
    }

    /* ── Firma Hero Mobile ── */
    .firma-hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 0;
    }

    .firma-hero-visual {
        position: relative;
        width: 100%;
        height: 35vh;
        order: -1;
    }

    .firma-hero-visual::after {
        background: linear-gradient(180deg, transparent 30%, var(--color-background) 100%);
    }

    .firma-hero-content {
        padding: var(--space-6) var(--space-6) var(--space-12);
        text-align: left;
    }

    .firma-hero-title {
        font-size: clamp(2.25rem, 8vw, 3rem);
        margin-bottom: var(--space-6);
        line-height: 1.05;
    }

    .firma-hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--space-8);
        max-width: 100%;
    }

    .firma-hero-label {
        margin-bottom: var(--space-4);
    }

    /* ── Values Mobile ── */
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

/* ── Extra-small screens (≤480px) ── */
@media (max-width: 480px) {
    .navbar {
        width: 94%;
        top: var(--space-2);
    }

    .navbar-inner {
        height: 56px;
        padding: 0 var(--space-3);
    }

    .navbar-logo img {
        height: 60px;
        max-height: 60px;
    }

    /* Firma Hero: very small screens */
    .firma-hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .firma-hero-visual {
        height: 30vh;
    }

    .firma-hero-content {
        padding: var(--space-6) var(--space-4) var(--space-10);
    }

    .firma-hero-title {
        font-size: clamp(1.85rem, 7vw, 2.5rem);
        line-height: 1.08;
    }

    .firma-hero-subtitle {
        font-size: 0.875rem;
    }
}

/* ============================================
   AEGIS MOBILE MENU OVERLAY
   Full-screen slide-in overlay (pistachio gold)
   ============================================ */
.aegis-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #BEB448;
    z-index: 9999;
    visibility: hidden;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1),
                visibility 0s linear 0.5s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.aegis-menu-overlay.is-open {
    right: 0;
    visibility: visible;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1),
                visibility 0s linear 0s;
}

/* Close button — top right */
.menu-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.menu-close-btn svg {
    width: 28px;
    height: 28px;
    stroke: #1a1a1a;
    stroke-width: 2;
    transition: transform 0.25s ease;
}

.menu-close-btn:hover svg {
    transform: rotate(90deg);
}

/* Menu links container */
.menu-links {
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 0;
    gap: 0;
    flex: 1;
}

/* Staggered entrance animation */
@keyframes overlayLinkSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-links a {
    color: #1a1a1a;
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 2rem;
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 0.5rem;
    display: block;
    opacity: 0;
    transform: translateX(30px);
    transition: color 0.2s ease;
}

.aegis-menu-overlay.is-open .menu-links a {
    animation: overlayLinkSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.aegis-menu-overlay.is-open .menu-links a:nth-child(1) { animation-delay: 0.1s; }
.aegis-menu-overlay.is-open .menu-links a:nth-child(2) { animation-delay: 0.18s; }
.aegis-menu-overlay.is-open .menu-links a:nth-child(3) { animation-delay: 0.26s; }
.aegis-menu-overlay.is-open .menu-links a:nth-child(4) { animation-delay: 0.34s; }

.menu-links a:hover,
.menu-links a:active {
    color: #fff;
}

/* Contacto button in overlay */
.menu-cta {
    padding: 1.5rem 2rem 0;
}

.menu-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(10px);
}

.aegis-menu-overlay.is-open .menu-cta-btn {
    animation: overlayLinkSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.4s;
}

.menu-cta-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.menu-cta-btn:active {
    transform: scale(0.97);
}

/* Language selector in overlay */
.menu-lang {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 2rem 3rem;
    opacity: 0;
}

.aegis-menu-overlay.is-open .menu-lang {
    animation: overlayLinkSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.48s;
}

.menu-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #1a1a1a;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease;
}

.menu-lang-btn:hover {
    opacity: 0.7;
}

.menu-lang-btn svg {
    width: 18px;
    height: 18px;
    stroke: #1a1a1a;
    stroke-width: 1.5;
    fill: none;
}

.menu-lang-btn .menu-lang-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

/* Language dropdown inside overlay */
.menu-lang-dropdown {
    position: absolute;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 160px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    overflow: hidden;
    z-index: 10;
}

.menu-lang.open .menu-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.menu-lang.open .menu-lang-arrow {
    transform: rotate(180deg);
}

.menu-lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    color: #ccc;
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.menu-lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.menu-lang-option.active {
    color: #BEB448;
}

.menu-lang-option.active::after {
    content: '✓';
    margin-left: auto;
    font-size: 0.75rem;
}

.menu-lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

/* Hide overlay on desktop */
@media (min-width: 769px) {
    .aegis-menu-overlay {
        display: none !important;
    }
}

/* ============================================
   FIRMA HERO STYLES (Migrated)
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.firma-hero {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--color-background);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 120px 0 0;
    overflow: hidden;
}

.firma-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-12) var(--space-8);
    position: relative;
    z-index: 10;
}

.firma-hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('images/alicante-full.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
}

.firma-hero-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-background) 10%, transparent 60%);
}

.firma-hero-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-8);
    display: inline-block;
}

.firma-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: var(--space-10);
    max-width: 800px;
    letter-spacing: -0.02em;
}

.firma-hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-text-light);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: var(--space-12);
}

@media (max-width: 1024px) {
    .firma-hero {
        flex-direction: column;
        justify-content: center;
        padding-top: 100px;
    }

    .firma-hero-visual {
        position: relative;
        width: 100%;
        height: 40vh;
        order: -1;
    }

    .firma-hero-visual::after {
        background: linear-gradient(180deg, transparent 0%, var(--color-background) 100%);
    }

    .firma-hero-content {
        width: 100%;
        padding-top: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Override for mobile (≤768px) - must come after 1024px rules */
@media (max-width: 768px) {
    .firma-hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 0;
    }

    .firma-hero-visual {
        height: 35vh;
    }

    .firma-hero-visual::after {
        background: linear-gradient(180deg, transparent 30%, var(--color-background) 100%);
    }

    .firma-hero-content {
        padding: var(--space-6) var(--space-6) var(--space-12);
    }

    .firma-hero-title {
        font-size: clamp(2.25rem, 8vw, 3rem);
        line-height: 1.05;
    }

    .firma-hero-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
    }
}

/* Override for extra-small (≤480px) */
@media (max-width: 480px) {
    .firma-hero-visual {
        height: 28vh;
    }

    .firma-hero-content {
        padding: var(--space-6) var(--space-4) var(--space-10);
    }

    .firma-hero-title {
        font-size: clamp(1.85rem, 7vw, 2.5rem);
        line-height: 1.08;
    }

    .firma-hero-subtitle {
        font-size: 0.875rem;
    }
}

/* ============================================
   AREAS PAGE STYLES (Premium Redesign)
   ============================================ */
.areas-hero {
    min-height: 60vh;
    background-color: var(--color-background);
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0 0;
    overflow: hidden;
}

.areas-hero-content {
    padding: var(--space-12) var(--space-8);
    position: relative;
    z-index: 10;
    max-width: 60%;
}

.areas-hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    /* Split look like Firma/Home */
    height: 100%;
    background-image: url('images/architecture-abstract.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.areas-hero-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-background) 10%, transparent 80%);
}

.areas-intro {
    padding: var(--space-16) 0 var(--space-10);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.areas-intro p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.area-card-premium {
    display: flex;
    flex-direction: column;
    padding: var(--space-8) var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    background: transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.area-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.area-card-premium:hover::before {
    opacity: 1;
}

.area-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.area-card-premium .area-icon-box {
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    margin-bottom: var(--space-6);
    color: var(--color-accent);
    transition: color 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.area-card-premium:hover .area-icon-box {
    color: #1a1a1a;
    transform: scale(1.05);
}

.area-card-premium:hover .area-icon-box svg {
    stroke: #1a1a1a;
}

.area-card-premium .area-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: var(--space-4);
    transition: color 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    z-index: 1;
}

.area-card-premium:hover .area-title {
    color: #1a1a1a;
}

.area-card-premium .area-description {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: var(--space-8);
    transition: color 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    z-index: 1;
}

.area-card-premium:hover .area-description {
    color: #4a4a4a;
}

.area-card-premium .area-link {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    transition: color 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    z-index: 1;
}

.area-card-premium .area-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.area-card-premium:hover .area-link {
    color: #1a1a1a;
}

.area-card-premium:hover .area-link::after {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .areas-hero {
        flex-direction: column;
        padding-top: 100px;
    }

    .areas-hero-visual {
        width: 100%;
        height: 40vh;
        position: relative;
        order: -1;
    }

    .areas-hero-visual::after {
        background: linear-gradient(180deg, transparent 0%, var(--color-background) 100%);
    }

    .areas-hero-content {
        max-width: 100%;
        padding-top: 0;
    }
}

/* ============================================
   AREAS UNIFIED TEMPLATE - NEW COMPONENTS
   ============================================ */

/* Section with medium spacing */
.section-medium {
    padding: var(--space-16) 0;
}

/* Section title left-aligned variant */
.section-title-left {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: var(--space-8);
    text-align: left;
}

/* Services List Section (for detailed service categories) */
.services-section {
    padding: var(--space-12) 0;
}

.services-category {
    margin-bottom: var(--space-10);
}

.services-category:last-child {
    margin-bottom: 0;
}

.services-category-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2) var(--space-8);
}

.services-list li {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    padding-left: var(--space-4);
    position: relative;
}

.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* Why AEGIS Section */
.why-aegis-section {
    padding: var(--space-16) 0;
    background-color: var(--color-background-alt);
}

.why-aegis-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.why-aegis-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: var(--color-surface);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-aegis-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.why-aegis-item p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

.why-aegis-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    margin-top: 2px;
}

/* Responsive adjustments for new components */
@media (max-width: 768px) {
    .section-title-left {
        font-size: 1.75rem;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .why-aegis-item {
        padding: var(--space-4);
    }

    .services-category-title {
        font-size: 1.25rem;
    }
}

/* Interactive CTA for Areas Page */
.areas-cta {
    padding: var(--space-20) 0;
    /* ensure centering if container doesn't handle it */
    text-align: center;
}

.cta-interactive-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cta-interactive-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--space-12) var(--space-8);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    margin: 0 auto;
    /* Safety centering */
}

.cta-interactive-btn:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cta-interactive-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-interactive-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.cta-interactive-label::after {
    content: '→';
    transition: transform 0.3s ease;
}

.cta-interactive-btn:hover .cta-interactive-label::after {
    transform: translateX(5px);
}

/* ============================================
   RESTRUCTURE UPDATE - FIRMA & FADED IMG
   ============================================ */

/* 1. Firm Lead Text (Moved from About) */
.firm-lead-text {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-accent);
    line-height: 1.3;
    margin-bottom: var(--space-8);
    display: block;
    max-width: 90%;
}

/* 2. Push Cards Down (Spacer) */
.firm-cards-spacer {
    margin-top: var(--space-12);
}

/* 3. Faded Image Section */
.faded-section {
    position: relative;
    height: 30vh;
    min-height: 250px;
    background-color: var(--color-background);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.faded-image-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    /* background-image: url('images/statue-sidebar.jpg'); REMOVED as requested */
    background-size: cover;
    background-position: center 20%;
    z-index: 1;
}

.faded-image-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            var(--color-background) 10%,
            rgba(8, 10, 12, 0.9) 30%,
            rgba(8, 10, 12, 0.4) 60%,
            transparent 100%);
}

@media (max-width: 900px) {
    .faded-image-bg {
        width: 100%;
        background-position: center;
    }

    .faded-image-bg::after {
        background: linear-gradient(180deg,
                var(--color-background) 0%,
                rgba(8, 10, 12, 0.6) 40%,
                rgba(8, 10, 12, 0.2) 100%);
    }

    .firm-cards-spacer {
        margin-top: var(--space-6);
    }
}


/* ============================================
   NEWS CAROUSEL SECTION (Refined - Uría Style)
   ============================================ */

.news-carousel-section {
    background-color: var(--color-background);
    padding: var(--space-20) 0;
    overflow: hidden;
    /* Prevent horizontal scrollbar on body */
}

/* Header adjustments */
.news-carousel-section .section-header {
    margin-bottom: var(--space-12);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.carousel-controls-top {
    display: flex;
    gap: var(--space-3);
}

.carousel-wrapper {
    position: relative;
    /* Removed padding/gap from wrapper to handle overflow better */
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    /* Ensure padding for shadow/hover transform */
    padding: var(--space-4) 0 var(--space-8) 0;
    margin: calc(var(--space-4) * -1) 0 calc(var(--space-8) * -1) 0;
}

.carousel-track {
    display: flex;
    gap: var(--space-6);
    /* 24px gap */
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth ease-out */
    will-change: transform;
}

/* URÍA Style Card Layout */
.carousel-card {
    /* 3 cards: (100% - 2 gaps) / 3 */
    flex: 0 0 calc((100% - (2 * var(--space-6))) / 3);
    min-width: 0;
    /* Flexbox fix */

    background-color: var(--color-surface);
    /* No border, clean shadow like reference */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);

    display: flex;
    flex-direction: column;
    height: 480px;
    /* Taller fixed height for consistency */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
    /* Uría uses sharp edges or very small radius */
}

.carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Image Area - roughly 45% */
.carousel-card-img-box {
    width: 100%;
    height: 45%;
    position: relative;
    overflow: hidden;
    display: block;
}

.carousel-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-card:hover .carousel-card-img {
    transform: scale(1.05);
    /* Subtle zoom */
}

/* Content Area - roughly 55% */
.carousel-card-body {
    padding: var(--space-8);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Push bottom bar down */
}

.carousel-card-content-top {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.carousel-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.2;
    margin: 0;
    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.carousel-card:hover .carousel-card-title {
    color: var(--color-accent);
}

.carousel-card-excerpt {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bottom Metadata Bar */
.carousel-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    font-weight: 500;
}

.carousel-card-icon {
    width: 24px;
    height: 24px;
    color: var(--color-white);
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-card:hover .carousel-card-icon {
    opacity: 1;
    transform: translateX(4px);
    color: var(--color-accent);
}

/* Navigation Buttons (Round, minimalist) */
.carousel-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-background);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: default;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .carousel-card {
        flex: 0 0 calc((100% - var(--space-6)) / 2);
        /* 2 cards */
    }
}

@media (max-width: 600px) {
    .carousel-card {
        flex: 0 0 100%;
        /* 1 card */
        height: auto;
        /* Allow auto height on mobile */
        min-height: 450px;
    }

    .news-carousel-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
}

/* ============================================
   SWIPER OVERRIDES (News Carousel)
   ============================================ */

/* Make swiper-slide just a container */
.news-swiper .swiper-slide {
    height: auto;
    /* Let card define height */
    display: flex;
}

/* Card inside slide fills it */
.news-swiper .carousel-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Hide default Swiper arrows */
.news-swiper .swiper-button-prev,
.news-swiper .swiper-button-next {
    display: none !important;
}


/* ============================================
   AEGIS NEWS SWIPER - APPLE STYLE
   ============================================ */

.aegis-news-section {
    background: linear-gradient(180deg, var(--color-background) 0%, #0a0a0a 100%);
    padding: 60px 0 100px;
    /* Reduced top padding from 100px to 60px */
    overflow: hidden;
    position: relative;
}

/* Header */
.aegis-news-header {
    text-align: center;
    margin-bottom: 60px;
}

.aegis-news-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 16px;
    font-weight: 500;
}

.aegis-news-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Swiper Container */
.aegis-news-swiper {
    width: 100%;
    padding: 40px 0 60px;
    overflow: visible !important;
}

.aegis-news-swiper .swiper-wrapper {
    align-items: stretch;
}

.aegis-news-swiper .swiper-slide {
    width: 340px;
    height: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    transform: scale(0.9);
}

.aegis-news-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

/* Card */
.aegis-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.aegis-news-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Card Image */
.aegis-news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.aegis-news-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
}

.aegis-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.aegis-news-card:hover .aegis-news-card-image img {
    transform: scale(1.1);
}

/* Card Content */
.aegis-news-card-content {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.aegis-news-card-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.aegis-news-card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.3;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.aegis-news-card:hover .aegis-news-card-title {
    color: var(--color-accent);
}

.aegis-news-card-excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aegis-news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-white);
    margin-top: 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.aegis-news-card:hover .aegis-news-card-link {
    opacity: 1;
    color: var(--color-accent);
}

.aegis-news-card-link svg {
    transition: transform 0.3s ease;
}

.aegis-news-card:hover .aegis-news-card-link svg {
    transform: translateX(4px);
}

/* Navigation */
.aegis-news-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.aegis-news-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aegis-news-nav-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.aegis-news-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

/* Pagination Dots */
.aegis-news-pagination {
    margin-top: 24px !important;
    position: relative !important;
    bottom: auto !important;
}

.aegis-news-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 6px !important;
}

.aegis-news-pagination .swiper-pagination-bullet-active {
    background: var(--color-accent);
    transform: scale(1.3);
}

/* Footer CTA */
.aegis-news-footer {
    text-align: center;
    margin-top: 48px;
}

.aegis-news-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
    padding: 16px 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aegis-news-cta:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-background);
}

.aegis-news-cta svg {
    transition: transform 0.3s ease;
}

.aegis-news-cta:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .aegis-news-section {
        padding: 60px 0 80px;
    }

    .aegis-news-header {
        margin-bottom: 40px;
    }

    .aegis-news-swiper .swiper-slide {
        width: 280px;
    }

    .aegis-news-card {
        min-height: 380px;
    }

    .aegis-news-card-image {
        height: 160px;
    }

    .aegis-news-card-content {
        padding: 20px;
    }

    .aegis-news-nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* Custom Override for Areas Section Spacing */
#areas {
    padding-bottom: 60px !important;
}

/* ============================================
   TRUST SECTION - INTERACTIVE ANIMATIONS
   ============================================ */

/* Animation Base States */
.reveal-slide-left,
.reveal-scale-up,
.reveal-stagger {
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

.reveal-slide-left {
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0.8s;
}

.reveal-scale-up {
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0.6s;
}

.reveal-stagger {
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0.6s;
}

/* Active (Revealed) States */
.reveal-slide-left.active,
.reveal-scale-up.active,
.reveal-stagger.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0) scale(1);
}

/* Feature Item Interactive Hover Effects */
.feature-item-interactive {
    padding: var(--space-4);
    margin: calc(-1 * var(--space-4));
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.feature-item-interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(190, 180, 72, 0.08) 0%,
            rgba(190, 180, 72, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-md);
    z-index: 0;
}

.feature-item-interactive:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(190, 180, 72, 0.15);
}

.feature-item-interactive:hover::before {
    opacity: 1;
}

/* Feature Icon Box Hover Enhancement */
.feature-item-interactive .feature-icon-box {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-item-interactive:hover .feature-icon-box {
    background-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(190, 180, 72, 0.4);
}

/* Feature Text Hover Enhancement */
.feature-item-interactive .feature-item-title,
.feature-item-interactive .feature-item-text {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.feature-item-interactive:hover .feature-item-title {
    color: var(--color-accent);
}

/* Trust Overlay Card Hover */
.trust-overlay-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trust-overlay-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Trust Stat Value Animation */
.trust-stat-value {
    transition: transform 0.3s ease, color 0.3s ease;
}

.trust-overlay-card:hover .trust-stat-value {
    transform: scale(1.1);
    color: var(--color-accent);
}

/* Trust Badges Animation */
.trust-badges .trust-badge {
    transition: all 0.3s ease;
}

.trust-badges .trust-badge:hover {
    color: var(--color-white);
    transform: translateX(4px);
}

.trust-badges .trust-badge:hover svg {
    transform: scale(1.2);
}

.trust-badges .trust-badge svg {
    transition: transform 0.3s ease;
}

/* Trust Main Image Subtle Animation */
.trust-main-image {
    transition: transform 0.6s ease;
}

.trust-image-wrapper:hover .trust-main-image {
    transform: scale(1.02);
}

/* Mobile Responsive Adjustments */
@media (max-width: 900px) {
    .feature-item-interactive {
        padding: var(--space-3);
        margin: calc(-1 * var(--space-3));
    }

    .feature-item-interactive:hover {
        transform: translateY(-2px);
    }

    .reveal-slide-left {
        transform: translateY(-30px);
    }
}

/* ============================================
   NAVIGATION ARROWS COMPONENT
   ============================================ */

/* CSS Variable for arrow color (already exists as --color-accent) */
:root {
    --nav-arrow-color: #beb448;
    --nav-arrow-size: 48px;
    --nav-arrow-stroke: 2.5;
}

/* Scroll Down Arrow (positioned in hero section) */
.nav-arrow-down {
    position: relative;
    align-self: center;
    padding-bottom: 40px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.9;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.nav-arrow-down:hover {
    opacity: 1;
}

.nav-arrow-down svg {
    width: var(--nav-arrow-size);
    height: var(--nav-arrow-size);
    stroke: var(--nav-arrow-color);
    fill: none;
    stroke-width: var(--nav-arrow-stroke);
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease-in-out;
}

.nav-arrow-down:hover svg {
    transform: translateY(8px);
}

/* Optional label for scroll down */
.nav-arrow-down-label {
    font-size: var(--text-xs);
    color: var(--nav-arrow-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-top: var(--space-1);
}

/* Scroll to Top Button (floating) */
.nav-arrow-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.nav-arrow-top.visible {
    opacity: 0.9;
    visibility: visible;
    transform: translateY(0);
}

.nav-arrow-top:hover {
    opacity: 1;
}

.nav-arrow-top svg {
    width: var(--nav-arrow-size);
    height: var(--nav-arrow-size);
    stroke: var(--nav-arrow-color);
    fill: none;
    stroke-width: var(--nav-arrow-stroke);
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease-in-out;
}

.nav-arrow-top:hover svg {
    transform: translateY(-8px);
}

/* Animation keyframes for subtle pulse */
@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.nav-arrow-down svg {
    animation: arrowPulse 2.5s ease-in-out infinite;
}

.nav-arrow-down:hover svg {
    animation: none;
    opacity: 1;
}

/* Responsive adjustments for navigation arrows */
@media (max-width: 768px) {
    .nav-arrow-down {
        padding-bottom: 24px;
    }

    .nav-arrow-down svg,
    .nav-arrow-top svg {
        width: 40px;
        height: 40px;
    }

    .nav-arrow-top {
        bottom: 24px;
        right: 24px;
    }
}

@media (max-width: 480px) {

    .nav-arrow-down svg,
    .nav-arrow-top svg {
        width: 36px;
        height: 36px;
    }

    .nav-arrow-top {
        bottom: 16px;
        right: 16px;
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {

    .reveal-slide-left,
    .reveal-scale-up,
    .reveal-stagger,
    .feature-item-interactive,
    .trust-overlay-card,
    .trust-stat-value,
    .trust-badges .trust-badge {
        transition: none;
    }

    .reveal-slide-left,
    .reveal-scale-up,
    .reveal-stagger {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-arrow-down svg {
        animation: none;
    }

    .nav-arrow-down:hover svg,
    .nav-arrow-top:hover svg {
        transform: none;
    }
}

/* ============================================
   CONTACT SECTION (Index Page)
   Two-column layout with form card
   ============================================ */
.contact-section {
    padding: 120px 0;
    background-color: var(--color-background);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

/* Left Column - Info */
.contact-info {
    padding-right: var(--space-8);
}

.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.01em;
}

.contact-description {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: var(--space-10);
    max-width: 450px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    color: var(--color-accent);
    stroke: var(--color-accent);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-text strong {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-white);
}

.contact-text span {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 300;
}

/* Right Column - Form Card */
.contact-form-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
}

.form-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: var(--space-8);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group-card {
    margin-bottom: var(--space-5);
}

.form-label-card {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #333;
    margin-bottom: var(--space-2);
}

.form-input-card,
.form-select-card,
.form-textarea-card {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 400;
    color: #1a1a1a;
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-input-card:focus,
.form-select-card:focus,
.form-textarea-card:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(190, 180, 72, 0.15);
}

.form-input-card::placeholder,
.form-textarea-card::placeholder {
    color: #999;
    font-weight: 300;
}

.form-select-card {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-textarea-card {
    resize: vertical;
    min-height: 100px;
}

.btn-submit-contact {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background-color: var(--color-accent);
    color: #000000;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: var(--space-4);
}

.btn-submit-contact:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(190, 180, 72, 0.3);
}

.btn-submit-contact svg {
    stroke: #000000;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-top: var(--space-4);
    margin-bottom: 0;
}

.form-disclaimer a {
    color: #666;
    text-decoration: underline;
}

.form-disclaimer a:hover {
    color: #333;
}

/* Contact Section Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .contact-info {
        padding-right: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 80px 0;
    }

    .contact-form-card {
        padding: var(--space-6);
    }

    .contact-title {
        font-size: 2rem;
    }
}

/* ============================================
   CONTACT SECTION COLOR FIX (INDEX)
   Section: Black | Form Card: AEGIS Yellow
   ============================================ */

/* Section background: BLACK (matches rest of page) */
.contact-section {
    background-color: #0a0a0a !important;
}

/* Section text: WHITE/LIGHT for contrast on black */
.contact-section .section-label {
    color: var(--color-accent) !important;
}

.contact-section .contact-title {
    color: #ffffff !important;
}

.contact-section .contact-description {
    color: rgba(255, 255, 255, 0.7) !important;
}

.contact-section .contact-text strong {
    color: #ffffff !important;
}

.contact-section .contact-text span {
    color: rgba(255, 255, 255, 0.6) !important;
}

.contact-section .contact-icon {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.contact-section .contact-icon svg {
    color: var(--color-accent) !important;
    stroke: var(--color-accent) !important;
}

/* Form card: AEGIS YELLOW background */
.contact-form-card {
    background-color: #BEB448 !important;
}

/* Form card text: DARK for contrast on yellow */
.contact-form-card .form-card-title {
    color: #0a0a0a !important;
}

.contact-form-card .form-label-card {
    color: #1a1a1a !important;
}

.contact-form-card .form-input-card,
.contact-form-card .form-select-card,
.contact-form-card .form-textarea-card {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #1a1a1a !important;
}

.contact-form-card .form-input-card::placeholder,
.contact-form-card .form-textarea-card::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

.contact-form-card .form-input-card:focus,
.contact-form-card .form-select-card:focus,
.contact-form-card .form-textarea-card:focus {
    border-color: #0a0a0a !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1) !important;
}

/* Submit button: BLACK on yellow card */
.contact-form-card .btn-submit-contact {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    border: none;
}

.contact-form-card .btn-submit-contact:hover,
.contact-form-card .btn-submit-contact:focus-visible {
    background-color: #1a1a1a !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.contact-form-card .btn-submit-contact svg {
    stroke: #ffffff !important;
}

/* Form disclaimer text */
.contact-form-card .form-disclaimer {
    color: #1a1a1a !important;
}

.contact-form-card .form-disclaimer a {
    color: #0a0a0a !important;
    text-decoration: underline;
}

/* ============================================
   PRACTICE AREAS HOVER (INDEX)
   ============================================ */

.area-card {
    transition: background-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.area-card:hover {
    background-color: #BEB448 !important;
    border-color: #BEB448 !important;
}

.area-card:hover .area-title,
.area-card:hover .area-description,
.area-card:hover .area-link {
    color: #000000 !important;
}

.area-card:hover .area-icon-box {
    color: #000000 !important;
}

.area-card:focus-visible {
    background-color: #BEB448 !important;
    border-color: #BEB448 !important;
    outline: 2px solid #000;
}

.area-card:focus-visible .area-title,
.area-card:focus-visible .area-description,
.area-card:focus-visible .area-link {
    color: #000000 !important;
}

.area-card:focus-visible .area-icon-box {
    color: #000000 !important;
}