/* ==========================================================================
   CNC Solutions — stylesheet
   Mobile-first. Built on top of bootstrap.min.css (grid + reset only) —
   every visual component below is custom.
   ========================================================================== */

/* --- 1. Design tokens ---------------------------------------------------- */
:root {
    --color-primary: #086972;
    --color-primary-dark: #054850;
    --color-primary-light: #10a2af;
    --color-ink: #0e121d;
    --color-ink-soft: #232a3a;
    --color-body: #5a6472;
    --color-light: #f5f7f8;
    --color-light-alt: #eef2f3;
    --color-white: #ffffff;
    --color-border: rgba(14, 18, 29, 0.09);

    --gradient-brand: linear-gradient(135deg, var(--color-primary-light), var(--color-primary) 55%, var(--color-primary-dark));
    --gradient-dark: linear-gradient(160deg, #0e121d 0%, #123339 100%);

    --shadow-sm: 0 4px 14px rgba(14, 18, 29, 0.08);
    --shadow-md: 0 12px 30px rgba(14, 18, 29, 0.12);
    --shadow-lg: 0 24px 60px rgba(14, 18, 29, 0.18);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --section-pad: clamp(3.5rem, 7vw, 6.5rem);
    --header-h: 76px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-heading: "Jost", sans-serif;
    --font-body: "Inter", sans-serif;
}

/* --- 2. Base -------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
    margin: 0;
}

ul, ol { padding: 0; }

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

body {
    font-family: var(--font-body);
    color: var(--color-body);
    background: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

main section[id] {
    scroll-margin-top: var(--header-h);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-ink);
    font-weight: 600;
    margin: 0;
}

p { margin: 0; }

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

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

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

::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    width: 100%;
    max-width: 1220px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}
@media (min-width: 768px) {
    .container { padding-inline: 2rem; }
}

.desktop-cta { display: none; }
@media (min-width: 1150px) {
    .desktop-cta { display: inline-flex; }
}

/* --- 3. Shared section styling -------------------------------------------- */
.section {
    padding: var(--section-pad) 0;
}

.section-light { background: var(--color-light); }
.section-dark {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, 0.78);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-white); }

.section-head {
    max-width: 680px;
    margin: 0 0 3rem;
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.9rem;
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--color-primary);
    display: inline-block;
}
.section-dark .eyebrow { color: var(--color-primary-light); }

.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-text {
    font-size: 1.05rem;
    line-height: 1.75;
}

/* --- 4. Reveal-on-scroll ---------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- 5. Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.95rem 1.9rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--gradient-brand);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); color: var(--color-white); }

.btn-outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--color-white);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline-dark {
    border-color: var(--color-border);
    color: var(--color-ink);
}
.btn-outline-dark:hover {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: var(--color-white);
}

.btn-light {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}
.btn-light:hover { background: var(--color-primary); color: var(--color-white); }

.btn-sm { padding: 0.7rem 1.4rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* --- 6. Preloader ----------------------------------------------------------- */
#spinner {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0s linear 0s;
}
#spinner:not(.show) {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.spinner-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid var(--color-light-alt);
    border-top-color: var(--color-primary);
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 7. Topbar --------------------------------------------------------------- */
.topbar {
    background: var(--color-ink);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    display: none;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.55rem;
}
.topbar-links { display: flex; align-items: center; gap: 1.5rem; }
.topbar-links a { display: inline-flex; align-items: center; gap: 0.5rem; }
.topbar-links a:hover { color: var(--color-primary-light); }
.topbar-links i { color: var(--color-primary-light); }

.topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar-social { display: flex; gap: 0.9rem; }
.topbar-social a {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    transition: 0.3s;
}
.topbar-social a:hover { background: var(--color-primary); border-color: var(--color-primary); }

@media (min-width: 992px) {
    .topbar { display: block; }
}

/* --- 8. Language switcher ------------------------------------------------------ */
.lang-switch {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 3px;
    gap: 2px;
}
.lang-switch button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}
.lang-switch button.is-active,
.lang-switch button:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.lang-switch--light {
    border-color: var(--color-border);
}
.lang-switch--light button { color: var(--color-body); }
.lang-switch--light button.is-active,
.lang-switch--light button:hover { background: var(--color-primary); color: var(--color-white); }

