/* ============================================
   Travis Law Group - Modern Professional Design
   ============================================ */

/* CSS Variables for Design System */
:root {
    /* Colors */
    --color-primary: #1a1a1a;
    --color-secondary: #8b7355;
    --color-accent: #c9a961;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-lighter: #999999;
    --color-bg: #ffffff;
    --color-bg-light: #f8f8f8;
    --color-bg-dark: #1a1a1a;
    --color-border: #e0e0e0;
    --color-success: #4caf50;
    --color-error: #f44336;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: white;
    border-color: transparent;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary::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: left 0.5s ease;
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 115, 85, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.2);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--color-primary);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    margin-top: 0;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    color: white;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    gap: var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    flex-shrink: 0;
    order: 1;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Navigation */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    order: 2;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-accent);
}

/* Navigation Submenu */
.nav-item-has-submenu {
    position: relative;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000;
    min-width: 220px;
    padding: var(--spacing-xs) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    margin-top: 0;
    padding-top: var(--spacing-sm);
}

.nav-item-has-submenu:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu li {
    margin: 0;
    padding: 0;
    border: none;
    border-bottom: none;
}

.nav-submenu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    position: relative;
    line-height: 1.6;
    border: none;
    border-bottom: none;
}

/* Resources submenu uses sans-serif font */
.nav-item-has-submenu:has(a[href*="resources"]) .nav-submenu a {
    font-family: var(--font-body);
}

/* Only change color when directly hovering over the link itself */
.nav-submenu a:hover {
    color: var(--color-accent) !important;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    border-bottom: none;
}

/* Ensure submenu links stay white when parent is hovered but link itself is not */
.nav-item-has-submenu:hover .nav-submenu a:not(:hover) {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-submenu a::before,
.nav-submenu a::after {
    display: none;
}

.nav-submenu li::before,
.nav-submenu li::after {
    display: none;
}

.submenu-chevron {
    float: right;
    margin-left: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    line-height: 1;
    transition: var(--transition-base);
}

.nav-submenu a:hover .submenu-chevron {
    color: var(--color-accent);
    transform: translateX(4px);
}

/* Nested submenu (for Family Law and Personal Injury under Practices) */
.nav-submenu .nav-item-has-submenu {
    position: relative;
    border: none;
    border-bottom: none;
}

.nav-submenu .nav-item-has-submenu a {
    border: none;
    border-bottom: none;
}

.nav-submenu-nested {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0;
    min-width: 250px;
    z-index: 1001;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    background-color: #000000;
    padding: var(--spacing-xs) 0;
    box-shadow: var(--shadow-lg);
    margin-top: 0;
    padding-top: var(--spacing-sm);
}

/* Only show nested dropdown when directly hovering over the parent item (Family Law or Personal Injury) */
.nav-submenu > .nav-item-has-submenu:hover > .nav-submenu-nested {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}

/* Ensure nested dropdowns stay hidden when hovering over Practices parent */
.nav-item-has-submenu:hover .nav-submenu > .nav-item-has-submenu:not(:hover) > .nav-submenu-nested {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    order: 3;
}

.search-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--spacing-xs);
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.search-toggle:hover {
    color: var(--color-accent);
}

.header-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, #d4b876 100%);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.header-cta-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: left 0.5s ease;
}

.header-cta-btn:hover::before {
    left: 100%;
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
    background: linear-gradient(135deg, #d4b876 0%, var(--color-accent) 100%);
}

.header-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(201, 169, 97, 0.3);
}

.header-cta-btn .phone-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.header-cta-btn .cta-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: var(--transition-base);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 10s ease-out;
}

