/* =========================================================================
   DODLEK-AGRO PAGE-SPECIFIC STYLES
   Only page-specific rules. Global layout (header, footer, body, container,
   navigation) is handled by the Agriva theme CSS.
   ========================================================================= */

:root {
    /* Fluid typography - scales smoothly across viewport */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8rem);
    --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.9rem);
    --text-base: clamp(0.95rem, 0.9rem + 0.3vw, 1rem);
    --text-lg: clamp(1.05rem, 1rem + 0.35vw, 1.15rem);
    --text-xl: clamp(1.15rem, 1.05rem + 0.5vw, 1.25rem);
    --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
    --text-3xl: clamp(2rem, 1.75rem + 1.25vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 2rem + 1.25vw, 3rem);
    /* Primary: red and green (reversed) */
    --color-primary: #9d1111;
    --color-primary-dark: #7a0d0d;
    --color-primary-light: #b81414;
    --color-primary-alt: #5d9b42;
    --color-primary-alt-dark: #4a7d35;
    /* Grey: single base with opacity variants */
    --color-grey: #4a5568;
    --color-grey-rgb: 74, 85, 104;
    --color-grey-90: rgba(var(--color-grey-rgb), 0.9);
    --color-grey-75: rgba(var(--color-grey-rgb), 0.75);
    --color-grey-50: rgba(var(--color-grey-rgb), 0.5);
    --color-grey-30: rgba(var(--color-grey-rgb), 0.3);
    --color-grey-15: rgba(var(--color-grey-rgb), 0.15);
    --color-grey-10: rgba(var(--color-grey-rgb), 0.1);
    --color-grey-08: rgba(var(--color-grey-rgb), 0.08);
    --color-grey-06: rgba(var(--color-grey-rgb), 0.06);
    /* Page/surface backgrounds - clean, airy */
    --color-bg: #f8fafc;
    --color-bg-alt: #f1f5f9;
    --color-card-bg: #ffffff;
    /* Secondary: lime green (non-grey) */
    --color-secondary-light: #84cc16;
    --color-secondary-muted: #dcfce7;
    --color-primary-muted: #fee2e2;
    --color-text: var(--color-grey);
    --color-text-light: var(--color-grey-75);
    --color-surface-rgb: 248, 250, 252;
    --color-surface: rgba(var(--color-surface-rgb), 0.98);
    --color-border: var(--color-grey-30);
    --color-secondary: var(--color-grey-15);
    --color-image-bg: var(--color-card-bg);
    /* Earthy tones for agricultural theme */
    --color-earth-dark: 74, 61, 52;
    --color-earth-mid: 118, 98, 82;
    --color-earth-light: 169, 149, 123;
    --color-field-green: 93, 155, 66;
    --font-main: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-2xl: 0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 0 1px rgba(0, 0, 0, 0.03);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --focus-ring: 2px solid var(--color-primary-alt);
    --focus-ring-offset: 2px;
    --content-max-width: 1600px;
    --hero-height: min(520px, 55vh);
    --hero-height-extended: calc(var(--hero-height) + 120px);
    /* Spacing: single scale for uniform gaps site-wide */
    --spacing-section: 2.75rem;
    --spacing-section-half: calc(var(--spacing-section) / 2);
    --spacing-block: 1.25rem;
    --spacing-tight: 0.75rem;
    --spacing-container: 1.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: var(--text-base);
    color: var(--color-text-light);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-block);
}

