/* ==========================================
   ADR.CSS - Michelle Langan Mediation Law Firm
   
   TABLE OF CONTENTS
   ==========================================
   1. ADR Introduction Section
   2. Accordion Styles
      2.1 Accordion Container
      2.2 Accordion Header
      2.3 Accordion Content
      2.4 Accordion Accessibility
   3. ADR Methods Cards (Legacy)
   4. Responsive Adjustments
      4.1 Mobile (< 768px)
      4.2 Small Mobile (< 480px)
   ========================================== */

/* ========================================
   1. ADR INTRODUCTION SECTION
======================================== */

.adr-introduction {
    margin-bottom: var(--space-2xl);
}

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

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

.intro-highlight p {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    margin: 0;
    text-align: center;
}

.intro-content {
    background: var(--gradient-light);
    padding: var(--space-3xl);
    border-left: 6px solid var(--warm-brown);
    box-shadow: var(--shadow-medium);
}

.intro-content h2 {
    color: var(--primary-navy);
    font-size: 2.25rem;
    margin-bottom: var(--space-lg);
}

.intro-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.methods-intro {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--border-light);
    font-size: 1.2rem !important;
    text-align: center;
}

/* ========================================
   2. ACCORDION STYLES
======================================== */

/* 2.1 ACCORDION CONTAINER */

.adr-methods-accordion {
    margin-bottom: var(--space-3xl);
}

.accordion-item {
    background: var(--bg-white);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-medium);
}

/* 2.2 ACCORDION HEADER */

.accordion-header {
    width: 100%;
    background: var(--bg-white);
    border: none;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-serif);
    transition: all 0.3s ease;
    border-left: 4px solid var(--warm-tan);
}

.accordion-header:hover {
    background: var(--bg-light);
    border-left-color: var(--accent-blue);
}

.accordion-header[aria-expanded="true"] {
    background: var(--gradient-light);
    border-left-color: var(--accent-blue);
}

.method-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-align: left;
}

.accordion-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--warm-brown);
    transition: transform 0.3s ease;
    line-height: 1;
    min-width: 30px;
    text-align: center;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
    color: var(--accent-blue);
}

.accordion-header:focus {
    outline: 3px solid var(--warm-tan);
    outline-offset: 2px;
}

/* 2.3 ACCORDION CONTENT */

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-inner {
    padding: var(--space-xl);
    background: var(--bg-white);
}

.accordion-inner p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.accordion-inner p:last-child {
    margin-bottom: 0;
}

/* 2.4 ACCORDION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .accordion-content {
        transition: none;
    }
    
    .accordion-icon {
        transition: none;
    }
    
    .accordion-header {
        transition: none;
    }
}

/* ========================================
   3. ADR METHODS CARDS (LEGACY)
======================================== */

/* These styles are kept for backward compatibility 
   if accordion is ever removed */

.adr-methods {
    display: grid;
    gap: var(--space-xl);
}

.adr-method {
    background: var(--bg-white);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-medium);
    border-left: 6px solid var(--accent-blue);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.adr-method::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--accent-blue);
    opacity: 0.08;
    clip-path: polygon(100% 0, 100% 70%, 30% 100%, 0 30%, 0 0);
    transition: transform 0.3s ease;
}

.adr-method:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dramatic);
}

.adr-method:hover::before {
    transform: scale(1.2);
    opacity: 0.12;
}

.adr-method h2 {
    color: var(--primary-navy);
    font-size: 1.875rem;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

/* ========================================
   4. RESPONSIVE ADJUSTMENTS
======================================== */

/* 4.1 MOBILE (< 768px) */

@media (max-width: 768px) {
    .intro-highlight {
        padding: var(--space-xl);
    }
    
    .intro-highlight p {
        font-size: 1.125rem;
    }
    
    .intro-content {
        padding: var(--space-xl);
    }
    
    .intro-content h2 {
        font-size: 1.875rem;
    }
    
    .intro-content p {
        font-size: 1rem;
    }
    
    .accordion-header {
        padding: var(--space-md) var(--space-lg);
    }
    
    .method-name {
        font-size: 1.25rem;
    }
    
    .accordion-icon {
        font-size: 1.5rem;
    }
    
    .accordion-inner {
        padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
    }
    
    .accordion-inner p {
        font-size: 1rem;
    }
}

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

@media (max-width: 480px) {
    .intro-highlight {
        padding: var(--space-lg);
        margin-bottom: var(--space-3xl);
    }
    
    .intro-highlight p {
        font-size: 1.125rem;
    }
    
    .intro-content {
        padding: var(--space-lg);
    }
    
    .intro-content p {
        font-size: 1.125rem;
    }

    .intro-content h2 {
        font-size: 1.5rem;
    }
    
    .accordion-header {
        padding: var(--space-md);
    }
    
    .method-name {
        font-size: 1.125rem;
        padding-right: var(--space-sm);
    }
    
    .accordion-inner {
        padding: var(--space-md);
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }
}