/*
    Warehouse location layout (Views/Warehouse/Location.cshtml) - local landing page per warehouse:
    gradient hero with the quote form beside it, then at-a-glance / actual photos / who-it-serves /
    challenges / why-us / team / FAQ / other locations. Everything is scoped under .whl.
*/
.whl {
    --whl-navy: #0B2545;
    --whl-ink: #101828;
    --whl-body: #475467;
    --whl-muted: #667085;
    --whl-line: #E4E7EC;
    --whl-blue: #006994;
    --whl-blue-dark: #00557A;
    --whl-tint: #EEF6FA;
    --whl-good: #12805C;
    --whl-bad: #D92D20;
    --whl-header-h: 46px;
    color: var(--whl-body);
    font-family: 'Inter', sans-serif;
}

.whl h1, .whl h2, .whl h3 { color: var(--whl-ink); margin: 0; text-wrap: balance; letter-spacing: -.02em; }
.whl p { text-wrap: pretty; }

.whl-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.whl-section { padding: 88px 0 96px; scroll-margin-top: var(--whl-header-h); }
.whl-section--tint { background: var(--whl-tint); }

.whl-h2 {
    font-size: clamp(28px, 1.6vw + 18px, 40px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--whl-navy) !important;
    margin-bottom: 20px !important;
}
.whl-text { font-size: 17px; line-height: 1.7; max-width: 75ch; margin: 0 0 16px; }

/* Buttons */
.whl-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 8px;
    background: #fff;
    color: var(--whl-navy);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .02em;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .15s ease;
    white-space: nowrap;
}
.whl-btn:hover { background: var(--whl-tint); color: var(--whl-navy) !important; }
.whl-btn:active { transform: translateY(1px); }
.whl-btn i { transition: transform .2s ease; }
.whl-btn:hover i { transform: translateX(4px); }

.whl-link { color: var(--whl-blue); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.whl-link:hover { color: var(--whl-blue-dark) !important; text-decoration: underline; }

.whl a:focus-visible, .whl button:focus-visible, .whl summary:focus-visible {
    outline: 2px solid var(--whl-blue);
    outline-offset: 3px;
}

/* 1. Breadcrumb + hero card */
.whl-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 40px 0 0;
    margin: 0 0 14px;
    font-size: 14px;
}
.whl-breadcrumb a { color: var(--whl-ink); text-decoration: underline; text-underline-offset: 3px; }
.whl-breadcrumb a:hover { color: var(--whl-blue) !important; }
.whl-breadcrumb li + li::before { content: "/"; color: var(--whl-muted); margin-right: 8px; }
.whl-breadcrumb [aria-current] { color: var(--whl-muted); }

.whl-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: start;
    padding: 72px 32px 40px 56px;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(0, 125, 176, .45) 0%, rgba(0, 125, 176, 0) 55%),
        linear-gradient(105deg, #0B3C66 0%, #0B2545 55%, #050B18 100%);
}
.whl-hero > *, .whl-glance > * { min-width: 0; }
/* Faint blueprint grid behind the hero copy. */
.whl-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}
.whl-hero h1 {
    color: #fff;
    font-size: clamp(34px, 2.6vw + 16px, 54px);
    font-weight: 600;
    line-height: 1.1;
}
.whl-hero__lead { font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.86); margin: 28px 0 0; max-width: 52ch; }