.container-narrow {
    max-width: 90rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.container.container-narrow {
    max-width: min(90rem, var(--content-max-width));
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.section-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for cards/stats when section is revealed */
.section-reveal .about-card,
.section-reveal .stat-item,
.section-reveal .certificate-card,
.section-reveal .pillar-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.section-reveal.revealed .about-card:nth-child(1),
.section-reveal.revealed .stat-item:nth-child(1),
.section-reveal.revealed .certificate-card:nth-child(1),
.section-reveal.revealed .pillar-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.section-reveal.revealed .about-card:nth-child(2),
.section-reveal.revealed .stat-item:nth-child(2),
.section-reveal.revealed .certificate-card:nth-child(2),
.section-reveal.revealed .pillar-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.section-reveal.revealed .about-card:nth-child(3),
.section-reveal.revealed .stat-item:nth-child(3),
.section-reveal.revealed .certificate-card:nth-child(3),
.section-reveal.revealed .pillar-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.section-reveal.revealed .stat-item:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }

/* ==========================================================================
   ALL PAGES: Page hero (banner image at top)
   Used on: Contact, Assortiment, Assortiment potatoes/onions, Production, etc.
   .page-hero - Top banner with background image
   .page-hero-bottom - Hero at bottom (production potatoes/onions/wheat)
   Change background-position, height, overlay here
   ========================================================================== */
.page-hero {
    height: 220px;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: flex-end;
    position: relative;
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero:not(.page-hero-bottom) {
    height: var(--hero-height-extended);
    border-radius: 0;
}

/* Compact hero for inner pages (match home design: less whitespace) */
.page-hero--compact:not(.page-hero-bottom) {
    height: min(300px, 36vh);
}


/* Hero vertical crop – add class to page-hero or .slide to shift image up/down
   Slider uses center to show the focal content in the middle of each image */
/* Hero crop modifiers - add to page-hero or .slide to shift image up/down */
.hero-crop-top,
.slide.hero-crop-top { background-position: center center; }
.hero-crop-top-1cm,
.slide.hero-crop-top-1cm { background-position: center calc(0% - 1cm); }
.hero-crop-top-2cm,
.slide.hero-crop-top-2cm { background-position: center calc(0% - 2cm); }
.hero-crop-center,
.slide.hero-crop-center { background-position: center center; }
.hero-crop-bottom,
.slide.hero-crop-bottom { background-position: center bottom; }
.hero-crop-bottom-1cm,
.slide.hero-crop-bottom-1cm { background-position: center calc(100% + 2.5cm); }
.hero-crop-bottom-2cm,
.slide.hero-crop-bottom-2cm { background-position: center calc(100% + 2cm); }
.hero-crop-bottom-3cm,
.slide.hero-crop-bottom-3cm { background-position: center calc(100% + 3cm); }
.hero-crop-20,
.slide.hero-crop-20 { background-position: center 20%; }
.hero-crop-30,
.slide.hero-crop-30 { background-position: center 30%; }
.hero-crop-40,
.slide.hero-crop-40 { background-position: center 40%; }
.hero-crop-50,
.slide.hero-crop-50 { background-position: center 50%; }
.hero-crop-60,
.slide.hero-crop-60 { background-position: center 60%; }
.hero-crop-70,
.slide.hero-crop-70 { background-position: center 70%; }
.hero-crop-80,
.slide.hero-crop-80 { background-position: center 80%; }
.hero-crop-90,
.slide.hero-crop-90 { background-position: center 90%; }
.hero-crop-100,
.slide.hero-crop-100 { background-position: center 100%; }

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
    padding-bottom: var(--spacing-block);
}

.page-hero--compact .container {
    padding-bottom: var(--spacing-block);
}

.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin: 0.4rem 0 0;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.page-hero-bottom {
    margin-top: var(--spacing-block);
}

.page-content-literature {
    padding-top: var(--spacing-section-half);
    padding-bottom: var(--spacing-section-half);
    text-align: center;
}

.page-content-literature .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Override .page-content p { text-align: justify } so literature heading/sub stay centered */
.page-content-literature .literature-heading,
.page-content-literature .literature-sub {
    text-align: center !important;
}

.literature-heading {
    width: 100%;
    margin: 0 0 0.25rem;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.literature-sub {
    width: 100%;
    margin: 0 0 var(--spacing-block);
    font-size: var(--text-sm);
    color: var(--color-text);
    opacity: 0.9;
}

.literature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-block);
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.literature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-block) 1.5rem;
    background: var(--color-card-bg);
    border: 1px solid rgba(var(--color-grey-rgb), 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
    position: relative;
}

