/* ========================================
   GENERAL PAGE SETTINGS
   ======================================== */

* {
    box-sizing: border-box;
}

:root {
    --color-blue: #84796f;
    --color-blue-deep: #594a40;
    --color-green: #81766d;
    --color-green-hover: #6b6058;
    --color-beige: #eee7dc;
    --color-white: #fffdfa;
    --color-ink: #4b4642;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

.navbar,
.navbar * {
    font-family: Consolas, "Courier New", monospace;
}

body {
    background-color: var(--color-beige);
    color: var(--color-ink);
}


/* ========================================
   NAVIGATION HEADER
   ======================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.navbar {
    width: 100%;
    height: 80px;

    background-color: rgba(89, 74, 64, 0.94);
    border-bottom: 1px solid rgba(233, 223, 201, 0.35);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 35px;
}


/* ========================================
   LOGO
   ======================================== */

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    color: var(--color-white);
    text-decoration: none;
}

.logo {
    display: block;
    max-height: 60px;
    width: auto;
}

.brand-name {
    display: flex;
    flex-direction: column;
    color: #d8c2a5;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0.015em;
}


/* ========================================
   NAVIGATION LINKS
   ======================================== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-white);
    text-decoration: none;
    white-space: nowrap;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-button:hover {
    color: var(--color-beige);
}

.nav-button:focus-visible,
.nav-links a:focus-visible {
    outline: 3px solid var(--color-beige);
    outline-offset: 4px;
}


/* Sign In button */

.sign-in-button {
    color: var(--color-blue-deep);
    background-color: var(--color-beige);
    border: 2px solid var(--color-beige);
    border-radius: 6px;
    margin-left: 4px;
    padding: 9px 16px;
}

.sign-in-button:hover {
    color: var(--color-white);
    background-color: var(--color-green);
    border-color: var(--color-green);
}

.nav-item {
    position: relative;
}

.menu-caret {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 120;
    width: max-content;
    min-width: 230px;
    max-width: min(340px, 90vw);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    margin: 0;
    padding: 8px;
    list-style: none;
    color: var(--color-ink);
    background: var(--color-white);
    border: 1px solid rgba(81, 73, 67, 0.16);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(35, 30, 27, 0.22);
}

.dropdown-menu[hidden] {
    display: none;
}

.dropdown-menu .nav-button {
    width: 100%;
    justify-content: space-between;
    text-align: left;
    white-space: normal;
    color: var(--color-ink);
    border-radius: 5px;
    padding: 9px 10px;
}

.dropdown-menu .nav-button:hover,
.dropdown-menu .nav-button:focus-visible {
    color: var(--color-ink);
    background: var(--color-beige);
}

.submenu-menu,
.nested-menu {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: none;
    margin: 0 0 4px 10px;
    padding: 2px 0 2px 8px;
    overflow: visible;
    border: 0;
    border-left: 1px solid #d8cfc2;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;

    width: 100%;
    height: 700px;

    overflow: hidden;
}


/* ========================================
   IMAGE CAROUSEL
   ======================================== */

.carousel {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
}


/*
    These are temporary slides.

    Replace the background-image URLs with
    your actual carousel images later.
*/

.carousel-slide {
    position: absolute;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;
}


/* Temporary placeholder backgrounds */

.slide-1 {
    background-image: url("https://images.unsplash.com/photo-1552053831-71594a27632d");
}

.slide-2 {
    background-image: url("https://images.unsplash.com/photo-1587300003388-59208cc962cb");

    opacity: 0;
}

.slide-3 {
    background-image: url("https://images.unsplash.com/photo-1548199973-03cce0bbc87b");

    opacity: 0;
}


/* ========================================
   DARK OVERLAY
   ======================================== */

/*
    Makes the white text easier to read
    over the photograph.
*/

.hero::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: linear-gradient(90deg, rgba(70, 66, 63, 0.63), rgba(132, 121, 111, 0.32) 58%, rgba(70, 66, 63, 0.46));

    z-index: 1;
}


/* ========================================
   HERO TEXT
   ======================================== */

.hero-overlay {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    z-index: 2;

    width: 90%;
    max-width: 900px;

    text-align: center;

    color: var(--color-white);
}


/* Main Title */

.hero-overlay h1 {
    margin: 0 0 18px;

    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-summary {
    max-width: 760px;
    margin: 0 auto;
    color: var(--color-white);
    font-size: clamp(17px, 2.3vw, 21px);
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}


/* ========================================
   HOMEPAGE HIGHLIGHTS
   ======================================== */

.home-highlights {
    padding: 64px 35px 72px;
    background: #e8d3b3;
}

.home-highlights-inner {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.home-highlights h2 {
    margin: 0 0 28px;
    color: var(--color-ink);
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(26px, 3.4vw, 36px);
    text-align: center;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.home-card {
    padding: 28px;
    background: var(--color-white);
    border: 1px solid #ded5c8;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(61, 53, 46, 0.06);
}

.home-card-label {
    margin: 0 0 10px;
    color: #81766d;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-card h3 {
    margin: 0 0 12px;
    color: var(--color-ink);
    font-family: Consolas, "Courier New", monospace;
    font-size: 22px;
}

.home-card > p:last-child {
    margin: 0;
    color: #625b54;
    font-size: 16px;
    line-height: 1.7;
}


/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    padding: 38px 35px;
    color: var(--color-white);
    background: var(--color-blue-deep);
}

.footer-brand {
    max-width: 560px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #d8c2a5;
    text-decoration: none;
}

.footer-logo {
    display: block;
    max-height: 64px;
    width: auto;
}

.footer-brand-name {
    display: flex;
    flex-direction: column;
    font-family: Consolas, "Courier New", monospace;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0.015em;
}

.footer-description {
    max-width: 520px;
    margin: 14px 0 0;
    color: var(--color-beige);
    font-size: 12px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

.footer-links h2 {
    margin: 0 0 4px;
    color: #d8c2a5;
    font-size: 18px;
}

.footer-links a {
    width: fit-content;
    color: var(--color-white);
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-beige);
    text-decoration: underline;
}


/* ========================================
   MOBILE SIZING
   ======================================== */

@media (max-width: 1180px) {

    .navbar {
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 6px 14px 10px;
    }

    .logo {
        max-height: 44px;
    }

    .logo-link {
        gap: 8px;
        justify-content: flex-start;
        width: auto;
        flex: 0 0 auto;
        height: 52px;
    }

    .brand-name {
        font-size: 15px;
    }

    .nav-links {
        width: auto;
        min-width: 0;
        flex: 1 1 460px;
        flex-wrap: wrap;
        justify-content: flex-end;
        overflow: visible;
    }

    .nav-item {
        width: auto;
    }

    .dropdown-menu .nav-button {
        font-size: 14px;
    }

    .sign-in-button {
        justify-content: center;
        margin: 0 0 0 4px;
    }
}

@media (max-width: 700px) {

    .hero {
        height: 600px;
    }

    .hero-overlay h1 {
        font-size: 32px;
    }

    .home-highlights {
        padding: 42px 20px 48px;
    }

    .home-card-grid {
        grid-template-columns: 1fr;
    }

    .nav-button {
        padding: 9px 7px;
        font-size: 13px;
    }

    .site-footer {
        flex-direction: column;
        gap: 28px;
        padding: 32px 20px;
    }

    .footer-links {
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .navbar {
        padding: 0 12px;
    }

    .brand-name {
        font-size: 14px;
    }
}