.whl-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 40px;
    margin: 40px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid rgba(255,255,255,.16);
}
.whl-hero__stats dt { font-size: 32px; font-weight: 600; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.whl-hero__stats dd { margin: 6px 0 0; font-size: 14px; color: rgba(255,255,255,.72); max-width: 18ch; }

.whl-hero__strap { margin: 36px 0 0; font-weight: 600; font-size: 17px; line-height: 1.5; color: #fff; }
.whl-hero__strap i { color: #7CC4E4; margin-right: 8px; }

/* The shared booking form, without its photo backdrop, as a white card in the hero. */
.whl-hero__form { scroll-margin-top: calc(var(--whl-header-h) + 16px); }
.whl-hero__form .service-booking { border-radius: 16px; overflow: visible; }
.whl-hero__form .service-booking__photo { display: none; }
.whl-hero__form .service-booking__inner { min-height: 0; padding: 0; justify-content: stretch; }
.whl-hero__form .service-booking__card { width: 100%; box-shadow: 0 24px 60px rgba(2, 8, 23, .35); }

/* 2. Photo + at-a-glance */
.whl-glance { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.whl-glance__img { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--whl-line); }
.whl-glance__img img { width: 100%; height: 100%; object-fit: cover; }
.whl-glance dl { display: grid; grid-template-columns: auto 1fr; gap: 18px 24px; margin: 28px 0 32px; }
.whl-glance dt { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--whl-ink); font-size: 15px; white-space: nowrap; }
.whl-glance dt i { width: 18px; color: var(--whl-blue); text-align: center; }
.whl-glance dd { margin: 0; font-size: 15px; line-height: 1.5; }
.whl-glance dd a { color: var(--whl-body); text-decoration: none; }
.whl-glance dd a:hover { color: var(--whl-blue) !important; text-decoration: underline; }
.whl-glance__directions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 8px;
    background: var(--whl-navy);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease;
}
.whl-glance__directions:hover { background: var(--whl-blue); color: #fff !important; }

/* 3. Ideal-for list */
.whl-ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.whl-ticks li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.6; max-width: 80ch; }
.whl-ticks li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 14px;
    color: var(--whl-blue);
}

/* 4 & 5. Two-column icon lists (challenges = cross, reasons = check) */
.whl-points { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; margin-top: 40px; }
.whl-point { display: grid; grid-template-columns: 28px 1fr; gap: 0 16px; align-content: start; }
.whl-point i { font-size: 22px; line-height: 1.2; grid-row: span 2; }
.whl-point h3 { font-size: 19px; font-weight: 600; color: var(--whl-navy); line-height: 1.3; margin-bottom: 10px; }
.whl-point p { margin: 0; font-size: 16px; line-height: 1.7; }
.whl-points--bad i { color: var(--whl-bad); }
.whl-points--good i { color: var(--whl-good); }

/* CTA banner - overlaps the tinted section above it */
.whl-cta-wrap { background: linear-gradient(var(--whl-tint) 50%, #fff 50%); }
.whl-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 56px 72px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(105deg, #0B3C66 0%, #0B2545 55%, #050B18 100%);
}
.whl-cta::before {
    content: "\f495"; /* warehouse-alt */
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    position: absolute;
    right: 22%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 220px;
    color: rgba(255,255,255,.05);
    z-index: -1;
}
.whl-cta h2 { color: #fff; font-size: clamp(24px, 1.2vw + 16px, 32px); font-weight: 600; line-height: 1.3; max-width: 26ch; }

/* 3. Actual photos - outside + inside side by side, gallery strip below */
.whl-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.whl-photos figure { position: relative; margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--whl-line); }
.whl-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.whl-photos figure:hover img { transform: scale(1.03); }
.whl-photos figcaption {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--whl-navy);
    font-size: 14px;
    font-weight: 600;
}

.whl-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3.3);
    gap: 24px;
    margin-top: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 12px;
}
.whl-gallery figure { margin: 0; scroll-snap-align: start; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--whl-line); }
.whl-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.whl-gallery figure:hover img { transform: scale(1.04); }