.literature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-alt);
}

.literature-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.literature-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: var(--spacing-block);
    color: var(--color-primary-alt);
    transition: color var(--transition), transform var(--transition);
}

.literature-card:hover .literature-card-icon {
    color: var(--color-primary);
    transform: scale(1.05);
}

.literature-card-icon svg {
    width: 100%;
    height: 100%;
}

.literature-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.literature-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text);
    opacity: 0.85;
    margin-bottom: var(--spacing-tight);
}

.literature-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: auto;
    color: var(--color-primary);
    opacity: 0.8;
    transition: transform var(--transition);
}

.literature-card:hover .literature-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.literature-card-arrow svg {
    width: 100%;
    height: 100%;
}

.page-hero h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-align: left;
    line-height: 1.2;
}


/* GLOBAL: Main page content area (used on most content pages) */
.page-content {
    padding: var(--spacing-section-half) 0;
}

.page-content p {
    text-align: justify;
    max-width: 100%;
}

.page-content .section-subtitle,
.page-content .page-content-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.page-content h1 {
    color: var(--color-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-block);
    text-align: center;
    letter-spacing: -0.03em;
}

.page-content h2 {
    text-align: center;
    margin-top: var(--spacing-block);
    font-weight: 600;
    font-size: 1.2rem;
}

.page-content a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.page-content a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.page-content a:hover {
    color: var(--color-secondary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Assortiment intro: expandable head text (e.g. potatoes) */
.assortiment-intro {
    margin-bottom: var(--spacing-block);
}
.assortiment-intro-teaser,
.assortiment-intro-full {
    line-height: 1.6;
}
.assortiment-intro-teaser {
    margin-bottom: 0.5em;
}
.assortiment-intro-full {
    overflow: hidden;
    max-height: 4000px;
    opacity: 1;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
}
.page-content .assortiment-intro-full.is-hidden {
    max-height: 0 !important;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease-in, opacity 0.25s ease-in, visibility 0s linear 0.35s;
}
.assortiment-intro-full p {
    margin-bottom: 0.85em;
}
.assortiment-intro-full p:last-child {
    margin-bottom: 0;
}
.assortiment-intro-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    margin-top: 0.75em;
    min-height: 44px;
    padding: 0.5em 1em;
    font-family: var(--font-main);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}
.assortiment-intro-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}
.assortiment-intro-toggle-text {
    white-space: nowrap;
}
.assortiment-intro-toggle:hover {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.assortiment-intro-chevron {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    color: inherit;
    stroke: currentColor;
    stroke-width: 2px;
    transition: transform 0.25s ease;
}
.assortiment-intro-toggle.is-expanded .assortiment-intro-chevron {
    transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
    .assortiment-intro-full,
    .page-content .assortiment-intro-full.is-hidden {
        transition: none;
    }
    .assortiment-intro-chevron {
        transition: none;
    }
}


/* ==========================================================================
   CONTACT PAGE: Contact grid, form, info box
   .contact-grid - Two-column layout (info + form)
   .contact-info - Left column with address/phone
   .contact-form - Right column with form
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-block);
    margin-top: var(--spacing-block);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Caddy-style: left accent on contact cards */
.contact-info {
    background: var(--color-card-bg);
    padding: var(--spacing-block);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--color-grey-rgb), 0.08);
    box-shadow: var(--shadow-sm), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-alt) 100%);
    border-radius: 0;
}

.contact-info h3 {
    margin-top: 0;
    color: var(--color-primary);
}

.contact-info p {
    color: var(--color-text);
}

.contact-info a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.contact-info a:hover {
    color: var(--color-secondary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form {
    background: var(--color-card-bg);
    padding: var(--spacing-block);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--color-grey-rgb), 0.08);
    box-shadow: var(--shadow-sm), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary-alt) 0%, var(--color-secondary-light) 100%);
    border-radius: 0;
}

