/* ===== CSS Custom Properties ===== */
:root {
    --color-red: #C43C3C;
    --color-red-dark: #A02F2F;
    --color-red-light: #E85656;
    --color-yellow: #F0B030;
    --color-yellow-light: #F7D57A;
    --color-cream: #FAF6F0;
    --color-cream-dark: #F0E8DA;
    --color-cream-darker: #EFE5D5;
    --color-white: #FFFFFF;
    --color-dark: #1A1A1A;
    --color-text: #2D2D2D;
    --color-text-light: #6B6B6B;
    --color-text-muted: #999999;
    --color-green: #2D6A4F;
    --color-green-light: #52B788;
    --color-blue: #1B4965;
    --color-nav-blue: #5F758F;
    --color-warm-gray: #8B7355;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 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: 16px;
    --radius-xl: 24px;

    --container-max: 1200px;
    --nav-height: 72px;

    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Section Base ===== */
.section {
    padding: 100px 0;
}

/* ===== Home Section ===== */
#home {
    background: var(--color-cream-darker);
}

#home .section-label {
    font-size: 0.85rem;
    letter-spacing: 3px;
}

#home .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

#home .about-text p {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
}

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

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-red);
    margin-bottom: 16px;
    position: relative;
    padding: 0 16px;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--color-red);
    opacity: 0.4;
}

.section-label::before {
    left: -24px;
}

.section-label::after {
    right: -24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition);
    background: transparent;
}

.nav.scrolled {
    background: var(--color-nav-blue);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.nav.scrolled .nav-link {
    color: var(--color-white);
}

.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link.active {
    color: var(--color-red-light);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    transition: color var(--transition);
}

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

.nav-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-fast);
    position: relative;
}

.nav.scrolled .nav-link {
    color: var(--color-white);
}

.nav-link:hover {
    color: var(--color-red-light);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition);
}

.nav.scrolled .nav-toggle span {
    background: var(--color-white);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
    margin-top: -460px;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(26, 26, 26, 0.3) 0%,
            rgba(26, 26, 26, 0.1) 50%,
            rgba(250, 246, 240, 1) 100%
        );
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6875rem, 3.375vw, 3.375rem);
    font-weight: 600;
    color: var(--color-white);
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
    line-height: 1.2;
    margin: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-dark);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.hero-scroll:hover {
    color: var(--color-red);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 0;
    align-items: center;
}

.about-text .section-title {
    margin-bottom: 24px;
}

.about-signature {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--color-cream-dark);
}

.signature-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-red);
}

/* About Visual - Real Photo */
.about-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.about-photo {
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/3;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 48px;
    border-top: 1px solid var(--color-cream-dark);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-red);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ===== Cuisine Section ===== */
.section--cuisine {
    background: var(--color-white);
}

.cuisine-intro {
    max-width: 800px;
    margin: -40px auto 60px;
    text-align: center;
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.9;
}

.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.cuisine-card {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.cuisine-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-red);
}

.cuisine-card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.cuisine-card-content {
    padding: 28px 32px 36px;
}

.cuisine-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.cuisine-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.cuisine-note {
    display: flex;
    gap: 0;
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid transparent;
    transition: all var(--transition);
    margin-bottom: 60px;
}

.cuisine-note:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-red);
}

.cuisine-note-image {
    width: 320px;
    min-height: 260px;
    flex-shrink: 0;
    overflow: hidden;
}

.cuisine-note-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cuisine-note-content {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cuisine-note-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.cuisine-note-content p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ===== Festivals Section ===== */
.section--festivals {
    background: var(--color-cream);
}

.festival-timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.festival-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.festival-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-red);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.festival-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-cream-dark);
}

.festival-card:hover::before {
    transform: scaleX(1);
}

.festival-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.festival-icon svg {
    height: 3rem;
    width: auto;
    display: block;
}

.festival-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.festival-content p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== Recipes Section ===== */
.section--recipes {
    background: var(--color-white);
}

.recipe-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--color-cream-dark);
    background: transparent;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

.filter-btn.active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.recipe-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-cream);
    transition: all var(--transition);
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.recipe-card.hidden {
    display: none;
}

.recipe-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.recipe-card:hover .recipe-image img {
    transform: scale(1.08);
}

.recipe-info {
    padding: 20px 24px;
}

.recipe-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.recipe-info p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===== Contact Section ===== */
.section--contact {
    background: var(--color-cream);
}

.contact-grid {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 20px;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.contact-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-red);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-red);
}

.contact-details h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.contact-details p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 8px;
}

.contact-link {
    color: var(--color-red);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-red-dark);
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 300px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-link-group h4 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-link-group ul li {
    margin-bottom: 8px;
}

.footer-link-group ul li a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
    font-size: 0.95rem;
}

.footer-link-group ul li a:hover {
    color: var(--color-yellow-light);
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Scroll Animations ===== */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

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

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .section {
        padding: 80px 0;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu .nav-link {
        color: var(--color-text);
        font-size: 1.25rem;
    }

    /* Hero */
    .hero-scroll {
        display: none;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

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

    /* Cuisine */
    .cuisine-grid {
        grid-template-columns: 1fr;
    }

    /* Festivals */
    .festival-timeline {
        grid-template-columns: 1fr;
    }

    .festival-card {
        flex-direction: column;
        gap: 12px;
    }

    /* Recipes */
    .recipe-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
    }
}

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

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .recipe-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .contact-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ===== Fish Section ===== */
.section--fishes {
    background: var(--color-cream);
}

.fish-search-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.fish-search-input {
    flex: 1;
    max-width: 480px;
    padding: 12px 20px;
    border: 2px solid var(--color-cream-dark);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--color-white);
    color: var(--color-dark);
    outline: none;
    transition: border-color var(--transition);
}

.fish-search-input:focus {
    border-color: var(--color-red);
}

.fish-search-input::placeholder {
    color: var(--color-text-light);
}

.fish-search-count {
    font-size: 0.875rem;
    color: var(--color-text-light);
    white-space: nowrap;
}

.fish-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.fish-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
}

.fish-table thead {
    background: var(--color-dark);
    color: var(--color-white);
}

.fish-table thead th {
    padding: 14px 20px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.fish-col-de { width: 25%; }
.fish-col-sv { width: 25%; }
.fish-col-en { width: 25%; }
.fish-col-sci { width: 25%; }

.fish-table tbody tr {
    border-bottom: 1px solid var(--color-cream-dark);
    transition: background var(--transition);
}

.fish-table tbody tr:hover {
    background: var(--color-cream);
}

.fish-table tbody tr:last-child {
    border-bottom: none;
}

.fish-table tbody td {
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--color-dark);
    vertical-align: middle;
}

.fish-table tbody tr:nth-child(even) {
    background: rgba(250, 246, 240, 0.5);
}

.fish-table tbody tr:nth-child(even):hover {
    background: var(--color-cream);
}

.fish-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-light);
    font-style: italic;
}

/* ===== Print Styles ===== */
@media print {
    .nav, .hero-scroll {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .section {
        padding: 40px 0;
    }
}