.hero-slide.active .hero-background {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.75) 0%,
        rgba(26, 26, 26, 0.5) 50%,
        rgba(26, 26, 26, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: white;
    padding: var(--spacing-xl) var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text-card {
    background: transparent;
    padding: var(--spacing-lg) var(--spacing-xl);
    max-width: 900px;
    margin-bottom: var(--spacing-lg);
    animation: slideIn 0.8s ease-out 0.2s both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-md) 0;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-logo img {
    max-width: 240px;
    width: auto;
    height: auto;
    max-height: 120px;
    margin: 0 auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.hero-logo:hover img {
    transform: scale(1.05);
}

.hero-tagline {
    font-size: clamp(1.125rem, 2vw, 1.75rem);
    font-weight: 400;
    margin-top: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.02em;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.375rem);
    max-width: 800px;
    margin: var(--spacing-md) auto 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
    line-height: 1.7;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.hero-cta {
    display: none;
}

.hero-controls {
    position: absolute;
    bottom: calc(var(--spacing-lg) + 60px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-prev:active,
.hero-next:active {
    transform: scale(0.95);
}

.hero-prev svg,
.hero-next svg {
    width: 20px;
    height: 20px;
}

.hero-dots {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot.active::before,
.hero-dot:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.hero-dot.active,
.hero-dot:hover {
    border-color: white;
    width: 12px;
    height: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-text-card {
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: 16px;
    }
    
    .hero-controls {
        padding: var(--spacing-xs) var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .hero-prev,
    .hero-next {
        width: 36px;
        height: 36px;
    }
    
    .hero-prev svg,
    .hero-next svg {
        width: 16px;
        height: 16px;
    }
}

/* Trust Badges */
.trust-badges {
    padding: 45px 0;
    background-color: #9b825e;
}

.trust-badges .container {
    max-width: 100%;
    padding: 0;
    overflow: hidden;
}

.badges-grid {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    padding: 0;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.badges-track {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    width: max-content;
    animation: scroll-badges 40s linear infinite;
    will-change: transform;
}

@keyframes scroll-badges {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

.badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
}

.badge-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    background-color: transparent;
}

.badge-item:active {
    transform: translateY(0);
}

.badge-item img {
    height: 75px;
    width: auto;
    max-width: none;
    object-fit: contain;
    transition: transform 0.3s ease;
    pointer-events: none;
    display: block;
}

/* Specific sizing for different badges */
.badge-item:nth-child(1) img {
    height: 100px;
}

.badge-item:nth-child(4) img {
    height: 89px;
}

.badge-item:nth-child(8) img {
    height: 95px;
}

/* Responsive adjustments for trust badges */
@media (max-width: 1400px) {
    .badges-grid {
        gap: var(--spacing-md);
    }
    
    .badge-item img {
        height: 65px;
    }
    
    .badge-item:nth-child(1) img {
        height: 85px;
    }
    
    .badge-item:nth-child(4) img {
        height: 75px;
    }
    
    .badge-item:nth-child(8) img {
        height: 80px;
    }
}

@media (max-width: 1200px) {
    .badges-grid {
        gap: var(--spacing-sm);
    }
    
    .badge-item img {
        height: 60px;
    }
    
    .badge-item:nth-child(1) img {
        height: 75px;
    }
    
    .badge-item:nth-child(4) img {
        height: 70px;
    }
    
    .badge-item:nth-child(8) img {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .trust-badges .container {
        padding: 0;
        overflow: hidden;
    }
    
    .badges-grid {
        overflow: hidden;
        width: 100%;
        position: relative;
    }
    
    .badges-track {
        gap: var(--spacing-md);
    }
    
    .badge-item {
        flex-shrink: 0;
        min-width: fit-content;
    }
    
    .badge-item img {
        height: 50px;
    }
    
    .badge-item:nth-child(1) img,
    .badge-item:nth-child(9) img {
        height: 65px;
    }
    
    .badge-item:nth-child(4) img,
    .badge-item:nth-child(12) img {
        height: 60px;
    }
    
    .badge-item:nth-child(8) img,
    .badge-item:nth-child(16) img {
        height: 60px;
    }
}

/* Services Overview */
.services-overview {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.service-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: var(--spacing-lg);
}

.service-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.service-description {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
    line-height: 1.8;
}

/* FAQ Section */
.faqs-section {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.faqs-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.faqs-wrapper .section-heading {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
    text-align: center;
    font-family: var(--font-heading);
}

.faq-grid {
    max-width: 100%;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--color-secondary);
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.faq-item:hover::before {
    transform: scaleX(1);
}

.faq-item.active {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.faq-item.active::before {
    transform: scaleX(1);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg);
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-base);
    gap: var(--spacing-md);
}

.faq-question:hover {
    color: var(--color-secondary);
}

.faq-text {
    flex: 1;
    text-align: left;
    line-height: 1.6;
}

.faq-icon {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--color-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 400;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    opacity: 1;
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.faq-answer p:first-child {
    padding-top: var(--spacing-sm);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Testimonials */
.testimonials {
    position: relative;
    padding: var(--spacing-xl) 0;
    background-color: #f5f3f0;
    overflow: hidden;
}

.testimonials-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f3f0;
    opacity: 0.8;
    z-index: 0;
}

.testimonials-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 90% 40%, rgba(255, 255, 255, 0.5) 0%, transparent 50%);
    background-size: 400px 400px, 350px 350px, 300px 300px, 450px 450px, 380px 380px, 320px 320px;
    background-position: 0% 0%, 100% 100%, 50% 50%, 20% 80%, 80% 20%, 60% 40%;
    animation: bokeh 20s ease-in-out infinite;
}

@keyframes bokeh {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.testimonials-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.testimonials-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    color: #9b825e;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-body);
}

.testimonials-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2a345a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.testimonials-separator {
    width: 30px;
    height: 2px;
    background-color: #9b825e;
    margin: 0 auto;
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
    min-height: 200px;
}

.testimonial-slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-quote {
    margin-bottom: var(--spacing-md);
}

.testimonial-quote p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2a345a;
    font-style: normal;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-author {
    font-size: 1rem;
    font-style: italic;
    color: #9b825e;
    font-weight: 400;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #2a345a;
    background-color: #f5f3f0;
    color: #2a345a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonial-nav-btn:hover {
    background-color: #9b825e;
    border-color: #9b825e;
    color: white;
    transform: scale(1.1);
}

.testimonial-nav-btn:active {
    transform: scale(0.95);
}

.testimonial-nav-btn svg {
    width: 16px;
    height: 16px;
}

/* In the News Section */
.news-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
}

.news-section .container {
    max-width: 1400px;
    padding: 0 var(--spacing-md);
}

/* News Grid - Desktop */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    min-width: 0;
}

/* News Carousel - Mobile Only */
.news-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
    display: none; /* Hidden on desktop */
}

.news-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.news-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 16px;
    will-change: transform;
    width: 100%;
}

/* News item styles for carousel track */
.news-carousel-track .news-item {
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
}

@media (max-width: 1200px) {
    .news-carousel-track .news-item {
        flex: 0 0 calc(33.333% - 11px);
    }
}

@media (max-width: 768px) {
    .news-grid {
        display: none; /* Hide grid on mobile */
    }
    
    .news-carousel-wrapper {
        display: block; /* Show carousel on mobile */
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .news-section .container {
        padding: 0 var(--spacing-sm);
    }
    
    .news-carousel-container {
        padding: 0;
        overflow: hidden;
        width: 100%;
        margin: 0;
    }
    
    .news-carousel-track {
        gap: 0;
        width: 100%;
        margin: 0;
    }
    
    .news-item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .news-section .container {
        padding: 0 var(--spacing-xs);
    }
    
    .news-carousel-wrapper {
        padding: 0 !important;
    }
    
    .news-carousel-container {
        padding: 0 !important;
        overflow: hidden;
        width: 100%;
    }
    
    .news-carousel-track {
        gap: 0 !important;
        width: 100%;
    }
    
    .news-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        min-width: 0;
        padding: 0 !important;
        margin: 0 !important;
    }
}

.news-carousel-prev,
.news-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-carousel-prev {
    left: -24px;
}

.news-carousel-next {
    right: -24px;
}

.news-carousel-prev:hover,
.news-carousel-next:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
}

.news-carousel-prev:active,
.news-carousel-next:active {
    transform: translateY(-50%) scale(0.95);
}

.news-carousel-prev svg,
.news-carousel-next svg {
    width: 20px;
    height: 20px;
}

.news-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.news-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.news-carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-carousel-dot.active::before,
.news-carousel-dot:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.news-carousel-dot.active,
.news-carousel-dot:hover {
    border-color: var(--color-secondary);
    width: 12px;
    height: 12px;
}

.news-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--color-bg-dark);
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.news-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.85) contrast(0.9) saturate(0.8);
}

.news-item:hover .news-image {
    transform: scale(1.05);
    filter: brightness(0.9) contrast(0.95) saturate(0.85);
}

.news-logo {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 2;
    white-space: nowrap;
    font-family: var(--font-body);
    padding: 0 8px;
    text-align: center;
}

