#nav-placeholder {
    min-height: 72px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: #222222;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0.8rem 1.8rem;
}

.nav-logo img {
    object-fit: contain;
    max-width: 150px;
    max-height: 150px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #D29E31;
    z-index: 1002;
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    opacity: 0.75;
}

.nav-item--dropdown {
    position: relative;
}

.nav-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.nav-dropdown__icon {
    transition: transform 0.25s ease;
}

.nav-item--dropdown.is-open .nav-dropdown__icon {
    transform: rotate(180deg);
}

.nav-dropdown__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-dropdown__link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
    opacity: 0.85;
}

/* Desktop dropdown */
@media (min-width: 1025px) {
    /* Invisible bridge so hover is not lost between button and panel */
    .nav-item--dropdown::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 14px;
    }

    .nav-dropdown__menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 200px;
        margin-top: 1rem;
        padding: 0.85rem 0 0.5rem;
        background-color: #222222;
        border-radius: 8px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0s linear 0.25s,
            pointer-events 0s linear 0.25s;
        z-index: 1001;
    }

    .nav-item--dropdown.is-open .nav-dropdown__menu,
    .nav-item--dropdown:hover .nav-dropdown__menu,
    .nav-item--dropdown:focus-within .nav-dropdown__menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0s linear 0s,
            pointer-events 0s linear 0s;
    }

    .nav-dropdown__link {
        padding: 0.65rem 1.25rem;
        white-space: nowrap;
    }

    .nav-dropdown__link:hover,
    .nav-dropdown__link:focus-visible {
        background-image: linear-gradient(180deg, #ffe3a1 0%, #d29e31 45%, #8b6110 100%);
        opacity: 1;
    }
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    background-image: linear-gradient(180deg, #ffe3a1 0%, #d29e31 45%, #8b6110 100%);
    color: #fff;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background-color: #222222;
}

/* Tablet & mobile */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 5.5rem 1.5rem 2rem;
        background-color: #0a0a0a;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .nav-dropdown__toggle {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }

    .nav-item--dropdown {
        border-bottom: none;
    }

    .nav-dropdown__menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 6px;
        margin-bottom: 0.25rem;
    }

    .nav-item--dropdown.is-open .nav-dropdown__menu {
        max-height: 220px;
    }

    .nav-dropdown__menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.048);
    }

    .nav-dropdown__menu li:last-child {
        border-bottom: none;
    }

    .nav-dropdown__link {
        padding: 0.85rem 1rem;
        font-size: 0.9375rem;
    }

    .nav-cta {
        margin-top: 1.5rem;
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.5rem;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 999;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.85rem 1rem;
    }

.nav-logo img {
    max-width: 120px;
    max-height: 100px;
}
}

/* Desktop: logo | links centered | CTA on right */
@media (min-width: 1025px) {
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        flex: 1;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        overflow: visible;
    }

    .nav-menu.is-open {
        transform: none;
    }

    .nav-links {
        flex-direction: row;
        gap: 3rem;
    }

    .nav-links li {
        border-bottom: none;
    }

    .nav-link {
        padding: 0;
    }

    .nav-cta {
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        margin-top: 0;
        width: auto;
    }

    .nav {
        position: relative;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .nav-links {
        gap: 2.25rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .nav-cta {
        font-size: 0.875rem;
        padding: 0.55rem 1.1rem;
    }
}

/* Floating contact buttons */
.floating-actions {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.floating-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-action:hover,
.floating-action:focus-visible {
    transform: scale(1.06);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
    outline: none;
}

.floating-action--whatsapp {
    background-color: #25d366;
}

.floating-action--call {
    background-image: linear-gradient(180deg, #ffe3a1 0%, #d29e31 45%, #8b6110 100%);
}

.floating-action__icon {
    display: block;
}

@media (max-width: 640px) {
    .floating-actions {
        bottom: 1rem;
        left: 1rem;
        gap: 0.625rem;
    }

    .floating-action {
        width: 3rem;
        height: 3rem;
    }
}
