/* ==============================================================================
   TATIANA BERSENEVA - PERSONAL CULINARY WEBSITE
   Clean, Pure White, Elegant Gastronomy Design
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-soft: #fcfbf9;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-muted: #5a5a5a;
    --text-light: #888888;
    --accent: #8b5a2b;
    --accent-light: #f7f3ee;
    --accent-hover: #6d441f;
    --border-color: #eae6df;
    --border-light: #f0ede8;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, .serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.15;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.25;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.3;
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.brand-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 500;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

.nav-btn {
    padding: 10px 22px;
    background-color: var(--accent);
    color: #ffffff !important;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(139, 90, 43, 0.2);
}

.nav-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* Hero Section (About) */
.hero-section {
    padding: 70px 0 60px;
}

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

.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.hero-image {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    border: 8px solid #ffffff;
    outline: 1px solid var(--border-color);
    transition: transform 0.4s ease;
}

/* Camera Flash Keyframes */
@keyframes cameraFlash {
    0% {
        filter: brightness(1) contrast(1);
    }
    12% {
        filter: brightness(2.8) contrast(1.3) saturate(1.1);
    }
    30% {
        filter: brightness(1.6) contrast(1.1);
    }
    55% {
        filter: brightness(1.12);
    }
    100% {
        filter: brightness(1) contrast(1);
    }
}

@keyframes flashGlow {
    0% {
        opacity: 0;
    }
    12% {
        opacity: 0.85;
    }
    35% {
        opacity: 0.25;
    }
    100% {
        opacity: 0;
    }
}

.hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    max-width: 440px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 45%, rgba(255, 255, 255, 0) 75%);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.hero-image-wrap:hover::before {
    animation: flashGlow 0.65s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.hero-image-wrap:hover .hero-image {
    animation: cameraFlash 0.7s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.hero-badge {
    position: absolute;
    bottom: -15px;
    right: 30px;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 40px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 600;
}

.hero-title {
    margin-bottom: 8px;
}

.hero-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Philosophy Section */
.philosophy-section {
    background-color: var(--bg-soft);
    padding: 80px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.quote-box {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 15px;
    opacity: 0.4;
}

.quote-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.quote-author {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

/* 5 Services - Alternating Split Layout (50/50) */
.services-section {
    padding: 70px 0 90px;
}

.page-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

.page-header h1 {
    margin-bottom: 16px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Alternating service card */
.service-card {
    display: flex;
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    min-height: 420px;
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.service-card.reverse {
    flex-direction: row-reverse;
}

.service-img-half {
    flex: 1;
    min-width: 50%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-img-half::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 45%, rgba(255, 255, 255, 0) 75%);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.service-img-half:hover::before {
    animation: flashGlow 0.65s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.service-img-half:hover img {
    animation: cameraFlash 0.7s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.service-img-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img-half img {
    transform: scale(1.03);
}

.service-text-half {
    flex: 1;
    min-width: 50%;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.service-title {
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 16px;
}

.service-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.service-tag {
    background-color: var(--bg-soft);
    border: 1px solid var(--border-color);
    color: var(--accent);
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.service-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

.service-btn:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
    gap: 12px;
}

/* Contacts Page */
.contacts-section {
    padding: 70px 0 100px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-soft);
}

.contact-title {
    margin-bottom: 24px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-value a:hover {
    color: var(--accent);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}

.form-btn {
    width: 100%;
    padding: 16px 28px;
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(139, 90, 43, 0.25);
}

.form-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--bg-soft);
    border-top: 1px solid var(--border-light);
    padding: 50px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.footer-copy {
    text-align: center;
    padding-top: 25px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid, .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-card, .service-card.reverse {
        flex-direction: column !important;
    }

    .service-img-half {
        min-height: 280px;
    }

    .service-text-half {
        padding: 35px 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