.news-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Responsive adjustments for news section */
@media (max-width: 1400px) {
    .news-section .container {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    .news-carousel-prev {
        left: -20px;
    }
    
    .news-carousel-next {
        right: -20px;
    }
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .news-logo {
        font-size: 0.7rem;
        bottom: 8px;
    }
    
    .news-carousel-prev,
    .news-carousel-next {
        width: 44px;
        height: 44px;
    }
    
    .news-carousel-prev {
        left: -16px;
    }
    
    .news-carousel-next {
        right: -16px;
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .news-logo {
        font-size: 0.65rem;
        bottom: 6px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        display: none !important; /* Hide grid on mobile */
    }
    
    .news-carousel-wrapper {
        display: block !important; /* Show carousel on mobile */
    }
    
    .news-carousel-prev,
    .news-carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .news-carousel-prev {
        left: -12px;
    }
    
    .news-carousel-next {
        right: -12px;
    }
    
    .news-carousel-prev svg,
    .news-carousel-next svg {
        width: 18px;
        height: 18px;
    }
    
    /* Ensure carousel items don't overflow */
    .news-carousel-wrapper {
        padding: 0 !important;
    }
    
    .news-carousel-container {
        padding: 0 !important;
        overflow: hidden;
        width: 100%;
    }
    
    .news-carousel-track {
        gap: 0 !important;
        width: 100%;
    }
    
    .news-carousel-track .news-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .news-carousel-prev,
    .news-carousel-next {
        width: 36px;
        height: 36px;
    }
    
    .news-carousel-prev {
        left: -8px;
    }
    
    .news-carousel-next {
        right: -8px;
    }
    
    .news-carousel-prev svg,
    .news-carousel-next svg {
        width: 16px;
        height: 16px;
    }
}

/* Stats Section */
.stats-section {
    padding: 100px 0 120px;
    background-image: url('https://travislawgroup.com/wp-content/uploads/2018/09/foundation-building.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.4) 100%);
    z-index: 1;
    backdrop-filter: blur(1px);
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

/* Stats Grid - Desktop */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

/* Stats Carousel - Mobile Only */
.stats-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
    display: none; /* Hidden on desktop */
}

.stats-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.stats-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
    will-change: transform;
    width: 100%;
}

.stat-item {
    flex: 0 0 calc(25% - 22.5px);
    min-width: 0;
}

@media (max-width: 1200px) {
    .stat-item {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 992px) {
    .stats-carousel-container {
        padding: 0 var(--spacing-xs);
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 15px);
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
    }
}

@media (max-width: 768px) {
    .stats-container {
        padding: 0 var(--spacing-sm);
    }
    
    .stats-carousel-wrapper {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .stats-carousel-container {
        padding: 0;
        overflow: hidden;
        width: 100%;
        margin: 0;
    }
    
    .stats-carousel-track {
        gap: 0;
        width: 100%;
        margin: 0;
    }
    
    .stat-item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
        padding: 30px 20px;
        margin: 0;
    }
}

.stats-carousel-prev,
.stats-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stats-carousel-prev {
    left: -24px;
}

.stats-carousel-next {
    right: -24px;
}

.stats-carousel-prev:hover,
.stats-carousel-next:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
}

.stats-carousel-prev:active,
.stats-carousel-next:active {
    transform: translateY(-50%) scale(0.95);
}

.stats-carousel-prev svg,
.stats-carousel-next svg {
    width: 20px;
    height: 20px;
}

.stats-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.stats-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.stats-carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-carousel-dot.active::before,
.stats-carousel-dot:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.stats-carousel-dot.active,
.stats-carousel-dot:hover {
    border-color: var(--color-secondary);
    width: 12px;
    height: 12px;
}

/* Legacy grid support (for other pages) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9b825e 0%, #c9a961 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 1);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #2a345a 0%, #4a5a7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
}

.stat-separator {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #9b825e 50%, transparent 100%);
    margin: 0 auto 24px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.stat-item:hover .stat-separator {
    width: 70px;
}

.stat-separator-small {
    height: 20px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2a345a;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.stat-description {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    line-height: 1.7;
    margin-top: 0;
    font-weight: 400;
}

@media (max-width: 1400px) {
    .stats-carousel-prev {
        left: -20px;
    }
    
    .stats-carousel-next {
        right: -20px;
    }
}

@media (max-width: 1200px) {
    .stats-container {
        padding: 0 4%;
    }
    
    .stats-grid {
        gap: 25px;
    }
    
    .stat-item {
        padding: 35px 25px;
    }
    
    .stats-carousel-prev,
    .stats-carousel-next {
        width: 44px;
        height: 44px;
    }
    
    .stats-carousel-prev {
        left: -16px;
    }
    
    .stats-carousel-next {
        right: -16px;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stats-section {
        padding: 80px 0 100px;
        background-attachment: scroll;
    }
    
    .stat-number {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        display: none; /* Hide grid on mobile */
    }
    
    .stats-carousel-wrapper {
        display: block; /* Show carousel on mobile */
        padding: 0 !important;
    }
    
    .stats-container {
        padding: 0 var(--spacing-md);
    }
    
    .stat-item {
        padding: 30px 20px;
    }
    
    /* Ensure carousel items don't overflow */
    
    .stats-carousel-container {
        padding: 0 !important;
        overflow: hidden;
        width: 100%;
    }
    
    .stats-carousel-track {
        gap: 0 !important;
        width: 100%;
    }
    
    .stats-carousel-track .stat-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        min-width: 0;
        margin: 0 !important;
    }
    
    .stat-number {
        font-size: 42px;
    }
    
    .stats-section {
        padding: 60px 0 80px;
    }
    
    .stats-carousel-prev,
    .stats-carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .stats-carousel-prev {
        left: -12px;
    }
    
    .stats-carousel-next {
        right: -12px;
    }
    
    .stats-carousel-prev svg,
    .stats-carousel-next svg {
        width: 18px;
        height: 18px;
    }
}

/* Quick Links */
.quick-links {
    padding: 50px 0;
    background-color: #fafafa;
}

.quick-links .container {
    padding: 0;
    max-width: 100%;
}

/* Links Carousel */
.links-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: none; /* Hidden on desktop */
}

.links-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.links-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 40px;
    will-change: transform;
}

.link-card {
    flex: 0 0 calc(25% - 30px);
    min-width: 0;
}

@media (max-width: 1200px) {
    .links-carousel-track {
        gap: 30px;
    }
    .link-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .links-grid {
        display: none !important; /* Hide grid on mobile */
    }
    
    .links-carousel-wrapper {
        display: block !important; /* Show carousel on mobile */
        padding: 0 var(--spacing-sm);
    }
    
    .links-carousel-container {
        padding: 0;
        overflow: hidden;
    }
    
    .links-carousel-track {
        gap: 0;
    }
    
    .link-card {
        flex: 0 0 100%;
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
        box-sizing: border-box;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .links-carousel-wrapper {
        padding: 0 var(--spacing-xs);
    }
    
    .links-carousel-container {
        padding: 0;
        overflow: hidden;
    }
    
    .links-carousel-track {
        gap: 0;
    }
    
    .link-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        min-width: 0;
    }
}

.links-carousel-prev,
.links-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.links-carousel-prev {
    left: -24px;
}

.links-carousel-next {
    right: -24px;
}

.links-carousel-prev:hover,
.links-carousel-next:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
}

.links-carousel-prev:active,
.links-carousel-next:active {
    transform: translateY(-50%) scale(0.95);
}

.links-carousel-prev svg,
.links-carousel-next svg {
    width: 20px;
    height: 20px;
}

.links-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.links-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.links-carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.links-carousel-dot.active::before,
.links-carousel-dot:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.links-carousel-dot.active,
.links-carousel-dot:hover {
    border-color: var(--color-secondary);
    width: 12px;
    height: 12px;
}

/* Legacy grid support (for other pages) */
.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    grid-auto-flow: row;
    padding: 0 var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.link-card {
    background: transparent;
    padding: 0;
    text-align: left;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* Mobile Card Style */
@media (max-width: 768px) {
    .links-carousel-container {
        padding: 0 var(--spacing-xs);
    }
    
    .link-card {
        background: white;
        padding: var(--spacing-lg);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(139, 115, 85, 0.1);
        position: relative;
        overflow: hidden;
    }
    
    .link-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }
    
    .link-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }
    
    .link-card:hover::before {
        transform: scaleX(1);
    }
    
    .link-icon-wrapper {
        margin-bottom: var(--spacing-md);
        display: flex;
        justify-content: center;
    }
    
    .link-icon {
        width: 70px !important;
        height: 70px !important;
    }
    
    .link-title {
        font-size: 1rem !important;
        margin-bottom: var(--spacing-sm);
        text-align: center;
    }
    
    .link-description {
        font-size: 0.9rem !important;
        margin-bottom: var(--spacing-md);
        text-align: center;
        line-height: 1.6;
    }
    
    .link-read-more {
        font-size: 0.9rem !important;
        text-align: center;
        display: block;
        margin-top: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .link-card {
        padding: var(--spacing-md);
        border-radius: 10px;
    }
    
    .link-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .link-title {
        font-size: 0.95rem !important;
    }
    
    .link-description {
        font-size: 0.85rem !important;
    }
}

.link-icon-wrapper {
    margin-bottom: 20px;
    display: inline-block;
}

.link-icon {
    width: 60px;
    height: 60px;
    display: block;
    object-fit: contain;
}

.link-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2a345a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
    line-height: 1.4;
}

.link-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.link-read-more {
    color: #9b825e;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: underline;
    display: inline-block;
}

@media (max-width: 1400px) {
    .links-carousel-prev {
        left: -20px;
    }
    
    .links-carousel-next {
        right: -20px;
    }
}

@media (max-width: 1200px) {
    .links-grid {
        gap: 30px;
        padding: 0 30px;
    }
    
    .links-carousel-prev,
    .links-carousel-next {
        width: 44px;
        height: 44px;
    }
    
    .links-carousel-prev {
        left: -16px;
    }
    
    .links-carousel-next {
        right: -16px;
    }
}

