/*
Theme Name: TruckLawHub
Theme URI: https://trucklawuhb.com
Description: A professional, high-converting WordPress theme for legal services - specifically designed for truck accident attorneys
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Author: TruckLawHub
Author URI: https://trucklawuhb.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trucklawuhb
Domain Path: /languages
Tags: responsive, legal, services, conversion-optimized, professional

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/

/* =================================
   RESET & BASE STYLES
   ================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #003366;
    --primary-light: #0052a3;
    --primary-darker: #002244;
    --accent-orange: #ff6b35;
    --accent-orange-light: #ff8a5a;
    --accent-purple: #6f42c1;
    --accent-teal: #17a2b8;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-light: #f5f5f5;
    --bg-lighter: #fafafa;
    --bg-white: #ffffff;
    --border-gray: #e0e0e0;
    --border-light: #f0f0f0;
    --success: #2ecc71;
    --success-light: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 40px rgba(0, 51, 102, 0.2);
    --shadow-2xl: 0 20px 60px rgba(0, 51, 102, 0.25);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-lighter) 100%);
    line-height: 1.6;
    font-weight: 400;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 51, 102, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Georgia", serif;
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1em;
    color: var(--text-light);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-orange);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =================================
   BUTTONS
   ================================= */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary,
.btn-primary:visited {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.btn-primary-alt {
    background: transparent;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    position: relative;
}

.btn-primary-alt::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary-alt:hover,
.btn-primary-alt:focus {
    color: var(--bg-white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.btn-primary-alt:hover::after {
    left: 0;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: linear-gradient(135deg, var(--accent-orange-light) 0%, var(--accent-orange) 100%);
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* =================================
   GRID & LAYOUT
   ================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.col-1 {
    grid-column: span 1;
}
.col-2 {
    grid-column: span 2;
}
.col-3 {
    grid-column: span 3;
}
.col-4 {
    grid-column: span 4;
}
.col-5 {
    grid-column: span 5;
}
.col-6 {
    grid-column: span 6;
}
.col-7 {
    grid-column: span 7;
}
.col-8 {
    grid-column: span 8;
}
.col-9 {
    grid-column: span 9;
}
.col-10 {
    grid-column: span 10;
}
.col-11 {
    grid-column: span 11;
}
.col-12 {
    grid-column: span 12;
}

/* Spacing */
.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 40px 0;
}

.section-padding-lg {
    padding: 100px 0;
}

.mt-0 {
    margin-top: 0;
}
.mb-0 {
    margin-bottom: 0;
}
.mb-1 {
    margin-bottom: 1rem;
}
.mb-2 {
    margin-bottom: 2rem;
}
.mb-3 {
    margin-bottom: 3rem;
}

/* =================================
   HEADER & NAVIGATION
   ================================= */
.site-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 250, 250, 0.97) 100%);
    backdrop-filter: blur(15px);
    padding: 18px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(0, 51, 102, 0.08);
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 12px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: '';
    width: 8px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-light));
    border-radius: 4px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover::before {
    width: 12px;
}

.logo span {
    color: var(--accent-orange);
    transition: var(--transition);
}

.logo:hover span {
    color: var(--primary-light);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.3px;
    font-size: 0.98rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-block;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-light));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover {
    color: var(--primary-light);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-light);
}

.main-nav a.active::after {
    width: 100%;
}

/* =================================
   HERO SECTION
   ================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    background-size: 200% 200%;
    color: var(--bg-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    animation: gradientShift 6s ease infinite;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--bg-white);
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
    animation: slideInDown 0.8s ease-out;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subheadline {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 45px;
    max-width: 700px;
    line-height: 1.8;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-cta .btn {
    min-width: 220px;
}

/* HERO FORM STYLING */
.hero-form-container {
    animation: slideInRight 0.8s ease-out 0.3s both;
}

.hero-form-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 45px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b35, #0052a3, #ff6b35);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.hero-form-card h3 {
    color: var(--primary-dark);
    font-size: 1.75rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-form-card > p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1rem;
}

.hero-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.hero-form input,
.hero-form select,
.hero-form textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.hero-form input::placeholder,
.hero-form textarea::placeholder {
    color: var(--text-lighter);
}

.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 82, 163, 0.1);
    background-color: var(--bg-white);
}