.contact-form h3 {
    color: var(--color-primary);
}

.form-group {
    margin-bottom: var(--spacing-block);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-tight);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form .form-group label {
    color: var(--color-text);
}

.contact-form .form-group-checkbox label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0;
}

.contact-form .form-group-checkbox input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--text-base);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-group input {
    min-height: 44px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    border-color: var(--color-border);
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-muted);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-muted);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Contact form: inline success/error message (no page refresh) */
.contact-form-message {
    margin-bottom: var(--spacing-block);
    padding: var(--spacing-block) 2.75rem var(--spacing-block) var(--spacing-block);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-block);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    position: relative;
}
.contact-form-message.success {
    background: var(--color-secondary-muted);
    color: var(--color-primary-alt-dark);
    border-color: rgba(var(--color-field-green), 0.3);
}
.contact-form-message.error {
    background: var(--color-primary-muted);
    color: var(--color-primary-dark);
    border-color: rgba(157, 17, 17, 0.25);
}
.contact-form-message .contact-form-message-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0.15rem 0.4rem;
    color: inherit;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition);
}
.contact-form-message .contact-form-message-close:hover {
    opacity: 1;
}
.contact-form-message .contact-form-message-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* GLOBAL: Main button style (Contact form, CTA banners, etc.) */
.btn,
.btn-outline {
    background: var(--color-primary);
    color: #fff;
    padding: 0.8rem 1.6rem;
    min-height: 48px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:focus-visible,
.btn-outline:focus-visible {
    outline: 2px solid var(--color-primary-alt);
    outline-offset: 2px;
}

.btn:hover,
.btn-outline:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-cta {
    margin-top: var(--spacing-block);
    margin-bottom: var(--spacing-tight);
}

.section-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.section-cta a.btn {
    padding: var(--spacing-tight) var(--spacing-container);
    color: #fff;
}

.section-contact-hint {
    font-size: 0.9rem;
    color: var(--color-text);
}

.section-stats-intro {
    margin-bottom: var(--spacing-block) !important;
}

/* HOME PAGE: CTA banner (red gradient, "Contact us" / "Explore our products") */
.section-cta-banner {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 50%,
        #5a0a0a 100%
    );
    color: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.06);
    padding: var(--spacing-section-half) 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.section-cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}


.section-cta-banner h2 {
    color: var(--color-surface);
    margin-bottom: var(--spacing-tight);
    position: relative;
}

.section-cta-banner h2::after {
    display: none;
}

.section-cta-banner .container > p,
.section-cta-banner .container > p:first-of-type {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--spacing-block);
    text-align: center;
    font-size: 1.05rem;
    position: relative;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-block);
    justify-content: center;
    margin-top: var(--spacing-block);
}

/* CTA banner: same solid button style on red background – white for contrast */
.cta-buttons .btn,
.cta-buttons .btn-outline {
    background: #fff;
    color: var(--color-primary);
    border: 2px solid transparent;
    font-weight: 600;
    padding: 0.9rem 1.75rem;
    position: relative;
}

.cta-buttons .btn:hover,
.cta-buttons .btn-outline:hover {
    background: var(--color-secondary-light);
    color: #fff;
    border-color: var(--color-secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   ABOUT PAGE: About content, chapters, gallery
   .about-page - Wrapper
   .about-gallery - Image gallery with figures
   ========================================================================== */
.about-page .section {
    padding: var(--spacing-section-half) 0;
}

/* First section after hero (about page): one full gap */
.about-page > .section:first-child {
    padding-top: var(--spacing-section);
}

.about-intro {
    padding-top: 0;
}

.about-intro-title {
    text-align: center;
    font-size: clamp(1.45rem, 2.2vw + 0.9rem, 1.9rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.35rem;
    letter-spacing: -0.03em;
}

.about-intro-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-alt) 100%);
    border-radius: 0;
    margin: var(--spacing-tight) auto var(--spacing-block);
}

