/* ===================================
   BOULANGERIE LE CRUST - PREMIUM DARK THEME
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --color-dark-bg: #1a1a1a;
    --color-dark-secondary: #2a2a2a;
    --color-dark-accent: #0f0f0f;
    --color-gold: #d4af37;
    --color-gold-light: #f4e4c1;
    --color-cream: #faf8f3;
    --color-text-light: #e8e8e8;
    --color-text-muted: #a0a0a0;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;

    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-dark-bg);
    color: var(--color-text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-gold-light);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
    font-style: italic;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 0 auto 2rem;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-gold);
    background: transparent;
    color: var(--color-gold);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-gold);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--color-dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

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

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

.btn-primary:hover {
    color: var(--color-gold);
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition-smooth);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('images/hero-croissant.jpg') center/cover no-repeat;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 15, 15, 0.9) 0%,
            rgba(20, 20, 20, 0.85) 30%,
            rgba(26, 26, 26, 0.8) 60%,
            rgba(35, 35, 35, 0.75) 85%,
            rgba(42, 42, 42, 0.7) 100%);
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out 0.5s forwards;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-gold-light);
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-muted);
    font-style: italic;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    background: var(--color-dark-secondary);
    padding-top: 120px;
    padding-bottom: 120px;
    margin-top: 0;
    position: relative;
    z-index: 3;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-paragraph {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.about-paragraph strong {
    color: var(--color-gold);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    transition: var(--transition-smooth);
}

.about-image img:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
    transform: translateY(-5px);
}

/* ===================================
   MENU SECTION
   =================================== */

.menu {
    background: var(--color-dark-bg);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.menu-card {
    background: var(--color-dark-secondary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    border-color: var(--color-gold);
}

.menu-card-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.1);
}

.menu-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(26, 26, 26, 0.3));
    transition: var(--transition-smooth);
}

.menu-card:hover .menu-card-overlay {
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.85), rgba(26, 26, 26, 0.95));
}

/* Overlay Text Styles */
.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 10;
}

.menu-card:hover .overlay-text {
    opacity: 1;
    transform: translateY(0);
}

.menu-card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.menu-card-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 90%;
}

.menu-card-items {
    list-style: none;
    width: 100%;
    max-width: 80%;
}

.menu-card-items li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.menu-card-items li:last-child {
    border-bottom: none;
}

.menu-card-items li::before {
    content: '→ ';
    color: var(--color-gold);
    margin-right: 0.5rem;
}

/* ===================================
   PROCESS SECTION
   =================================== */

.process {
    background: var(--color-dark-secondary);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.process-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}

.process-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.process-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.7), rgba(26, 26, 26, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.process-item:hover .process-overlay {
    opacity: 1;
}

.process-item:hover .process-image img {
    transform: scale(1.1);
}

.process-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.process-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-gold-light);
}

.process-description {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    background: var(--color-dark-bg);
}

.contact .section-title {
    font-size: 3.5rem;
    letter-spacing: 3px;
}

.contact .title-underline {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 0 auto 3rem;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-gold-light);
}

.contact-details p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.contact-form-wrapper {
    background: linear-gradient(135deg, #f5f1e8 0%, #ede7d9 100%);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.form-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2a2a2a;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: #ffffff;
    border: 1px solid #d4af37;
    border-radius: 4px;
    color: #2a2a2a;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #b8941e;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--color-dark-accent);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.footer-section p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.social-link:hover {
    transform: translateY(-3px);
    filter: brightness(1.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-smooth);
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

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

    .section {
        padding: 60px 0;
    }

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

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

    /* Вертикальное центрирование секции контактов на мобильных */
    .contact.section {
        display: flex;
        min-height: 100vh;
        padding: 0;
    }

    .contact .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        padding: 2rem;
    }

    .contact-content {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}