*{
    margin: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    width: 70%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2a36;
    line-height: 1.5;
}

.header {
    position: relative;
    width: 100%;
    padding-top: 50px;
    border-bottom: 10px solid #e0e0e0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;

}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 80px;
    width: auto;
}

.logo-text {
    font-family: 'Host Grotesk', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 24px;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    border: 1px solid #d8dfe6;
    background: #ffffff;
    color: #1f2a36;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: #f4f7fa;
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid #6f8aa6;
    outline-offset: 2px;
}

.mobile-menu-toggle-bar {
    display: none;
}

.mobile-menu-icon {
    width: 20px;
    height: 20px;
    stroke: #1f2a36;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu-icon-close {
    display: none;
}

body.nav-open .mobile-menu-icon-menu {
    display: none;
}

body.nav-open .mobile-menu-icon-close {
    display: block;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 16, 28, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 900;
}

body.nav-open {
    overflow: hidden;
}

body.nav-open .mobile-nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
    background-color: #eef2f6;
}

main {
    margin: 0;
    flex: 1;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: #2c3e50;
    color: #ecf0f1;
}

.footer-container p {
    font-size: 0.9rem;
}

/* Responsive Design - Mobile First */

/* Mobile Phones (up to 768px) */
@media screen and (max-width: 768px) {
    body {
        width: 100%;
        max-width: none;
        padding: 0 14px;
    }

    .header {
        padding-top: 14px;
        border-bottom: 4px solid #e0e0e0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        padding: 0;
    }

    .logo {
        gap: 8px;
        align-self: center;
    }

    .logo img {
        height: 44px;
    }

    .logo-text {
        font-size: 19px;
    }

    .header-right {
        width: auto;
        justify-content: flex-end;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(82vw, 320px);
        padding: 78px 16px 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
        box-shadow: -14px 0 36px rgba(8, 20, 34, 0.18);
        transform: translateX(102%);
        transition: transform 0.28s ease;
        z-index: 1000;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 11px 12px;
        border: 1px solid #d7e0ea;
        border-radius: 10px;
        background-color: #ffffff;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-link:active {
        background-color: #e8eef5;
    }

    body.nav-open .main-nav {
        transform: translateX(0);
    }

    main {
        margin-top: 6px;
    }

    .footer-container {
        padding: 14px 10px calc(14px + env(safe-area-inset-bottom));
        margin-top: 12px;
    }

    .footer-container p {
        font-size: 0.8rem;
        text-align: center;
    }
}

/* Small Phones (up to 480px) */
@media screen and (max-width: 480px) {
    body {
        padding: 0 10px;
    }

    .header {
        padding-top: 10px;
    }

    .header-container {
        gap: 10px;
    }

    .logo img {
        height: 38px;
    }

    .logo-text {
        font-size: 17px;
    }

    .main-nav {
        width: min(88vw, 300px);
        padding: 72px 12px 18px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 10px 10px;
    }
}

/* Tablets (769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        width: 85%;
    }

    .logo img {
        height: 65px;
    }

    .logo-text {
        font-size: 20px;
    }

    .main-nav {
        gap: 20px;
    }
}

/* Large Screens (1400px and up) */
@media screen and (min-width: 1400px) {
    body {
        width: 65%;
        max-width: 1600px;
    }

    .logo img {
        height: 100px;
    }

    .logo-text {
        font-size: 28px;
    }

    .main-nav {
        gap: 40px;
    }

    .nav-link {
        font-size: 18px;
        padding: 10px 20px;
    }

    .footer-container p {
        font-size: 1rem;
    }
}

/* Extra Large Screens (1920px and up) */
@media screen and (min-width: 1920px) {
    body {
        width: 60%;
        max-width: 2000px;
    }

    .header {
        padding-top: 60px;
    }

    .logo img {
        height: 110px;
    }

    .logo-text {
        font-size: 32px;
    }
}
