/* Beelivery homepage — 2026 redesign.

   HOMEPAGE ONLY. Loaded by HomeSeo (Home.razor) after StorefrontHead, and every rule is
   scoped under .bee-home (the BeeliveryLayout wrapper, which only the homepage uses).

   ⚠️ Do NOT move these rules into homepage.css. homepage.css is ALSO loaded by the order
   page (OrderPage → StorefrontHead), whose postcode gate (PostcodeModal) and auth modal
   depend on it unchanged. That sheet still loads here too, so a handful of its rules reach
   this markup — the postcode-widget classes, .bee-header/.bee-footer, .search-error. Each is
   overridden below on SPECIFICITY (.bee-home prefix ⇒ one class more), never with
   !important and never by editing homepage.css. The overrides are grouped and labelled
   "resets homepage.css" so the next change to either sheet can find them. */

.bee-home {
    --h-orange: #FF6507;
    --h-orange-hover: #EB5A00;
    --h-ink: #1F1A17;
    --h-cream: #FAF7F4;
    --h-muted: #5E5550;
    --h-line: #F0E8E1;
    --h-rust: #C24A00;
    --h-peach: #FFB27F;
    --h-peach-bg: #FFF1E7;
    --h-gutter: clamp(20px, 4vw, 56px);
    --h-header: 72px;
    color: var(--h-ink);
    font-family: 'Open Sans', system-ui, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.bee-home *, .bee-home *::before, .bee-home *::after { box-sizing: border-box; }
.bee-home [hidden] { display: none !important; }
.bee-home a { color: inherit; text-decoration: none; }
.bee-home img { max-width: 100%; }
.bee-home h1, .bee-home h2, .bee-home h3, .bee-home p { margin: 0; }

/* Visible keyboard focus everywhere; peach on the dark sections. */
.bee-home a:focus-visible, .bee-home button:focus-visible, .bee-home summary:focus-visible {
    outline: 3px solid var(--h-ink); outline-offset: 3px; border-radius: 8px;
}
.bee-home .bee-hero a:focus-visible, .bee-home .bee-hero button:focus-visible,
.bee-home .bee-app a:focus-visible { outline-color: var(--h-peach); }

.bee-home .bee-wrap { max-width: 1200px; margin: 0 auto; }
.bee-home .bee-accent { color: var(--h-orange); }

/* ---------- Shared bits ---------- */
.bee-home .bee-pill {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 8px; border-radius: 999px;
    background: rgba(255, 101, 7, .18); color: var(--h-peach);
    font-size: 14px; font-weight: 700; white-space: nowrap;
}
.bee-home .bee-pill-dark { background: rgba(255, 101, 7, .16); }
.bee-home .bee-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--h-orange); margin-left: 4px; flex: none; }
.bee-home .bee-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h-rust); }
.bee-home .bee-h2 {
    font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; font-weight: 800;
    letter-spacing: -.02em; color: var(--h-ink); text-wrap: balance;
}
.bee-home .bee-section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

