/* Home page — sits ON TOP of app.css (loaded first), and only holds what is genuinely the home's:
   the hero, the search bar, the trust strip, the category/destination/step blocks and the closing bands.
   Header, footer, nav menu, login modal, buttons, vehicle cards, type scale and colours all come from the
   design system now; duplicating them here is what made the logout veil and the modal spinner work on every
   page EXCEPT this one. If you need a component, add it to app.css — not here. */

/* The shared header, laid transparently over the hero. Same fragment and script as every other page;
   HomeController just puts headerVariant=over-hero in the model. */
.site-header.over-hero {
    position: absolute; top: 0; left: 0; right: 0; z-index: 50;
    background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom: none; box-shadow: none;
}
.site-header.over-hero .header-inner { padding: 1.1rem 2rem; }
.site-header.over-hero .nav-link,
.site-header.over-hero .nav-account { color: #fff; opacity: 0.92; font-weight: 500; }
.site-header.over-hero .nav-link:hover,
.site-header.over-hero .nav-account:hover { opacity: 1; }
.site-header.over-hero .lang-select {
    border: 1px solid rgba(255,255,255,0.35); background: transparent; color: #fff;
}
.site-header.over-hero .lang-select option { color: var(--ink); }
/* The "Entrar" pill reads as glass over the photo rather than a solid dark button. */
.site-header.over-hero .btn-dark {
    background: rgba(255,255,255,0.16); color: #fff; box-shadow: none;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.site-header.over-hero .btn-dark:hover { background: rgba(255,255,255,0.26); }

.hero { position: relative; min-height: 82vh; display: flex; flex-direction: column; justify-content: center;
    padding: 8rem 2rem 6rem; text-align: center; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10,40,36,0.62), rgba(10,40,36,0.78)),
                url("/images/demo/hero-4d6cce80332e98e5b813f7e881361c74.jpg") center/cover no-repeat; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; max-width: 18ch; margin: 0 auto 1.1rem; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.25rem); opacity: 0.92; max-width: 42ch; margin: 0 auto 2.4rem; }

.search { background: #fff; border-radius: 18px; padding: 0.55rem; display: flex; gap: 0.4rem;
    max-width: 760px; margin: 0 auto; box-shadow: var(--shadow-lg); flex-wrap: wrap; }
.search .field { flex: 1 1 150px; text-align: left; padding: 0.55rem 1rem; border-radius: 12px; min-width: 0; }
/* Destination is the field people actually type in, and its placeholder was being clipped mid-word at the
   default width. The date fields need only enough room for dd/mm/yyyy. */
.search .field:first-child { flex: 1.6 1 210px; }
.search .field + .field { border-left: 1px solid var(--line); }
.search .field label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--muted); font-weight: 700; }
.search .field input { border: none; outline: none; font-size: 1rem; width: 100%; color: var(--ink);
    background: transparent; padding-top: 0.2rem; font-family: inherit; }
/* These fields borrow the generic .field class, which in app.css carries the ACCOUNT-FORM focus ring: a 3px
   teal box-shadow. On a bordered form input that reads as focus; on a borderless input inside this flat pill
   it reads as a stray bordered box around one field and not the others — which is exactly how it was
   reported. Focus is shown by tinting the whole field instead, which suits the pill. */
.search .field input:focus { box-shadow: none; }
.search .field:focus-within { background: var(--sand); }
.search button { flex: 0 0 auto; padding: 0 1.7rem; border-radius: 13px; }

.trust { background: var(--ink); color: #fff; }
.trust .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; padding: 1.1rem 1.5rem; }
.trust .trust-stat { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; opacity: 0.92; }
.trust .trust-stat strong { font-weight: 800; }
.trust .trust-stat .star { color: var(--amber); }

