/*
Theme Name: Narayani García
Theme URI: https://narayanigarcia.com
Author: Antigravity
Author URI: https://example.com
Description: Premium corporate theme for Narayani García Law Firm. Designed for trust, prestige, and modern elegance.
Version: 2.0.0
Text Domain: narayani-garcia
*/

/* ========================================
   CSS VARIABLES - Premium Design System
======================================== */
:root {
    /* Primary Palette */
    --color-primary: #0A1628;
    /* Deep Navy */
    --color-primary-light: #132238;
    /* Lighter Navy */
    --color-accent: #C9A962;
    /* Gold Accent */
    --color-accent-hover: #E5C67A;
    /* Gold Hover */

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-off-white: #F8F9FC;
    --color-light-gray: #E8ECF4;
    --color-text: #1A1A2E;
    --color-text-muted: #6B7280;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max: 1400px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-off-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========================================
   TYPOGRAPHY
======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

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

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

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

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

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

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

/* ========================================
   LAYOUT UTILITIES
======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

/* ========================================
   BUTTONS - Premium Style
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #B8943A 100%);
    color: var(--color-primary);
    border: none;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-dark {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
}

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

/* ========================================
   HEADER - Floating Glass Navigation
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.site-branding .site-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.site-branding .site-title span {
    color: var(--color-accent);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-smooth);
}

.main-navigation a:hover {
    color: var(--color-white);
}

.main-navigation a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

/* ========================================
   HERO SECTION - Immersive Fullscreen
======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--color-primary);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(10, 22, 40, 0.95) 0%,
            rgba(10, 22, 40, 0.7) 50%,
            rgba(10, 22, 40, 0.4) 100%);
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 650px;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.hero-tagline::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--color-accent);
}

.hero-title {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    font-weight: 300;
}

.hero-title strong {
    font-weight: 500;
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
    max-width: 500px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

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

/* ========================================
   PRACTICE AREAS - Elegant Grid
======================================== */
.practice-areas-section {
    background: var(--color-white);
    position: relative;
}

.practice-areas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--color-off-white);
    z-index: 0;
}

.practice-areas-section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-eyebrow::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.practice-card {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-light-gray);
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-accent);
    transition: var(--transition-smooth);
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.1);
    border-color: transparent;
}

.practice-card:hover::before {
    height: 100%;
}

.practice-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-light-gray) 100%);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    color: var(--color-accent);
}

.practice-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.practice-excerpt {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.read-more:hover {
    gap: 1rem;
}

/* ========================================
   FEATURED CONTENT - Dark Luxe Section
======================================== */
.featured-content-section {
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.featured-content-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(201, 169, 98, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.featured-content-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 100%;
}

.featured-content-section .section-title {
    color: var(--color-white);
}

.view-all-link {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link:hover {
    gap: 1rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.featured-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.featured-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.featured-card:hover::before {
    opacity: 0.5;
}

.featured-meta {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.featured-title {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
}

.featured-title a {
    color: inherit;
}

.featured-title a:hover {
    color: var(--color-accent);
}

.featured-excerpt {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.featured-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   ABOUT / INSTITUTIONAL SECTION
======================================== */
.about-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-size: cover !important;
    background-position: center !important;
}

.about-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(10, 22, 40, 0.95) 0%,
            rgba(10, 22, 40, 0.8) 100%);
}

.about-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-title {
    color: var(--color-white) !important;
    margin-bottom: var(--space-md);
}

.about-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
    background: var(--color-off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-info {
    padding-right: var(--space-lg);
}

.contact-details {
    margin-top: var(--space-lg);
}

.contact-item {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-light-gray);
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--color-text);
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
}

.form-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

/* ========================================
   FOOTER - Premium Dark
======================================== */
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-lg);
}

.footer-brand .site-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
    line-height: 1.8;
}

.widget-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-menu ul {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-menu a:hover {
    color: var(--color-accent);
}

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

    .hero-bg {
        width: 100%;
        opacity: 0.3;
    }

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

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

@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }

    .site-header .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: var(--color-white);
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        cursor: pointer;
    }

    .main-navigation {
        display: none;
        width: 100%;
        padding-top: var(--space-md);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .practice-grid,
    .featured-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .featured-content-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

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

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

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

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

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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