/* TransferMila23.ro 2027 – „Dunărea”: foto pe tot ecranul, panou live, cronologia zilei */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url(/assets/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url(/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url(/assets/fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url(/assets/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --deep: #0b3a4a;         /* Dunărea adâncă */
    --river: #12586a;        /* apă – text/linkuri pe fond deschis */
    --mist: #e8f1f2;         /* ceață pe apă */
    --foam: #ffffff;
    --ink: #10252d;
    --soft: #4a626b;
    --signal: #ff5e15;       /* portocaliul din siglă */
    --signal-ink: #b8400a;
    --line: rgb(16 37 45 / .14);
    --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; font: 400 1.0625rem/1.62 var(--body); color: var(--ink); background: var(--foam); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--river); text-underline-offset: .2em; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--signal); color: #1c0a02; padding: .6rem 1rem; border-radius: 10px; font-weight: 700; }
.skip:focus { top: .5rem; }
.muted { color: var(--soft); }

h1, h2, h3 { margin: 0 0 .5em; font-family: var(--display); color: var(--ink); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; }
h1 { font-size: clamp(2.9rem, 9vw, 6.4rem); font-weight: 800; letter-spacing: -.04em; line-height: .94; }
h2.sec { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; }

/* Butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.7rem; border: 0; border-radius: 999px; background: var(--signal); color: #1c0a02; font: 700 1.02rem/1 var(--body); text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 10px 24px -10px rgb(255 94 21 / .75); transition: transform .18s, box-shadow .18s, background .18s; }
.btn:hover { color: #1c0a02; background: #ff7b3d; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 16px 30px -10px rgb(255 94 21 / .85); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .96rem; }
.btn-block { width: 100%; }
.btn-ghost { background: rgb(255 255 255 / .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .8); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; color: var(--deep); box-shadow: inset 0 0 0 1.5px #fff; }

/* Header: transparent peste fotografie, solid la scroll */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.site-header.scrolled { background: rgb(11 58 74 / .9); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 10px 30px -18px rgb(0 0 0 / .6); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: block; padding: .35rem .8rem; background: #fff; border-radius: 16px; box-shadow: 0 8px 24px -12px rgb(0 0 0 / .5); }
.brand img { width: 150px; height: auto; }
.nav-toggle { display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .16); backdrop-filter: blur(8px); color: #fff; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.nav-toggle i { position: relative; }
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; }
.nav-toggle i::before { top: -7px; } .nav-toggle i::after { top: 7px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }
.menu { position: absolute; inset: calc(100% + .25rem) .75rem auto .75rem; display: none; flex-direction: column; padding: .6rem 1.2rem 1.3rem; background: var(--deep); border-radius: 24px; box-shadow: 0 24px 50px -20px rgb(0 0 0 / .7); }
.menu.open { display: flex; }
.menu a:not(.btn) { color: #fff; text-decoration: none; padding: .9rem .2rem; font: 600 1.25rem/1.2 var(--display); border-bottom: 1px solid rgb(255 255 255 / .14); }
.menu a[aria-current="true"] { color: #ffb08a; }
.menu .btn { margin-top: 1.1rem; }
@media (min-width: 920px) {
    .brand img { width: 176px; }
    .nav-toggle { display: none; }
    .menu { position: static; display: flex; flex-direction: row; align-items: center; gap: .3rem; padding: .4rem .5rem .4rem 1rem; background: rgb(255 255 255 / .14); border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35); backdrop-filter: blur(12px); }
    .menu a:not(.btn) { padding: .5rem .95rem; border: 0; border-radius: 999px; font: 600 .98rem/1 var(--body); }
    .menu a:not(.btn):hover { background: rgb(255 255 255 / .18); }
    .menu a[aria-current="true"] { background: #fff; color: var(--deep); }
    .menu .btn { margin: 0 0 0 .3rem; }
    .site-header.scrolled .menu { background: transparent; box-shadow: none; backdrop-filter: none; }
}

/* Hero */
.hero { position: relative; isolation: isolate; min-height: max(640px, 94svh); display: grid; align-items: end; padding: calc(var(--header-h) + 3rem) 0 clamp(2rem, 5vw, 4rem); color: #fff; background: var(--deep); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 40 52 / .62) 0%, rgb(8 40 52 / .12) 34%, rgb(8 40 52 / .55) 70%, rgb(8 40 52 / .94) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: end; }
.hero h1 { color: #fff; max-width: 11ch; text-shadow: 0 4px 40px rgb(0 0 0 / .35); }
.lead { font-size: clamp(1.12rem, 2.4vw, 1.4rem); color: #e6f1f4; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; } }

/* Panou „următoarea cursă” */
.next { padding: 1.5rem; border-radius: 28px; background: rgb(255 255 255 / .13); backdrop-filter: blur(20px) saturate(150%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4), 0 30px 60px -30px rgb(0 0 0 / .6); }
.next p { margin: 0; }
.next-label { font-weight: 600; color: #cfe6ec; font-size: .98rem; }
.next-time { font: 800 clamp(3.4rem, 9vw, 4.6rem)/1 var(--display); letter-spacing: -.04em; margin-top: .15rem !important; font-variant-numeric: tabular-nums; }
.next-day { font: 600 1.1rem/1 var(--body); letter-spacing: 0; color: #ffb08a; margin-left: .3rem; }
.next-route { font: 700 1.35rem/1.2 var(--display); margin-top: .35rem !important; }
.next-eta { display: flex; align-items: center; gap: .6rem; margin: .9rem 0 .3rem !important; font-weight: 600; }
.next-eta i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgb(255 94 21 / .7); animation: pulse 2s infinite; }
.next-stop { color: #cfe6ec; font-size: .96rem; margin-bottom: 1.2rem !important; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(255 94 21 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 94 21 / 0); } }

/* O singură secvență la încărcare */
.hero h1, .hero .lead, .hero .cta, .next { animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero .lead { animation-delay: .12s; } .hero .cta { animation-delay: .22s; } .next { animation-delay: .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* Avantaje */
.features { background: var(--foam); border-bottom: 1px solid var(--line); }
.feat-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.feat-grid li { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 0; color: var(--river); border-bottom: 1px solid var(--line); }
.feat-grid li:last-child { border-bottom: 0; }
.feat-grid h2 { margin: 0; font-size: 1.25rem; color: var(--ink); }
@media (min-width: 800px) { .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .feat-grid li { justify-content: center; padding: 1.8rem 1rem; border-bottom: 0; border-right: 1px solid var(--line); } .feat-grid li:last-child { border-right: 0; } }

/* Secțiuni */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.tint { background: var(--mist); }
.sec-sub { max-width: 60ch; }
.now-line { color: var(--river); font-weight: 600; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; } }
.big { font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.45; }

/* Cronologia zilei */
.day { list-style: none; margin: 2.5rem 0 0; padding: 0 0 0 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; position: relative; }
.day::before { content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem; width: 3px; border-radius: 3px; background: linear-gradient(var(--river), var(--signal)); opacity: .5; }
.dep { position: relative; display: grid; gap: .15rem; padding: 1.2rem 1.3rem; border-radius: 22px; background: var(--mist); transition: background .2s, opacity .2s; }
.dep::before { content: ""; position: absolute; left: -1.62rem; top: 1.75rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--foam); border: 3px solid var(--river); }
.dep.mila23::before { border-color: var(--signal); }
.dep time { font: 800 clamp(2.4rem, 6vw, 3.4rem)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dep strong { font: 700 1.2rem/1.25 var(--display); letter-spacing: -.01em; }
.dep .stop { color: var(--soft); font-size: .98rem; }
.dep.is-past { opacity: .5; }
.dep.is-past time { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgb(16 37 45 / .35); }
.dep.is-next { background: var(--deep); color: #fff; box-shadow: 0 24px 40px -24px rgb(11 58 74 / .9); }
.dep.is-next time, .dep.is-next strong { color: #fff; }
.dep.is-next .stop { color: #b9d5dc; }
.dep.is-next::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 6px rgb(255 94 21 / .25); }
.dep.is-next::after { content: "Următoarea"; position: absolute; right: 1rem; top: 1rem; padding: .25rem .7rem; border-radius: 999px; background: var(--signal); color: #1c0a02; font-weight: 700; font-size: .85rem; }
@media (min-width: 900px) {
    .day { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; padding: 2.2rem 0 0; }
    .day::before { left: 0; right: 0; top: .55rem; bottom: auto; width: auto; height: 3px; }
    .dep::before { left: 1.3rem; top: -2.05rem; }
}

/* Tarife: listă cu puncte de ghidaj */
.ledger { list-style: none; margin: 2rem 0 0; padding: 0; }
.ledger li { display: flex; align-items: baseline; gap: .6rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.ledger span { font-weight: 600; }
.ledger i { flex: 1; min-width: 1rem; border-bottom: 2px dotted rgb(16 37 45 / .3); transform: translateY(-.25em); }
.ledger strong { font: 800 1.6rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ledger .free strong { color: #0f6b34; }
.photo { position: relative; margin: 0; }
.photo img { width: 100%; border-radius: 32px; box-shadow: 0 36px 60px -34px rgb(11 58 74 / .8); }
.photo figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .5rem 1rem; border-radius: 999px; background: rgb(255 255 255 / .86); backdrop-filter: blur(8px); font-weight: 700; font-size: .95rem; }

/* Rezervare – bloc întunecat plutitor */
.book { margin: clamp(1rem, 3vw, 2rem) .6rem 0; padding: clamp(3rem, 8vw, 6rem) 0; border-radius: 36px 36px 0 0; color: #fff; background: radial-gradient(90% 70% at 100% 0%, #176a80 0%, var(--deep) 60%); }
.book h2 { color: #fff; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (min-width: 940px) { .book-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; } }
.book .big { color: #cfe6ec; }
.contact-info { display: grid; gap: .2rem; margin-top: 2rem; }
.info { padding: 1rem 0; border-top: 1px solid rgb(255 255 255 / .2); }
.info h3 { font: 600 .95rem/1.2 var(--body); letter-spacing: 0; color: #a9c6cc; margin-bottom: .2rem; }
.info p { margin: 0; font: 700 1.5rem/1.2 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.info a { color: #fff; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }

#booking-form { padding: clamp(1.3rem, 4vw, 2.2rem); border-radius: 32px; background: var(--foam); color: var(--ink); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .7); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1rem; }
@media (min-width: 560px) { .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .96rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea { width: 100%; min-height: 52px; padding: .75rem 1rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--mist); border: 2px solid transparent; border-radius: 16px; transition: border-color .15s, background .15s; }
textarea { resize: vertical; min-height: 7.5rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--river); background: #fff; box-shadow: 0 0 0 4px rgb(18 88 106 / .18); }
.field.invalid input:not([type="checkbox"]), .field.invalid select, .field.invalid textarea { border-color: #b00020; background: #fff5f5; }
.err { display: none; margin-top: .3rem; color: #b00020; font-weight: 600; font-size: .9rem; }
.field.invalid .err { display: block; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: start; }
.check input { width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; accent-color: var(--river); }
.check label { font-weight: 400; margin: 0; }
.check .err { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { display: none; margin-bottom: 1rem; padding: .9rem 1.1rem; border-radius: 16px; font-weight: 600; }
.status.show { display: block; }
.status.ok { background: #e1f5e8; color: #0f5a2a; }
.status.err { background: #fde8ea; color: #8d0019; }
form .btn[disabled] { opacity: .6; cursor: progress; }

/* Subsol */
.site-footer { background: var(--deep); color: #a9c6cc; padding: 1.8rem 0 calc(1.8rem + env(safe-area-inset-bottom)); font-size: .95rem; margin: 0 .6rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / .18); }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.call-fab { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 999px; background: var(--signal); color: #1c0a02; font-weight: 800; text-decoration: none; box-shadow: 0 16px 34px -10px rgb(0 0 0 / .6); }
.call-fab:hover { color: #1c0a02; }
@media (min-width: 920px) { .call-fab { display: none; } }

/* Pagina legală */
.legal { background: var(--mist); }
.legal h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .site-header, .call-fab, form { display: none !important; } }