/* ---------- Header (resets homepage.css .bee-header) ---------- */
.bee-home .bee-header {
    position: sticky; top: 0; z-index: 50; /* below the auth modal (1000), unlike homepage.css's 1020 */
    background: var(--h-orange); transition: box-shadow .3s;
}
.bee-home .bee-header.is-scrolled { box-shadow: 0 6px 24px rgba(31, 26, 23, .18); }
.bee-home .bee-nav {
    min-height: var(--h-header); padding: 0 var(--h-gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.bee-home .bee-nav-brand { display: flex; align-items: center; }
.bee-home .bee-nav-brand img { height: 44px; width: auto; display: block; }
.bee-home .bee-nav-actions { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.bee-home .bee-nav-link {
    display: block; padding: 10px 14px; border-radius: 999px;
    font-size: 15px; font-weight: 600; color: var(--h-ink);
}
.bee-home .bee-nav-link:hover { background: rgba(0, 0, 0, .08); }
.bee-home .bee-nav-signin, .bee-home .bee-nav-account {
    margin-left: 8px; border-radius: 999px; font-size: 15px; font-weight: 700;
    color: #fff; background: var(--h-ink);
}
.bee-home .bee-nav-signin { padding: 10px 20px; }
.bee-home .bee-nav-account { padding: 8px 16px 8px 8px; display: flex; align-items: center; gap: 8px; }
.bee-home .bee-nav-signin:hover, .bee-home .bee-nav-account:hover { background: #000; }
.bee-home .bee-nav-avatar {
    width: 28px; height: 28px; border-radius: 50%; background: var(--h-orange); color: var(--h-ink);
    display: grid; place-items: center;
}
@media (max-width: 559px) {
    .bee-home .bee-nav-driver, .bee-home .bee-nav-account-label { display: none; }
    .bee-home .bee-nav-account { padding: 8px; }
    .bee-home .bee-nav-brand img { height: 38px; }
}

/* ---------- Hero ---------- */
.bee-home .bee-hero {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    min-height: calc(100vh - var(--h-header));
    min-height: calc(100svh - var(--h-header));
    background: var(--h-ink); color: #fff;
}
.bee-home .bee-hero-media { position: absolute; inset: 0; will-change: transform; }
.bee-home .bee-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.bee-home .bee-hero-shade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(24, 16, 10, .92) 0%, rgba(24, 16, 10, .75) 38%, rgba(24, 16, 10, .15) 70%, rgba(24, 16, 10, 0) 100%);
}
.bee-home .bee-hero-body {
    position: relative; flex: 1; display: flex; align-items: center;
    padding: clamp(24px, 5vh, 56px) clamp(24px, 4vw, 56px) clamp(16px, 3vh, 32px);
}
.bee-home .bee-hero-copy { width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: clamp(14px, 2.6vh, 24px); }
.bee-home .bee-hero-title {
    color: #fff; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; font-weight: 800;
    letter-spacing: -.03em; text-wrap: balance;
}
.bee-home .bee-hero-lede { color: #EDE5DF; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; max-width: 500px; text-wrap: pretty; }

/* ---------- Postcode widget ----------
   Class names are the homepage.js / PostcodeModal contract; do not rename them. */
.bee-home .place-order-container { /* resets homepage.css: absolute, top:300px, width:450px, translateX… */
    position: relative; top: auto; right: auto; bottom: auto; left: auto; z-index: auto;
    width: auto; transform: none;
    display: flex; flex-direction: column; gap: 10px; margin-top: 8px;
}
.bee-home .bee-pc-label { font-size: 14px; font-weight: 700; color: #fff; }
.bee-home .bee-pc-box {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px;
    background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    outline: 3px solid transparent; transition: outline-color .15s;
}
.bee-home .bee-pc-box:focus-within { outline-color: var(--h-orange); }
.bee-home .place-order-container:has(.search-error.show) .bee-pc-box { outline-color: #FF5A52; }

.bee-home .postcode-search-container { /* keeps homepage.css's position: relative + overflow: hidden */
    flex: 1 1 240px; min-width: 0; height: 56px;
    display: flex; align-items: center; gap: 12px; padding: 0 8px 0 14px; border-radius: 12px;
}
.bee-home .bee-pc-pin { flex: none; color: var(--h-orange); }
.bee-home .postcode-search-container input { /* resets homepage.css: 60px pill, #ccc border, 55/90px padding */
    flex: 1; min-width: 0; width: auto; height: 100%; padding: 0; margin: 0;
    border: 0; border-radius: 0; background: transparent; outline: none;
    font: 700 19px 'Open Sans', system-ui, sans-serif; color: var(--h-ink);
    text-transform: uppercase; letter-spacing: .03em;
}
.bee-home .postcode-search-container input::placeholder { color: #8A817B; text-transform: none; letter-spacing: 0; }

.bee-home .place-order-container button { /* resets homepage.css's shared pill button */
    margin: 0; border: 0; font-family: inherit; cursor: pointer; transition: background-color .15s, transform .1s;
}
.bee-home .place-order-container button:hover:not([disabled]) { transform: none; } /* homepage.css scales on hover */
.bee-home .place-order-container .geolocate {
    flex: none; width: 44px; height: 44px; padding: 0; border-radius: 12px;
    display: grid; place-items: center; background: var(--h-peach-bg); color: var(--h-rust);
}
.bee-home .place-order-container .geolocate:hover { background: #FFDCC4; }
.bee-home .place-order-container .geolocate:focus-visible { outline-color: var(--h-orange); outline-offset: -3px; }
.bee-home .place-order-container .bee-pc-submit {
    flex: 1 1 180px; height: 56px; padding: 0 24px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--h-orange); color: #fff; font-size: 18px; font-weight: 800; white-space: nowrap;
}
.bee-home .place-order-container .bee-pc-submit > span { display: inline-flex; align-items: center; gap: 10px; }
.bee-home .place-order-container .bee-pc-submit:hover:not([disabled]) { background: var(--h-orange-hover); }
.bee-home .place-order-container .bee-pc-submit:active:not([disabled]) { transform: translateY(1px); }
.bee-home .place-order-container .bee-pc-submit:focus-visible { outline-color: var(--h-ink); outline-offset: -5px; }
.bee-home .place-order-container .bee-pc-submit[disabled] { cursor: progress; }
.bee-home .bee-pc-submit .processing-search { width: 26px; height: 26px; }

.bee-home .search-error { /* resets homepage.css: hidden white box with a red border */
    display: block; min-height: 22px; margin: 0; padding: 0;
    background: none; border: 0; border-radius: 0;
    color: #FF9A94; font-size: 15px; font-weight: 600;
}

/* ---------- Driver strip ---------- */
.bee-home .bee-hero-foot { position: relative; padding: 0 clamp(24px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.bee-home .bee-driver-strip {
    display: flex; align-items: center; gap: 14px; max-width: 620px; padding: 14px 18px; border-radius: 16px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff;
}
.bee-home .bee-driver-strip:hover { background: rgba(255, 255, 255, .16); }
.bee-home .bee-driver-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--h-orange); color: var(--h-ink); display: grid; place-items: center; }
.bee-home .bee-driver-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bee-home .bee-driver-text strong { font-size: 16px; font-weight: 700; }
.bee-home .bee-driver-text span { font-size: 14px; color: #E3D9D2; }
.bee-home .bee-driver-more { flex: none; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--h-peach); }

/* ---------- Why Beelivery ---------- */
.bee-home .bee-why { background: var(--h-cream); padding: clamp(56px, 8vw, 112px) var(--h-gutter); }
.bee-home .bee-why .bee-wrap { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.bee-home .bee-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.bee-home .bee-why-card {
    background: #fff; border: 1px solid var(--h-line); border-radius: 24px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.bee-home .bee-why-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--h-peach-bg); }
.bee-home .bee-why-media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.bee-home .bee-why-img-1 { object-position: 60% 18%; }
.bee-home .bee-why-img-2 { object-position: 50% 14%; }
.bee-home .bee-why-img-3 { object-position: 58% 22%; }
@media (hover: hover) {
    .bee-home .bee-why-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31, 26, 23, .10); }
    .bee-home .bee-why-card:hover .bee-why-media img { transform: scale(1.04); }
}
.bee-home .bee-why-body { padding: 22px 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.bee-home .bee-tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--h-ink); color: #fff; font-size: 13px; font-weight: 700; }
.bee-home .bee-why-body h3 { font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--h-ink); }
.bee-home .bee-why-body p { font-size: 16px; line-height: 1.6; color: var(--h-muted); text-wrap: pretty; }

/* ---------- App ---------- */
.bee-home .bee-app { background: var(--h-ink); color: #fff; padding: clamp(64px, 8vw, 112px) var(--h-gutter) 0; overflow: hidden; }
.bee-home .bee-app-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: clamp(24px, 4vw, 64px); align-items: center;
}
.bee-home .bee-app-copy { display: flex; flex-direction: column; gap: 24px; padding-bottom: clamp(48px, 7vw, 112px); }
.bee-home .bee-app-title { font-size: clamp(44px, 5.6vw, 80px); line-height: .98; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.bee-home .bee-app-copy p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: #D9D0CA; max-width: 460px; text-wrap: pretty; }
.bee-home .bee-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.bee-home .bee-store {
    flex: none; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px;
    border-radius: 14px; background: #000; border: 1px solid #4A423D; color: #fff;
}
.bee-home .bee-store:hover { background: #2A2420; border-color: var(--h-orange); }
.bee-home .bee-store-text { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.bee-home .bee-store-text span { font-size: 12px; font-weight: 600; color: #D9D0CA; }
.bee-home .bee-store-text strong { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.bee-home .bee-app-visual {
    position: relative; display: flex; justify-content: center; align-items: flex-end;
    align-self: end; min-height: 420px;
}
.bee-home .bee-app-disc, .bee-home .bee-app-ring { position: absolute; left: 50%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); }
.bee-home .bee-app-disc { bottom: -18%; width: min(560px, 100%); background: var(--h-orange); }
.bee-home .bee-app-ring { bottom: -6%; width: min(420px, 76%); border: 2px dashed rgba(31, 26, 23, .35); }
.bee-home .bee-app-visual picture { position: relative; display: block; width: 100%; max-width: 480px; }
.bee-home .bee-app-phone { display: block; width: 100%; height: auto; }
@keyframes bee-home-spin { to { transform: translateX(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
    .bee-home .bee-app-ring { animation: bee-home-spin 40s linear infinite; }
}

/* ---------- FAQs ---------- */
.bee-home .bee-faq { background: var(--h-cream); padding: clamp(56px, 8vw, 112px) var(--h-gutter); }
.bee-home .bee-faq-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: clamp(32px, 5vw, 80px); align-items: start;
}
.bee-home .bee-faq-intro { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.bee-home .bee-faq-intro p { font-size: 17px; line-height: 1.6; color: var(--h-muted); text-wrap: pretty; }
.bee-home .bee-btn-dark {
    align-self: flex-start; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; margin-top: 8px;
    border-radius: 999px; background: var(--h-ink); color: #fff; font-size: 15px; font-weight: 700;
}
.bee-home .bee-btn-dark:hover { background: #000; }
.bee-home .bee-faq-list { display: flex; flex-direction: column; gap: 12px; }
.bee-home .bee-faq-item { background: #fff; border: 1px solid #EFE7E0; border-radius: 20px; overflow: hidden; transition: border-color .2s; }
.bee-home .bee-faq-item[open] { border-color: #FFC9A6; }
.bee-home .bee-faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 24px; cursor: pointer; list-style: none;
}
.bee-home .bee-faq-item summary::-webkit-details-marker { display: none; }
.bee-home .bee-faq-item summary:focus-visible { outline-offset: -3px; border-radius: 20px; }
.bee-home .bee-faq-item h3 { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--h-ink); }
.bee-home .bee-faq-icon {
    position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
    background: #F6F2EE; color: var(--h-ink); transition: transform .2s, background-color .2s, color .2s;
}
.bee-home .bee-faq-icon::before, .bee-home .bee-faq-icon::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; border-radius: 2px;
    background: currentColor; transform: translate(-50%, -50%);
}
.bee-home .bee-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.bee-home .bee-faq-item[open] .bee-faq-icon { background: var(--h-orange); color: #fff; transform: rotate(45deg); }
.bee-home .bee-faq-item p { padding: 0 24px 24px; max-width: 620px; font-size: 16px; line-height: 1.65; color: var(--h-muted); text-wrap: pretty; }

/* ---------- Footer (resets homepage.css .bee-footer: white text, 40px top, centred cols) ---------- */
.bee-home .bee-footer { background: var(--h-orange); color: var(--h-ink); padding: clamp(56px, 7vw, 88px) var(--h-gutter) 32px; margin-top: auto; }
.bee-home .bee-footer a { color: var(--h-ink); }
.bee-home .bee-foot-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.bee-home .bee-foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px 64px; }
.bee-home .bee-foot-brand { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 20px; }
.bee-home .bee-foot-brand img { height: 44px; width: auto; align-self: flex-start; }
.bee-home .bee-foot-brand p { font-size: 17px; line-height: 1.55; font-weight: 600; }
.bee-home .bee-foot-social { display: flex; gap: 10px; }
.bee-home .bee-footer .bee-foot-social a { width: 44px; height: 44px; border-radius: 50%; background: var(--h-ink); color: #fff; display: grid; place-items: center; }
.bee-home .bee-footer .bee-foot-social a:hover { background: #000; }
.bee-home .bee-foot-cols { flex: 2 1 520px; display: flex; flex-wrap: wrap; gap: 40px 56px; }
.bee-home .bee-foot-col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 14px; }
.bee-home .bee-foot-col h3 { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h-ink); opacity: .7; }
.bee-home .bee-foot-col > a { align-self: flex-start; font-size: 16px; font-weight: 600; }
.bee-home .bee-foot-col > a:hover, .bee-home .bee-foot-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bee-home .bee-foot-stores { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.bee-home .bee-footer .bee-store-sm { height: 52px; padding: 0 18px 0 14px; gap: 10px; border: 0; border-radius: 12px; background: var(--h-ink); color: #fff; }
.bee-home .bee-footer .bee-store-sm:hover { background: #000; }
.bee-home .bee-store-sm .bee-store-text span { font-size: 11px; }
.bee-home .bee-store-sm .bee-store-text strong { font-size: 17px; letter-spacing: 0; }
.bee-home .bee-foot-bottom {
    border-top: 1px solid rgba(31, 26, 23, .2); padding-top: 24px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
    font-size: 14px; font-weight: 600;
}
.bee-home .bee-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Scroll reveal (home-motion.js) ----------
   Only BELOW-THE-FOLD elements are ever hidden, and only by JS: with JS off, or for content
   already on screen at load (the hero / LCP), nothing is hidden. */
.bee-home .bee-reveal { opacity: 0; transform: translateY(28px); }
.bee-home .bee-reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--bee-delay, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--bee-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
    .bee-home .bee-reveal { opacity: 1; transform: none; }
    .bee-home *, .bee-home *::before, .bee-home *::after { transition-duration: .01ms !important; }
}
