/* ============================================
   Don Chef Restaurant — Modern Restaurant Site
   Color Palette: Burgundy (#7B2D3B) + Blush (#F5E6E0)
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5C1F2B;
    --burgundy-light: #9A3D4E;
    --blush: #F5E6E0;
    --blush-light: #FBF4F1;
    --blush-dark: #E8D0C8;
    --charcoal: #1A1A1A;
    --dark: #2C2C2C;
    --gray-900: #1F2937;
    --gray-800: #374151;
    --gray-700: #4B5563;
    --gray-600: #6B7280;
    --gray-400: #9CA3AF;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --cream: #FFFBF7;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 2px;
    background: var(--burgundy);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.btn--primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 45, 59, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--outline-light {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--gray-200);
}

.btn--outline-light:hover {
    background: var(--blush);
    border-color: var(--blush-dark);
    transform: translateY(-2px);
}

.btn--light {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

.btn--light:hover {
    background: var(--blush);
    border-color: var(--blush);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

.logo--light {
    color: var(--white);
}

.logo__dot {
    color: var(--burgundy);
    font-size: 2rem;
    line-height: 1;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.25rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--burgundy);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--burgundy);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition);
    display: block;
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 50%, var(--burgundy-light) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.hero__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blush);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero__title em {
    font-style: italic;
    color: var(--blush);
}

.hero__desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image-stack {
    position: relative;
    height: 600px;
}

.hero__image {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__image--main {
    width: 380px;
    height: 480px;
    top: 0;
    right: 0;
}

.hero__image--accent {
    width: 240px;
    height: 300px;
    bottom: 0;
    left: 0;
    border: 5px solid rgba(255,255,255,0.2);
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero__image:hover img {
    transform: scale(1.05);
}

.hero__badge {
    position: absolute;
    bottom: 180px;
    right: -20px;
    background: var(--white);
    color: var(--charcoal);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.hero__badge svg {
    color: var(--burgundy);
}

/* ---------- ABOUT ---------- */
.about {
    padding: 8rem 0;
    background: var(--cream);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about__content .section-tag {
    padding-left: 0;
}

.about__content .section-tag::before {
    display: none;
}

.about__text {
    color: var(--gray-700);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about__stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.about__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about__image:hover img {
    transform: scale(1.03);
}

/* ---------- MENU ---------- */
.menu {
    padding: 8rem 0;
    background: var(--blush-light);
}

.menu__categories {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 3rem 0 2.5rem;
    flex-wrap: wrap;
}

.menu__cat {
    padding: 0.625rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.menu__cat:hover,
.menu__cat.active {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: var(--white);
}

.menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.menu-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu-item__img {
    height: 200px;
    overflow: hidden;
}

.menu-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-item__img img {
    transform: scale(1.08);
}

.menu-item__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.menu-item__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
}

.menu-item__price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--burgundy);
    white-space: nowrap;
}

.menu-item__desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    flex: 1;
}

/* ---------- GALLERY ---------- */
.gallery {
    padding: 8rem 0;
    background: var(--cream);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1rem;
    margin-top: 3rem;
}

.gallery__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery__item:hover img {
    transform: scale(1.06);
}

.gallery__item--large {
    grid-column: 1 / 8;
    grid-row: 1 / 2;
}

.gallery__item--wide {
    grid-column: 6 / 13;
    grid-row: 2 / 3;
}

.gallery__item:not(.gallery__item--large):not(.gallery__item--wide) {
    grid-column: span 3;
    grid-row: span 1;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-banner__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-banner__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-banner__text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-banner__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 8rem 0;
    background: var(--cream);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact__card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact__card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--blush);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
}

.contact__card h3 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.contact__card p {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact__card a {
    color: var(--burgundy);
    font-weight: 600;
}

.contact__card a:hover {
    color: var(--burgundy-dark);
    text-decoration: underline;
}

.contact__form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form__input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form__input:focus {
    border-color: var(--burgundy);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.1);
}

.form__input::placeholder {
    color: var(--gray-400);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: var(--radius-sm);
    color: #065F46;
    font-weight: 600;
    margin-top: 0.5rem;
}

.form__success.show {
    display: flex;
}

.form__success svg {
    color: #10B981;
    flex-shrink: 0;
}

/* ---------- MAP ---------- */
.map-section {
    padding: 0;
}

.map-container {
    position: relative;
    height: 400px;
    filter: saturate(0.8);
    transition: filter 0.3s ease;
}

.map-container:hover {
    filter: saturate(1);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: 5rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer__brand p {
    margin-top: 1rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer__links h4,
.footer__contact h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
}

.footer__links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.footer__contact a {
    color: rgba(255,255,255,0.6);
}

.footer__contact a:hover {
    color: var(--white);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ---------- MOBILE NAV OVERLAY ---------- */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav__menu.open {
        transform: translateY(0);
    }

    .nav__link {
        font-size: 1.1rem;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        display: none;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 4rem;
    }

    .hero__container {
        padding: 2rem 0;
    }

    .about,
    .menu,
    .gallery,
    .contact {
        padding: 5rem 0;
    }

    .menu__grid {
        grid-template-columns: 1fr;
    }

    .gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery__item--large {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .gallery__item--wide {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .gallery__item:not(.gallery__item--large):not(.gallery__item--wide) {
        grid-column: span 1;
    }

    .about__stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-banner__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact__form-wrap {
        padding: 1.5rem;
    }

    .menu__categories {
        gap: 0.5rem;
    }

    .menu__cat {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
