/* EuroMilk – споделени стилове за страниците на марките */
:root {
    --cream: #faf1e0;
    --green: #006837;
    --blue: #064ea2;
    --gold: #d4af37;

    --bg-primary: #faf1e0;
    --bg-secondary: #f5e6d3;
    --text-primary: #42210b;
    --text-secondary: #4a4a4a;
    --accent: #006837;
    --surface: rgba(255, 255, 255, 0.6);
    --surface-solid: #fffdf8;
    --border: rgba(0, 104, 55, 0.15);
    --shadow: rgba(66, 33, 11, 0.09);

    --font-display: 'Bona Nova', Georgia, serif;
    --font-body: 'Onest', Arial, sans-serif;
}

[data-theme="dark"] {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f2e;
    --text-primary: #faf1e0;
    --text-secondary: #b8b0a0;
    --accent: #4ade80;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-solid: #171d29;
    --border: rgba(250, 241, 224, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.6s, color 0.6s;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 1; }

img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- Navigation ---------- */
.nav-container {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1rem, 4vw, 3rem);
    background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-svg { height: 40px; width: auto; display: block; }
.logo-fill { fill: var(--text-primary); }
.logo-accent { color: var(--accent); }

.desktop-nav { display: flex; gap: clamp(0.75rem, 2vw, 1.75rem); flex-wrap: wrap; }
.desktop-nav-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
}
.desktop-nav-link:hover, .desktop-nav-link[aria-current="page"] { color: var(--accent); }

.nav-controls { display: flex; align-items: center; gap: 0.6rem; }

.nav-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s, transform 0.3s;
}
.nav-icon-button:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.language-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
}
.language-picker select {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.language-picker select:focus { outline: none; }
.language-picker option { color: #1a1a1a; }

.google-translate-host { position: absolute; left: -9999px; top: 0; height: 0; overflow: hidden; }
body { top: 0 !important; }
.skiptranslate iframe { display: none !important; }

/* ---------- Brand hero ---------- */
.brand-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(7rem, 14vh, 9rem) clamp(1rem, 5vw, 4rem) clamp(2.5rem, 6vh, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.brand-hero > div { position: relative; z-index: 1; }

.hero-ghost {
    position: absolute;
    top: 1.5rem;
    left: -1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(13rem, 28vw, 24rem);
    line-height: 1;
    color: var(--accent);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
}
.breadcrumbs a { text-decoration: none; transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden] { opacity: 0.5; }

.brand-flag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.brand-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.05;
    font-weight: 700;
}

.brand-hero .brand-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--accent);
    margin-top: 0.9rem;
}

.brand-hero .brand-intro {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-top: 1.3rem;
    max-width: 56ch;
}

.brand-hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn-primary { background: var(--green); color: #fff; border: 1px solid var(--green); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 104, 55, 0.25); }
[data-theme="dark"] .btn-primary { background: var(--accent); border-color: var(--accent); color: #0f1419; }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.brand-hero-visual { position: relative; }
.brand-hero-visual .cover-frame {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px var(--shadow);
    aspect-ratio: 4 / 3;
    background: var(--bg-secondary);
}
.brand-hero-visual .cover-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-hero-visual .brand-logo-badge {
    position: absolute;
    left: 1.2rem;
    bottom: -1.4rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px var(--shadow);
    padding: 0.7rem 1.1rem;
    max-width: 180px;
}
.brand-hero-visual .brand-logo-badge img { width: 128px; height: 52px; object-fit: contain; display: block; }
.brand-hero-visual .brand-logo-badge--dark { background: var(--green); }
.brand-hero-visual .brand-logo-badge--blue { background: #064ea2; }

/* ---------- Section wave ---------- */
.section-wave { line-height: 0; position: relative; }
.section-wave svg { width: 100%; height: clamp(40px, 8vw, 90px); display: block; }

/* ---------- Catalogue ---------- */
.catalogue {
    background: var(--bg-secondary);
    padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 5vw, 4rem) clamp(3rem, 8vh, 5rem);
}
.catalogue-inner { max-width: 1280px; margin: 0 auto; }

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.catalogue h2.catalogue-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.catalogue .catalogue-note { color: var(--text-secondary); max-width: 68ch; line-height: 1.7; }

.group-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 0; }

.chips-bar {
    position: sticky;
    top: 66px;
    z-index: 40;
    margin: 1.6rem -0.5rem 0;
    padding: 0.7rem 0.5rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg-secondary) 86%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.group-chips a.active {
    border-color: var(--accent);
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.group-chips a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.group-chips a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.product-group { margin-top: clamp(2.5rem, 6vh, 4rem); scroll-margin-top: 140px; }
.product-group > h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
}
.product-group > h2 .count {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.group-rule { height: 1px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: 0.35; margin: 0.8rem 0 1.8rem; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.4rem;
    align-items: stretch;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 18px var(--shadow);
    transition: transform 0.35s, box-shadow 0.35s;
    scroll-margin-top: 150px;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px var(--shadow); }

.product-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    border-bottom: 1px solid var(--border);
}
.product-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}
.product-card:hover .product-photo img { transform: scale(1.05); }
.product-photo .placeholder { color: var(--green); opacity: 0.35; width: 40%; height: auto; }