/* 6. Why choose - navy lead tile + numbered white tiles */
.whl-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.whl-why__lead {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 36px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(0, 125, 176, .45) 0%, rgba(0, 125, 176, 0) 60%),
        linear-gradient(160deg, #0B3C66 0%, #0B2545 60%, #050B18 100%);
}
.whl-why__eyebrow { font-size: 14px; font-weight: 600; color: #7CC4E4; margin-bottom: 14px; }
.whl-why__lead h2 { color: #fff; font-size: clamp(26px, 1.2vw + 18px, 34px); font-weight: 600; line-height: 1.2; }
.whl-why__lead p { color: rgba(255,255,255,.8); font-size: 16px; line-height: 1.65; margin: 18px 0 32px; }
.whl-why__lead .whl-btn { margin-top: auto; }
/* 5+ reasons: the lead tile runs the full height and an odd last tile fills the row beside it. */
.whl-why--tall .whl-why__lead { grid-row: span 3; }
.whl-why__tile:last-child:nth-child(even) { grid-column: span 2; }
.whl-why__tile {
    position: relative;
    padding: 32px 28px 30px;
    border: 1px solid var(--whl-line);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.whl-why__tile::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: var(--whl-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.whl-why__tile:hover { border-color: transparent; box-shadow: 0 18px 40px -14px rgba(11, 37, 69, .22); transform: translateY(-3px); }
.whl-why__tile:hover::before { transform: scaleX(1); }
.whl-why__num { display: block; font-size: 40px; font-weight: 600; line-height: 1; color: var(--whl-blue); opacity: .25; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.whl-why__tile h3 { font-size: 19px; font-weight: 600; color: var(--whl-navy); line-height: 1.3; margin-bottom: 10px; }
.whl-why__tile p { margin: 0; font-size: 15px; line-height: 1.65; }

/* 7. Team - cards like the old landing page: white name box at the bottom, gradient + quote + CTA
   slide in on hover. All 4 in one row on desktop; a swipe carousel with arrows below 1200px.
   Touch devices (no hover) get the open state. */
.whl-team__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.whl-team__head .whl-h2 { margin-bottom: 0 !important; }
.whl-arrows { display: none; gap: 8px; flex-shrink: 0; } /* only needed once the row becomes a carousel */
.whl-arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--whl-line);
    background: #fff;
    color: var(--whl-ink);
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.whl-arrows button:hover:not(:disabled) { background: var(--whl-navy); border-color: var(--whl-navy); color: #fff; }
.whl-arrows button:disabled { opacity: .35; cursor: default; }

.whl-team {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 72px) / 4); /* desktop: all 4 people in one row */
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.whl-team::-webkit-scrollbar { display: none; }
.whl-person {
    position: relative;
    scroll-snap-align: start;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: #5B5B63;
}
.whl-person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.whl-person::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(1, 97, 127, .88), rgba(2, 175, 229, .72));
    opacity: 0;
    transition: opacity .35s ease;
}
.whl-person__card {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 74px; /* name + role only until hover */
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
}
.whl-person__card > * { flex-shrink: 0; } /* the box clips instead; items keep their height */
.whl-person__card h3 { font-size: 18px; font-weight: 600; color: #344054; line-height: 1.2; }
.whl-person__card small { margin-top: -7px; font-size: 14px; color: var(--whl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.whl-person__card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--whl-body); }
.whl-person__card p, .whl-person__cta { opacity: 0; transition: opacity .25s ease; }
.whl-person__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease;
}
.whl-person__cta:hover { background: #4A4A4A; color: #fff !important; }
.whl-person:hover img { transform: scale(1.05); }
.whl-person:hover::before, .whl-person:focus-within::before { opacity: 1; }
.whl-person:hover .whl-person__card, .whl-person:focus-within .whl-person__card { max-height: 350px; }
.whl-person:hover .whl-person__card p, .whl-person:hover .whl-person__cta,
.whl-person:focus-within .whl-person__card p, .whl-person:focus-within .whl-person__cta { opacity: 1; transition-delay: .1s; }
@media (hover: none) {
    .whl-person__card { max-height: none; }
    .whl-person__card p, .whl-person__cta { opacity: 1; }
}

/* 8. FAQ - boxed rows */
.whl-faq { display: grid; gap: 20px; margin-top: 36px; }
.whl-faq details { border: 1.5px solid var(--whl-navy); border-radius: 10px; background: #fff; transition: box-shadow .2s ease; }
.whl-faq details[open] { box-shadow: 0 10px 30px rgba(11, 37, 69, .08); }
.whl-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 32px;
    cursor: pointer;
    list-style: none;
    font-size: 19px;
    font-weight: 600;
    color: var(--whl-ink);
}
.whl-faq summary::-webkit-details-marker { display: none; }
.whl-faq summary::after {
    content: "\f067";
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    font-size: 20px;
    color: var(--whl-navy);
    flex-shrink: 0;
    transition: transform .25s ease;
}
.whl-faq details[open] summary::after { transform: rotate(45deg); }
.whl-faq summary:hover { color: var(--whl-blue); }
.whl-faq__answer { padding: 0 32px 26px; font-size: 16px; line-height: 1.7; max-width: 90ch; }

/* 9. Other warehouses */
.whl-others { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.whl-other {
    display: grid;
    grid-template-columns: 200px 1fr;
    border: 1px solid var(--whl-line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}
.whl-other:hover { box-shadow: 0 16px 40px rgba(11, 37, 69, .12); transform: translateY(-2px); color: inherit !important; }
.whl-other__img { background: var(--whl-line); min-height: 160px; }
.whl-other__img img { width: 100%; height: 100%; object-fit: cover; }
.whl-other__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.whl-other__body h3 { font-size: 19px; font-weight: 600; color: var(--whl-navy); }
.whl-other__body p { margin: 0; font-size: 15px; line-height: 1.5; flex: 1; }
.whl-other__body .whl-link i { transition: transform .2s ease; }
.whl-other:hover .whl-link i { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
    .whl *, .whl *::before, .whl *::after { transition: none !important; }
}

@media (max-width: 1199.98px) {
    .whl-hero { grid-template-columns: 1fr; padding: 56px 40px 40px; }
    .whl-hero__form .service-booking__card { max-width: 620px; }
    .whl-why { grid-template-columns: repeat(2, 1fr); }
    .whl-why__lead, .whl-why--tall .whl-why__lead { grid-row: auto; grid-column: 1 / -1; }
    .whl-team { grid-auto-columns: calc((100% - 24px) / 2.15); }
    .whl-arrows { display: flex; }
}

@media (max-width: 991.98px) {
    .whl-section { padding: 64px 0 72px; }
    .whl-glance { grid-template-columns: 1fr; gap: 32px; }
    .whl-points { grid-template-columns: 1fr; gap: 32px; }
    .whl-cta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
    .whl-gallery { grid-auto-columns: 70%; }
    .whl-others { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .whl-container { padding: 0 16px; }
    .whl-breadcrumb { padding-top: 24px; }
    .whl-hero { padding: 40px 20px 24px; border-radius: 18px; gap: 32px; }
    .whl-hero__stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .whl-hero__stats dt { font-size: 24px; }
    .whl-hero__form .service-booking__card { padding: 28px 20px; }
    .whl-glance dl { grid-template-columns: 1fr; gap: 4px; }
    .whl-glance dd { margin-bottom: 14px; }
    .whl-photos { grid-template-columns: 1fr; gap: 16px; }
    .whl-gallery { grid-auto-columns: 85%; gap: 16px; }
    .whl-why { grid-template-columns: 1fr; }
    .whl-why__tile:last-child:nth-child(even) { grid-column: auto; }
    .whl-why__lead { padding: 32px 24px; }
    .whl-team { grid-auto-columns: 87%; gap: 16px; }
    .whl-faq summary { padding: 20px; font-size: 17px; }
    .whl-faq__answer { padding: 0 20px 22px; }
    .whl-other { grid-template-columns: 1fr; }
    .whl-other__img { aspect-ratio: 16 / 9; }
}