/* --- 9. Header / navigation ----------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--color-border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.brand { display: flex; align-items: center; }
.brand img { height: 52px; width: auto; }

.nav-links {
    display: none;
    align-items: center;
    gap: 1.5rem;
}
.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.92rem;
    white-space: nowrap;
    color: var(--color-ink-soft);
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--color-primary);
    transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--color-primary); }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: var(--color-ink);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1150px) {
    .nav-links { display: flex; }
    .nav-toggle { display: none; }
}

/* --- 10. Mobile off-canvas nav ---------------------------------------------------- */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 18, 29, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
    z-index: 1050;
}
.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease);
}

.mobile-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: min(86vw, 360px);
    background: var(--color-white);
    z-index: 1060;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.75rem 2rem;
    overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.mobile-nav-top img { height: 40px; }

.mobile-nav-close {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 2rem;
}
.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-ink);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}
.mobile-nav-links a:hover { color: var(--color-primary); }

.mobile-nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1.25rem; }

body.scroll-lock { overflow: hidden; }

/* --- 11. Hero ------------------------------------------------------------------- */
.hero {
    position: relative;
    color: var(--color-white);
    overflow: hidden;
    padding-top: clamp(4rem, 10vw, 7rem);
    padding-bottom: clamp(4.5rem, 10vw, 8rem);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg, rgba(8, 105, 114, 0.93), rgba(14, 18, 29, 0.9)), url("img/proizvodni-pogon.webp");
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5.4vw, 3.75rem);
    line-height: 1.12;
    color: var(--color-white);
    max-width: 19ch;
    margin-bottom: 1.4rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 46ch;
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Stats strip, overlapping the hero's bottom edge on large screens */
.stats-strip {
    position: relative;
    z-index: 5;
    margin-top: clamp(2.5rem, 6vw, 4rem);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.stat-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    padding: 1.6rem 0.75rem;
    text-align: center;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: var(--color-white);
    display: block;
    margin-bottom: 0.3rem;
    white-space: nowrap;
}
.stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- 12. About ------------------------------------------------------------------- */
.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.about-media { position: relative; }
.about-media img {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}
.about-badge {
    position: absolute;
    left: -1rem;
    bottom: -1.25rem;
    background: var(--gradient-brand);
    color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
}
.about-badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: 0.3rem;
}
.about-badge span { font-size: 0.85rem; opacity: 0.9; }

.checklist {
    list-style: none;
    margin: 1.75rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--color-ink-soft);
}
.checklist i {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(8, 105, 114, 0.12);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

@media (min-width: 992px) {
    .about-grid { grid-template-columns: 0.85fr 1.15fr; }
    .about-grid.reverse { grid-template-columns: 1.15fr 0.85fr; }
    .about-grid.reverse .about-media { order: 2; }
}

/* --- 13. Services ------------------------------------------------------------------ */
.services-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.08); }

.service-icon {
    position: absolute;
    left: 1.1rem; bottom: -1.1rem;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.service-body {
    padding: 2rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.service-body h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.service-body p { font-size: 0.96rem; line-height: 1.65; flex: 1; margin-bottom: 1.1rem; }
.service-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.service-link i { transition: transform 0.3s var(--ease); }
.service-card:hover .service-link i { transform: translateX(4px); }

/* --- 14. Process ------------------------------------------------------------------ */
.process-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    counter-reset: step;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.6rem 1.8rem;
    counter-increment: step;
}
.process-step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background: rgba(8, 105, 114, 0.1);
    border-radius: 50px;
    padding: 0.35rem 0.85rem;
    display: inline-block;
    margin-bottom: 1.1rem;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.process-step p { font-size: 0.92rem; line-height: 1.6; }

@media (min-width: 1100px) {
    .process-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 2.6rem; right: -1.35rem;
        width: 1.5rem; height: 2px;
        background: var(--color-border);
    }
}

/* --- 15. Why us (dark) -------------------------------------------------------------- */
.why-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    transition: 0.35s var(--ease);
}
.why-card:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); }
.why-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: var(--gradient-brand);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 1.3rem;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--color-white); }
.why-card p { font-size: 0.92rem; line-height: 1.6; color: rgba(255, 255, 255, 0.68); }

/* --- 16. CTA banner ------------------------------------------------------------------ */
.cta-banner {
    position: relative;
    overflow: hidden;
    background: var(--gradient-brand);
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 6vw, 4rem);
    margin: 0 auto;
    text-align: center;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: var(--color-white); margin-bottom: 0.85rem; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.cta-banner p { color: rgba(255, 255, 255, 0.88); max-width: 52ch; margin: 0 auto 1.8rem; font-size: 1.05rem; }