.hero-form input:valid,
.hero-form select:valid,
.hero-form textarea:valid {
    border-color: var(--success);
}

.hero-form input:invalid:not(:placeholder-shown),
.hero-form textarea:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 15px;
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--text-lighter);
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Form Success & Error Messages */
.form-success-message,
.form-error-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-success-message {
    background-color: #2ecc71;
    color: white;
    border-left: 4px solid #27ae60;
}

.form-error-message {
    background-color: #e74c3c;
    color: white;
    border-left: 4px solid #c0392b;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =================================
   TRUST SECTION
   ================================= */
.trust-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(0,51,102,0.03)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    pointer-events: none;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.trust-item {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0, 51, 102, 0.1);
    transition: var(--transition);
    position: relative;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    transform: translateX(-50%);
    opacity: 0;
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

.trust-item:hover::before {
    opacity: 1;
}

.trust-item h3 {
    font-size: 2.5rem;
    color: transparent;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 800;
}

.trust-item p {
    color: var(--text-light);
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* =================================
   INFO SECTION
   ================================= */
.info-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(0, 51, 102, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(111, 66, 193, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.info-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.info-content {
    max-width: 750px;
    position: relative;
    z-index: 1;
}

.info-section h2 {
    margin-bottom: 35px;
    font-size: 2.5rem;
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 25px;
    color: var(--text-light);
}

/* =================================
   PRACTICE AREAS SECTION
   ================================= */
.practice-areas {
    background-color: var(--bg-white);
    padding: 80px 0;
    position: relative;
}

.practice-areas::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.practice-areas::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.practice-areas h2 {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.practice-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 51, 102, 0.1);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.practice-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
    z-index: 0;
}

.practice-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.practice-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-light);
}

.practice-card:hover::before {
    right: -20%;
    top: -20%;
}

.practice-card:hover::after {
    opacity: 1;
}

.practice-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.practice-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.practice-card a {
    color: var(--primary-light);
    font-weight: 700;
    display: inline-block;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.practice-card a::after {
    content: ' →';
    display: inline-block;
    transition: var(--transition);
    margin-left: 5px;
}

.practice-card a:hover {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.practice-card a:hover::after {
    transform: translateX(5px);
}

/* =================================
   LOCATIONS SECTION
   ================================= */
.locations {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(0, 51, 102, 0.02) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.locations::before {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.locations h2 {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.location-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.location-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.location-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-left-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.95);
}

.location-item:hover::before {
    opacity: 1;
}

.location-item a {
    color: var(--primary-light);
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.location-item a:hover {
    color: var(--accent-orange);
}

/* =================================
   RESOURCES SECTION
   ================================= */
.resources {
    background-color: var(--bg-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.resources::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.resources h2 {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.resource-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 245, 245, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 14px;
    transition: var(--transition);
    border: 1px solid rgba(0, 51, 102, 0.08);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
    z-index: 0;
}

.resource-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--primary-light);
}

.resource-card:hover::before {
    top: -20%;
    right: -20%;
}

.resource-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.resource-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.resource-card .btn {
    position: relative;
    z-index: 1;
}

/* =================================
   CTA SECTION
   ================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 50%, #003a7a 100%);
    background-size: 200% 200%;
    color: var(--bg-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 6s ease infinite;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 10s linear infinite;
    opacity: 0.3;
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.cta-section h2 {
    color: var(--bg-white);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    font-size: 2.8rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.cta-section .btn {
    min-width: 280px;
    position: relative;
    z-index: 1;
}

/* =================================
   FOOTER
   ================================= */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #002855 50%, var(--primary-darker) 100%);
    color: var(--bg-white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,10 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200% auto;
    background-position: 0 0;
    animation: wave 10s linear infinite;
    opacity: 0.5;
    top: -50px;
}

@keyframes wave {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    color: var(--bg-white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
    padding-bottom: 3px;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-light));
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */
@media (max-width: 768px) {
    .row {
        gap: 20px;
    }

    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        grid-column: span 12;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subheadline {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .main-nav ul {
        gap: 15px;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-padding-lg {
        padding: 70px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .subheadline {
        font-size: 0.95rem;
    }

    .hero {
        padding: 60px 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        padding: 0 15px;
    }

    .practice-grid,
    .locations-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
}