section.block { padding: 4.5rem 0; }
section.block.alt { background: var(--sand); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--muted); margin-top: 0.6rem; font-size: 1.05rem; }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius, 16px); border-radius: 16px;
    padding: 1.6rem; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat .ic { width: 48px; height: 48px; border-radius: 12px; background: #e9f2ef; color: var(--teal);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.cat h3 { font-size: 1.15rem; }
.cat p { color: var(--muted); font-size: 0.92rem; margin: 0.35rem 0 0.9rem; }
.cat .more { color: var(--teal-dark); font-weight: 700; font-size: 0.9rem; }

.dests { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.dest { position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; display: flex;
    align-items: flex-end; color: #fff; box-shadow: var(--shadow); transition: transform .15s; isolation: isolate; }
.dest:hover { transform: translateY(-4px); }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.dest::after { content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 40%, rgba(8,24,21,0.75)); }
.dest span { position: relative; z-index: 2; padding: 1rem; font-weight: 700; font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.step { text-align: center; }
.step .num { width: 3rem; height: 3rem; border-radius: 50%; background: var(--teal); color: #fff;
    font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin-top: 0.4rem; }

.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; box-shadow: var(--shadow); }
.benefit svg { color: var(--teal); margin-bottom: 0.7rem; }
.benefit h3 { font-size: 1.1rem; }
.benefit p { color: var(--muted); font-size: 0.92rem; margin-top: 0.3rem; }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.center-cta { text-align: center; margin-top: 2.2rem; }
.link-dark { color: var(--teal-dark); font-weight: 700; }

.owner { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; }
.owner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 3rem 1.5rem; }
.owner h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 18ch; }
.owner p { opacity: 0.9; margin-top: 0.5rem; max-width: 44ch; }
.owner .btn { background: #fff; color: var(--teal-dark); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

@media (max-width: 640px) { header { padding: 1rem; } header nav { gap: 0.8rem; } .hero { padding: 7rem 1.2rem 4rem; } }

.cat { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cat-img { aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: #d9e2df;
    transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cat:hover .cat-img { transform: scale(1.05); }
.cat-body { padding: 1.2rem 1.3rem 1.4rem; }
.cat-body h3 { font-size: 1.12rem; }
.cat-body p { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0.8rem; }

.dual { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.dual-card { position: relative; border-radius: 18px; padding: 2.2rem; overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.dual-card.host { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; border: none; }
.dual-card.op { background: var(--sand); }
.dual-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.dual-card.host .dual-ic { background: rgba(255,255,255,0.18); color: #fff; }
.dual-card.op .dual-ic { background: #e9f2ef; color: var(--teal); }
.dual-card h3 { font-size: 1.3rem; max-width: 20ch; }
.dual-card p { margin: 0.55rem 0 1.4rem; font-size: 0.96rem; max-width: 42ch; }
.dual-card.host p { opacity: 0.92; }
.dual-card.op p { color: var(--muted); }
.dual-card.host .btn { background: #fff; color: var(--teal-dark); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.dual-card.op .btn { background: var(--ink); color: #fff; }

.freedom { text-align: center; }
.freedom .container { max-width: 700px; }
.freedom h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.freedom p { color: var(--muted); margin: 0.8rem auto 1.7rem; font-size: 1.05rem; }

/* Nudge for a host who hasn't listed a van yet (home is otherwise all traveller marketing). */
.host-nudge { background: #fdf3e2; border-bottom: 1px solid #f0e0bf; }
.host-nudge .container { display: flex; align-items: center; justify-content: center; gap: 0.8rem;
    padding: 0.85rem 1rem; flex-wrap: wrap; color: #8a5a12; font-weight: 600; font-size: 0.95rem; }
.host-nudge svg { width: 20px; height: 20px; flex: none; }

/* A validation message inside the bar used to grow the field, which grew the bar: the whole pill jumped and
   the button moved out from under the cursor. It hangs below instead — the bar keeps its shape. */
.search .field { position: relative; }
.search .field .js-date-err { position: absolute; top: 100%; left: 1rem; right: 0.4rem; margin-top: 0.35rem;
    font-size: 0.76rem; font-weight: 600; color: #9b1c1c; }

/* Roadmap block. Styled deliberately UNLIKE the trust cards above it: no shadow, no solid fill, dashed
   outline and muted ink. A traveller skimming the page should be able to tell at a glance that these are
   sketches, not inclusions — the visual language carries the disclaimer even if the note goes unread. */
.soon-badge { display: inline-block; margin-bottom: 0.7rem; padding: 0.28rem 0.7rem; border-radius: 999px;
    background: rgba(232,163,61,0.16); color: #8a5b12; font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.next-card { border: 1px dashed var(--line); border-radius: 16px; padding: 1.5rem; background: transparent; }
.next-card h3 { font-size: 1.05rem; color: var(--muted); }
.next-card p { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }
.next-note { margin-top: 1.6rem; text-align: center; color: var(--muted); font-size: 0.85rem;
    max-width: 620px; margin-left: auto; margin-right: auto; }

/* Startup honesty note — an eyebrow above the hero headline, sitting on the dark hero photo. Translucent
   light pill with white text so it reads on the image; centred, self-sized (not full width). Says plainly
   that Campvoy is starting out — confidence, not a warning. The dot is a small "live and building" pulse. */
.startup-note { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: fit-content; max-width: 90%; margin: 0 auto 1.4rem; padding: 0.5rem 1.1rem;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(4px); border-radius: 999px;
    color: #fff; font-size: 0.85rem; font-weight: 600; opacity: 0.95; }
.startup-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
    box-shadow: 0 0 0 0 rgba(232,163,61,0.6); animation: startup-pulse 2.4s ease-out infinite; }
@keyframes startup-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(232,163,61,0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(232,163,61,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,163,61,0); }
}
@media (prefers-reduced-motion: reduce) { .startup-dot { animation: none; } }
