/* ==========================================================================
   Areas We Cover page
   Reuses global tokens (--orange, --orange-bright, --panel, --panel-light,
   --navy, --muted, --soft, --line, --shadow, --radius, --text-body,
   --heading-section) and existing components (.hero, .hero-badge,
   .hero-actions, .button, .section-heading, .icon-badge, .about-cta-inner,
   .store-location-switcher/.store-location-tab from the Contact page)
   established elsewhere on the site. Only new, page-specific classes are
   introduced below.
   ========================================================================== */

.hero.areas-hero { grid-template-columns: 1fr; min-height: auto; padding-block: 64px 24px; justify-items: center; text-align: center; }
.areas-hero .hero-copy { max-width: 760px; margin: 0 auto; }
.areas-hero .hero-copy > p { margin-inline: auto; }
.areas-hero .hero-actions { justify-content: center; }

/* Device category chips — infinite scrolling marquee */
.areas-chip-section { padding-block: 12px 24px; }
.areas-chip-marquee {
    margin-top: 28px;
    overflow: hidden;
}
.areas-chip-track { display: flex; flex-wrap: nowrap; width: max-content; animation: areas-chip-scroll 28s linear infinite; }
.areas-chip-marquee:hover .areas-chip-track { animation-play-state: paused; }
/* Trailing padding equals the gap, so every copy is the same width and the
   25% shift lands exactly on the start of the next copy. */
.areas-chip-row { display: flex; flex-shrink: 0; gap: 12px; padding-right: 12px; }
.areas-chip {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 1.5px solid rgba(255, 59, 10, .35);
    border-radius: 999px;
    background: var(--panel-light);
    color: var(--soft);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: -.005em;
    white-space: nowrap;
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.areas-chip:hover { border-color: var(--orange); color: #fff; }

@keyframes areas-chip-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-25%); }
}

@media (prefers-reduced-motion: reduce) {
    .areas-chip-track { animation: none; }
}

/* Postcode locator */
.areas-locator-section { padding-block: 12px 24px; }
.areas-locator-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.areas-locator-eyebrow { display: block; margin-bottom: 8px; color: var(--orange); font-size: .8125rem; font-weight: 750; }
.areas-locator-copy h2 { margin: 0; color: #fff; font-size: 1.375rem; font-weight: 780; letter-spacing: -.02em; }
.areas-locator-copy p { margin: 8px 0 0; max-width: 360px; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.areas-locator-form { display: flex; gap: 12px; flex: 0 0 auto; }
.areas-locator-form input {
    min-width: 220px;
    min-height: 52px;
    padding: 0 18px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--panel-light);
    color: #fff;
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 600;
}
.areas-locator-form input::placeholder { color: var(--muted); font-weight: 500; }
.areas-locator-form input:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }

.areas-locator-hint { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .75rem; font-weight: 500; }
.areas-locator-message { flex-basis: 100%; margin: 0; color: var(--soft); font-size: .875rem; font-weight: 600; }
.areas-locator-message.is-error { color: var(--peach); }
.areas-locator-message a { color: var(--orange); font-weight: 700; }

