:root {
    --bg: #fffdf9;
    --ink: #2b2b2b;
    --muted: #6b6b6b;
    --cinnamon: #b86b35;
    --cinnamon-dark: #8f5227;
    --sand: #f4e7d6;
    --card: #ffffff;
    --border: #eae3da;
    --success: #2f9e44;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: 1140px;
    margin-inline: auto;
    padding: 0 20px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 9999;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0 20px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--cinnamon-dark);
    letter-spacing: .3px;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
	align-items: center;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a.active {
    color: var(--cinnamon);
}

/* General dropdown for desktop */
.nav-links li.dropdown {
    position: relative;
}

.nav-links li.dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    /* desktop default */
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 10;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: #f7f3f0;
}

.nav-links li.dropdown .dropdown-menu.show {
    display: block;
}
/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff8f2;
    border: 1px solid var(--border);
    color: var(--cinnamon-dark);
    padding: 7px 12px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.language-btn:hover {
    background: var(--sand);
    border-color: var(--cinnamon);
}

.language-btn i {
    font-size: 0.75rem;
}

.language-options {
    display: none;
    position: absolute;
    top: 115%;
    right: 0;
    background: #fff;
    min-width: 150px;
    padding: 8px;
    margin: 0;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.language-options.show {
    display: block;
}

.language-options li a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.language-options li a:hover,
.language-options li a.active-language {
    background: #fff3e8;
    color: var(--cinnamon-dark);
}

.language-options .flag {
    font-size: 1.1rem;
}

.language-options .lang-code {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .language-switcher {
        width: 100%;
    }

    .language-btn {
        width: 100%;
        justify-content: space-between;
        border-radius: 10px;
        padding: 10px 12px;
    }

    .language-options {
        position: static;
        margin-top: 8px;
        box-shadow: none;
        width: 100%;
    }
}
/* Mobile adjustments */
@media (max-width: 900px) {
    .dropdown-menu {
        position: static;
        /* so it stays in the same box */
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }

    .dropdown-menu li a {
        padding-left: 40px;
        /* indent to show hierarchy */
        background: none;
    }

    /* Toggle dropdown via JS class */
    .dropdown-menu.show {
        display: block;
    }

    /* Optional: hide desktop hover behavior */
    /* .nav-links li.dropdown:hover .dropdown-menu {
        display: none;
    } */

    /* .nav-links li.dropdown-menu:hover .dropdown-menu.show {
        display: block;
    } */
}

/* Hamburger button for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 64px;
        right: 0;
        background: #fff;
        flex-direction: column;
        width: 100%;
        padding: 10px 40px;
        border-left: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}


.recipe-main {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Hero Image */
.recipe-hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero-image {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Recipe Title & Intro */
.recipe-title {
    font-size: 2.5rem;
    color: #d2691e;
    margin-bottom: 15px;
    text-align: center;
}

.recipe-intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: center;
}

/* Recipe Grid */
.recipe-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.recipe-section {
    flex: 1 1 400px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.recipe-section h2 {
    color: #d2691e;
    margin-bottom: 15px;
}

.recipe-section ul,
.recipe-section ol {
    padding-left: 20px;
}

.recipe-section li {
    margin-bottom: 10px;
}

/* Image Placeholders */
.image-placeholder {
    margin-top: 20px;
    height: 300px;
    background: #f7f3f0;
    border: 2px dashed #ccc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

.image-placeholder img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* transform: rotate(90deg); */
}

/* CTA Button */
.cta-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.btn-cta {
    display: inline-block;
    padding: 18px 35px;
    background: #e07b39;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: 0.3s;
}

.btn-cta:hover {
    background: #c66b2f;
}

/* Tips Section */
.recipe-tips {
    margin-top: 30px;
}

.recipe-tips h2 {
    color: var(--cinnamon);
    margin-bottom: 15px;
}

.recipe-tips ul {
    list-style: disc;
    padding-left: 20px;
}

/* Responsive */
@media(max-width: 900px) {
    .recipe-grid {
        flex-direction: column;
    }
}


/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: #fff;
    margin-top: 40px;
    font-size: 0.95rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    padding: 28px 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    text-decoration: none;
    color: var(--ink);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cinnamon);
}

.footer__meta p {
    margin: .2rem 0;
    color: var(--muted);
}

.footer__bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 14px;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-social {
    margin-top: 10px;
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    stroke: #555;
    /* Modern dark grey */
    stroke-width: 1.6;
    fill: none;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.social-icon:hover svg {
    stroke: var(--cinnamon);
    transform: scale(1.12);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #contact {
        padding: 3rem 1.5rem;
    }

    #contact h2 {
        font-size: 1.6rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
    }

    .contact-form button {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    #contact {
        padding: 2rem 1rem;
    }

    #contact h2 {
        font-size: 1.4rem;
    }

    .contact-form {
        gap: 12px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .contact-form button {
        padding: 10px;
        font-size: 0.9rem;
    }
}