/* ==========================================
   LAYOUT.CSS - Michelle Langan Mediation Law Firm
   
   TABLE OF CONTENTS
   ==========================================
   1. Main Content Container
   2. Site Header
   3. Navigation (Desktop & Mobile)
      3.1 Desktop Navigation
      3.2 Hamburger Menu
      3.3 Mobile Navigation Overlay
   4. Site Footer
   5. Shared Page Components
      5.1 Page Title
      5.2 Content Wrappers
      5.3 Biography Section
      5.4 Credentials Section
      5.5 Highlight/Intro Text
      5.6 CTA Section
      5.7 Lists (Case Results, Credentials, etc.)
   6. Responsive Layouts
      6.1 Large Tablets (< 1250px)
      6.2 Medium Screens (< 950px)
      6.3 Mobile (< 768px)
      6.4 Small Mobile (< 480px)
   7. Print Styles
   ========================================== */

/* ========================================
   1. MAIN CONTENT CONTAINER
======================================== */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

.page-title h1 {
    font-family: var(--font-accent), serif;
    padding-top: var(--space-md);
}

/* ========================================
   2. SITE HEADER
======================================== */

.site-header {
    max-height: 10rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 1.00);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--primary-navy);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
}

.logo-section img {
    height: auto;
    max-width: 350px;
}

/* ========================================
   3. NAVIGATION
======================================== */

/* 3.1 DESKTOP NAVIGATION */

.header-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-navigation li {
    position: relative;
    text-align: center;
}

.header-navigation a {
    font-family: var(--font-accent), serif;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 525;
    font-size: 1.05rem;
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    display: block;
    position: relative;
}

.header-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-navigation a:hover {
    color: var(--accent-blue);
    background-color: rgba(67, 56, 202, 0.05);
    border-color: var(--accent-blue);
}

.header-navigation a:hover::after {
    width: 80%;
}

.header-navigation li.active a {
    background: var(--gradient-blue);
    color: var(--text-light);
    border-color: var(--primary-navy);
    box-shadow: 0 2px 8px rgba(30, 27, 75, 0.3);
}

.header-navigation li.active a::after {
    background-color: var(--warm-tan);
    width: 80%;
}

.header-navigation li.active a:hover {
    background: var(--gradient-blue-light);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.4);
}

.header-navigation a:focus {
    outline: none;
    background: var(--accent-blue);
    color: var(--text-light);
    box-shadow: 0 0 0 3px var(--warm-tan);
}

/* 3.2 HAMBURGER MENU */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1002;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background-color: rgba(67, 56, 202, 0.1);
    border-radius: var(--radius-sm);
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: var(--primary-navy);
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 3.3 MOBILE NAVIGATION OVERLAY */

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: color-mix(in srgb, var(--primary-navy) 95%, transparent);
    backdrop-filter: blur(10px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-nav-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.mobile-nav-overlay.active .mobile-nav-menu {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin: var(--space-lg) 0;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active .mobile-nav-menu li:nth-child(1) {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.mobile-nav-overlay.active .mobile-nav-menu li:nth-child(2) {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.mobile-nav-overlay.active .mobile-nav-menu li:nth-child(3) {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.mobile-nav-overlay.active .mobile-nav-menu li:nth-child(4) {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.4s;
}

.mobile-nav-overlay.active .mobile-nav-menu li:nth-child(5) {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.4s;
}

.mobile-nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-family: var(--font-accent), serif;
    padding: var(--space-md) var(--space-xl);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-menu a:hover::before {
    left: 100%;
}

.mobile-nav-menu a:hover {
    color: var(--text-light);
    border-color: var(--warm-peach);
    background-color: rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}

.mobile-nav-menu li.active a {
    background: linear-gradient(135deg, var(--warm-tan), var(--warm-gold));
    color: var(--text-light);
    border-color: var(--warm-tan);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.mobile-nav-close {
    position: absolute;
    top: var(--space-2xl);
    right: var(--space-2xl);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--warm-tan);
    transform: rotate(90deg);
}


/* ========================================
   5. SITE FOOTER
======================================== */

.site-footer {
    background: var(--gradient-blue);
    color: var(--text-light);
    text-align: center;
    padding: var(--space-3xl);
    margin-top: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.site-footer .tagline {
    color: var(--warm-peach);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
}

.site-footer p {
    margin: 0;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

/* ========================================
   5. SHARED PAGE COMPONENTS
======================================== */

/* 5.1 PAGE TITLE */

header.page-title {
    padding: 1rem 0;
}

/* 5.2 CONTENT WRAPPERS */

.intro-text {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: var(--space-3xl);
    border-left: 6px solid var(--warm-tan);
    box-shadow: var(--shadow-medium);
    position: relative;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--space-3xl);
}

.intro-text::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: var(--warm-tan);
    opacity: 0.1;
    clip-path: polygon(100% 0, 100% 80%, 20% 100%, 0 20%, 0 0);
}

/* 5.3 BIOGRAPHY SECTION */

.main-bio {
    background: var(--bg-white);
    padding: var(--space-3xl);
    margin: 0 0 var(--space-2xl) 0;
    box-shadow: var(--shadow-strong);
    border-top: 4px solid var(--primary-navy);
    position: relative;
    overflow: hidden;
    font-size: 1.2rem;
}

.main-bio::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-navy), var(--secondary-navy));
    opacity: 0.05;
    border-radius: 50%;
}

/* 5.4 CREDENTIALS SECTION */

.credentials {
    background: var(--gradient-blue);
    border-left: 6px solid var(--warm-tan);
    color: var(--text-light);
    padding: var(--space-3xl);
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
    font-size: 1.2rem;
}

.credentials strong {
    color: --var(--text-light);
}

.credentials::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.125) 1px, transparent 1px);
    background-size: 30px 30px;
}

