/* =====================================================
   Schnellecke Italia - Public site design system
   Brand: Schnellecke green (#006633 / #00a651)
   ===================================================== */

:root {
    --brand:        #006633;
    --brand-light:  #00a651;
    --brand-dark:   #004d26;
    --brand-soft:   #e8f4ed;
    --brand-shine:  linear-gradient(135deg, #006633 0%, #00a651 100%);

    --ink:          #0a1a12;
    --ink-soft:     #14241c;
    --text:         #1a2027;
    --text-muted:   #5a6573;

    --bg:           #ffffff;
    --bg-soft:      #f6f8f7;
    --bg-stripe:    #eef2f0;

    --border:       #e5e7eb;
    --border-soft:  #f0f2f1;

    --shadow-sm:    0 1px 2px rgba(15, 25, 20, 0.06);
    --shadow-md:    0 4px 16px rgba(15, 25, 20, 0.08);
    --shadow-lg:    0 12px 40px rgba(15, 25, 20, 0.12);

    --radius-sm:    8px;
    --radius-md:    14px;
    --radius-lg:    20px;

    --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset / base ----------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: var(--brand-light);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .6em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1em;
}

.container-narrow {
    max-width: 960px;
    margin-inline: auto;
    padding-inline: 24px;
}

.container-wide {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.section--soft {
    background: var(--bg-soft);
}

.section__intro {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 16px;
}

.section__title {
    margin-bottom: 16px;
}

.section__lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Navbar ----------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
    max-width: 1200px;
    margin-inline: auto;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
}

.nav__brand:hover {
    color: var(--ink);
}

.nav__brand img {
    height: 38px;
    width: auto;
}

.nav__brand-text {
    line-height: 1.1;
}

.nav__brand-text small {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    padding: 8px 14px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: background .15s ease, color .15s ease;
}

.nav__link:hover,
.nav__link.is-active {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.nav__cta {
    margin-left: 8px;
}

.nav__burger {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 8px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px auto;
    transition: transform .25s ease, opacity .25s ease;
}

/* Buttons ---------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--brand-shine);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 51, 0.25);
}

.btn--primary:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 102, 51, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

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

.btn--ghost {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
    color: white;
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
}

.btn--lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Hero ------------------------------------------------- */

.hero {
    position: relative;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1a12 0%, #14241c 50%, var(--brand-dark) 100%);
}

.hero--image {
    background-image:
        linear-gradient(135deg, rgba(10, 26, 18, 0.88) 0%, rgba(0, 77, 38, 0.78) 60%, rgba(0, 102, 51, 0.55) 100%),
        url('/static/images/hero-factory.jpg');
    background-size: cover;
    background-position: center;
}

.hero__inner {
    max-width: 1200px;
    margin-inline: auto;
    padding: clamp(72px, 10vw, 140px) 24px clamp(64px, 8vw, 120px);
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.hero__eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-light);
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.25);
}

.hero__title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    color: white;
    max-width: 820px;
    margin-bottom: 20px;
}

.hero__title em {
    font-style: normal;
    background: linear-gradient(135deg, #6dffae 0%, #00ffa6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    margin-bottom: 36px;
}

.hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero--compact .hero__inner {
    padding: clamp(56px, 7vw, 88px) 24px clamp(48px, 6vw, 72px);
}

/* Stats strip ------------------------------------------ */

.stats {
    background: var(--ink);
    color: white;
    padding: 0;
}

.stats__grid {
    max-width: 1200px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 36px 24px;
    gap: 24px;
}

.stat__num {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #b8efcc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat__label {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Cards ------------------------------------------------ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card-flex {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card-flex:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-soft);
}

.card-flex__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.card-flex__title {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-flex__text {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Two-column feature ----------------------------------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.split--reverse {
    direction: rtl;
}

.split--reverse > * {
    direction: ltr;
}

.split__media img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.split__media-card {
    aspect-ratio: 16 / 11;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-light) 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 32px;
}

.split__media-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.10) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0, transparent 50%);
}

.split__media-card > * {
    position: relative;
    z-index: 1;
}

.split__media-card i {
    font-size: clamp(3.5rem, 7vw, 5rem);
    opacity: 0.96;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.18));
}

.split__media-card__label {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.95;
}

.split__media-card__sub {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.75;
    margin-top: -10px;
}

.split__title {
    margin-bottom: 16px;
}

.split__text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Timeline --------------------------------------------- */

.timeline {
    position: relative;
    max-width: 760px;
    margin-inline: auto;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-light) 100%);
    border-radius: 2px;
}

.timeline__item {
    position: relative;
    padding-bottom: 32px;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 0 4px white;
}

.timeline__year {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 4px;
}

.timeline__title {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.timeline__text {
    margin: 0;
    color: var(--text-muted);
}

/* Location cards --------------------------------------- */

.location-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.location-card__header {
    background: var(--brand-shine);
    color: white;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.location-card__header i {
    font-size: 1.4rem;
}

.location-card__header h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.location-card__header small {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-top: 2px;
}

.location-card__body {
    padding: 24px 28px 28px;
}

.location-card__row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text);
    align-items: flex-start;
}

.location-card__row i {
    color: var(--brand);
    width: 18px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.location-card__row span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA banner ------------------------------------------- */

.cta-banner {
    background: var(--brand-shine);
    color: white;
    border-radius: var(--radius-lg);
    padding: clamp(40px, 6vw, 64px);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
    color: white;
    margin-bottom: 14px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    margin-bottom: 28px;
    max-width: 580px;
    margin-inline: auto;
}

.cta-banner .btn {
    background: white;
    color: var(--brand-dark);
}

.cta-banner .btn:hover {
    background: var(--ink);
    color: white;
}

/* Footer ----------------------------------------------- */

.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.8);
    padding: 64px 0 32px;
    margin-top: 0;
}

.footer__grid {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand img {
    height: 40px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer__tag {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 16px;
}

.footer__col h5 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__col li {
    margin-bottom: 10px;
}

.footer__col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer__col a:hover {
    color: var(--brand-light);
}

.footer__bottom {
    max-width: 1200px;
    margin-inline: auto;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

/* Contact form ----------------------------------------- */

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0, 102, 51, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* Pill / chip ------------------------------------------ */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive ------------------------------------------- */

@media (max-width: 900px) {
    .nav__links { display: none; position: fixed; inset: 64px 0 auto 0; background: white; flex-direction: column; align-items: stretch; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
    .nav__links.is-open { display: flex; }
    .nav__link { padding: 12px 14px; }
    .nav__cta { margin: 8px 0 0; align-self: stretch; }
    .nav__cta .btn { width: 100%; justify-content: center; }
    .nav__burger { display: block; }

    .stats__grid { grid-template-columns: repeat(2, 1fr); padding: 28px 16px; gap: 16px; }

    .split { grid-template-columns: 1fr; }
    .split--reverse { direction: ltr; }

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

@media (max-width: 540px) {
    .hero__cta { flex-direction: column; align-items: stretch; }
    .hero__cta .btn { justify-content: center; }
    .stats__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .footer__bottom { flex-direction: column; text-align: center; }
}
