/* ==========================================================================
   EPF Pizza Production — corporate landing styles
   Brand palette kept from the previous site (#089BD6 / Montserrat).
   ========================================================================== */

:root {
    --blue: #089BD6;
    --blue-dark: #0678a8;
    --blue-soft: #e7f5fc;
    --navy: #0b2230;
    --ink: #16303f;
    --muted: #5c6f7b;
    --bg: #ffffff;
    --bg-alt: #f1f7fb;
    --line: #e0eaf1;
    --danger: #d64545;
    --success: #1f9d63;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(11, 34, 48, .08);
    --container: 1170px;
}

/* --- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }

/* Offset anchor targets so the sticky header doesn't cover them. */
section[id] { scroll-margin-top: 84px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}
.container--narrow { max-width: 820px; }

/* --- buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 13px 28px;
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
    white-space: nowrap;
}
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--outline { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn--lg { font-size: 18px; padding: 16px 38px; }
.btn--sm { font-size: 14px; padding: 9px 18px; }

/* --- header / nav ------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 20px;
}
.site-header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-weight: 800;
}
.site-header__logo img { width: 44px; height: 44px; }
.site-header__brand { font-size: 20px; letter-spacing: .5px; }
.site-header__brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--blue); }
.site-nav .btn { color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); transition: .25s; }

/* --- hero -------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
.hero__media {
    position: absolute;
    inset: 0;
    background: url('/assets/img/banner.webp') center/cover no-repeat;
    transform: scale(1.02);
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 20, 30, .88) 0%, rgba(6, 20, 30, .55) 55%, rgba(8, 155, 214, .25) 100%);
}
.hero__content { position: relative; padding: 90px 20px; max-width: 720px; }
.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #7fd4f4;
    margin: 0 0 18px;
}
.hero__title {
    color: #fff;
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    margin: 0 0 18px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}
.hero__subtitle { font-size: clamp(16px, 2.2vw, 21px); color: #e6f2f8; margin: 0 0 34px; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* --- generic section --------------------------------------------------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 12px;
}
.section__title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; margin-bottom: 22px; }
.section__lead { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0 0 40px; }

.link-arrow { font-weight: 700; }

/* --- about ------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1.7fr 1fr; gap: 50px; align-items: start; }
.about__text p { margin: 0 0 18px; color: #33474f; font-size: 16.5px; }
.about__facts {
    list-style: none;
    margin: 0;
    padding: 30px;
    background: var(--navy);
    border-radius: var(--radius);
    color: #cfe7f2;
    box-shadow: var(--shadow);
}
.about__facts li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-weight: 600; }
.about__facts li:last-child { border-bottom: 0; }
.about__num { display: block; color: #fff; font-size: 30px; font-weight: 800; line-height: 1; }

/* --- cards / advantages ------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11, 34, 48, .14); }
.card__icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background: var(--blue);
    border-radius: 12px;
    margin-bottom: 18px;
}
.card__title { font-size: 19px; margin-bottom: 10px; }
.card__text { color: var(--muted); margin: 0; font-size: 15.5px; }

/* --- licenses ---------------------------------------------------------- */
.licenses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 820px; }
.license {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.license a { display: block; background: #fafcfe; }
.license img { width: 100%; height: auto; transition: transform .3s ease; }
.license a:hover img { transform: scale(1.03); }
.license figcaption { padding: 18px 20px; font-size: 14px; color: var(--muted); }
.license figcaption strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.licenses__registry { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.licenses__registry p { margin: 0; color: var(--muted); font-weight: 600; }

/* --- contacts + form --------------------------------------------------- */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contacts h3 { font-size: 20px; margin-bottom: 22px; }
.contacts__list { list-style: none; margin: 0; padding: 0; }
.contacts__list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contacts__list li:last-child { border-bottom: 0; }
.contacts__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 4px; }
.contacts__list a { font-weight: 600; }

.contacts__form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--navy); }
.field input, .field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fbfdfe;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
    resize: vertical;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(8, 155, 214, .15);
    background: #fff;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error { display: block; color: var(--danger); font-size: 13px; margin-top: 6px; font-weight: 600; }
.field__consent { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: 10px; font-weight: 600; margin-bottom: 22px; font-size: 15px; }
.alert--success { background: #e5f6ee; color: var(--success); border: 1px solid #b8e6cd; }
.alert--error { background: #fbe9e9; color: var(--danger); border: 1px solid #f0c4c4; }

/* --- footer ------------------------------------------------------------ */
.site-footer { background: var(--navy); color: #b9cedb; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding: 46px 20px; }
.site-footer__brand { display: flex; gap: 16px; align-items: flex-start; max-width: 440px; }
.site-footer__brand img { width: 54px; height: 54px; }
.site-footer__brand strong { display: block; color: #fff; margin-bottom: 6px; }
.site-footer__brand span { display: block; font-size: 14px; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { color: #b9cedb; font-weight: 600; font-size: 15px; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bar { background: rgba(0, 0, 0, .25); font-size: 14px; }
.site-footer__bar .container { padding-top: 16px; padding-bottom: 16px; }

/* --- legal page -------------------------------------------------------- */
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: #33474f; font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal__updated { color: var(--muted); font-weight: 600; margin-top: -8px; }
.legal__back { margin-top: 40px; }

/* --- responsive -------------------------------------------------------- */
@media (max-width: 900px) {
    .about, .contacts { grid-template-columns: 1fr; gap: 34px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 8px 20px 20px;
        box-shadow: var(--shadow);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-nav .btn { margin-top: 14px; justify-content: center; }
    .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .section { padding: 60px 0; }
    .hero { min-height: 480px; }
    .cards, .licenses { grid-template-columns: 1fr; }
    .hero__actions .btn { flex: 1 1 auto; }
}