.about-lead {
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--color-text);
    margin: 0;
}

.about-lead.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: var(--text-base);
}

.about-chapter-content {
    margin-bottom: var(--spacing-block);
}

/* Caddy-style: left accent on each chapter block (full-width bar at viewport left) */
.about-chapter {
    position: relative;
}

.about-chapter::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-alt) 100%);
    border-radius: 0;
    pointer-events: none;
}

.about-chapter.section-alt::before {
    background: linear-gradient(180deg, var(--color-primary-alt) 0%, var(--color-secondary-light) 100%);
}

.about-chapter-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 var(--spacing-block);
    max-width: none;
    text-align: justify;
}

.about-chapter-content p:last-child {
    margin-bottom: 0;
}

/* About gallery */
.about-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-block);
    margin: 0;
}

.about-gallery figure {
    margin: 0;
    flex: 0 0 min(100%, 250px);
}

.about-gallery a {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-card-bg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.about-gallery a:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.about-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: var(--color-card-bg);
    transition: transform var(--transition);
}

.about-gallery a:hover img {
    transform: scale(1.04);
}

.about-gallery figcaption {
    font-size: 0.8rem;
    color: var(--color-text);
    margin-top: 0.5rem;
    padding: 0 0.25rem;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 500px) {
    :root {
        --hero-height: 300px;
    }

    .about-gallery {
        gap: var(--spacing-block);
    }

    .about-gallery figure {
        flex: 0 0 100%;
    }

    .about-gallery img {
        object-fit: cover;
        object-position: center center;
    }

    .about-lead {
        font-size: 1.05rem;
    }

    .page-hero {
        background-position: center center;
    }

    .page-hero:not(.page-hero-bottom) {
        height: var(--hero-height-extended);
    }

    .page-hero-bottom {
        height: 180px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .section h1 {
        font-size: 1.85rem;
    }

    .section h2 {
        font-size: 1.65rem;
    }

    .page-hero {
        background-position: center center;
    }

    .page-hero h1 {
        font-size: 2.25rem;
    }

    .assortiment-choice-image img {
        object-fit: cover;
        object-position: center center;
    }
}

/* ASSORTIMENT POTATOES/ONIONS: Packaging section title */
.packaging-title {
    margin: var(--spacing-block) 0 var(--spacing-block);
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

/* ASSORTIMENT POTATOES/ONIONS: Package cards layout */
.potato-packages {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-block);
    margin-top: var(--spacing-tight);
}

.package-group {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-block) 1.25rem;
    border: 1px solid var(--color-border);
    min-height: 0;
}

/* Merged 1kg + 1,5kg group - single row */
.package-group-merged .package-badges-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--spacing-block);
    margin-bottom: var(--spacing-tight);
}

.package-group-merged .package-badges-row .package-badge {
    margin-bottom: 0;
}

.package-group-merged .package-badges-row .package-badge:first-child {
    grid-column: 1 / 3;
    justify-self: center;
}

.package-group-merged .package-badges-row .package-badge:last-child {
    grid-column: 3 / 5;
    justify-self: center;
}

/* 4 badges layout (onions) - badge centered above each card */
.package-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.package-column .package-card {
    width: 100%;
}

.package-grid-with-badges .package-column .package-badge {
    margin-bottom: var(--spacing-block);
}

.package-group-merged .package-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
    margin: 0;
}

.package-badge {
    display: inline-block;
    background: var(--color-primary-alt);
    color: var(--color-surface);
    font-size: 0.875rem;
    font-weight: 700;
    padding: var(--spacing-tight) var(--spacing-block);
    border-radius: 0;
    margin-bottom: var(--spacing-block);
    letter-spacing: 0.02em;
}

.package-badge-center {
    display: inline-block;
}

.package-group-2-5 .package-badge.package-badge-center {
    display: inline-block;
}

.package-group-2-5 {
    text-align: center;
}

