/* ============================================
   TORO – Premium Sertéshús | Carne de Porc
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #971511;
    --secondary: #5E0607;
    --primary-light: #b91c18;
    --white: #FFFFFF;
    --off-white: #FDF9F9;
    --light-red: #FEF2F2;
    --dark: #1C1C1C;
    --text: #2D2D2D;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --shadow: 0 4px 16px rgba(151, 21, 17, 0.12);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);
    --radius: 10px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 76px;
}

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

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

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

ul { list-style: none; }

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

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(151, 21, 17, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    letter-spacing: 0.02em;
}

.logo-tagline {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 16px; right: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: var(--transition);
}

.nav a:hover { color: var(--primary); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--primary); }
.nav a.active::after { transform: scaleX(1); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}

.lang-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-light);
    transition: var(--transition);
    letter-spacing: 0.04em;
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
    border-radius: 24px;
}

.header-cta {
    padding: 10px 22px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 24px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--light-red);
    color: var(--primary);
}

.mobile-nav .lang-switcher {
    margin-top: 12px;
    width: fit-content;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main { padding-top: var(--header-h); }

.section { padding: 96px 32px; }

.section-sm { padding: 64px 32px; }

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 600px;
}

.divider {
    width: 56px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin: 20px 0;
}

/* ============================================
   HOME – HERO
   ============================================ */

.hero {
    min-height: calc(100vh - var(--header-h));
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--off-white);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px 80px 80px;
    position: relative;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light-red);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 28px;
    width: fit-content;
}

.hero-label::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(38px, 4.5vw, 62px);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span { color: var(--primary); }

.hero-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--primary);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(151, 21, 17, 0.35);
}

.btn-primary svg { width: 18px; height: 18px; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.hero-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

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

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(94, 6, 7, 0.15) 0%, transparent 60%);
}

