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

body {
    font-family: Arial, sans-serif;
    background: #f7f4ee;
    color: #252a29;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e8e3da;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.header-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 10px 35px;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* LOGO */

.logo-link {
    width: 230px;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo {
    width: 220px;
    height: auto;
    display: block;
}

/* MAIN NAV */

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav > a,
.nav-dropdown > a {
    font-size: 15px;
    font-weight: 500;
    color: #2b3635;
    white-space: nowrap;
    transition: 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown > a:hover {
    color: #39706d;
}

/* DROPDOWN */

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #ebe6dd;
    border-radius: 10px;
    padding: 10px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 1001;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
}

.dropdown-menu a:hover {
    background: #f4f0e8;
    color: #39706d;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* QUOTE BUTTON */

.quote-btn {
    background: #315f5d;
    color: #ffffff !important;
    padding: 11px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.2s ease;
}

.quote-btn:hover {
    background: #244947;
    transform: translateY(-1px);
}

/* =========================================
   MEDIUM SCREEN
========================================= */

@media (max-width: 1250px) {
    .header-container {
        padding: 8px 22px;
        gap: 20px;
    }

    .logo-link {
        width: 175px;
    }

    .site-logo {
        width: 170px;
    }

    .main-nav {
        gap: 16px;
    }

    .main-nav > a,
    .nav-dropdown > a {
        font-size: 14px;
    }

    .quote-btn {
        padding: 10px 14px;
    }
}

/* =========================================
   SMALL LAPTOP / TABLET
========================================= */

@media (max-width: 1050px) {

    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 8px 18px;
        gap: 14px;
    }

    .logo-link {
        width: 145px;
        flex-shrink: 0;
    }

    .site-logo {
        width: 140px;
    }

    .main-nav {
        margin-left: auto;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .main-nav > a,
    .nav-dropdown > a {
        font-size: 13px;
        white-space: nowrap;
    }

    .quote-btn {
        padding: 9px 13px;
        font-size: 13px;
        white-space: nowrap;
    }
}

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

@media (max-width: 800px) {
    .header-container {
        flex-direction: column;
        justify-content: center;
        padding: 8px 15px 12px;
        gap: 8px;
    }

    .logo-link {
        width: 150px;
    }

    .site-logo {
        width: 145px;
    }

    .main-nav {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 13px;
    }

    .main-nav > a,
    .nav-dropdown > a {
        font-size: 13px;
    }

    .quote-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

}

/* TEMPORARY HOME SECTION */

.test-section {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 30px;
}

.test-section h1 {
    font-size: 52px;
    margin-bottom: 15px;
}

.test-section p {
    font-size: 20px;
    color: #5f706e;
}

/* FOOTER */

.site-footer {
    background: #203c3a;
    color: #ffffff;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-logo {
    width: 160px;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 430px;
    line-height: 1.7;
    color: #d5dfdd;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h3 {
    margin-bottom: 8px;
}

.footer-links a {
    color: #d5dfdd;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 30px;
    text-align: center;
    color: #bdccca;
    font-size: 14px;
}

/* =========================
   FOOTER SOCIAL LINKS
========================= */

.footer-social h3 {
    margin-bottom: 18px;
}

.footer-facebook {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.footer-facebook svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.footer-facebook:hover {
    opacity: 0.7;
}

@media (max-width: 600px) {
    .footer-social {
        margin-top: 10px;
    }
}

/* =========================
   FOOTER COMPANY INFORMATION
========================= */

.footer-company-info {
    text-align: center;
    padding: 22px 20px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.footer-company-info p {
    font-size: 13px;
    line-height: 1.8;
    margin: 3px 0;
    opacity: 0.85;
}


/* ========================================
   RESPONSIVE MOBILE NAVIGATION
======================================== */

/* Hide mobile controls on desktop */
.mobile-header-controls,
.mobile-navigation {
    display: none;
}

/* The hidden attribute must always hide the menu */
.mobile-navigation[hidden] {
    display: none !important;
}

/* MOBILE AND TABLET */
@media (max-width: 900px) {

    .site-header .header-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
        padding: 10px 18px;
    }

    /* Company logo */
    .site-header .logo-link {
        width: 145px;
        flex-shrink: 0;
    }

    .site-header .site-logo {
        width: 100%;
        height: auto;
    }

    /* Hide desktop navigation */
    .site-header .main-nav,
    .site-header .desktop-quote-btn {
        display: none !important;
    }

    /* Mobile controls */
    .site-header .mobile-header-controls {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        margin-left: auto;
    }

    .site-header .mobile-quote-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        padding: 10px 13px;
        font-size: 12px;
        border-radius: 25px;
        text-decoration: none;
    }

    /* Hamburger button */
    .site-header .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        border: 1px solid #dedbd2;
        border-radius: 9px;
        background: white;
        cursor: pointer;
        flex-shrink: 0;
    }

    .site-header .menu-bar {
        display: block;
        width: 21px;
        height: 2px;
        border-radius: 2px;
        background: #29483e;
    }

    /* Mobile dropdown navigation */
    .site-header .mobile-navigation:not([hidden]) {
        display: flex;
        flex-direction: column;
        padding: 15px 22px 25px;
        background: #ffffff;
        border-top: 1px solid #e4e0d6;
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
    }

    .site-header .mobile-navigation > a,
    .site-header .mobile-nav-group > summary {
        display: block;
        padding: 14px 8px;
        color: #29483e;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        border-bottom: 1px solid #efede8;
    }

    .site-header .mobile-nav-group > summary {
        cursor: pointer;
    }

    .site-header .mobile-submenu {
        display: flex;
        flex-direction: column;
        padding: 8px 0 8px 18px;
        background: #f8f6f0;
    }

    .site-header .mobile-submenu a {
        padding: 10px 8px;
        color: #465b51;
        font-size: 14px;
        text-decoration: none;
    }

    .site-header .mobile-navigation a:hover,
    .site-header .mobile-nav-group > summary:hover {
        color: #a58b59;
    }

    .site-header .mobile-menu-toggle:focus-visible,
    .site-header .mobile-navigation a:focus-visible,
    .site-header .mobile-nav-group summary:focus-visible {
        outline: 3px solid #a58b59;
        outline-offset: 3px;
    }

}

/* SMALL MOBILE SCREENS */
@media (max-width: 380px) {

    .site-header .logo-link {
        width: 115px;
    }

    .site-header .mobile-header-controls {
        gap: 7px;
    }

    .site-header .mobile-quote-btn {
        padding: 9px 10px;
        font-size: 11px;
    }

}
