/* ============================================
   AUTO SEBASTIAN — Custom CSS (tema albastru UE / alb)
   ============================================ */

:root {
    --blue:      #003399;
    --blue-dark: #002277;
    --blue-mid:  #1a4db3;
    --blue-light:#e8eef8;
    --gold:      #FFCC00;
    --white:     #ffffff;
    --surface:   #f4f7fd;
    --surface2:  #eaf0fb;
    --text:      #0d1b2e;
    --text-soft: #3a4e6a;
    --muted:     #6b7fa0;
    --border:    rgba(0,51,153,.12);
}

html, body {
    overflow-x: hidden;
    background: var(--white);
    color: var(--text);
}

/* ============== Navigație ============== */
.nav-link {
    position: relative;
    color: var(--text-soft);
    transition: color .25s ease;
    padding: 4px 0;
}
.nav-link:hover { color: var(--blue); }
.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width .3s ease, left .3s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; left: 0; }
.nav-link.is-active { color: var(--blue); font-weight: 600; }

/* ============== Reveal pe scroll ============== */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="100"] { transition-delay: .1s; }
[data-reveal][data-delay="200"] { transition-delay: .2s; }
[data-reveal][data-delay="300"] { transition-delay: .3s; }
[data-reveal][data-delay="400"] { transition-delay: .4s; }
[data-reveal][data-delay="500"] { transition-delay: .5s; }

/* ============== Grain ============== */
.bg-grain { position: relative; }
.bg-grain::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .025;
    z-index: 1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/></svg>");
}

/* ============== HERO — fundal albastru, text alb ============== */
.hero {
    background:
        linear-gradient(120deg, rgba(0,34,119,.95) 0%, rgba(0,51,153,.70) 55%, rgba(0,34,119,.30) 100%),
        url('/sebastian/assets/images/hero.jpeg') center/cover no-repeat;
    color: #fff;
}
.page-hero {
    background: linear-gradient(160deg, #002277 0%, #003399 55%, #1a4db3 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><circle cx='30' cy='30' r='1.5' fill='%23FFCC00' opacity='.2'/></svg>") repeat;
    pointer-events: none;
}

/* ============== Secțiuni pe fundal alb / deschis ============== */
/* Clasa aplicată pe <section> cu bg alb */
.section-light { background: var(--white); color: var(--text); }
.section-surface { background: var(--surface); color: var(--text); }

/* ============== Carduri ============== */
.car-card {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,51,153,.06);
    transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .4s;
    position: relative;
    overflow: hidden;
}
.car-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,51,153,.07) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}
.car-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,51,153,.30);
    box-shadow: 0 20px 50px -15px rgba(0,51,153,.18);
}
.car-card:hover::before { opacity: 1; }
.car-card-img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.car-card:hover .car-card-img { transform: scale(1.06); }

/* ============== Feature icon ============== */
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 9999px;
    background: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 20px -6px rgba(0,51,153,.35);
}

/* ============== Form ============== */
.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface2);
    border: 1.5px solid rgba(0,51,153,.14);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    transition: border-color .25s, background .25s, box-shadow .25s;
    font-family: inherit;
}
.form-input:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,51,153,.11);
}
.form-input::placeholder { color: var(--muted); }
.form-input.is-error { border-color: #dc2626; background: rgba(220,38,38,.04); }
.form-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--text-soft);
    margin-bottom: 8px;
}

/* Honeypot */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ============== Butoane ============== */
/* Buton principal (pe orice fundal) */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--blue); color: #fff;
    padding: 14px 28px; border-radius: 8px;
    font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 14px;
    transition: all .3s; border: none; cursor: pointer;
}
.btn-primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 8px 30px -8px rgba(0,51,153,.40);
    transform: translateY(-1px);
}
/* Buton contur albastru (pe fundal alb) */
.btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--blue);
    padding: 13px 27px; border-radius: 8px;
    font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 14px;
    border: 1.5px solid var(--blue); transition: all .3s;
}
.btn-ghost:hover { background: var(--blue); color: #fff; }

/* Buton alb (pe fundal albastru) */
.btn-white {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; color: var(--blue);
    padding: 14px 28px; border-radius: 8px;
    font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 14px;
    transition: all .3s; border: none; cursor: pointer;
}
.btn-white:hover { background: var(--gold); }

/* Buton contur alb (pe fundal albastru) */
.btn-outline-white {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: #fff;
    padding: 13px 27px; border-radius: 8px;
    font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 14px;
    border: 1.5px solid rgba(255,255,255,.65); transition: all .3s;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* ============== Eyebrow ============== */
/* Pe fundal alb/deschis */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .3em;
    color: var(--blue);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--blue); }

/* Pe fundal albastru */
.eyebrow-light {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .3em;
    color: var(--gold);
}
.eyebrow-light::before { content: ''; width: 28px; height: 2px; background: var(--gold); }

/* ============== Section title ============== */
/* Pe fundal alb */
.section-title { font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(2.25rem,5vw,3.8rem); line-height: 1; letter-spacing: .02em; color: var(--text); }
/* Pe fundal albastru */
.section-title-light { font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(2.25rem,5vw,3.8rem); line-height: 1; letter-spacing: .02em; color: #fff; }

/* ============== Contact carduri ============== */
.contact-card {
    background: #fff;
    border: 1.5px solid rgba(0,51,153,.12);
    border-radius: 18px;
    padding: 40px;
    transition: border-color .3s, box-shadow .3s, transform .3s;
    position: relative;
    overflow: hidden;
    color: var(--text);
}
.contact-card:hover {
    border-color: rgba(0,51,153,.4);
    box-shadow: 0 16px 48px -12px rgba(0,51,153,.18);
    transform: translateY(-4px);
}

/* ============== Stat/spec box ============== */
.spec-box {
    background: var(--surface);
    border: 1px solid rgba(0,51,153,.09);
    border-radius: 8px;
    padding: 14px 16px;
}
.spec-label { font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: 4px; }
.spec-value { font-weight: 600; color: var(--text); font-size: 15px; }

/* ============== Scrollbar ============== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: #b8c8e0; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ============== Reduce motion ============== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}