.cta-banner::before,
.cta-banner::after {
    content: "";
    position: absolute;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.cta-banner::before { top: -120px; left: -80px; }
.cta-banner::after { bottom: -140px; right: -60px; }

/* --- 17. FAQ ----------------------------------------------------------------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--color-light);
    color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.faq-item[open] summary .faq-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotate(45deg);
}
.faq-item[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-answer {
    padding: 0 1.5rem 1.4rem;
    font-size: 0.96rem;
    line-height: 1.7;
}

/* --- 18. Contact --------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
}
.info-card i {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(8, 105, 114, 0.1);
    color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.info-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.info-card p { font-size: 0.95rem; word-break: break-word; }

.contact-form {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-sm);
}
.form-row { display: grid; gap: 1.1rem; margin-bottom: 1.1rem; }
@media (min-width: 640px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }

.form-control {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.96rem;
    color: var(--color-ink);
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
    transition: border-color 0.3s, background 0.3s;
}
.form-control:focus {
    background: var(--color-white);
    border-color: var(--color-primary);
    outline: none;
}
textarea.form-control { min-height: 140px; resize: vertical; }

/* --- 18b. Filter tabs (machinery / gallery) ------------------------------------------- */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 2.75rem;
}
.filter-tab {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--color-ink-soft);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 0.6rem 1.3rem;
    cursor: pointer;
    transition: 0.3s;
}
.section-light .filter-tab { background: var(--color-white); }
.filter-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-tab.is-active { background: var(--gradient-brand); border-color: transparent; color: var(--color-white); }

.filter-item-hidden { display: none !important; }

/* --- 18c. Machinery ------------------------------------------------------------------- */
.machines-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .machines-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .machines-grid { grid-template-columns: repeat(3, 1fr); } }

.machine-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    display: flex;
    flex-direction: column;
}
.machine-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.machine-media { aspect-ratio: 4 / 3; background: var(--color-light); }
.machine-media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }

.machine-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.machine-body h3 { font-size: 1.05rem; margin-bottom: 0.9rem; line-height: 1.35; }
.machine-body ul { list-style: none; margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.machine-body li { font-size: 0.88rem; color: var(--color-body); line-height: 1.5; padding-left: 1.1rem; position: relative; }
.machine-body li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}
.machine-body .btn { align-self: flex-start; }

/* --- 18d. Gallery --------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 576px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: zoom-in;
    background: var(--color-light-alt);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: "\f00e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.3rem;
    background: rgba(14, 18, 29, 0);
    opacity: 0;
    transition: 0.3s;
}
.gallery-item:hover::after { opacity: 1; background: rgba(14, 18, 29, 0.35); }

/* --- 18e. Lightbox -------------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 18, 29, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s var(--ease);
}
.lightbox-image {
    max-width: min(90vw, 1000px);
    max-height: 82vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    border-radius: 50%;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--color-primary); border-color: var(--color-primary); }
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 575.98px) {
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-close { top: 0.75rem; right: 0.75rem; }
}

/* --- 19. Footer ---------------------------------------------------------------------- */
.footer {
    background: var(--color-ink);
    color: rgba(255, 255, 255, 0.65);
    padding: var(--section-pad) 0 2.5rem;
}
.footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }

.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.footer-brand img { height: 40px; }
.footer p { font-size: 0.94rem; line-height: 1.7; }
.footer h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 1.3rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { font-size: 0.94rem; transition: 0.3s; }
.footer-links a:hover { color: var(--color-primary-light); padding-left: 4px; }

.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.footer-social a:hover { background: var(--color-primary); border-color: var(--color-primary); }

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* --- 20. Back to top ------------------------------------------------------------------ */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.35s var(--ease);
    z-index: 900;
    border: none;
    cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 767.98px) {
    .back-to-top { bottom: 5.5rem; }
}

/* --- 21. Mobile sticky action bar ------------------------------------------------------- */
.mobile-action-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 950;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 24px rgba(14, 18, 29, 0.1);
}
.mobile-action-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}
.mobile-action-bar a:first-child { color: var(--color-ink); border-right: 1px solid var(--color-border); }
.mobile-action-bar a:last-child { color: var(--color-white); background: var(--gradient-brand); }

@media (min-width: 992px) {
    .mobile-action-bar { display: none; }
}

@media (max-width: 991.98px) {
    body { padding-bottom: 62px; }
}

/* --- 22. Misc --------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 1.4rem;
    border-radius: 0 0 10px 0;
    z-index: 2100;
}
.skip-link:focus {
    left: 0;
    top: 0;
}