.hero-badge {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-badge-icon {
    width: 48px; height: 48px;
    background: var(--light-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-badge-icon img { width: 28px; height: 28px; object-fit: contain; }

.hero-badge-text strong {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: var(--dark);
    display: block;
}

.hero-badge-text span {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
   HOME – FEATURES BAR
   ============================================ */

.features-bar {
    background: var(--secondary);
    padding: 0 32px;
}

.features-bar .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px 40px;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.feature-item:last-child { border-right: none; }

.feature-item:hover { background: rgba(255,255,255,0.05); }

.feature-icon {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }

.feature-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 3px;
    font-family: 'Playfair Display', serif;
}

.feature-text span {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

/* ============================================
   HOME – WHO WE ARE
   ============================================ */

.about {
    background: var(--white);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
}

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

.about-image-accent {
    position: absolute;
    top: -16px; right: -16px;
    width: 120px; height: 120px;
    background: var(--light-red);
    border-radius: 50%;
    z-index: -1;
}

.about-image-badge {
    position: absolute;
    bottom: 24px; right: 24px;
    background: var(--primary);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.about-image-badge .year {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.about-image-badge .year-label {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 2px;
    letter-spacing: 0.06em;
}

.about-content { padding: 16px 0; }

.about-points {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-point-icon {
    width: 36px; height: 36px;
    background: var(--light-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-point-icon svg { width: 18px; height: 18px; color: var(--primary); }

.about-point-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.about-point-text span {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   HOME – HISTORY TIMELINE
   ============================================ */

.history {
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.history::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.history .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.history-content { order: 2; }
.history-image-wrap { order: 1; }

.history-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-lg);
}

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

.timeline {
    margin-top: 40px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 8px; bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    display: flex;
    gap: 24px;
    padding-left: 0;
    margin-bottom: 32px;
    position: relative;
}

.timeline-dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-dot svg { width: 14px; height: 14px; color: white; }

.timeline-body { padding-top: 4px; }

.timeline-year {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.timeline-body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 6px;
}

.timeline-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   HOME – STORES
   ============================================ */

.stores {
    background: var(--white);
}

.stores .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.stores-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.store-card:hover {
    border-color: var(--primary);
    background: var(--light-red);
    transform: translateX(4px);
}

.store-num {
    width: 36px; height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.store-info { flex: 1; }

.store-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.store-county {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

.store-hours {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.stores-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

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

/* ============================================
   PRODUCTS PAGE
   ============================================ */

.products-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 80px 32px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    display: none;
}

.products-hero .section-label { color: rgba(255,255,255,0.7); }
.products-hero .section-title { color: white; }
.products-hero .section-subtitle { color: rgba(255,255,255,0.75); margin: 0 auto; }

.products-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    color: white;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 13px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.category-tabs {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-h);
    z-index: 100;
}

.category-tabs .container {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-tabs .container::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 20px 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-count {
    background: var(--light-red);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.tab-btn.active .tab-count {
    background: var(--primary);
    color: white;
}

.products-section {
    padding: 64px 32px;
    background: var(--off-white);
}

.product-category { display: none; }
.product-category.active { display: block; }

.category-header {
    text-align: center;
    margin-bottom: 48px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: default;
}

/* Scroll animáció – JS adja hozzá az osztályokat */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.38s ease, transform 0.38s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(151, 21, 17, 0.2);
}

.product-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--light-red);
    position: relative;
}

.product-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
    /* GPU réteget kap a képnek, simább scale animáció hover-nél */
    will-change: transform;
}

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

.product-img-fallback {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-red);
}

.product-img-fallback svg {
    width: 48px; height: 48px;
    color: var(--primary);
    opacity: 0.4;
}

.product-info {
    padding: 18px 20px;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.product-category-tag {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
   FARM PAGE
   ============================================ */

.farm-hero {
    height: 500px;
    position: relative;
    overflow: hidden;
}

.farm-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.farm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(94,6,7,0.75) 0%, rgba(94,6,7,0.3) 60%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.farm-hero-content { max-width: 600px; }

.farm-hero-content .section-label { color: rgba(255,255,255,0.75); }

.farm-hero-content .section-title {
    color: white;
    font-size: clamp(32px, 4vw, 54px);
}

.farm-hero-content p {
    color: rgba(255,255,255,0.8);
    font-size: 17px;
    line-height: 1.7;
    margin-top: 16px;
}

.farm-content { background: var(--white); }

.farm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.farm-block { padding: 80px 0; }

.farm-block + .farm-block { border-top: 1px solid var(--border); }

.farm-full { grid-column: 1 / -1; }

.farm-img {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: var(--shadow-lg);
}

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

.farm-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.farm-feature {
    padding: 24px;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.farm-feature-icon {
    width: 44px; height: 44px;
    background: var(--light-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.farm-feature-icon svg { width: 22px; height: 22px; color: var(--primary); }

.farm-feature h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.farm-feature p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.farm-b2b {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 80px 32px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.farm-b2b::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
}

.farm-b2b .container { position: relative; z-index: 1; max-width: 720px; }

.farm-b2b h2 { color: white; font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 16px; }

.farm-b2b p { color: rgba(255,255,255,0.8); font-size: 17px; line-height: 1.7; margin-bottom: 36px; }

.farm-b2b-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.farm-b2b-option {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.farm-b2b-option svg { width: 20px; height: 20px; }

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: white;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-white:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 80px 32px;
    text-align: center;
    color: white;
}

.contact-hero .section-label { color: rgba(255,255,255,0.7); }
.contact-hero .section-title { color: white; }
.contact-hero .section-subtitle { color: rgba(255,255,255,0.75); margin: 0 auto; }

.contact-main {
    background: var(--off-white);
    padding: 80px 32px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.contact-icon {
    width: 44px; height: 44px;
    background: var(--light-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.contact-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    font-family: 'Playfair Display', serif;
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-note {
    font-size: 13px;
    color: var(--text-light);
}

.contact-card a {
    color: var(--primary);
    transition: var(--transition);
}

.contact-card a:hover { color: var(--secondary); }

.contact-hours {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.hours-row {
    font-size: 13px;
    color: var(--text);
}

.hours-row strong { font-weight: 600; }

.map-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 500px;
    border: 1px solid var(--border);
}

.map-wrap iframe { width: 100%; height: 100%; border: none; }

.stores-contact {
    background: var(--white);
    padding: 80px 32px;
}

.stores-contact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.hq-card-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.hq-card {
    min-width: 240px;
    max-width: 320px;
    width: 100%;
    background: var(--light-red);
    border-color: rgba(151,21,17,0.2);
}

.hq-card:hover {
    background: var(--primary);
}

.hq-card:hover .store-contact-name,
.hq-card:hover .store-contact-county {
    color: white;
}

.hq-num {
    background: var(--secondary) !important;
}

.store-contact-card {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
    text-align: center;
}

.store-contact-card:hover {
    background: var(--light-red);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.store-contact-num {
    width: 44px; height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.store-contact-name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.store-contact-county {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.footer {
    background: var(--dark);
    color: white;
    padding: 64px 32px 32px;
}

.footer-top {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img { height: 40px; width: auto; object-fit: contain; }

.footer-logo-text .logo-name { font-size: 20px; color: white; }
.footer-logo-text .logo-tagline { color: rgba(255,255,255,0.4); }

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-contact-link:hover { color: white; }

.footer-contact-link svg { width: 15px; height: 15px; flex-shrink: 0; }

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
    cursor: pointer;
}

.footer-links a:hover { color: white; }

.footer-stores-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-stores-list li {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-stores-list li::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

.footer-copy span { color: var(--primary); }

.footer-quality {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

.footer-quality svg { width: 14px; height: 14px; color: var(--primary); }

/* ============================================
   SCROLL TO TOP
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px; height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 500;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.scroll-top svg { width: 20px; height: 20px; }

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

.text-center { text-align: center; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* Page visibility */
.page { display: none; }
.page.active { display: block; }

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   RESPONSIVE – TABLET (1024px)
   ============================================ */

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-content { padding: 64px 40px; order: 2; }
    .hero-image { height: 400px; order: 1; }
    .hero-stats { gap: 24px; }

    .features-bar .container { grid-template-columns: 1fr; }
    .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .feature-item:last-child { border-bottom: none; }

    .about .container,
    .history .container,
    .stores .container { grid-template-columns: 1fr; gap: 48px; }

    .history-content { order: 1; }
    .history-image-wrap { order: 2; }
    .history-image { aspect-ratio: 16/9; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }

    .contact-grid { grid-template-columns: 1fr; }
    .map-wrap { height: 360px; }

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

/* ============================================
   RESPONSIVE – MOBILE (768px)
   ============================================ */

@media (max-width: 768px) {
    /* ── Layout & Spacing ── */
    .section { padding: 56px 16px; }
    .section-sm { padding: 40px 16px; }
    .container { padding: 0 16px; }

    /* ── Header ── */
    .header-inner { padding: 0 16px; }
    .nav { display: none; }
    .header-cta { display: none; }
    .mobile-menu-btn { display: flex; }

    /* ── Hero ── */
    .hero-content { padding: 40px 16px 48px; }
    .hero-image { height: 260px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .hero-stat-value { font-size: 28px; }
    .hero-title { font-size: clamp(28px, 8vw, 42px); }
    .hero-text { font-size: 15px; }
    .btn-primary, .btn-secondary { padding: 13px 22px; font-size: 14px; }

    /* ── Features bar ── */
    .features-bar { padding: 0 16px; }
    .feature-item { padding: 22px 16px; }
    .feature-icon img { width: 28px; height: 28px; }

    /* ── About / History / Stores ── */
    .section-title { font-size: clamp(22px, 6vw, 34px); }
    .section-subtitle { font-size: 15px; }
    .about-image { aspect-ratio: 4/3; }

    /* ── Products ── */
    .products-hero { padding: 56px 16px; }
    .category-tabs .container { gap: 8px; padding: 0 16px; overflow-x: auto; }
    .tab-btn { padding: 10px 16px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-img { aspect-ratio: 1/1; }
    .product-info { padding: 12px 14px; }
    .product-name { font-size: 14px; }

    /* ── Farm page ── */
    .farm-features { grid-template-columns: 1fr; }
    .farm-hero { height: 320px; }
    .farm-hero-overlay { padding: 0 16px; }
    .farm-hero-content .section-title { font-size: 26px; }
    .farm-img { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-lg); }
    .farm-img img { width: 100%; height: 100%; object-fit: cover; }
    /* Félsertés szekció mobilon */
    .farm-half-pig-section { padding: 48px 16px !important; }
    .farm-half-pig-section .farm-grid { gap: 32px; }

    /* ── B2B CTA ── */
    .farm-b2b { padding: 56px 16px; }
    .farm-b2b-options { flex-direction: column; align-items: center; gap: 12px; }
    .farm-b2b-option { width: 100%; max-width: 280px; justify-content: center; }
    .farm-b2b h2 { font-size: 24px; }
    .farm-b2b p { font-size: 15px; }

    /* ── Contact ── */
    .contact-hero { padding: 56px 16px; }
    .contact-main { padding: 40px 16px; }
    .stores-contact { padding: 40px 16px; }
    .map-wrap { height: 300px; border-radius: var(--radius-lg); }

    /* ── Stores contact grid ── */
    .stores-contact-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .store-contact-card { padding: 20px 14px; }
    .store-contact-name { font-size: 14px; }
    .store-contact-num { width: 36px; height: 36px; font-size: 14px; }
    .hq-card-wrap { margin-top: 12px; }
    .hq-card { max-width: 260px; }

    /* ── Timeline ── */
    .timeline::before { left: 16px; }

    /* ── Footer ── */
    .about-image-accent { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer { padding: 44px 16px 20px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
    .footer-legal-bar { padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }

    /* ── Scroll top ── */
    .scroll-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
    /* ── Hero ── */
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary { width: 100%; justify-content: center; }
    .hero-image { height: 220px; }

    /* ── Products ── */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-name { font-size: 13px; }

    /* ── Contact stores ── */
    .stores-contact-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    /* 5. kártya (Kézdivásárhely) középre – egyedül van a sorban */
    .stores-contact-grid > .store-contact-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 200px;
        margin: 0 auto;
        width: 100%;
    }

    /* ── Contact hours ── */
    .contact-hours { grid-template-columns: 1fr; }

    /* ── Cookie banner ── */
    .cookie-actions { width: 100%; justify-content: flex-end; }
}

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    color: white;
    padding: 16px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}
.cookie-text svg { flex-shrink: 0; margin-top: 2px; }
.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn-primary {
    background: white;
    color: var(--secondary);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.cookie-btn-primary:hover { opacity: 0.9; }
.cookie-btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.cookie-btn-secondary:hover { border-color: white; }

/* =============================================
   LEGAL FOOTER BAR
   ============================================= */
.footer-legal-bar {
    background: rgba(0,0,0,0.3);
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-legal-inner {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.footer-legal-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-legal-links a {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.85); }
.footer-legal-links span { color: rgba(255,255,255,0.25); font-size: 12px; }

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal-box {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}
.modal-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 20px;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.modal-close:hover { background: var(--border); }
.modal-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 15px;
}
.modal-content a { color: var(--primary); }

@media (max-width: 768px) {
    .footer-legal-bar { padding: 14px 20px; flex-direction: column; align-items: flex-start; }
    .cookie-banner { padding: 16px 20px; }
    .cookie-banner-inner { flex-direction: column; gap: 16px; }
    .cookie-actions { width: 100%; justify-content: flex-end; }
}