/* Store / area cards */
.areas-grid-section { padding-block: 24px; }
.area-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.area-card {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .35s ease;
}
.area-card:hover { transform: translateY(-6px); border-color: rgba(255, 59, 10, .35); }
.area-card.is-nearest { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 59, 10, .25), var(--shadow); animation: areas-nearest-pulse 1.4s ease-out 1; }
@keyframes areas-nearest-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 10, .45), var(--shadow); }
    100% { box-shadow: 0 0 0 10px rgba(255, 59, 10, 0), var(--shadow); }
}
.area-card-badge {
    display: inline-block;
    margin-bottom: 14px;
    margin-left: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.area-card-zone {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 59, 10, .14);
    color: var(--orange);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.area-card h3 { margin: 0; color: #fff; font-size: 1.25rem; font-weight: 780; letter-spacing: -.01em; }
.area-card-address { margin: 10px 0 0; color: var(--soft); font-size: .9rem; line-height: 1.5; }
.area-card-hours { margin: 8px 0 0; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.area-card-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.area-card-phone { position: relative; z-index: 2; color: var(--soft); font-size: .8125rem; font-weight: 700; }
.area-card-phone:hover { color: #fff; }
.area-card-guide-link { display: block; margin-top: 14px; color: var(--orange); font-size: .8125rem; font-weight: 800; }
.area-card-guide-link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.area-card-guide-link:hover { color: var(--orange-bright); }

/* UK-wide mail-in banner */
.areas-mailin-section { padding-block: 24px; }
.areas-mailin-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding: 48px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--orange-bright), #ff5a1f);
}
.areas-mailin-eyebrow { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, .85); font-size: .8125rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.areas-mailin-copy h2 { margin: 0; color: #fff; font-size: var(--heading-section); font-weight: 800; letter-spacing: -.02em; }
.areas-mailin-copy p { margin: 16px 0 26px; max-width: 420px; color: rgba(255, 255, 255, .92); font-size: .9375rem; line-height: 1.55; }

.areas-mailin-steps { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.areas-mailin-step { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; border-radius: 14px; background: rgba(6, 21, 50, .22); }
.areas-mailin-num { flex-shrink: 0; color: #fff; font-size: 1.1rem; font-weight: 820; opacity: .85; }
.areas-mailin-step h3 { margin: 0; color: #fff; font-size: .9375rem; font-weight: 780; }
.areas-mailin-step p { margin: 4px 0 0; color: rgba(255, 255, 255, .85); font-size: .8125rem; line-height: 1.5; }

/* Map + getting here */
.areas-map-section { padding-block: 24px 90px; }

.store-location-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
    padding: 14px 16px 14px 22px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: linear-gradient(135deg, #101b32, #0a152b);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.store-location-switcher-copy { display: grid; min-width: 190px; line-height: 1.2; }
.store-location-switcher-copy span { color: var(--orange); font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.store-location-switcher-copy strong { margin-top: 5px; color: #fff; font-size: .9375rem; font-weight: 750; }
.store-location-tabs { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 9px; width: min(100%, 570px); }
.store-location-tab {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    color: #bec6d4;
    font: inherit;
    font-size: .8125rem;
    font-weight: 750;
    cursor: pointer;
    transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.store-location-tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.store-location-tab:hover { color: #fff; border-color: rgba(255, 104, 66, .42); background: rgba(255, 59, 10, .1); transform: translateY(-1px); }
.store-location-tab:focus-visible { outline: 3px solid rgba(255, 59, 10, .3); outline-offset: 2px; }
.store-location-tab.is-active {
    border-color: var(--orange);
    background: linear-gradient(135deg, var(--orange-bright), #ff6339);
    color: #fff;
    box-shadow: 0 9px 22px rgba(255, 59, 10, .24), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.areas-map-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: stretch; }
.areas-map-frame { position: relative; min-height: 380px; overflow: hidden; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.areas-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.15) contrast(1.05); }

.areas-map-info { display: flex; flex-direction: column; justify-content: center; }
.areas-map-eyebrow { display: block; margin-bottom: 10px; color: var(--orange); font-size: var(--text-eyebrow, .8125rem); font-weight: 750; }
.areas-map-info h2 { margin: 0; color: #fff; font-size: var(--heading-section); font-weight: 780; letter-spacing: -.03em; line-height: 1.15; }
.areas-map-info > p { margin: 14px 0 0; max-width: 460px; color: var(--muted); font-size: var(--text-body); line-height: 1.55; }

.areas-map-list { display: flex; flex-direction: column; gap: 20px; margin: 30px 0 0; padding: 0; list-style: none; }
.areas-map-list li { display: flex; align-items: flex-start; gap: 14px; }
.areas-map-list h3 { margin: 0; color: #fff; font-size: .9375rem; font-weight: 760; }
.areas-map-list p { margin: 4px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.areas-map-option {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 14px;
    margin: -10px -12px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: background .2s ease, border-color .2s ease;
}
.areas-map-option:hover { border-color: rgba(255, 59, 10, .3); background: rgba(255, 255, 255, .03); }
.areas-map-option:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.areas-map-option-cta { display: inline-block; margin-top: 8px; color: var(--orange); font-size: .8125rem; font-weight: 750; transition: transform .2s ease; }
.areas-map-option:hover .areas-map-option-cta { transform: translateX(3px); }

/* Loader shown on this page while the visitor's location is found for
   directions; Google Maps then opens in a new tab. */
.directions-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(2, 11, 26, .86);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: directions-fade .2s ease;
}
.directions-overlay[hidden] { display: none; }
.directions-overlay-box {
    width: min(100%, 440px);
    padding: 36px 28px 28px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    text-align: center;
}
.directions-spinner {
    width: 46px;
    height: 46px;
    margin: 0 auto 22px;
    border: 4px solid rgba(255, 59, 10, .2);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: directions-spin .8s linear infinite;
}
.directions-spinner[hidden] { display: none; }
.directions-overlay-title { margin: 0; color: #fff; font-size: 1.25rem; font-weight: 750; letter-spacing: -.01em; line-height: 1.3; }
.directions-overlay-text { margin: 10px 0 0; color: var(--muted); font-size: .9375rem; }
.directions-overlay-open { margin-top: 22px; }
.directions-overlay-open[hidden] { display: none; }
.directions-overlay-cancel {
    display: block;
    margin: 18px auto 0;
    padding: 6px 10px;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: .875rem;
    font-weight: 650;
    cursor: pointer;
}
.directions-overlay-cancel:hover { color: #fff; }
.directions-overlay-cancel:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
@keyframes directions-spin { to { transform: rotate(360deg); } }
@keyframes directions-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .directions-spinner { animation-duration: 2.4s; }
    .directions-overlay { animation: none; }
}

@media (max-width: 900px) {
    .area-card-grid { grid-template-columns: 1fr; }
    .areas-mailin-inner { grid-template-columns: 1fr; padding: 32px; }
    .areas-map-grid { grid-template-columns: 1fr; }
    .areas-map-frame { min-height: 280px; }
    .store-location-switcher { align-items: stretch; flex-direction: column; gap: 16px; padding: 18px; }
    .store-location-tabs { display: flex; width: 100%; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
    .store-location-tab { flex: 1 0 130px; padding-inline: 14px; }
}

@media (max-width: 620px) {
    .hero.areas-hero { padding-block: 40px 12px; }
    .areas-chip-row { gap: 8px; }
    .areas-chip { padding: 8px 14px; font-size: .8125rem; }
    .areas-locator-panel { flex-direction: column; align-items: stretch; padding: 24px; }
    .areas-locator-form { flex-direction: column; }
    .areas-locator-form input { min-width: 0; }
    .areas-mailin-inner { padding: 24px; }
    .area-card { padding: 22px; }
}