@media (max-width: 992px) {
    .links-grid {
        gap: 20px;
        padding: 0 20px;
    }
    
    .link-title {
        font-size: 0.9rem;
    }
    
    .link-description {
        font-size: 0.85rem;
    }
    
    .link-icon {
        width: 50px;
        height: 50px;
    }
    
    .quick-links {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .links-grid {
        display: none !important; /* Hide grid on mobile - carousel shows instead */
    }
    
    .link-icon {
        width: 45px;
        height: 45px;
    }
    
    .link-title {
        font-size: 0.85rem;
    }
    
    .link-description {
        font-size: 0.8rem;
    }
    
    .link-read-more {
        font-size: 0.85rem;
    }
    
    .quick-links {
        padding: 40px 0;
    }
    
    .links-carousel-prev,
    .links-carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .links-carousel-prev {
        left: -12px;
    }
    
    .links-carousel-next {
        right: -12px;
    }
    
    .links-carousel-prev svg,
    .links-carousel-next svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .links-grid {
        display: none !important; /* Hide grid on mobile - carousel shows instead */
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
    }
    
    .link-title {
        font-size: 0.8rem;
    }
    
    .link-description {
        font-size: 0.75rem;
    }
    
    .link-read-more {
        font-size: 0.8rem;
    }
    
    .links-carousel-prev,
    .links-carousel-next {
        width: 36px;
        height: 36px;
    }
    
    .links-carousel-prev {
        left: -8px;
    }
    
    .links-carousel-next {
        right: -8px;
    }
    
    .links-carousel-prev svg,
    .links-carousel-next svg {
        width: 16px;
        height: 16px;
    }
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: white;
    text-align: center;
}

.cta-content {
    color: #333;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: #000;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer .container {
    padding: 0 var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255,255,255,0.7);
}

.footer-address {
    font-style: normal;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

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

.footer-address a:hover {
    text-decoration: underline;
}

.footer-news {
    list-style: none;
}

.footer-news li {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-news a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition-base);
}

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

.news-date {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

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

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://travislawgroup.com/wp-content/uploads/2018/11/Gavel_HiRes_Resources.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 52, 90, 0.85) 0%, rgba(42, 52, 90, 0.65) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.page-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
}

/* About Content */
.about-content {
    padding: var(--spacing-xl) 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.about-intro-text {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.about-intro-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    font-size: 1.125rem;
}

.what-we-do-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-item {
    padding: var(--spacing-lg);
    background-color: var(--color-bg-light);
    border-radius: 8px;
    transition: var(--transition-base);
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    color: white;
    transition: var(--transition-base);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(139, 115, 85, 0.3);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
}

.feature-item h5 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    font-weight: 600;
    text-align: center;
}

.feature-item p {
    line-height: 1.8;
    color: var(--color-text-light);
    text-align: left;
}

.experience-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-light);
}

.experience-title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-primary);
    font-weight: 600;
}

.practice-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.practice-area-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
}

.practice-area-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.practice-area-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    color: white;
    transition: var(--transition-base);
}

.practice-area-card:hover .practice-area-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(139, 115, 85, 0.3);
}

.practice-area-icon svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
}

.practice-area-card h5 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.practice-area-card h5 a {
    color: var(--color-primary);
    transition: var(--transition-base);
}

.practice-area-card h5 a:hover {
    color: var(--color-secondary);
}

.separator-small {
    width: 50px;
    height: 2px;
    background-color: var(--color-secondary);
    margin: var(--spacing-sm) 0 var(--spacing-md);
}

.practice-area-card p {
    line-height: 1.8;
    color: var(--color-text-light);
    text-align: left;
}

.testimonials-section-about {
    position: relative;
    padding: var(--spacing-xl) 0;
    background-color: #f5f3f0;
    overflow: hidden;
}

.testimonials-background-about {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://travislawgroup.com/wp-content/uploads/2016/01/shutterstock_121380613-1024x768_bronze3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

.testimonials-background-about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(245, 243, 240, 0.5) 0%,
        rgba(245, 243, 240, 0.4) 50%,
        rgba(245, 243, 240, 0.5) 100%
    );
    z-index: 1;
}

.testimonials-section-about .container {
    position: relative;
    z-index: 2;
}

