.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: var(--dark-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card a {
    text-decoration: none;
}

.service-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-description {
    font-size: 16px;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    text-align: left;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-arrow {
    transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.site-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 55px 0;
}

.site-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-cta h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.contact-form-card > p {
    margin: 8px 0 24px;
    color: var(--text-muted);
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--white);
    color: var(--dark-gray);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 3px solid rgba(95, 155, 206, 0.2);
    border-color: var(--primary);
}

.form-honeypot {
    position: absolute;
    left: -9999px;
}

.site-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 50px 0 20px;
    text-align: center;
}

.footer-logo {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links,
.social-links {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-link {
    display: inline-block;
    margin: 0 15px;
    color: var(--white);
    text-decoration: none;
}

.social-links {
    margin-bottom: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.social-icon {
    color: var(--white);
    font-size: 18px;
}

.copyright {
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   DESKTOP NAVIGATION
======================================== */

.desktop-nav {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;

    background: none;
    border: 0;

    color: var(--dark-gray);
    font: inherit;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;

    transition: color 0.2s ease;
}

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

.dropdown-arrow {
    font-size: 11px;
    transition: transform 0.2s ease;
}


/* Desktop Dropdown */

.desktop-dropdown {
    position: absolute;

    top: calc(100% + 18px);
    left: 50%;

    width: 310px;

    padding: 10px;

    background: var(--white);

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(-50%)
        translateY(-8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 200;
}


/* Invisible bridge so dropdown doesn't close
   while mouse moves from Services to menu */

.desktop-dropdown::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    top: -20px;

    height: 20px;
}


.nav-dropdown:hover .desktop-dropdown,
.nav-dropdown:focus-within .desktop-dropdown {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow {
    transform: rotate(180deg);
}


.dropdown-link {
    display: block;

    padding: 13px 15px;

    border-radius: 9px;

    color: var(--dark-gray);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.dropdown-link:hover {
    background: var(--light-gray);
    color: var(--primary);
}

/* ========================================
   MOBILE MENU BUTTON
======================================== */

.mobile-menu-button {
    display: none;

    align-items: center;
    gap: 9px;

    padding: 10px 14px;

    background: transparent;
    border: 0;

    color: var(--dark-gray);

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}


/* ========================================
   MOBILE NAVIGATION OVERLAY
======================================== */

.mobile-nav-overlay {
    position: fixed;

    inset: 0;

    padding: 76px 12px 20px;

    background: rgba(20, 30, 40, 0.4);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    z-index: 1000;
}


.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* White popover */

.mobile-nav-panel {
    width: 100%;
    max-width: 500px;

    margin: 0 auto;

    background: var(--white);

    border-radius: 20px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25);

    overflow: hidden;

    transform: translateY(-15px) scale(0.98);

    transition: transform 0.25s ease;
}


.mobile-nav-overlay.active .mobile-nav-panel {
    transform: translateY(0) scale(1);
}


/* Mobile Panel Header */

.mobile-nav-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 18px 18px 16px;

    border-bottom: 1px solid #e6e9ed;
}


.mobile-nav-logo {
    color: var(--primary);

    font-size: 20px;
    font-weight: 700;

    text-decoration: none;
}


.mobile-nav-close {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    background: var(--white);

    border: 1px solid #dfe3e8;
    border-radius: 12px;

    color: var(--dark-gray);

    font-size: 22px;

    cursor: pointer;
}


/* Main Mobile Links */

.mobile-nav-links {
    padding: 14px 17px;
}


.mobile-nav-link {
    display: flex;

    justify-content: space-between;
    align-items: center;

    width: 100%;

    padding: 17px 6px;

    background: none;
    border: 0;
    border-bottom: 1px solid #e1e5e9;

    color: var(--dark-gray);

    font-family: inherit;
    font-size: 17px;
    font-weight: 600;

    text-align: left;
    text-decoration: none;

    cursor: pointer;
}


/* ========================================
   MOBILE SERVICES ACCORDION
======================================== */

/* ========================================
   MOBILE SERVICES ACCORDION
======================================== */

.mobile-services-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition:
        max-height 0.35s ease,
        opacity 0.25s ease;
}

.mobile-services.active .mobile-services-menu {
    max-height: 420px;
    opacity: 1;
}

.mobile-services-arrow {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.mobile-services.active .mobile-services-arrow {
    transform: rotate(180deg);
}

.mobile-service-link {
    display: block;

    margin-left: 8px;
    padding: 13px 15px;

    border-left: 2px solid #e2e7eb;

    color: #555f68;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;

    text-decoration: none;
}

.mobile-service-link:hover {
    color: var(--primary);
}


.mobile-services.active .mobile-services-menu {
    grid-template-rows: 1fr;
}


.mobile-services-arrow {
    font-size: 12px;

    transition: transform 0.25s ease;
}


.mobile-services.active .mobile-services-arrow {
    transform: rotate(180deg);
}


.mobile-service-link {
    display: block;

    margin-left: 8px;
    padding: 10px 15px;

    border-left: 2px solid #e2e7eb;

    color: #555f68;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;

    text-decoration: none;
}


.mobile-service-link:hover {
    color: var(--primary);
}


/* Stop background page from scrolling */

body.mobile-menu-open {
    overflow: hidden;
}


/* ========================================
   MOBILE BREAKPOINT
======================================== */

@media (max-width: 768px) {

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

}

@media (max-width: 768px) {
    .header-container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        transition: transform 0.3s, opacity 0.3s;
        opacity: 0;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-item {
        margin: 10px 0;
    }

    .mobile-menu {
        display: block;
    }

    .site-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
