* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #3884cc;
    --dark-blue: #2a5f99;
    --light-blue: #e8f4ff;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --bg-gray: #f8f9fa;
    --border-gray: #e0e0e0;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    background-color: #3884cc;
    margin: 0;
    width: 100vw;
    top: 0;
    position: sticky;
    z-index: 1000;
}

header #header-top #header-top-left {
    align-items: center;
    color: white;
    display: flex;
    justify-content: center;
    align-self: flex-start;
    height: auto;
    padding-bottom: 15px;
}

header #header-top #header-top-left .btn-call-us {
    background-color: white;
    border: 1px solid white;
    border-radius: 5px;
    font-family: "Raleway";
    font-size: 1.2rem;
    margin-top: 10px;
    padding: 5px;
    box-shadow: 5px 5px 5px darkblue;
}

header #header-top #header-top-left .btn-call-us a {
    color: #3884cc;
    font-weight: bold;
    text-decoration: none;
}

header #header-top #header-top-left .btn-call-us:active {
    background-color: lightskyblue;
    border: 1px solid white;
}

header #header-top #header-top-left .btn-call-us:active a:active {
    color: white !important;
}

header #header-top #header-top-left p {
    font-family: "Raleway";
    font-size: 1rem;
    font-weight: bold;
    padding: 5px 5px 0px 5px;
    text-align: center;
    margin: 0;
}

header #header-top #header-top-left a {
    color: white;
}

nav {
    position: sticky;
    margin: 0;
    padding: 0;
    top: 0;
    background-color: white;
    z-index: 1000;
    border-bottom: 2px solid #3884cc;
}

nav #mobile-nav-menu-button {
    margin-bottom: -10px;
    padding: 0;
    width: 48px;
    height: 48px;
}

nav .nav-menu {
    clear: both;
    position: sticky;
    top: 0;
    z-index: 101;
    list-style-type: none;
    padding: 0px 0px 15px 15px;
    margin: 0;
}

nav .nav-menu .nav-menu-item {
    padding: 5px 0px;
}

nav .nav-menu .nav-menu-item a {
    font-family: "Raleway";
    color: #3884cc;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
}

nav .nav-menu .nav-menu-item-hidden {
    display: none;
}

nav .nav-menu #menu-btn-call-us {
    background-color: white;
    border: 1px solid #3884cc;
    border-radius: 5px;
    font-family: "Raleway";
    font-size: 1.2rem;
    margin-top: 10px;
    padding: 5px;
}

nav .nav-menu #menu-btn-call-us a {
    font-weight: bold;
    color: #3884cc;
    text-decoration: none;
}

nav .nav-menu #menu-btn-call-us a:active {
    color: white !important;
}

nav #nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav #nav-bglogo {
    width: 25%;
    height: 100%;
    max-width: 250px;
    align-self: flex-start;
}

@media screen and (min-width: 700px) {
    header {
        width: auto;
    }
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    nav #nav-container {
        width: 10;
    }
    nav #mobile-nav-menu-button {
        display: none;
    }
    nav .nav-menu {
        list-style-type: none;
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0;
    }
    nav .nav-menu .nav-menu-item {
        padding: 10px;
    }
    nav .nav-menu #nav-menu-item-call-us {
        display: none;
    }
    nav .nav-menu .nav-menu-item:hover {
        background-color: #3884cc;
    }
    nav .nav-menu .nav-menu-item:hover a {
        color: white;
    }
    nav .nav-menu .nav-menu-item-hidden {
        display: block;
    }
    nav .nav-menu #menu-btn-call-us {
        display: none;
    }
    nav #nav-bglogo {
        display: block;
        width: 130px;
    }
    nav #nav-container {
        display: flex;
        margin: auto;
        width: 1300px;
        justify-content: space-between;
        align-items: center;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../../capital-region/assets/images/landing_image.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-highlight {
    color: #ffd700;
    display: block;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(56, 132, 204, 0.4);
    border: 2px solid var(--primary-blue);
}

.cta-button:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(56, 132, 204, 0.6);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.wide-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styling */
section {
    padding: 5rem 0;
}

section.court-directory-section {
    padding: 4rem 0;
}

.section-dark {
    background: var(--bg-gray);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-style: italic;
}