.package-group-2-5 .package-grid {
    text-align: left;
}

.package-grid {
    display: grid;
    gap: var(--spacing-block);
}

.package-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 420px;
    margin: 0 auto;
}

.package-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.package-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-slow);
    border: 1px solid rgba(var(--color-grey-rgb), 0.08);
    box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.package-card:hover {
    border-color: rgba(var(--color-grey-rgb), 0.12);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.package-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    aspect-ratio: 1;
    background: #fff;
    border-radius: var(--radius-md);
}
.package-image:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform var(--transition);
}

.package-card:hover .package-image img {
    transform: scale(1.03);
}

.package-label {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
}

@media (max-width: 900px) {
    .package-grid-2,
    .package-grid-4,
    .package-grid-with-badges {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
        margin: 0;
    }

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

@media (max-width: 500px) {
    .package-group {
        padding: 1.25rem 1rem;
    }

    .package-grid-2,
    .package-grid-4,
    .package-grid-with-badges {
        grid-template-columns: 1fr;
    }

    .package-group-merged .package-grid {
        grid-template-columns: 1fr;
    }

    .package-group-merged .package-badges-row {
        grid-template-columns: 1fr 1fr;
    }

    .package-group-merged .package-badges-row .package-badge:first-child,
    .package-group-merged .package-badges-row .package-badge:last-child {
        grid-column: auto;
    }

}

.assortiment-by-weight {
    margin-top: 0.75rem;
}

.weight-group {
    margin-bottom: 1.5rem;
}

.weight-group h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-grey);
    margin-bottom: var(--spacing-tight);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}

/* Reusable text highlight (home page, assortiment, etc.) */
.text-highlight .section-cta {
    text-align: center;
}

.text-highlight {
    position: relative;
    text-align: center;
    margin-bottom: var(--spacing-block);
    max-width: 100%;
    background: linear-gradient(135deg, rgba(93, 155, 66, 0.12) 0%, rgba(132, 204, 22, 0.06) 50%, rgba(93, 155, 66, 0.04) 100%);
    padding: var(--spacing-block) var(--spacing-block) var(--spacing-block) calc(var(--spacing-block) + 4px);
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    color: var(--color-text);
}

.text-highlight::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-primary-alt), var(--color-secondary-light));
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}


/* ASSORTIMENT / PRODUCTION: Intro text above choice cards */
.assortiment-intro {
    position: relative;
    text-align: center;
    margin-bottom: var(--spacing-block);
    max-width: 100%;
    background: linear-gradient(135deg, rgba(93, 155, 66, 0.12) 0%, rgba(132, 204, 22, 0.06) 50%, rgba(93, 155, 66, 0.04) 100%);
    padding: var(--spacing-block) var(--spacing-block) var(--spacing-block) calc(var(--spacing-block) + 4px);
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    color: var(--color-text);
}

.assortiment-intro::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-primary-alt), var(--color-secondary-light));
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* ASSORTIMENT / PRODUCTION: Grid of choice cards (Potatoes, Onions, Wheat) */
.assortiment-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-block);
    margin-top: var(--spacing-block);
}

/* Caddy-style: left accent bar on choice cards (Production + Assortiment) */
.assortiment-choice-card {
    display: block;
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(var(--color-grey-rgb), 0.08);
    transition: all var(--transition-slow);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm), var(--shadow-glow);
    position: relative;
}

.assortiment-choice-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-alt) 100%);
    border-radius: 0;
    z-index: 1;
}

.assortiment-choice-card:hover {
    border-color: rgba(var(--color-grey-rgb), 0.12);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.assortiment-choice-card:hover::before {
    width: 5px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary-light) 100%);
}

.assortiment-choice-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.assortiment-choice-content {
    padding: var(--spacing-block);
}

.assortiment-choice-content h2 {
    color: var(--color-primary);
    font-size: 1.35rem;
    margin-bottom: var(--spacing-tight);
}

.assortiment-choice-content p {
    color: var(--color-text);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-block);
}

