:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    margin: auto;
    background: #F5F1EC;
    font-family: var(--font-body);
}

body.menu-open {
    overflow: hidden;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    color: #333;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #F5F1EC;
}

.logo-wrapper {
    overflow: hidden;
}

nav {
    text-align: center;
    padding: 1%;
    position: relative;
    left: -6%;
}

#rb-logo {
    height: 80px;
}

#rb-text-logo {
    height: 30px;
    margin-bottom: 24px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 1.2rem;
    transition: 0.1s ease-in-out;
    background: #F5F1EC;
}

nav ul li a:hover {
    color: #C2A26C;
    transition: 0.1s ease-in-out;
    scale: 1.1;
}

nav ul li a.active {
    color: #C2A26C;
    border-bottom: #C2A26C 2px dashed;
    padding-bottom: 30%;
}

.header-icons {
    display: flex;
    gap: 20px;
    font-weight: 100;
    font-size: 1.6rem;
}

.header-icons i {
    cursor: pointer;
    transition: 0.1s ease-in-out;
}

.header-icons i:hover {
    color: #C2A26C;
    transition: 0.1s ease-in-out;
    scale: 1.2;
}

.icon-wrapper {
    position: relative;
    font-size: 1.4rem;
    cursor: pointer;
}

#cart-icon a,
#fav-icon a {
    color: #333;
}

.dot {
    position: absolute;
    top: -3px;
    right: -6px;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    border: 2px solid white;
    animation: pop 0.2s ease;
    display: none;
}

@keyframes pop {
    0% { transform: scale(0.5); }
    100% { transform: scale(1); }
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
}

.mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 320px;
    height: 100%;
    background: #F5F1EC;
    padding: 100px 40px 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mobile-nav-overlay.open .mobile-nav {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: color 0.2s ease;
    display: block;
}

.mobile-nav ul li a.active,
.mobile-nav ul li a:hover {
    color: #C2A26C;
}

.mobile-nav-icons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px dashed #C2A26C;
    padding-top: 24px;
}

.mobile-nav-icons a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.mobile-nav-icons a:hover {
    color: #C2A26C;
}

/* ===== CONTACT SECTION ===== */
.container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 40px;
    box-sizing: border-box;
}

.contact-image {
    flex: 0 0 30%;
}

.contact-image img {
    width: 95%;
    height: auto;
    border: 2px solid #C2A26C;
}

.contact-section {
    flex: 1;
}

.contact-section h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px dashed #C2A26C;
    display: inline-block;
    padding: 5px 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 2px solid #C2A26C;
    padding: 20px;
}

.contact-form label {
    font-weight: 500;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 2px solid #ccc;
    font-size: 1rem;
    font-family: var(--font-body);
    background: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #C2A26C;
}

#submit-btn {
    width: 10%;
    min-width: 90px;
    padding: 10px;
    background-color: #C2A26C;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: background-color 0.2s ease;
}

#submit-btn:hover {
    background-color: #A67C52;
}

/* ===== FOOTER ===== */
.footer-content {
    padding: 20px 40px;
    margin-top: 20px;
    margin-left: -3%;
}

.social-icons {
    margin-bottom: 2.5%;
}

.social-icons a {
    margin-top: 10px;
    font-size: 2rem;
    color: #333;
}

.social-icons i {
    margin: 0 10px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.social-icons i:hover {
    color: #C2A26C;
    scale: 1.1;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 900;
    transition: transform 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    transform: scale(1.1);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* ===== TABLET (≤ 1024px) ===== */
@media (max-width: 1024px) {
    header {
        scale: 1;
        padding: 16px 24px;
    }

    .container {
        padding: 24px;
        gap: 24px;
    }

    .contact-image {
        flex: 0 0 35%;
    }

    #submit-btn {
        width: 15%;
    }
}

/* ===== MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {
    header {
        padding: 14px 20px;
        scale: 1;
    }

    #rb-logo {
        height: 55px;
    }

    #rb-text-logo {
        height: 22px;
        margin-bottom: 18px;
    }

    /* Hide desktop nav, show hamburger */
    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav-overlay {
        display: block;
    }

    .header-icons {
        display: none;
    }

    /* Stack layout */
    .container {
        flex-direction: column;
        padding: 20px 16px;
        gap: 16px;
    }

    .contact-image {
        flex: none;
        width: 100%;
    }

    .contact-image img {
        width: 100%;
    }

    .contact-section h3 {
        font-size: 1.6rem;
    }

    /* Submit button full-width on mobile */
    #submit-btn {
        width: 100%;
        min-width: unset;
        padding: 14px;
        font-size: 1rem;
    }

    .footer-content {
        padding: 20px 0;
        margin-left: 0;
    }
}

/* ===== SMALL MOBILE (≤ 480px) ===== */
@media (max-width: 480px) {
    .contact-section h3 {
        font-size: 1.4rem;
    }

    .contact-form {
        padding: 16px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
    }

    .social-icons a {
        font-size: 1.6rem;
    }
}