/* Layout: Header & Footer */

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #e1e4e8;
    width: 100%;
}

/* Prevent content from being hidden under sticky header */
body {
    padding-top: 0;
}

section:first-of-type {
    margin-top: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary) 0%, #001f3f 100%);
    color: var(--text-white);
    padding: 5rem 0 2rem;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand img {
    max-width: 180px;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-brand img:hover {
    transform: scale(1.05);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

.footer-brand .brand-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.75rem;
    font-style: italic;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    margin: 0;
    line-height: 1.6;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.1rem 0;
}

.footer-links a:hover {
    color: #33C1F5;
    /* Brighter version of --primary (#00A3E0) */
    transform: translateX(4px);
}

.footer-category-label {
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    list-style: none !important;
}

.footer-category-label:first-child {
    margin-top: 0 !important;
}

.footer-links i {
    color: var(--primary);
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.footer-address i {
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-address span {
    flex: 1;
}

.footer-links .quote-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.6;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-bottom p:first-child {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.footer-disclaimer {
    font-size: 11px;
    margin-top: 0.5rem;
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Accordion */
.footer-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    padding: 0.75rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.accordion-header:hover {
    color: var(--primary-hover);
}

.accordion-header .arrow-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .arrow-icon {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    opacity: 0;
    padding-left: 0.5rem;
}

.accordion-header[aria-expanded="true"]+.accordion-content {
    max-height: 500px;
    /* Arbitrary large height */
    opacity: 1;
    margin-bottom: 1rem;
}

/* Hover Support for Desktop */
@media (min-width: 992px) {
    .accordion-item:hover .accordion-content {
        max-height: 500px;
        opacity: 1;
        margin-bottom: 1rem;
    }

    .accordion-item:hover .accordion-header .arrow-icon {
        transform: rotate(90deg);
    }

    .accordion-item:hover .accordion-header {
        color: var(--primary-hover);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-container {
        position: relative;
        padding: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
        position: relative;
        background: none;
        border: none;
        padding: 0.5rem;
    }

    .footer {
        padding: 4rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-brand img {
        margin: 0 auto;
    }

    .footer-brand p {
        margin: 0 auto;
        max-width: 100%;
        text-align: center;
    }

    .footer-col {
        text-align: center;
        align-items: center;
    }

    .footer-col h4 {
        margin-bottom: 1.5rem;
        text-align: center;
        font-size: 15px;
    }

    .footer-links {
        gap: 14px;
        align-items: center;
    }

    .footer-links a {
        font-size: 14px;
        justify-content: center;
    }

    .footer-address {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .footer-address i {
        margin-top: 0;
    }

    .footer-bottom {
        text-align: center;
        padding-top: 1.5rem;
    }
}

/* Tablet Footer */
@media (max-width: 968px) and (min-width: 769px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 3rem;
    }

    .footer-col:last-child {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-grid {
        gap: 2.5rem;
    }

    .footer-brand img {
        max-width: 150px;
    }

    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 1.25rem;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 1.25rem;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0;
    }

    .logo img {
        height: 40px;
    }

    .nav-menu {
        top: 60px;
        padding: 1.5rem;
    }

    .cta-btn-header {
        display: block;
        width: 100%;
        margin-top: 1rem;
        text-align: center;
    }

    .footer-grid {
        gap: 2rem;
    }
}