.assortiment-choice-link {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.assortiment-choice-card:hover .assortiment-choice-link {
    color: var(--color-secondary-light);
    text-decoration: underline;
}

@media (max-width: 700px) {
    .assortiment-choice-grid {
        grid-template-columns: 1fr;
    }
}

/* ASSORTIMENT PAGE: Grid of 4 product cards (potatoes, onions, etc.) */
.assortiment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-block);
    margin: var(--spacing-tight) 0 var(--spacing-block);
}

.assortiment-item {
    text-align: center;
}

.assortiment-item a {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-card-bg);
}

.assortiment-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: var(--color-card-bg);
    transition: transform var(--transition);
}

.assortiment-item a:hover img {
    transform: scale(1.03);
}

.assortiment-item h4 {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

@media (max-width: 900px) {
    .assortiment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .assortiment-grid {
        grid-template-columns: 1fr;
    }
}

/* PRODUCTION POTATOES/ONIONS/WHEAT: Intro paragraph above tabs */
.production-intro {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-block);
    max-width: 100%;
    text-align: justify;
}

/* PRODUCTION POTATOES/ONIONS/WHEAT: Tabs (Soil preparation, Planting, etc.) */
.production-tabs-wrapper {
    margin-top: 0;
}

.production-single-section .production-tabs {
    display: none;
}

.production-single-section .production-panels {
    margin-top: 0;
}

/* Docs-style tab nav: pill + underline indicator */
.production-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: 2px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.production-tab {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    position: relative;
    margin-bottom: -2px;
}

.production-tab:hover {
    color: var(--color-primary);
    background: var(--color-primary-muted);
}

.production-tab.active {
    color: var(--color-primary);
    background: transparent;
    border-bottom: 2px solid var(--color-primary);
}

.production-tab.active:hover {
    background: var(--color-primary-muted);
}

.production-panels {
    position: relative;
}

.production-panel {
    animation: productionPanelFade 0.3s ease;
}

@keyframes productionPanelFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* PRODUCTION POTATOES/ONIONS/WHEAT: Section box + image carousel */
.production-section {
    margin: 0;
    padding: var(--spacing-block);
    background: var(--color-card-bg);
    border-radius: 0;
    border: 1px solid var(--color-border);
}

.production-section > p {
    margin-bottom: var(--spacing-block);
    color: var(--color-text);
    line-height: 1.6;
}

.production-carousel {
    margin-top: 0;
    border-radius: 0;
    overflow: hidden;
    background: var(--color-image-bg);
}

.production-swiper {
    position: relative;
    padding-bottom: 3rem;
}

