/* =========================================================
   CATERING IBU DEDEH - GLOBAL STYLE
   ========================================================= */

:root {
    --color-background: #fff9f1;
    --color-background-soft: #f7eee2;
    --color-surface: #ffffff;

    --color-text: #2b1b18;
    --color-text-soft: #75655f;

    --color-primary: #8b0909;
    --color-primary-dark: #690505;
    --color-primary-deep: #4a0303;
    --color-primary-soft: #f1dddd;

    --color-accent: #d99618;
    --color-accent-dark: #b8740b;
    --color-accent-light: #f4bd42;
    --color-accent-soft: #f9e8bb;

    --color-border: #e9dace;

    --container-width: 1180px;
    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 22px;
    --shadow-soft: 0 14px 38px rgba(87, 15, 10, .09);
    --transition: 180ms ease;
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(100, 114, 84, 0.35);
    outline-offset: 3px;
}

/* =========================================================
   GLOBAL CONTAINER
   ========================================================= */

.layout-container {
    width: min(calc(100% - 40px), var(--container-width));
    margin-inline: auto;
}

/* =========================================================
   GLOBAL BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.2;
    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--color-primary-dark);
}

.button-accent {
    background: var(--color-accent);
    color: #ffffff;
}

.button-accent:hover {
    background: var(--color-accent-dark);
}

.button-outline {
    border-color: var(--color-border);
    background: rgba(255, 255, 255, 0.65);
    color: var(--color-text);
}

.button-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

/* =========================================================
   HEADER
   ========================================================= */

#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 78px;
}

.site-header {
    height: 78px;
    border-bottom: 1px solid rgba(232, 223, 211, 0.85);
    background: rgba(255, 250, 243, 0.96);
    backdrop-filter: blur(12px);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* =========================================================
   LOGO
   ========================================================= */

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    gap: 11px;
}

.site-logo-image {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: contain;
}

.site-logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.site-logo-main {
    margin-bottom: 4px;
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.site-logo-name {
    color: var(--color-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.02em;
}

/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-navigation > a,
.nav-dropdown-button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #49453f;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition:
        background-color var(--transition),
        color var(--transition);
}

.main-navigation > a:hover,
.nav-dropdown-button:hover,
.nav-dropdown.is-open .nav-dropdown-button {
    background: rgba(100, 114, 84, 0.08);
    color: var(--color-primary-dark);
}

.main-navigation .header-whatsapp {
    margin-left: 8px;
    padding-inline: 18px;
    background: var(--color-primary);
    color: #ffffff;
}

.main-navigation .header-whatsapp:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
}

/* =========================================================
   DROPDOWN
   ========================================================= */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-button .fa-angle-down {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    transform-origin: center;
    transition: transform var(--transition);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;

    display: none;
    width: 220px;
    padding: 8px;

    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown.is-open .nav-dropdown-button .fa-angle-down {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: #4e4942;
    font-size: 14px;
    font-weight: 600;
    transition:
        background-color var(--transition),
        color var(--transition);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
    background: var(--color-background-soft);
    color: var(--color-primary-dark);
}

/* Desktop hover dropdown */

@media (min-width: 1001px) and (hover: hover) and (pointer: fine) {
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown:hover .nav-dropdown-button,
    .nav-dropdown:focus-within .nav-dropdown-button {
        background: rgba(100, 114, 84, 0.08);
        color: var(--color-primary-dark);
    }

    .nav-dropdown:hover .nav-dropdown-button .fa-angle-down,
    .nav-dropdown:focus-within .nav-dropdown-button .fa-angle-down {
        transform: rotate(180deg);
    }
}

/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 10px;
    background: var(--color-text);
    transition:
        transform var(--transition),
        opacity var(--transition);
}

.mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 0;
    background: #292b25;
    color: rgba(255, 255, 255, 0.78);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 60px;
    padding-top: 72px;
    padding-bottom: 64px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    gap: 12px;
}

.footer-logo-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    object-fit: contain;
}

.footer-brand .site-logo-main {
    color: #dd9c77;
}

.footer-brand .site-logo-name {
    color: #ffffff;
    font-size: 29px;
}

.footer-brand p {
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    line-height: 1.8;
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    min-height: 45px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.footer-whatsapp:hover {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.06);
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h2 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
}

.footer-column a {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.63);
    font-size: 14px;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;

    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 50px;
    padding: 7px 16px 7px 7px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    background: #247b4b;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(34, 86, 57, 0.24);

    font-size: 13px;
    font-weight: 750;

    transition:
        transform var(--transition),
        background-color var(--transition);
}

.floating-whatsapp:hover {
    background: #1d6840;
    transform: translateY(-2px);
}

.floating-whatsapp-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 10px;
    font-weight: 900;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {
    .mobile-menu-button {
        display: flex;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;

        padding: 14px;
        border: 1px solid var(--color-border);
        border-radius: 0 0 14px 14px;
        background: var(--color-background);
        box-shadow: var(--shadow-soft);
    }

    .main-navigation.is-open {
        display: flex;
    }

    .main-navigation > a,
    .nav-dropdown-button {
        width: 100%;
        justify-content: space-between;
        padding: 11px 12px;
    }

    .main-navigation .header-whatsapp {
        justify-content: center;
        margin: 8px 0 0;
        padding: 13px 18px;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 3px;
        padding: 6px;

        border: 0;
        border-radius: 8px;
        background: rgba(100, 114, 84, 0.06);
        box-shadow: none;
    }

    .nav-dropdown-menu a {
        padding: 10px 12px;
    }

    .footer-main {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 45px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 500px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {
    .layout-container {
        width: min(calc(100% - 30px), var(--container-width));
    }

    #site-header {
        min-height: 70px;
    }

    .site-header {
        height: 70px;
    }

    .site-logo {
        gap: 9px;
    }

    .site-logo-image {
        width: 38px;
        height: 38px;
    }

    .site-logo-main {
        margin-bottom: 3px;
        font-size: 9px;
    }

    .site-logo-name {
        font-size: 21px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 38px 25px;
        padding-top: 55px;
        padding-bottom: 48px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo-image {
        width: 46px;
        height: 46px;
    }

    .footer-brand .site-logo-name {
        font-size: 26px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
        min-height: 64px;
        padding: 15px 0;
    }

    .floating-whatsapp {
        right: 15px;
        bottom: 15px;
        width: 52px;
        height: 52px;
        padding: 8px;
        justify-content: center;
    }

    .floating-whatsapp-text {
        display: none;
    }

    .floating-whatsapp-icon {
        width: 36px;
        height: 36px;
    }
}