.credentials h2 {
    color: var(--text-light);
    position: relative;
    z-index: 2;
    font-size: 2.25rem;
}

.credentials-list {
    list-style: none;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

.credentials-list li {
    margin-bottom: var(--space-md);
    position: relative;
    color: var(--text-light);
    font-weight: 500;
}

.credentials-list li::before {
    content: "★";
    position: relative;
    padding-right: var(--space-lg);
    color: var(--warm-peach);
    font-size: 1.25em;
    padding-bottom: 10px;
}

.rating-disclaimer {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    position: relative;
    z-index: 2;
    margin-left: 3rem;
}

/* 5.5 HIGHLIGHT/INTRO TEXT */

.highlight {
    background: var(--gradient-blue);
    color: var(--text-light);
    padding: var(--space-2xl);
    border-left: 6px solid var(--warm-tan);
    margin-bottom: var(--space-3xl);
    position: relative;
    overflow: hidden;
    font-size: 1.3rem;
    font-weight: 400;
}

.highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.125) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* 5.6 CTA SECTION */

.cta-section {
    background: var(--bg-white);
    padding: var(--space-3xl);
    text-align: center;
    box-shadow: var(--shadow-strong);
    border-top: 4px solid var(--warm-brown);
}

.cta-section h2 {
    color: var(--primary-navy);
    font-size: 2.25rem;
    margin-bottom: var(--space-md);
}

.cta-section > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--space-xl) auto;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-warm-accent);
    color: var(--text-light);
    padding: var(--space-md) var(--space-3xl);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    background: var(--gradient-blue);
}

.cta-secondary {
    margin-top: var(--space-lg) !important;
    margin-bottom: 0 !important;
    font-size: 1rem;
    color: var(--text-secondary);
}

.cta-secondary a {
    color: var(--accent-blue);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cta-secondary a:hover {
    color: var(--primary-navy);
}

/* 5.7 LISTS */

.case-results {
    list-style: none;
    margin: var(--space-lg) 0;
    padding: 0;
}

.case-results li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-lg);
    position: relative;
    font-weight: 500;
}

.case-results li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--warm-tan);
    font-weight: bold;
    font-size: 1.2em;
}

/* ========================================
   6. RESPONSIVE LAYOUTS
======================================== */

/* 6.1 LARGE TABLETS (< 1250px) */

@media (max-width: 1250px) {
    .hamburger-menu {
        display: flex;
    }
    
    .mobile-nav-overlay {
        display: block;
    }
    
    .header-navigation {
        display: none;
    }
    
    .header-content {
        justify-content: space-between;
        align-items: center;
    }
}

/* 6.2 MEDIUM SCREENS (< 950px) */

@media (max-width: 950px) {
    .main-content {
        padding: var(--space-md);
    }
}

/* 6.3 MOBILE (< 768px) */

@media (max-width: 768px) {
    .header-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }
    
    .header-navigation a {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }

    .profile-info .contact-info-hero {
        justify-content: center;
        font-size: 0.9rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
    
    .intro-text,
    .main-bio {
        padding: var(--space-xl);
    }

    .credentials {
        padding: var(--space-md);
    }
}

/* 6.4 SMALL MOBILE (< 480px) */

@media (max-width: 480px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
    }
    
    .site-header {
        padding: var(--space-sm) 0;
    }

    .header-content {
        padding: 0 2rem;
    }
    
    .logo-section img {
        max-width: 250px;
    }
    
    .header-navigation ul {
        flex-direction: column;
        gap: var(--space-xs);
        width: 100%;
    }
    
    .header-navigation a {
        padding: var(--space-sm);
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }
    
    .header-navigation a::after {
        display: none;
    }
    
    .header-navigation li.active a:hover {
        transform: none;
    }
    
    .profile-info h2 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .profile-info .subtitle {
        font-size: 1.125rem;
    }

    .profile-info .contact-info-hero {
        display: block;
        justify-content: center;
        font-size: 1rem;
    }

    .contact-separator-hero {
        display: none;
    }
    
    .profile-image img {
        width: 160px;
        height: 160px;
    }

    .credentials {
        padding: var(--space-md);
    }

    .credentials-list li,
    .case-results li {
        padding-left: var(--space-xl);
    }

    .case-results li {
        padding-left: var(--space-2xl);
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    body {
        font-size: 1rem;
    }
    
    .intro-text {
        font-size: 1.125rem;
    }
    
    .intro-text,
    .main-bio,
    .credentials {
        padding: var(--space-xl);
    }

    .site-footer .tagline {
    font-size: 1.25rem;
    }
}

/* ========================================
   7. PRINT STYLES
======================================== */

@media print {
    .site-header,
    .header-navigation,
    .site-footer,
    .contact-form,
    .new-badge,
    .new-feature-badge {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .main-content {
        max-width: none;
        padding: 0;
    }
    
    .home-hero {
        background: #fff !important;
        color: #000 !important;
        padding: 1rem 0;
    }
    
    .profile-info h2,
    .credentials h2,
    h1, h2, h3, h4 {
        color: #000 !important;
    }
    
    .credentials {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
    
    .highlight {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .intro-text,
    .main-bio,
    .credentials {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    h1, h2, h3 {
        break-after: avoid;
    }
}