.production-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.production-slide {
    width: 100%;
    aspect-ratio: 16/10;
    min-height: min(360px, 40vh);
    max-height: min(560px, 55vh);
    background: var(--color-image-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.production-slide-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.production-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Swiper overrides for production */
.production-swiper .swiper-pagination-bullet {
    background: var(--color-grey-50);
    width: 6px;
    height: 6px;
    transition: opacity var(--transition);
}

.production-swiper .swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
    width: 8px;
    height: 8px;
}

.production-swiper .swiper-button-prev,
.production-swiper .swiper-button-next {
    color: var(--color-primary);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.production-swiper .swiper-button-prev:hover,
.production-swiper .swiper-button-next:hover {
    background: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
}

.production-swiper .swiper-button-prev::after,
.production-swiper .swiper-button-next::after {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .production-slide {
        aspect-ratio: 4/3;
        min-height: min(260px, 35vh);
        max-height: min(380px, 45vh);
    }

    .production-swiper .swiper-button-prev,
    .production-swiper .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .production-swiper .swiper-button-prev::after,
    .production-swiper .swiper-button-next::after {
        font-size: 0.85rem;
    }
}


/* ==========================================================================
   PRODUCTION PROCESS (modern scroll-driven layout: potatoes, onions, wheat)
   Uses .page-hero for top banner (same as Contact, Assortiment, etc.)
   ========================================================================== */
.process-intro {
    padding: var(--spacing-section-half) 0;
}

.process-intro-text {
    margin: 0;
    font-size: var(--text-lg);
    color: var(--color-text-light);
    line-height: 1.65;
    text-align: center;
    max-width: min(52rem, var(--content-max-width));
    margin-left: auto;
    margin-right: auto;
}

/* Step navigation – sticky so it follows on scroll, below site header */
.process-nav {
    position: sticky;
    top: 5rem;
    z-index: 50;
    margin: var(--spacing-block) auto var(--spacing-tight);
    width: 100%;
    max-width: var(--content-max-width);
    padding: 0 var(--spacing-container);
    border-radius: 0;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.process-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.6rem 0;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.process-nav-inner::-webkit-scrollbar {
    display: none;
}

.process-nav-link {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
    font-family: inherit;
}

.process-nav-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-muted);
}

.process-nav-link.active {
    color: var(--color-surface);
    background: var(--color-primary);
}

/* Process steps (full-width sections, centered) */
.process-steps {
    padding-bottom: var(--spacing-section-half);
}

/* Caddy-style: left accent on process steps (docs-like sections) */
.process-step {
    padding: var(--spacing-section-half) 0;
    scroll-margin-top: 5rem;
    position: relative;
}

.process-step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-alt) 100%);
    border-radius: 0;
}

.process-step:nth-child(even) {
    background: var(--color-bg-alt);
}

.process-step:nth-child(even)::before {
    background: linear-gradient(180deg, var(--color-primary-alt) 0%, var(--color-secondary-light) 100%);
}

.process-step .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.process-step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-tight);
    margin-bottom: var(--spacing-block);
    width: 100%;
}

.process-step-header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-tight) var(--spacing-block);
}

.process-step-header .process-step-next {
    margin-top: 0.25rem;
}

.process-step-number {
    display: none;
}

.process-step-title {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-primary-dark);
}

.process-step-next {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
    font-family: inherit;
}

.process-step-next:hover {
    color: var(--color-primary-dark);
    background: var(--color-primary-muted);
}

.process-step-next:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.process-step-next-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.process-step-next-icon--up {
    transform: rotate(0deg);
}

.process-step-next--top .process-step-next-label {
    display: inline;
}

.process-step-body {
    width: 100%;
}

.process-step-desc {
    max-width: 52rem;
    margin: 0 auto var(--spacing-block);
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.65;
    text-align: center;
}

/* Image gallery grid – full container width (fullscreen) */
.process-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-block);
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.process-gallery-item {
    margin: 0;
}

.process-gallery-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: var(--color-image-bg);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.process-gallery-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.process-gallery-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.process-gallery-btn img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .process-nav {
        top: 4.5rem;
        padding: 0 1rem;
    }

    .process-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .process-gallery-btn img {
        aspect-ratio: 1;
    }
}

/* Lightbox */
.process-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.process-lightbox[hidden] {
    display: none;
}

.process-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
}

.process-lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95vw;
    max-height: 90vh;
    z-index: 1;
}

.process-lightbox-img-wrap {
    position: relative;
    max-width: 100%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Close: top-right corner over the image, visible pill */
.process-lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.process-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

.process-lightbox-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.process-lightbox-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Prev/next: left and right edges over the image, visible */
.process-lightbox-prev,
.process-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0.75rem;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.process-lightbox-next {
    left: auto;
    right: 0.75rem;
}

.process-lightbox-prev:hover,
.process-lightbox-next:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

.process-lightbox-prev:focus-visible,
.process-lightbox-next:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.process-lightbox-prev svg,
.process-lightbox-next svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Counter: bottom center over the image area */
.process-lightbox-counter {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.35rem 0.75rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .process-lightbox-prev {
        left: 0.5rem;
    }

    .process-lightbox-next {
        right: 0.5rem;
    }

    .process-lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-gallery-btn:hover {
        transform: none;
    }
}

