/*
================================================
PRACTICE AREAS CSS - GARBACZ ZLOTOWITZ LAW FIRM
Elegant blue gradient design matching areas-of-practice
Mobile-first optimization
================================================
*/

/* ==========================================
   HERO SECTION (RESPONSIVE FIXES)
   ========================================== */
.practice-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a2642 50%, #0f1d35 100%);
    padding: clamp(130px, 20vh, 160px) 0 clamp(70px, 12vh, 100px);
    overflow: hidden;
    width: 100%;
}

@media (max-width: 767px) {
    .practice-hero {
        min-height: 65vh;
        padding: clamp(100px, 18vh, 130px) 0 clamp(50px, 10vh, 70px);
    }
}

/* Elegant animated pattern overlay */
.practice-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(194, 166, 115, 0.1) 2px, rgba(194, 166, 115, 0.1) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(194, 166, 115, 0.1) 2px, rgba(194, 166, 115, 0.1) 4px);
    background-size: 50px 50px;
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Elegant bottom gradient line */
.practice-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(194, 166, 115, 0.4) 50%, 
        transparent 100%);
}

.practice-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: min(900px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    box-sizing: border-box;
}

.practice-category {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.75rem);
    font-weight: 600;
    letter-spacing: clamp(2px, 0.5vw, 3px);
    text-transform: uppercase;
    color: #c2a673;
    margin-bottom: 2rem;
    padding: clamp(0.45rem, 1vw, 0.5rem) clamp(1.25rem, 3vw, 1.5rem);
    border: 1px solid rgba(194, 166, 115, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    background: rgba(194, 166, 115, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.practice-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 100%;
    word-wrap: break-word;
}

.practice-hero-description {
    font-size: clamp(1.125rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    max-width: min(700px, 90vw);
    margin: 0 auto;
    font-weight: 300;
}

/* ==========================================
   MAIN CONTENT SECTION (RESPONSIVE FIXES)
   ========================================== */
.practice-content-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #ffffff;
    overflow-x: hidden;
    width: 100%;
}

.practice-content {
    max-width: min(820px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    box-sizing: border-box;
}

.practice-intro {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.9;
    color: #555;
    margin-bottom: 0;
    max-width: 100%;
}

@media (min-width: 768px) {
    .practice-intro {
        font-size: clamp(1.1rem, 2vw, 1.15rem);
        line-height: 2;
    }
}

.practice-intro p {
    max-width: 100%;
    margin-bottom: 2rem;
    color: #555;
    box-sizing: border-box;
}

.practice-intro p:last-child {
    margin-bottom: 0;
}

.practice-intro p:first-child {
    font-size: clamp(1.15rem, 2.2vw, 1.2rem);
    color: #0a1628;
    line-height: 1.8;
    font-weight: 500;
}

@media (min-width: 768px) {
    .practice-intro p:first-child {
        font-size: clamp(1.2rem, 2.2vw, 1.25rem);
    }
}

/* ==========================================
   SERVICES/BULLET LIST SECTION (RESPONSIVE FIXES)
   ========================================== */
.practice-services {
    margin-top: clamp(4rem, 8vw, 5rem);
    padding-top: clamp(4rem, 8vw, 5rem);
    border-top: 1px solid rgba(194, 166, 115, 0.2);
    max-width: 100%;
}

.practice-services h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    color: #c2a673;
    margin-bottom: 3rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
}

/* Bullet List */
.bullet-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(1.25rem, 3vw, 1.5rem);
    padding: clamp(1.1rem, 3vw, 1.75rem) 0;
    border-bottom: 1px solid rgba(194, 166, 115, 0.15);
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
}

@media (min-width: 768px) {
    .bullet-item {
        padding: clamp(1.75rem, 4vw, 2rem) 0;
    }
}

.bullet-item:first-child {
    border-top: 1px solid rgba(194, 166, 115, 0.15);
}

.bullet-item:hover {
    padding-left: clamp(0.25rem, 1vw, 0.5rem);
    border-bottom-color: rgba(194, 166, 115, 0.3);
}

.bullet-item:hover .bullet-icon svg {
    stroke: #d4b980;
    transform: scale(1.1);
}

.bullet-icon {
    flex-shrink: 0;
    width: clamp(20px, 4vw, 24px);
    height: clamp(20px, 4vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.bullet-icon svg {
    width: clamp(18px, 3.5vw, 20px);
    height: clamp(18px, 3.5vw, 20px);
    stroke: #c2a673;
    stroke-width: 2.5;
    transition: all 0.3s ease;
}

.bullet-content {
    flex: 1;
    min-width: 0;
}

.bullet-content p {
    font-size: clamp(1rem, 2vw, 1.075rem);
    line-height: 1.7;
    color: #333;
    margin: 0;
    max-width: 100%;
}

.bullet-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.075rem, 2vw, 1.125rem);
    font-weight: 600;
    color: #0a1628;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
}