/* Stats Bar */
.stats-bar {
    background: var(--primary-blue);
    color: white;
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 300;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Intro Callout - Featured Section */
.intro-callout {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    box-shadow: 0 10px 40px rgba(56, 132, 204, 0.3);
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.callout-icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.callout-content h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.callout-content p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Info Cards Grid - Two Column Layout */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
    border-left: 4px solid var(--primary-blue);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .intro-callout {
        flex-direction: column;
        padding: 2.5rem;
        text-align: center;
    }

    .callout-icon {
        margin: 0 auto;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .intro-callout {
        padding: 2rem;
    }

    .callout-content h3 {
        font-size: 1.6rem;
    }

    .callout-content p {
        font-size: 1rem;
    }

    .callout-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* Court Directory */
.court-directory-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.court-search-container {
    margin-bottom: 2rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.court-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-gray);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.court-search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(56, 132, 204, 0.2);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

.directory-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.control-btn {
    padding: 0.6rem 1.5rem;
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 132, 204, 0.3);
}

.counties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.county-accordion {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: fit-content;
}

.county-accordion:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.county-header {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.county-header:hover {
    background: var(--light-blue);
    border-left-color: var(--primary-blue);
}

.county-accordion.active .county-header {
    background: linear-gradient(to right, var(--light-blue), white);
    border-left-color: var(--primary-blue);
}

.county-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.county-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

.court-count {
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.county-accordion.active .accordion-icon {
    transform: rotate(180deg);
}

.county-courts {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.county-courts-inner {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.county-courts ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.county-courts li {
    padding: 0.7rem 1rem;
    background: var(--bg-gray);
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.county-courts li:hover {
    background: var(--light-blue);
    border-left-color: var(--primary-blue);
    transform: translateX(3px);
}

.court-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}

.court-link:hover {
    color: var(--primary-blue);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-style: italic;
    display: none;
}

@media (max-width: 900px) {
    .counties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .court-directory-wrapper {
        max-width: 100%;
    }
    
    .county-header {
        padding: 1rem 1.2rem;
    }
    
    .county-name {
        font-size: 1.05rem;
    }
    
    .court-count {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .county-courts ul {
        grid-template-columns: 1fr;
    }
    
    .county-courts-inner {
        padding: 0.8rem 1rem 1rem 1rem;
    }
    
    .directory-controls {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .control-btn {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .county-courts li {
        padding: 0.6rem 0.8rem;
    }
}

/* Guarantee Section */
.guarantee-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.guarantee-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    margin: 2rem auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.guarantee-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.guarantee-box p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-blue);
}

.faq-item h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 20px rgba(56, 132, 204, 0.3);
}

.process-step h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.process-step p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    background: var(--bg-gray);
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-item h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-item p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

/* Map and Contact Section */
.map-address-section {
    background: var(--bg-gray);
    padding: 5rem 0;
}

.map-address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 500px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 0;
}

.contact-form-right {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-gray);
    position: sticky;
    top: 100px;
}

.contact-form-right h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.8rem;
    text-align: center;
}

/* Desktop Layout - Side by Side */
@media (min-width: 1024px) {
    .map-address-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .map-address-grid {
        gap: 2rem;
    }
    
    .contact-form-right {
        padding: 2rem 1.5rem;
    }
}

/* Hide contact form on mobile */
@media (max-width: 1023px) {
    .contact-form-right {
        display: none;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.8;
}

footer a {
    color: var(--primary-blue);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .hero {
        height: auto;
        min-height: 500px;
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .map-address-grid {
        grid-template-columns: 1fr;
    }

    .court-columns {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container,
    .wide-container {
        padding: 0 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .guarantee-box {
        padding: 2rem 1.5rem;
    }
}

/* Reviews Section */
.reviews-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4ff 100%);
    position: relative;
    overflow: hidden;
}

.review-social-links {
    justify-content: center;
    margin: 2rem auto 3rem;
}

.reviews-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 400px;
    height: 400px;
    display: flex;
    align-items: center;
}

.review-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    border-left: 5px solid var(--primary-blue);
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-card.active {
    opacity: 1;
    transform: translateY(0);
}

.review-quote {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 2rem;
}

.review-stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.review-author {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.review-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.review-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot.active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 6px;
}

.review-navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.review-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-nav-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .reviews-carousel {
        min-height: 450px;
        height: 450px;
    }

    .review-card {
        padding: 2rem 1.5rem;
        max-height: 400px;
    }

    .review-quote {
        font-size: 1rem;
    }
}
