/**
 * GUSTO — Italian Restaurant
 * Warm, cozy design with terracotta accents
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --bg: #f4efe8;
    --bg-dark: #2c2420;
    --surface: #ebe4db;
    --text: #2c2420;
    --text-light: #f4efe8;
    --text-muted: #8a7e74;
    --accent: #a65d3f;
    --accent-light: #c4886a;
    --border: rgba(44, 36, 32, 0.1);
    --border-dark: rgba(244, 239, 232, 0.2);
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Back to Portfolio Button */
.back-to-portfolio {
    position: fixed;
    top: 100px;
    left: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--text);
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.back-to-portfolio:hover {
    background: var(--accent);
    transform: translateX(-4px);
}

.back-to-portfolio svg {
    transition: transform 0.3s ease;
}

.back-to-portfolio:hover svg {
    transform: translateX(-3px);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
}

h1 {
    font-size: clamp(80px, 15vw, 180px);
    letter-spacing: -0.02em;
    line-height: 0.85;
}

h2 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
}

h3 {
    font-size: 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--accent);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 0;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: var(--bg-dark);
}

.btn-primary.full {
    width: 100%;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    border: 1px solid var(--text);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all var(--transition);
}

.btn-outline:hover {
    background: var(--text);
    color: var(--bg);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 48px;
    background: rgba(244, 239, 232, 0.95);
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.nav a:hover {
    color: var(--text);
}

.header-phone {
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding: 160px 48px 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    margin-bottom: 32px;
    color: var(--accent);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 400px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

/* ==========================================================================
   Section Header
   ========================================================================== */
.section-header {
    margin-bottom: 60px;
}

.section-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 500px;
    margin-top: 16px;
}

/* ==========================================================================
   Menu Section
   ========================================================================== */
.menu-section {
    padding: 100px 0;
    background: var(--bg);
}

.section-desc {
    color: var(--text-muted);
    max-width: 500px;
    margin-top: 8px;
}

/* Menu Tabs */
.menu-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.menu-tab {
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}

.menu-tab:hover {
    color: var(--text);
    border-color: var(--accent);
}

.menu-tab.active {
    background: var(--accent);
    color: var(--text-light);
    border-color: var(--accent);
}

/* Menu Items Container */
.menu-items-container {
    min-height: 400px;
}

.menu-category-items {
    display: none;
    animation: fadeIn 0.4s ease;
}

.menu-category-items.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Item Card - Bento Style */
.menu-item {
    background: var(--surface);
    border: 1px solid transparent;
    transition: all var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
}

.menu-item:first-child .menu-item-image {
    height: 100%;
    position: absolute;
    inset: 0;
}

.menu-item:first-child .menu-item-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.menu-item:first-child .menu-item-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 30px;
    color: var(--text-light);
}

.menu-item:first-child .menu-item-content h3,
.menu-item:first-child .menu-item-header h3 {
    color: var(--text-light);
    font-size: 28px;
}

.menu-item:first-child .menu-item-content p {
    color: rgba(255, 255, 255, 0.8);
}

.menu-item:first-child .menu-item-price {
    color: var(--accent-light);
    font-size: 22px;
}

.menu-item:first-child .menu-item-tag {
    background: var(--accent);
    color: var(--text-light);
}

.menu-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(166, 93, 63, 0.15);
}

.menu-item-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

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

.menu-item-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex: 1;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.menu-item-header h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
}

.menu-item-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
}

.menu-item-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.menu-item-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(166, 93, 63, 0.1);
    color: var(--accent);
    border-radius: 4px;
    align-self: flex-start;
}

.menu-item-tag.popular {
    background: var(--accent);
    color: var(--text-light);
}

.menu-item-tag.spicy {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* ==========================================================================
   Featured Dishes
   ========================================================================== */
.dishes-section {
    padding: 100px 0;
    background: var(--surface);
}

.dishes-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
}

.dish-card {
    position: relative;
    overflow: hidden;
}

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

.dish-card:hover img {
    transform: scale(1.05);
}

.dish-card.large {
    grid-row: span 2;
}

.dish-card.large img {
    height: 100%;
    min-height: 500px;
}

.dish-card:not(.large) img {
    height: 240px;
}

.dish-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: var(--text-light);
}

.dish-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.dish-info p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.dish-price {
    font-size: 16px;
    font-weight: 600;
}

/* ==========================================================================
   Chef Section
   ========================================================================== */
.chef-section {
    padding: 120px 0;
    background: var(--bg);
}

.chef-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
}

.chef-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
}

.chef-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chef-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.chef-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}

.chef-title {
    font-size: 14px;
    color: var(--text-muted);
}

blockquote {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.5;
    font-style: italic;
    color: var(--text);
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-section {
    padding: 100px 0;
    background: var(--surface);
}

.gallery-main {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* ==========================================================================
   Reservation
   ========================================================================== */
.reservation-section {
    padding: 120px 0;
    background: var(--bg-dark);
    color: var(--text-light);
}

.reservation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.reservation-info .section-label {
    color: var(--accent-light);
}

.reservation-info h2 {
    margin-bottom: 24px;
}

.reservation-info p {
    opacity: 0.7;
    margin-bottom: 40px;
}

.reservation-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.contact-icon {
    font-size: 20px;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.form-group input,
.form-group select {
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-light);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding: 80px 0;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-col a,
.footer-col span {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero {
        padding: 140px 24px 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        height: 400px;
    }

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

    .dish-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .dish-card.large img {
        min-height: 350px;
    }

    .reservation-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 24px;
    }

    .nav {
        display: none;
    }

    .header-phone {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .dish-card.large {
        grid-column: span 1;
    }

    .chef-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .chef-image {
        margin: 0 auto;
    }

    .chef-info {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}