/* 
   Pathway Legal Solutions - Premium Global Styles 
   Theme: Midnight Navy & Metallic Gold | Sophisticated, Authoritative, Elegant
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Premium Color Palette */
    --color-primary: #0f1c30;
    /* Deepest Midnight Navy */
    --color-primary-light: #1e2d4a;
    /* Lighter Navy for gradients/hover */
    --color-accent: #cfa757;
    /* Metallic Gold */
    --color-accent-light: #e6c885;
    /* Soft Gold */
    --color-accent-dark: #a6853a;
    /* Darker Gold for text contrast */

    --color-text: #2d3748;
    /* Charcoal for body text */
    --color-text-light: #4a5568;
    /* Slate for secondary text */
    --color-bg: #fdfdfd;
    /* Almost white, very subtle warmth */
    --color-bg-alt: #f4f6f9;
    /* Light cool gray-blue for sections */
    --color-white: #ffffff;
    --color-border: #e2e8f0;

    /* Elegant Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 6rem;
    --spacing-xl: 8rem;

    /* Sophisticated Shadows */
    --shadow-sm: 0 2px 4px rgba(15, 28, 48, 0.05);
    --shadow-md: 0 8px 16px rgba(15, 28, 48, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 28, 48, 0.12);
    --shadow-gold: 0 10px 30px rgba(207, 167, 87, 0.2);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Luxury Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.75rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--spacing-lg) 0;
}

.bg-white {
    background-color: var(--color-white);
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.bg-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent-dark);
}

.text-white {
    color: var(--color-white);
}

/* Premium Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 2px;
    /* Sharper corners for legal feel */
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-white);
    border: none;
    box-shadow: var(--shadow-gold);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(207, 167, 87, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Refined Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--color-text);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* Cinematic Hero */
.hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8rem 0 10rem;
    /* Extra bottom padding for overlap */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 28, 48, 0.92) 0%, rgba(15, 28, 48, 0.85) 100%),
        url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 2rem;
    font-size: 4.5rem;
    /* Larger hero title */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Floating Dual Section (Premium Cards) */
.dual-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: -6rem;
    /* Strong overlap */
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

.split-col {
    background: var(--color-white);
    padding: 4rem 3rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-top: 4px solid transparent;
}

.split-col:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(15, 28, 48, 0.15);
}

.split-col.llc {
    border-top-color: var(--color-primary);
}

.split-col.foundation {
    border-top-color: var(--color-accent);
}

.split-col h3 {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.split-col ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.split-col ul li:last-child {
    border-bottom: none;
}

/* Refined Feature Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--color-white);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-base);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-light);
}

.feature-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Services Tabs (Minimalist) */
.tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    position: relative;
    opacity: 0.6;
    transition: var(--transition-base);
}

.tab-btn.active {
    color: var(--color-primary);
    opacity: 1;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-accent);
}

.tab-content {
    display: none;
    animation: fadeIn 0.6s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fat Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6rem 0 3rem;
    border-top: 4px solid var(--color-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--color-accent);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Modern Animations & Structural Enhancements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Modern Full-Height Hero */
.hero-modern {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-attachment: fixed;
}

.hero-modern .hero-content {
    margin-top: 0;
}

/* Sticky Header State */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
}

header {
    transition: all 0.3s ease;
}

/* Zig-Zag "Broken Grid" Layout */
.zigzag-section {
    padding: var(--spacing-lg) 0;
    overflow: hidden;
}

.zigzag-row {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-bottom: 8rem;
}

.zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-content {
    flex: 1;
}

.zigzag-image {
    flex: 1;
    position: relative;
}

.zigzag-image img {
    border-radius: 4px;
    box-shadow: var(--shadow-xl);
    width: 100%;
}

/* Stat Counter Section */
.stats-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5rem 0;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .hero {
        padding: 6rem 0 8rem;
    }

    .dual-split {
        grid-template-columns: 1fr;
        margin-top: -4rem;
    }

    .zigzag-row {
        flex-direction: column !important;
        gap: 3rem;
        margin-bottom: 4rem;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}