/* ==========================================
   CTA SECTION (RESPONSIVE FIXES)
   ========================================== */
.practice-cta-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, #0a1628 0%, #1a2642 100%);
    border-top: 1px solid rgba(194, 166, 115, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Subtle pattern overlay */
.practice-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(194, 166, 115, 0.1) 2px, rgba(194, 166, 115, 0.1) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(194, 166, 115, 0.1) 2px, rgba(194, 166, 115, 0.1) 4px);
    background-size: 50px 50px;
    pointer-events: none;
}

.practice-cta-content {
    max-width: min(700px, 95vw);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 clamp(1rem, 3vw, 2rem);
    box-sizing: border-box;
}

.practice-cta-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
}

.practice-cta-content p {
    font-size: clamp(1.05rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: clamp(2.5rem, 5vw, 3rem);
    max-width: 100%;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.cta-buttons .cta-button {
    width: 100%;
    max-width: min(260px, 90vw);
    justify-content: center;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .cta-buttons .cta-button {
        width: auto;
        min-width: 200px;
    }
}

/* ==========================================
   FOOTER STYLES (RESPONSIVE FIXES)
   ========================================== */
#main-footer {
    background: linear-gradient(135deg, #0a1628 0%, #1a2642 100%);
    border-top: 1px solid rgba(194, 166, 115, 0.2);
    overflow-x: hidden;
    width: 100%;
}

.footer-top {
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 3rem);
    max-width: 100%;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: clamp(40px, 6vw, 45px);
    width: auto;
}

.footer-column-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.15rem, 2.2vw, 1.25rem);
    color: #c2a673;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #c2a673;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
}

.footer-contact svg {
    color: #c2a673;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #c2a673;
}

.footer-tagline {
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: min(300px, 100%);
    margin-top: 1rem;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(194, 166, 115, 0.2);
    margin-top: 3rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: clamp(0.8rem, 1.5vw, 0.85rem);
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        gap: 2rem;
    }
}

.footer-copyright {
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #c2a673;
}

.footer-divider {
    color: rgba(194, 166, 115, 0.3);
}

.credit-bar {
    background: linear-gradient(135deg, #071221 0%, #0f1b30 100%);
    padding: 1rem 0;
    text-align: center;
    font-size: clamp(0.75rem, 1.2vw, 0.8rem);
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(194, 166, 115, 0.15);
}

.credit-bar a {
    color: #c2a673;
    text-decoration: none;
    transition: color 0.2s ease;
}

.credit-bar a:hover {
    color: #d4b980;
}

/* ==========================================
   MOBILE OPTIMIZATIONS (ENHANCED)
   ========================================== */
@media (max-width: 767px) {
    /* Ensure text is readable on mobile */
    .practice-intro,
    .bullet-content p {
        font-size: clamp(0.95rem, 2vw, 1rem);
        line-height: 1.7;
    }
    
    /* Optimize touch targets */
    .cta-button {
        min-height: 48px;
        padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    }
    
    /* Better spacing on mobile */
    .bullet-item {
        padding: clamp(1rem, 2vw, 1.1rem) clamp(1rem, 3vw, 1.25rem);
    }
    
    .practice-hero-content {
        padding: 0 1rem;
    }
    
    .practice-content {
        padding: 0 1rem;
    }
    
    .practice-cta-content {
        padding: 0 1rem;
    }
}

/* ==========================================
   ACCESSIBILITY & PERFORMANCE (ENHANCED)
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    .bullet-item,
    .cta-button,
    .practice-hero::before,
    * {
        transition: none !important;
        animation: none !important;
    }
}

@media (prefers-contrast: high) {
    .practice-category,
    .bullet-item {
        border-color: #C8A862;
    }
    
    .bullet-content p {
        color: #000000;
    }
    
    .practice-hero h1,
    .practice-cta-content h2 {
        color: #FFFFFF;
    }
}

/* Print styles */
@media print {
    .practice-hero {
        min-height: auto;
        padding: 2rem 0;
        page-break-after: avoid;
        background: none !important;
    }
    
    .practice-cta-section,
    .credit-bar {
        display: none;
    }
    
    .bullet-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .practice-content-section {
        page-break-before: avoid;
    }
    
    .practice-hero h1,
    .practice-cta-content h2 {
        color: #000000 !important;
    }
    
    .practice-hero-description,
    .practice-cta-content p {
        color: #333333 !important;
    }
}

/* ==========================================
   ADDITIONAL RESPONSIVE FIXES
   ========================================== */

/* Ensure no horizontal overflow at any zoom level */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .practice-category {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
        letter-spacing: 1.5px;
    }
    
    .bullet-item {
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .bullet-icon {
        width: 18px;
        height: 18px;
    }
    
    .bullet-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Fix for large screens */
@media (min-width: 1600px) {
    .practice-hero-content,
    .practice-content,
    .practice-cta-content {
        max-width: min(1200px, 90vw);
    }
}