.format-chip {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: var(--green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.product-body { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.product-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 700;
}
.product-body .desc { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }
.product-body .desc p + p { margin-top: 0.6rem; }

.product-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
}

.product-card--featured .product-photo {
    flex: 0 0 min(340px, 40%);
    aspect-ratio: 1 / 1;
    border-bottom: 0;
    border-right: 1px solid var(--border);
}

.product-card--featured .product-body {
    justify-content: center;
    padding: 1.6rem 2rem;
    gap: 0.85rem;
}

.product-card--featured h3 {
    font-size: clamp(1.45rem, 2.4vw, 1.8rem);
}

.product-card--featured details.fact { margin-top: 0.4rem; }

@media (max-width: 700px) {
    .product-card--featured { flex-direction: column; }
    .product-card--featured .product-photo {
        flex-basis: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .product-card--featured .product-body { padding: 1.2rem 1.3rem 1.4rem; }
}

details.fact {
    margin-top: auto;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    background: color-mix(in srgb, var(--accent) 5%, transparent);
}
details.fact summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
details.fact summary::-webkit-details-marker { display: none; }
details.fact summary::before { content: '✦'; font-size: 0.8rem; }
details.fact[open] summary { margin-bottom: 0.5rem; }
details.fact p { font-size: 0.87rem; line-height: 1.6; color: var(--text-secondary); }

.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.product-cta:hover { text-decoration: underline; }

/* ---------- Contact band ---------- */
.contact-band {
    text-align: center;
    padding: clamp(3rem, 8vh, 5rem) clamp(1rem, 5vw, 4rem);
    max-width: 820px;
    margin: 0 auto;
}
.contact-band h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.contact-band p { color: var(--text-secondary); line-height: 1.7; margin: 1rem auto 1.8rem; max-width: 56ch; }

/* ---------- Footer ---------- */
.footer {
    background: var(--green);
    color: #faf1e0;
    padding: 2.5rem clamp(1rem, 5vw, 4rem);
}
[data-theme="dark"] .footer { background: #0b2e1d; }
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.footer .logo-fill { fill: #faf1e0; }
.footer .logo-accent { color: var(--gold); }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: 0.9rem; }
.footer nav a { color: rgba(250, 241, 224, 0.85); text-decoration: none; transition: color 0.3s; }
.footer nav a:hover { color: #fff; }
.footer-copy { width: 100%; text-align: center; font-size: 0.82rem; color: rgba(250, 241, 224, 0.65); margin-top: 1rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-card {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease calc(var(--d, 0) * 70ms), transform 0.55s ease calc(var(--d, 0) * 70ms);
}
.reveal-card.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-card { opacity: 1; transform: none; transition: none; }
    .product-card, .product-photo img, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .brand-hero { grid-template-columns: 1fr; padding-top: 6.5rem; }
    .brand-hero-visual { order: -1; margin-bottom: 1.6rem; }
    .brand-hero-visual .brand-logo-badge { bottom: -1rem; }
    .desktop-nav { display: none; }
}
@media (max-width: 480px) {
    .language-picker { display: none; }
    .products-grid { grid-template-columns: 1fr; }
}
