/* === Anna Knas Cooking - Design System === */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Lato:wght@300;400;700&display=swap');

/* === CSS Variables === */
:root {
    --teal: #00838F;
    --teal-dark: #00838f;
    --teal-light: #00838F;
    --magenta: #C2185B;
    --magenta-dark: #AD1457;
    --white: #ffffff;
    --off-white: #f5f7fa;
    --text-dark: #222;
    --text-light: #eee;
    --text-muted: #666;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;
    --max-width: 1200px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* === Reset === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 16px 0;
    transition: background 0.3s ease;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--magenta);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.5) 100%);
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--white);
    padding: 60px 0;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

/* Small hero for subpages */
.hero-small {
    min-height: 40vh;
    text-align: center;
    justify-content: center;
}

.hero-small .hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-small h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

/* Large hero for About page */
.hero-about-large {
    min-height: 90vh;
}

.hero-about-large::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-about-large .hero-content {
    max-width: 600px;
}

/* === Sections === */
.section {
    padding: 80px 0;
}

.section-teal {
    background: var(--teal);
    color: var(--white);
}

.section-offwhite {
    background: var(--off-white);
}

.section-magenta {
    background: var(--magenta);
    color: var(--white);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.section-teal .section-subtitle,
.section-magenta .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* === Split Layout (50/50) === */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image img {
    border-radius: 8px;
    width: 100%;
    object-fit: cover;
}

.split-text h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: 16px;
}

.split-text h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--teal);
}

.split-text p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.section-teal .split-text p {
    color: rgba(255, 255, 255, 0.85);
}

/* === Feature Cards === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--teal);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Teal section feature cards */
.section-teal .feature-card {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.section-teal .feature-card h3 {
    color: var(--white);
}

.section-teal .feature-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* === Video Section === */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* === Benefits / Magenta Section === */
.benefit-item {
    padding: 20px;
}

.benefit-item .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

/* === FAQ === */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--teal);
}

.faq-question .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-top: 12px;
}

/* === Contact Form === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--teal);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.contact-detail .icon {
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-teal {
    background: var(--teal);
    color: var(--white);
}

.btn-teal:hover {
    background: var(--teal-dark);
}

.btn-magenta {
    background: var(--magenta);
    color: var(--white);
}

.btn-magenta:hover {
    background: var(--magenta-dark);
}

/* === Image Gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-grid img {
    border-radius: 8px;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* 8-image food gallery (4x2 grid) */
.gallery-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gallery-grid-8 img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-grid-8 img:hover {
    transform: scale(1.05);
}

/* Homepage contact form split */
.contact-form-split {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-box {
    background: #e8edf2;
    padding: 40px 44px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    flex: 0 0 58%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.contact-form-box .form-group {
    text-align: left;
}

.contact-form-image {
    flex: 0 0 50%;
    margin-left: -40px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.contact-form-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* Dark submit button (matches original) */
.btn-dark {
    background: #222;
    color: var(--white);
    border: none;
    padding: 14px 36px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: #000;
}

/* Benefits grid: 3 on top, 2 on bottom centered */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

/* === Magenta Separator === */
.separator-magenta {
    height: 6px;
    background: var(--magenta);
    border: none;
}

/* === Quote === */
.quote-block {
    background: var(--off-white);
    border-left: 4px solid var(--magenta);
    padding: 32px 40px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    border-radius: 0 8px 8px 0;
}

/* === Footer === */
.footer {
    background: var(--teal-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer p,
.footer a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.footer a:hover {
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--magenta);
    border: none;
    border-radius: 4px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: var(--magenta);
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--teal-dark);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 65vh;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid-8 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact form — stack vertically on tablet/mobile */
    .contact-form-split {
        flex-direction: column;
        max-width: 100%;
        align-items: stretch;
    }

    .contact-form-box {
        flex: 1 1 auto;
        width: 100%;
        border-radius: 16px;
        padding: 30px 24px;
    }

    .contact-form-image {
        flex: 1 1 auto;
        width: 100%;
        margin-left: 0;
        margin-top: -20px;
        max-height: 250px;
        overflow: hidden;
    }

    .contact-form-image img {
        min-height: 200px;
    }

    /* FAQ — single column on tablet */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Features — single column on tablet */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* About hero slightly shorter on tablet */
    .hero-about-large {
        min-height: 60vh;
    }

    .section {
        padding: 50px 0;
    }

    /* Lightbox arrows smaller on tablet */
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.8rem;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid-8 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .hero-small {
        min-height: 30vh;
    }

    .hero-about-large {
        min-height: 45vh;
    }

    .newsletter-form {
        flex-direction: column;
    }

    /* Contact form — full width, tighter padding */
    .contact-form-split {
        max-width: 100%;
    }

    .contact-form-box {
        padding: 24px 16px;
    }

    .contact-form-image {
        max-height: 180px;
    }

    /* Lightbox — bigger close, smaller arrows */
    .lightbox-close {
        font-size: 2rem;
        top: 12px;
        right: 12px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.4rem;
        padding: 10px 14px;
    }

    .lightbox-img {
        max-width: 96vw;
        max-height: 80vh;
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* Magenta text blocks — less padding on mobile */
    .magenta-text-block {
        padding: 8px 4px;
    }

    /* Footer compact */
    .footer {
        padding: 30px 0 20px;
    }
}

/* === Lightbox === */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 0.5;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 16px 20px;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10000;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Gallery cursor */
.gallery-grid-8 img {
    cursor: pointer;
}

/* FAQ grid — 2-column Q&A layout */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px 80px;
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.faq-item p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Magenta section text blocks — no containers */
.magenta-text-block {
    padding: 16px;
    text-align: center;
}

.magenta-text-block h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.magenta-text-block p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* Benefits items centered text */
.benefit-item {
    text-align: center;
}

/* === Mobile overrides (placed last to win cascade) === */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .faq-grid {
        gap: 30px;
    }
}