.testimonials-subtitle-about {
    font-size: 1.25rem;
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.testimonials-title-about {
    font-size: 2rem;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.testimonials-section-about .testimonial-quote p {
    color: #2a345a;
    font-size: 1.125rem;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.testimonials-section-about .testimonial-author {
    color: #9b825e;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.values-section {
    margin-top: var(--spacing-xl);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.value-card {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--color-bg-light);
    border-radius: 8px;
    transition: var(--transition-base);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    line-height: 1.8;
}

/* Practice Section */
.practice-section {
    padding: var(--spacing-xl) 0;
}

.practice-section-alt {
    background-color: var(--color-bg-light);
}

.practice-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.practice-content {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.practice-content p {
    font-size: 1.125rem;
    line-height: 1.8;
}

.practice-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.practice-service {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border-left: 4px solid var(--color-secondary);
}

.practice-service:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.practice-service h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.practice-service p {
    line-height: 1.8;
    color: var(--color-text-light);
}

/* Consultation Info Section */
.consultation-info-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.consultation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.consultation-card.highlight-card {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: white;
    border-top-color: white;
}

.highlight-content {
    flex: 1;
}

.consultation-card.highlight-card .consultation-icon svg {
    width: 24px;
    height: 24px;
}

.consultation-card.highlight-card .consultation-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.consultation-card.highlight-card h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: white;
}

.consultation-card.highlight-card p {
    margin-bottom: 0;
    font-size: 1rem;
    color: white;
}

.consultation-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.consultation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.consultation-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.consultation-card:hover::before {
    transform: scaleX(1);
}

.consultation-card.highlight-card {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: white;
    border-top-color: white;
}

.consultation-card.highlight-card h2,
.consultation-card.highlight-card p {
    color: white;
}

.consultation-card.highlight-card .phone-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.consultation-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: white;
    transition: all 0.3s ease;
}

.consultation-card:hover .consultation-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(139, 115, 85, 0.3);
}

.consultation-card h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.consultation-card p {
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.consultation-card p:last-child {
    margin-bottom: 0;
}

.fees-content {
    margin-top: var(--spacing-md);
}

.payment-badges {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.payment-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.phone-link {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}

.phone-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.contact-section.consultation-form-section {
    background-color: #f5f5f5;
    background: linear-gradient(180deg, #f5f5f5 0%, #f8f8f8 100%);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    flex-shrink: 0;
}

.contact-info > p {
    flex-shrink: 0;
    margin-bottom: 0;
}

.contact-details {
    margin: var(--spacing-lg) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    flex: 1;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--color-secondary);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.contact-card-content {
    flex: 1;
    width: 100%;
}

.contact-card-content h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
    font-weight: 600;
}

.contact-card-content address,
.contact-card-content p {
    line-height: 1.6;
    color: var(--color-text-light);
    font-style: normal;
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.contact-card-content address {
    font-style: normal;
}

.contact-card-content a {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-card-content a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.service-areas {
    margin-top: var(--spacing-lg);
}

.service-areas-full-width {
    grid-column: 1 / -1;
    margin-top: 0;
}

.service-areas-card {
    background: white;
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--color-secondary);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.service-areas-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-areas-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-areas-card:hover::before {
    transform: scaleX(1);
}

.service-areas-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.service-areas-card:hover .service-areas-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.service-areas-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.service-areas-content {
    flex: 1;
    width: 100%;
}

.service-areas-content h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
    font-weight: 600;
}

.service-areas-intro {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.areas-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-xs);
    margin: var(--spacing-sm) 0;
    list-style: none;
    padding-left: 0;
}

.areas-list li {
    padding-left: var(--spacing-sm);
    position: relative;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.areas-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

.service-areas-details {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
}

.service-areas-details p {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.service-areas-details strong {
    color: var(--color-primary);
    font-weight: 600;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(139, 115, 85, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 0.625rem;
}

.form-header {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.contact-form-wrapper h2 {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    margin-bottom: 0;
    color: var(--color-primary);
    font-weight: 600;
    font-family: var(--font-heading);
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
}

.contact-form .btn-lg {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    background: var(--color-secondary) !important;
    border: none !important;
    text-transform: uppercase;
}

.contact-form .btn-lg::before {
    display: none;
}

.contact-form .btn-lg:hover {
    background: #7a6348 !important;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contact-form .btn-lg:active {
    transform: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.contact-form .btn-lg svg {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: var(--color-text);
    width: 100%;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-lighter);
    opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(139, 115, 85, 0.1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(139, 115, 85, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-body);
}

/* Reorganized Contact Section Styles */
.contact-form-section {
    margin-bottom: var(--spacing-xl);
}

.contact-form-featured {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-featured .form-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.contact-form-featured .form-header h2 {
    margin-bottom: var(--spacing-sm);
}

.contact-form-featured .form-header p {
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.contact-info-section {
    margin-bottom: var(--spacing-xl);
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.service-areas-section {
    margin-top: var(--spacing-xl);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Resource Section */
.resource-section {
    padding: var(--spacing-xl) 0;
}

.resource-section-alt {
    background-color: var(--color-bg-light);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.resource-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.resource-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.resource-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.resource-card ul {
    list-style: none;
}

.resource-card li {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    position: relative;
}

.resource-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

.resource-card a {
    color: var(--color-text);
    transition: var(--transition-base);
}

.resource-card a:hover {
    color: var(--color-secondary);
    padding-left: 4px;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.glossary-item {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.glossary-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.glossary-item p {
    line-height: 1.8;
    color: var(--color-text-light);
}

/* News Section */
.news-section {
    padding: var(--spacing-xl) 0;
}

.news-section-alt {
    background-color: var(--color-bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.news-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.news-date {
    font-size: 0.875rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.news-excerpt {
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.news-link {
    color: var(--color-secondary);
    font-weight: 600;
    transition: var(--transition-base);
}

.news-link:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.media-mentions {
    margin-top: var(--spacing-lg);
}

.mention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.mention-item {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.mention-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mention-item p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Team Section */
.team-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.team-member {
    background-color: white;
    border-radius: 12px;
    overflow: visible;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    padding-top: calc(100px + var(--spacing-md));
    padding-bottom: var(--spacing-lg);
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
    text-align: center;
    position: relative;
}

.team-member:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.team-image {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid white;
    box-shadow: var(--shadow-lg);
    background-color: var(--color-bg-light);
    z-index: 2;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.team-member:hover .team-image img {
    transform: scale(1.05);
}

.team-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-light);
    color: var(--color-text-lighter);
    border-radius: 50%;
}

.team-placeholder svg {
    width: 80px;
    height: 80px;
}

.team-info {
    padding: 0;
    text-align: left;
}

.team-name {
    font-size: 1.75rem;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
    font-weight: 600;
    text-align: center;
}

.team-title {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
}

.team-bio-wrapper {
    position: relative;
}

.team-bio {
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
    text-align: left;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-base);
}

.team-bio-wrapper.expanded .team-bio {
    display: block;
    -webkit-line-clamp: unset;
}

.team-bio-toggle {
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: var(--spacing-xs) 0;
    margin-top: var(--spacing-xs);
    text-align: left;
    transition: var(--transition-base);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.team-bio-toggle:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.team-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.credential {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-bg-light);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 600;
}

/* Active state for submenu parent */
.nav-item-has-submenu .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-accent);
}

/* Responsive Design */
@media (max-width: 968px) {
    /* Hide the gold line on mobile - we use the '+' icon instead */
    .nav-item-has-submenu .nav-link.active::after {
        display: none;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-primary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
        box-shadow: var(--shadow-lg);
    }
    
    .nav.mobile-active {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: var(--spacing-md);
        gap: 0;
    }
    
    .nav-list > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list > li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }
    
    .nav-item-has-submenu > .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-item-has-submenu > .nav-link::after {
        content: '+';
        font-size: 1.5rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }
    
    .nav-item-has-submenu.active > .nav-link::after {
        transform: rotate(45deg);
    }
    
    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(0, 0, 0, 0.3);
        margin-top: 0;
        margin-left: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
        padding: 0;
    }
    
    .nav-item-has-submenu.active .nav-submenu {
        max-height: 1000px;
        padding: var(--spacing-xs) 0;
    }
    
    .nav-submenu a {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }
    
    /* Hide nested submenus by default - even if parent submenu is visible */
    .nav-submenu .nav-submenu-nested,
    ul.nav-submenu.nav-submenu-nested {
        position: static !important;
        display: none !important;
        transform: none !important;
        background-color: rgba(0, 0, 0, 0.2);
        margin-left: 0;
        box-shadow: none;
        padding: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Also hide nested submenu list items by default */
    .nav-submenu .nav-submenu-nested li,
    ul.nav-submenu.nav-submenu-nested li {
        display: none !important;
    }
    
    /* Show nested submenu only when parent item is active - be very specific */
    .nav-submenu > .nav-item-has-submenu.active > .nav-submenu-nested,
    .nav-submenu > .nav-item-has-submenu.active > ul.nav-submenu.nav-submenu-nested,
    .nav-item-has-submenu.active > .nav-submenu-nested,
    .nav-item-has-submenu.active > ul.nav-submenu.nav-submenu-nested {
        display: block !important;
        max-height: 1000px !important;
        padding: var(--spacing-xs) 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Show nested submenu list items only when parent item is active */
    .nav-submenu > .nav-item-has-submenu.active .nav-submenu-nested li,
    .nav-submenu > .nav-item-has-submenu.active ul.nav-submenu.nav-submenu-nested li,
    .nav-item-has-submenu.active .nav-submenu-nested li,
    .nav-item-has-submenu.active ul.nav-submenu.nav-submenu-nested li {
        display: list-item !important;
    }
    
    /* Ensure nested submenus are hidden when parent is NOT active - override any other rules */
    .nav-submenu > .nav-item-has-submenu:not(.active) > .nav-submenu-nested,
    .nav-submenu > .nav-item-has-submenu:not(.active) > ul.nav-submenu.nav-submenu-nested,
    .nav-item-has-submenu:not(.active) > .nav-submenu-nested,
    .nav-item-has-submenu:not(.active) > ul.nav-submenu.nav-submenu-nested {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        padding: 0 !important;
    }
    
    .nav-submenu-nested a {
        padding: var(--spacing-sm) var(--spacing-xl);
        font-size: 0.85rem;
    }
    
    .submenu-chevron {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Ensure touch targets are large enough */
    .nav-link,
    .mobile-menu-toggle,
    .header-cta-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav.mobile-active {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .practice-services {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.25rem;
    }
    
    .page-header {
        min-height: 400px;
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header Mobile */
    .header {
        padding: var(--spacing-xs) 0;
    }
    
    .header-content {
        flex-wrap: nowrap;
        padding: 0 var(--spacing-sm);
    }
    
    .logo {
        order: 1;
        flex-shrink: 0;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .nav {
        order: 2;
    }
    
    .header-actions {
        order: 3;
        margin-left: auto;
        gap: var(--spacing-xs);
        flex-shrink: 0;
    }
    
    .header-cta-btn {
        padding: 0.625rem 1rem;
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .header-cta-btn .cta-text {
        font-size: 0.75rem;
        display: none;
    }
    
    .header-cta-btn .phone-icon {
        width: 18px;
        height: 18px;
    }
    
    .mobile-menu-toggle {
        padding: var(--spacing-xs);
    }
    
    /* Hero Section Mobile */
    .hero {
        height: 70vh;
        min-height: 450px;
        margin-top: 70px;
    }
    
    .hero-content {
        padding: var(--spacing-md) var(--spacing-sm);
        padding-bottom: calc(var(--spacing-md) + 60px);
    }
    
    .hero-text-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-logo img {
        max-width: 180px;
        max-height: 90px;
    }
    
    .hero-tagline {
        font-size: 1.125rem;
        margin-top: var(--spacing-xs);
    }
    
    .hero-description {
        font-size: 1rem;
        margin-top: var(--spacing-sm);
    }
    
    .hero-cta {
        display: none;
    }
    
    .hero-cta .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-controls {
        bottom: calc(var(--spacing-md) + 40px);
        padding: var(--spacing-xs) var(--spacing-md);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
    
    .hero-prev,
    .hero-next {
        width: 36px;
        height: 36px;
    }
    
    .hero-prev svg,
    .hero-next svg {
        width: 16px;
        height: 16px;
    }
    
    /* Typography Mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    h6 { font-size: 1rem; }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    /* Services Mobile */
    .services-overview {
        padding: var(--spacing-lg) 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        margin-bottom: var(--spacing-md);
    }
    
    .service-image {
        height: 250px;
    }
    
    .service-content {
        padding: var(--spacing-md);
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    /* FAQ Mobile - Modern Design */
    .faqs-section {
        padding: var(--spacing-lg) 0;
        background-color: #fafafa;
    }
    
    .faqs-wrapper .section-heading {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
        padding: 0 var(--spacing-sm);
    }
    
    .faq-grid {
        padding: 0 var(--spacing-sm);
    }
    
    .faq-item {
        margin-bottom: var(--spacing-sm);
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        border-top: 3px solid var(--color-secondary);
        overflow: hidden;
        background: white;
    }
    
    .faq-item.active {
        box-shadow: 0 4px 20px rgba(139, 115, 85, 0.15);
        transform: none;
    }
    
    .faq-question {
        padding: 1.125rem 1rem;
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.5;
        gap: 0.75rem;
        min-height: 60px;
        align-items: center;
    }
    
    .faq-text {
        flex: 1;
        padding-right: 0.5rem;
        font-size: 0.9375rem;
        line-height: 1.5;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 1.25rem;
        flex-shrink: 0;
        background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 300;
        transition: all 0.3s ease;
    }
    
    .faq-item.active .faq-icon {
        transform: rotate(45deg);
        background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    }
    
    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
    }
    
    .faq-item.active .faq-answer {
        max-height: 2000px;
        opacity: 1;
    }
    
    .faq-answer p {
        padding: 0 1rem 1.125rem;
        font-size: 0.875rem;
        line-height: 1.7;
        color: #555;
        margin: 0;
    }
    
    .faq-answer p:first-child {
        padding-top: 0.5rem;
    }
    
    .faq-answer p:last-child {
        margin-bottom: 0;
        padding-bottom: 1.125rem;
    }
    
    /* Testimonials Mobile */
    .testimonials {
        padding: var(--spacing-lg) 0;
    }
    
    .testimonials-title {
        font-size: 1.75rem;
    }
    
    .testimonial-quote p {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }
    
    /* Stats Mobile */
    .stats-section {
        padding: 60px 0 80px;
        background-attachment: scroll;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .stat-item {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .stat-description {
        font-size: 0.875rem;
    }
    
    .stats-carousel-track {
        gap: var(--spacing-md);
    }
    
    .stats-carousel-prev,
    .stats-carousel-next {
        width: 36px;
        height: 36px;
    }
    
    .stats-carousel-prev {
        left: -8px;
    }
    
    .stats-carousel-next {
        right: -8px;
    }
    
    /* Quick Links Mobile */
    .links-grid {
        display: none !important; /* Hide grid on mobile - carousel shows instead */
    }
    
    .link-card {
        padding: var(--spacing-sm) 0;
    }
    
    /* CTA Mobile */
    .cta-section {
        padding: var(--spacing-lg) 0;
    }
    
    .cta-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
    }
    
    /* Page Header Mobile */
    .page-header {
        height: 50vh;
        min-height: 350px;
        padding: var(--spacing-md) 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.125rem;
    }
    
    /* About Mobile */
    .about-content {
        padding: var(--spacing-lg) 0;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .about-intro-text {
        padding: 0 var(--spacing-sm);
    }
    
    .about-text h2 {
        font-size: 1.75rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .practice-areas-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .practice-area-card {
        padding: var(--spacing-md);
    }
    
    /* Practice Section Mobile */
    .practice-section {
        padding: var(--spacing-lg) 0;
    }
    
    .practice-content {
        padding: 0 var(--spacing-sm);
    }
    
    .practice-content p {
        font-size: 1rem;
    }
    
    .practice-services {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .practice-service {
        padding: var(--spacing-md);
    }
    
    .practice-service h3 {
        font-size: 1.25rem;
    }
    
    /* Consultation Mobile - Modern Design */
    .consultation-info-section {
        padding: var(--spacing-lg) 0;
        background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    }
    
    .consultation-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-sm);
    }
    
    .consultation-card {
        padding: 1.25rem;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        margin-bottom: var(--spacing-sm);
    }
    
    .consultation-card:hover {
        transform: none;
    }
    
    .consultation-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .consultation-card h2 {
        font-size: 1.375rem;
        margin-bottom: 0.875rem;
        line-height: 1.3;
    }
    
    .consultation-card p {
        font-size: 0.9375rem;
        line-height: 1.7;
        margin-bottom: 0.75rem;
    }
    
    .consultation-card.highlight-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.25rem;
        background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(139, 115, 85, 0.2);
    }
    
    .consultation-card.highlight-card .consultation-icon {
        margin: 0 auto var(--spacing-sm);
        width: 56px;
        height: 56px;
        background: rgba(255, 255, 255, 0.25);
    }
    
    .consultation-card.highlight-card h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .consultation-card.highlight-card p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
    
    .fees-content {
        margin-top: 1rem;
    }
    
    .payment-badges {
        margin-bottom: 1rem;
    }
    
    .payment-logo {
        height: 36px;
    }
    
    /* Contact Mobile - Modern Design */
    .contact-section {
        padding: var(--spacing-lg) 0;
        background: #fafafa;
    }
    
    .contact-section.consultation-form-section {
        background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    }
    
    .contact-form-section-inner {
        padding: 0 var(--spacing-sm);
    }
    
    .contact-form-wrapper {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        background: white;
        border: none;
    }
    
    .contact-form-featured {
        max-width: 100%;
        padding: 1.5rem 1.25rem;
    }
    
    .contact-form-featured .form-header {
        text-align: left;
        margin-bottom: 1.25rem;
    }
    
    .contact-form-featured .form-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--color-primary);
        font-weight: 700;
    }
    
    .contact-form-featured .form-header p {
        font-size: 0.9375rem;
        color: #666;
        line-height: 1.6;
        margin-bottom: 0;
    }
    
    .form-fields {
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 0;
    }
    
    .form-group label {
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--color-primary);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.9375rem;
        border-radius: 8px;
        border: 1.5px solid #e0e0e0;
        transition: all 0.2s ease;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--color-secondary);
        box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
        outline: none;
    }
    
    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .contact-form .btn-lg {
        margin-top: 1rem;
        padding: 1rem 1.5rem;
        font-size: 0.9375rem;
        font-weight: 700;
        border-radius: 8px;
        background: var(--color-secondary) !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(139, 115, 85, 0.2);
    }
    
    .contact-form .btn-lg:hover {
        background: #7a6348 !important;
        box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-info h2 {
        font-size: 1.75rem;
    }
    
    .contact-details {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .contact-info-section {
        padding: 0 var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }
    
    .contact-info-section .section-heading {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
        text-align: center;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        max-width: 100%;
    }
    
    .contact-card {
        padding: 1.25rem;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        background: white;
        transition: all 0.3s ease;
    }
    
    .contact-card:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.875rem;
        border-radius: 12px;
    }
    
    .contact-card-content h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-card-content address,
    .contact-card-content p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
    
    .contact-card-content a {
        color: var(--color-secondary);
        font-weight: 600;
    }
    
    .service-areas-section {
        padding: 0 var(--spacing-sm);
        margin-top: var(--spacing-lg);
    }
    
    .service-areas-card {
        flex-direction: column;
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        background: white;
        border-top: 3px solid var(--color-secondary);
    }
    
    .service-areas-icon {
        margin: 0 auto 1rem;
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
        border-radius: 12px;
        color: white;
    }
    
    .service-areas-content {
        text-align: center;
    }
    
    .service-areas-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
        color: var(--color-primary);
        font-weight: 700;
        font-family: var(--font-heading);
    }
    
    .service-areas-intro {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
        line-height: 1.7;
        color: #666;
    }
    
    .areas-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
        margin-bottom: 1.5rem;
        list-style: none;
        padding: 0;
        text-align: left;
    }
    
    .areas-list li {
        font-size: 0.9375rem;
        padding: 0.5rem 0.75rem;
        background: #f8f8f8;
        border-radius: 8px;
        color: var(--color-primary);
        font-weight: 500;
        position: relative;
        padding-left: 1.75rem;
    }
    
    .areas-list li::before {
        content: '✓';
        position: absolute;
        left: 0.5rem;
        color: var(--color-secondary);
        font-weight: bold;
        font-size: 0.875rem;
    }
    
    .service-areas-details {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 2px solid #e8e8e8;
        text-align: left;
    }
    
    .service-areas-details p {
        font-size: 0.875rem;
        line-height: 1.8;
        margin-bottom: 1rem;
        color: #555;
    }
    
    .service-areas-details p:last-child {
        margin-bottom: 0;
    }
    
    .service-areas-details strong {
        color: var(--color-primary);
        font-weight: 700;
        display: block;
        margin-bottom: 0.375rem;
        font-size: 0.9375rem;
    }
    
    /* Team Mobile */
    .team-section {
        padding: var(--spacing-lg) 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .team-member {
        padding-top: calc(80px + var(--spacing-md));
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .team-image {
        width: 160px;
        height: 160px;
        top: -60px;
        border-width: 4px;
    }
    
    .team-name {
        font-size: 1.5rem;
    }
    
    .team-title {
        font-size: 0.95rem;
    }
    
    .team-bio {
        font-size: 0.9rem;
    }
    
    .testimonials-background-about {
        background-attachment: scroll;
    }
    
    /* Resources Mobile */
    .resource-section {
        padding: var(--spacing-lg) 0;
    }
    
    .resource-card {
        padding: var(--spacing-md);
    }
    
    .resource-card h3 {
        font-size: 1.25rem;
    }
    
    .glossary-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .glossary-item {
        padding: var(--spacing-md);
    }
    
    /* News Mobile */
    .news-section {
        padding: var(--spacing-lg) 0;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .news-logo {
        font-size: 0.65rem;
        bottom: 6px;
        padding: 0 6px;
    }
    
    .news-carousel-track {
        gap: 12px;
    }
    
    .news-carousel-prev,
    .news-carousel-next {
        width: 36px;
        height: 36px;
    }
    
    .news-carousel-prev {
        left: -8px;
    }
    
    .news-carousel-next {
        right: -8px;
    }
    
    .news-card {
        padding: var(--spacing-md);
    }
    
    .news-title {
        font-size: 1.25rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-section {
        margin-bottom: var(--spacing-md);
    }
    
    .footer-title {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .footer-description {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .footer-news {
        font-size: 0.875rem;
    }
    
    .footer-news li {
        margin-bottom: var(--spacing-xs);
        padding-bottom: var(--spacing-xs);
    }
    
    .footer-address {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: var(--spacing-md);
    }
    
    .footer-bottom p {
        margin-bottom: var(--spacing-sm);
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    /* Header Extra Small */
    .header-content {
        padding: 0 var(--spacing-xs);
    }
    
    .logo-img {
        height: 45px;
    }
    
    .header-cta-btn {
        padding: 0.5rem 0.75rem;
    }
    
    /* Hero Extra Small */
    .hero {
        height: 65vh;
        min-height: 400px;
        margin-top: 65px;
    }
    
    .hero-content {
        padding-bottom: calc(var(--spacing-md) + 50px);
    }
    
    .hero-controls {
        bottom: calc(var(--spacing-sm) + 30px);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-logo img {
        max-width: 150px;
        max-height: 75px;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-cta .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Typography Extra Small */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    /* Buttons Extra Small */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Services Extra Small */
    .service-image {
        height: 200px;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    /* Stats Extra Small */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-item {
        padding: var(--spacing-sm);
    }
    
    /* Ensure carousel items don't overflow on extra small screens */
    .stats-carousel-wrapper {
        padding: 0 !important;
    }
    
    .stats-carousel-container {
        padding: 0 !important;
        overflow: hidden;
        width: 100%;
    }
    
    .stats-carousel-track {
        gap: 0 !important;
        width: 100%;
    }
    
    .stats-carousel-track .stat-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        min-width: 0;
        margin: 0 !important;
    }
    
    /* Trust Badges Extra Small */
    .badges-grid {
        gap: var(--spacing-xs);
        padding: 0 var(--spacing-xs);
    }
    
    .badge-item img {
        height: 45px;
    }
    
    .badge-item:nth-child(1) img {
        height: 55px;
    }
    
    .badge-item:nth-child(4) img {
        height: 50px;
    }
    
    .badge-item:nth-child(8) img {
        height: 50px;
    }
    
    /* Footer Extra Small */
    .footer-content {
        gap: var(--spacing-md);
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-description {
        font-size: 0.8rem;
    }
    
    .footer-news {
        font-size: 0.8rem;
    }
    
    .footer-address {
        font-size: 0.8rem;
    }
    
    .footer-logo img {
        height: 45px;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
    }
    
    /* Contact Extra Small */
    .contact-form-wrapper {
        padding: var(--spacing-sm);
    }
    
    .contact-card {
        padding: var(--spacing-sm);
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto var(--spacing-sm);
    }
    
    /* News Extra Small */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .news-logo {
        font-size: 0.6rem;
        bottom: 4px;
    }
    
    /* Team Extra Small */
    .team-image {
        width: 140px;
        height: 140px;
        top: -50px;
    }
    
    .team-member {
        padding-top: calc(70px + var(--spacing-sm));
    }
    
    /* Page Header Extra Small */
    .page-header {
        min-height: 300px;
        height: 40vh;
    }
    
    /* CTA Extra Small */
    .cta-title {
        font-size: 1.5rem;
    }
    
    /* Links Extra Small */
    .links-grid {
        padding: 0 var(--spacing-xs);
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
    }
    
    .link-title {
        font-size: 0.8rem;
    }
    
    .link-description {
        font-size: 0.8rem;
    }
}

/* Mobile Responsive Styles for Family Law Pages */
@media (max-width: 768px) {
    /* Hero Slider Section - Mobile */
    .hero-slider-section {
        height: 50vh !important;
        min-height: 400px !important;
    }
    
    .hero-slide-content {
        padding: 0 20px !important;
        text-align: center;
    }
    
    .hero-slide-content h1 {
        font-size: clamp(28px, 8vw, 42px) !important;
        margin-bottom: 16px !important;
    }
    
    .hero-slide-content .hero-subtitle {
        font-size: clamp(16px, 4vw, 20px) !important;
        margin-bottom: 12px !important;
    }
    
    .hero-slide-content .hero-description {
        font-size: clamp(14px, 3.5vw, 18px) !important;
        margin-bottom: 24px !important;
        max-width: 100% !important;
    }
    
    .btn-modern {
        padding: 12px 28px !important;
        font-size: 14px !important;
        width: auto;
        display: inline-block;
    }
    
    /* Practices Main Content - Mobile */
    .practices-main-content {
        padding: 40px 0 !important;
    }
    
    .practices-main-content .container {
        padding: 0 20px !important;
    }
    
    .practices-main-content h1 {
        font-size: clamp(24px, 6vw, 32px) !important;
        margin-bottom: 12px !important;
        padding: 0 10px;
    }
    
    /* Content Layout - Mobile */
    .practices-main-content [style*="display: flex"] {
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .practices-main-content [style*="flex: 2"] {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    .practices-main-content [style*="flex: 1"] {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Content Cards - Mobile */
    .content-card {
        padding: 24px 20px !important;
        margin-bottom: 24px !important;
        border-radius: 12px !important;
    }
    
    .content-card h2,
    .content-card h3 {
        font-size: clamp(20px, 5vw, 24px) !important;
        margin-bottom: 16px !important;
    }
    
    .content-card p {
        font-size: 16px !important;
        line-height: 1.7 !important;
        margin-bottom: 16px !important;
    }
    
    /* Features Grid - Mobile */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin: 32px 0 !important;
    }
    
    .feature-card {
        padding: 24px 20px !important;
        border-radius: 12px !important;
    }
    
    .feature-icon {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 16px !important;
    }
    
    .feature-icon svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    .feature-card h4 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .feature-card p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    
    /* Testimonials - Mobile */
    .testimonials_holder {
        padding: 32px 20px !important;
        border-radius: 16px !important;
        margin: 32px auto !important;
    }
    
    .testimonial_text_holder p {
        font-size: 16px !important;
        padding: 0 10px !important;
        margin-bottom: 20px !important;
    }
    
    .testimonial_text_holder p::before {
        font-size: 48px !important;
        left: -5px !important;
        top: -15px !important;
    }
    
    .testimonial_author {
        font-size: 14px !important;
    }
    
    .testimonials_nav {
        gap: 12px !important;
        margin-top: 24px !important;
    }
    
    .testimonial_nav_btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Sidebar Widgets - Mobile */
    .sidebar-widget {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .sidebar-widget h5 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .sidebar-widget p,
    .sidebar-widget li {
        font-size: 14px !important;
    }
    
    /* Practice Areas Sidebar - Mobile */
    .practice-areas-sidebar li {
        padding: 8px 0 !important;
    }
    
    .practice-areas-sidebar ol {
        margin-top: 8px !important;
        padding-left: 15px !important;
    }
    
    .practice-areas-sidebar ol li {
        padding: 4px 0 !important;
    }
    
    /* Form Elements - Mobile */
    .consultation-form input,
    .consultation-form textarea {
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    .consultation-form button {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    /* Separator - Mobile */
    .separator {
        margin: 16px auto !important;
    }
    
    .separator.small {
        width: 40px !important;
        height: 2px !important;
    }
    
    /* CTA Section - Mobile */
    .practices-main-content .cta-section {
        padding: 32px 20px !important;
        margin: 32px 0 !important;
    }
    
    .practices-main-content .cta-section h3 {
        font-size: clamp(18px, 4.5vw, 22px) !important;
        margin-bottom: 16px !important;
    }
    
    .practices-main-content .cta-section .btn-cta {
        padding: 12px 24px !important;
        font-size: 14px !important;
        width: 100%;
        text-align: center;
    }
    
    /* Practice Areas Links - Mobile */
    .practice-areas-links {
        margin: 24px 0 !important;
    }
    
    .practice-areas-links h3 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .practice-areas-links ul {
        padding-left: 20px !important;
        margin-bottom: 16px !important;
    }
    
    .practice-areas-links li {
        margin-bottom: 8px !important;
        font-size: 15px !important;
    }
    
    .practice-areas-links p {
        font-size: 14px !important;
        margin-top: 16px !important;
    }
    
    /* FAQ Section - Mobile */
    .faq-section {
        margin: 24px 0 !important;
    }
    
    .faq-section h3 {
        font-size: 18px !important;
        padding: 16px 0 !important;
        margin-bottom: 16px !important;
    }
    
    .faq-item {
        margin-bottom: 12px !important;
        border-radius: 8px !important;
    }
    
    .faq-question {
        padding: 16px !important;
        font-size: 14px !important;
    }
    
    .faq-answer {
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
    }
    
    .faq-item.active .faq-answer {
        max-height: 2000px !important;
        opacity: 1 !important;
        padding: 0 16px 16px !important;
    }
    
    .faq-answer p {
        font-size: 14px !important;
    }
    
    .faq-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 18px !important;
    }
    
    /* Tags - Mobile */
    .tags {
        padding: 16px 0 !important;
        font-size: 14px !important;
    }
    
    /* General Text Improvements - Mobile */
    .practices-main-content p {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }
    
    .practices-main-content ul,
    .practices-main-content ol {
        padding-left: 20px !important;
        margin: 16px 0 !important;
    }
    
    .practices-main-content li {
        font-size: 15px !important;
        line-height: 1.7 !important;
        margin-bottom: 8px !important;
    }
    
    /* Practice List - Mobile */
    .practice-list {
        padding-left: 20px !important;
        margin: 20px 0 !important;
    }
    
    .practice-list li {
        font-size: 15px !important;
        line-height: 1.7 !important;
        margin-bottom: 10px !important;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .hero-slider-section {
        height: 45vh !important;
        min-height: 350px !important;
    }
    
    .hero-slide-content h1 {
        font-size: 24px !important;
    }
    
    .hero-slide-content .hero-subtitle {
        font-size: 16px !important;
    }
    
    .hero-slide-content .hero-description {
        font-size: 14px !important;
    }
    
    .btn-modern {
        padding: 10px 24px !important;
        font-size: 13px !important;
    }
    
    .practices-main-content {
        padding: 30px 0 !important;
    }
    
    .practices-main-content .container {
        padding: 0 15px !important;
    }
    
    .content-card {
        padding: 20px 15px !important;
    }
    
    .feature-card {
        padding: 20px 15px !important;
    }
    
    .testimonials_holder {
        padding: 24px 15px !important;
    }
    
    .sidebar-widget {
        padding: 16px !important;
    }
}

