/* ==========================================================================
   Homepage sections. Loaded only by front_end/home/index.blade.php — the rest
   of the site never pays for it. Tokens come from css/design-system.css.
   Mobile-first: every media query is min-width.
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

.dh-home {
    background: var(--dh-surface-page);
    font-family: var(--dh-font);
    color: var(--dh-text-primary);
    overflow-x: hidden;
}

.dh-home [id] {
    scroll-margin-top: calc(var(--dh-header-height) + 16px);
}

.dh-home p {
    margin: 0;
}

.dh-home h1,
.dh-home h2,
.dh-home h3 {
    margin: 0;
    font-family: var(--dh-font);
}

/* Flash messages sit above the hero, so they need the page gutter back. */
.dh-flash {
    padding-top: 16px;
}

/* --------------------------------------------------------------------------
   Shared type roles (mirrors the "Style One / Style Two" notes in the design)
   -------------------------------------------------------------------------- */

.dh-eyebrow {
    font: var(--dh-weight-bold) clamp(14px, 1.5vw, 22px)/1.2 var(--dh-font);
    letter-spacing: var(--dh-tracking-eyebrow);
    text-transform: uppercase;
    color: var(--dh-text-brand);
}

.dh-eyebrow--gold {
    color: var(--dh-gold-500);
}

/* Style One — the big uppercase section statement. */
.dh-section-title {
    font: var(--dh-weight-black) clamp(26px, 7.5vw, 40px)/1.05 var(--dh-font);
    letter-spacing: var(--dh-tracking-display);
    text-transform: uppercase;
    color: var(--dh-text-primary);
    text-align: center;
    text-wrap: balance;
}

.dh-section-title span {
    color: var(--dh-text-brand);
}

/* Style Two — the charcoal display standfirst under a section statement. */
.dh-standfirst {
    font: var(--dh-weight-black) clamp(15px, 4.4vw, 22px)/1.25 var(--dh-font);
    letter-spacing: var(--dh-tracking-display);
    color: var(--dh-ink-900);
    text-align: center;
    text-wrap: balance;
}

.dh-standfirst br {
    display: none;
}

@media (min-width: 641px) {
    .dh-section-title {
        font-size: clamp(20px, 4.1vw, 54px);
        line-height: var(--dh-leading-hero);
        white-space: nowrap;
    }

    .dh-standfirst {
        font-size: clamp(11px, 1.72vw, 23px);
        line-height: 1.2;
        white-space: nowrap;
    }

    .dh-standfirst br {
        display: inline;
    }
}

/* --------------------------------------------------------------------------
   Split panel — hero and the four category features share this skeleton.
   Image first in the DOM so it stacks above the copy on small screens.
   -------------------------------------------------------------------------- */

.dh-split {
    display: flex;
    flex-direction: column;
}

.dh-split__media {
    position: relative;
    min-height: clamp(240px, 58vw, 380px);
}

.dh-split__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dh-split__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: clamp(36px, 6vw, 88px) var(--dh-gutter);
    text-align: center;
}

.dh-split__text {
    max-width: 520px;
    font: var(--dh-weight-regular) clamp(15px, 1.4vw, 19px)/1.55 var(--dh-font);
    color: var(--dh-text-secondary);
    text-wrap: pretty;
}

@media (min-width: 861px) {
    .dh-split {
        flex-direction: row;
        align-items: stretch;
    }

    .dh-split--reverse {
        flex-direction: row-reverse;
    }

    .dh-split__media {
        flex: 1 1 47%;
        min-width: 0;
        min-height: clamp(320px, 38vw, 660px);
    }

    .dh-split__body {
        flex: 1 1 53%;
        min-width: 0;
        max-width: 760px;
        gap: 26px;
        margin-inline: auto;
    }
}

/* On brand-red panels the copy flips to white. */
.dh-split--onbrand {
    background: linear-gradient(180deg, var(--dh-red-500) 0%, var(--dh-red-600) 100%);
}

.dh-split--onbrand .dh-split__title {
    color: var(--dh-ink-0);
}

.dh-split--onbrand .dh-split__text {
    color: rgba(255, 255, 255, 0.92);
}

.dh-split--light {
    background: linear-gradient(180deg, var(--dh-ink-50) 0%, var(--dh-surface-page) 100%);
}

.dh-split__title {
    font: var(--dh-weight-black) clamp(30px, 3.6vw, 50px)/1.05 var(--dh-font);
    letter-spacing: var(--dh-tracking-display);
    text-transform: uppercase;
    color: var(--dh-text-primary);
    text-wrap: balance;
}

/* --------------------------------------------------------------------------
   1 · Hero
   -------------------------------------------------------------------------- */

.dh-hero {
    background: var(--dh-surface-brand);
}

.dh-hero .dh-split__body {
    gap: 24px;
}

.dh-hero .dh-eyebrow {
    font-size: clamp(15px, 1.7vw, 26px);
}

.dh-hero__logo {
    width: min(100%, 525px);
    height: auto;
    object-fit: contain;
}

.dh-hero__title {
    font: var(--dh-weight-black) clamp(28px, 3.6vw, 50px)/1.05 var(--dh-font);
    letter-spacing: var(--dh-tracking-display);
    color: var(--dh-gold-500);
    text-wrap: balance;
}

.dh-hero .dh-split__media img {
    object-position: right center;
}

@media (min-width: 861px) {
    .dh-hero .dh-split__body {
        gap: 30px;
    }
}

/* --------------------------------------------------------------------------
   App store call to action — used inside the hero and in the dark bands.
   -------------------------------------------------------------------------- */

.dh-appcta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.dh-appcta__heading {
    font: var(--dh-weight-bold) clamp(17px, 1.9vw, 27px)/1.25 var(--dh-font);
    color: var(--dh-ink-0);
    text-wrap: balance;
}

.dh-appcta__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.dh-appcta__badges img {
    display: block;
    width: auto;
    height: 44px;
    transition: transform var(--dh-duration-base) var(--dh-ease);
}

.dh-appcta__badges a:hover img,
.dh-appcta__badges a:focus img {
    transform: translateY(-2px);
}

.dh-appcta__note {
    max-width: 520px;
    font: var(--dh-weight-semibold) 14px/1.55 var(--dh-font);
    color: var(--dh-ink-0);
}

.dh-appcta__note a {
    color: var(--dh-gold-500);
    font-weight: var(--dh-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dh-appcta__note a:hover,
.dh-appcta__note a:focus {
    color: var(--dh-gold-500);
}

@media (min-width: 861px) {
    .dh-appcta__badges img {
        height: 54px;
    }

    .dh-appcta__note {
        font-size: 15px;
    }
}

/* Dark band that repeats the app download prompt. */
.dh-appband {
    background: linear-gradient(180deg, #1b1c1f 0%, var(--dh-ink-900) 100%);
    padding-block: clamp(32px, 4vw, 56px);
}

.dh-appband__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.4vw, 32px);
    text-align: center;
}

.dh-appband__heading {
    font: var(--dh-weight-bold) clamp(17px, 1.7vw, 24px)/1.3 var(--dh-font);
    letter-spacing: var(--dh-tracking-display);
    color: var(--dh-ink-0);
}

.dh-appband .dh-appcta__note {
    width: 100%;
    max-width: none;
    font-weight: var(--dh-weight-regular);
    color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------------------------
   2 · Intro
   -------------------------------------------------------------------------- */

.dh-intro {
    background: var(--dh-surface-page);
    padding-block: clamp(48px, 6vw, 80px);
}

.dh-intro__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 900px;
    text-align: center;
}

.dh-intro__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin-top: 4px;
}

@media (min-width: 641px) {
    .dh-intro__actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   3 · App promo
   -------------------------------------------------------------------------- */

.dh-app {
    background: linear-gradient(180deg, var(--dh-ink-50) 0%, var(--dh-surface-page) 100%);
    padding-block: clamp(40px, 5vw, 50px);
}

.dh-app__title {
    margin-bottom: clamp(24px, 3vw, 30px);
    font: var(--dh-weight-black) clamp(19px, 2.6vw, 35px)/1.2 var(--dh-font);
    letter-spacing: var(--dh-tracking-display);
    color: var(--dh-text-brand);
    text-align: center;
    text-wrap: balance;
}

.dh-app__grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(30px, 4vw, 64px);
    align-items: flex-start;
}

.dh-app__col {
    flex: 1 1 100%;
    min-width: 0;
}

.dh-app__tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 24px);
}

.dh-app__tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--dh-surface-card);
    border-radius: var(--dh-radius-panel);
    box-shadow: var(--dh-shadow-card);
    transition: transform var(--dh-duration-base) var(--dh-ease),
        box-shadow var(--dh-duration-base) var(--dh-ease);
}

.dh-app__tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--dh-shadow-hover);
}

.dh-app__tile img {
    width: 100%;
    height: auto;
}

.dh-app__tile p {
    padding: 12px 12px 16px;
    text-align: center;
    font: var(--dh-weight-semibold) 13px/1.5 var(--dh-font);
    color: var(--dh-ink-900);
}

.dh-app__tile strong {
    color: var(--dh-text-brand);
}

.dh-app__preview {
    width: 100%;
    height: auto;
}

.dh-app__steps-title {
    margin-top: clamp(18px, 2vw, 28px);
    text-align: center;
    font: var(--dh-weight-regular) clamp(22px, 2.4vw, 36px)/1.2 var(--dh-font);
    color: var(--dh-text-primary);
}

.dh-steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: clamp(18px, 2.2vw, 30px);
}

.dh-steps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 8px 16px;
    text-align: center;
}

.dh-steps__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dh-red-500);
    border-radius: 50%;
    font: var(--dh-weight-black) 20px/1 var(--dh-font);
    color: var(--dh-ink-0);
}

.dh-steps__label {
    font: var(--dh-weight-bold) 14px/1.35 var(--dh-font);
    color: var(--dh-text-primary);
}

@media (min-width: 641px) {
    .dh-app__tile p {
        padding: 16px 16px 22px;
        font-size: 16.5px;
    }

    .dh-steps {
        gap: clamp(12px, 1.4vw, 20px);
    }

    .dh-steps__item {
        padding: 26px 16px 22px;
    }

    .dh-steps__number {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .dh-steps__label {
        font-size: 15px;
    }
}

@media (min-width: 861px) {
    .dh-app__col {
        flex: 1 1 46%;
    }
}

/* --------------------------------------------------------------------------
   4 · Offers carousel
   -------------------------------------------------------------------------- */

.dh-offers {
    background: var(--dh-surface-page);
    padding-block: clamp(40px, 5vw, 74px) var(--dh-section-y);
}

.dh-offers__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: clamp(28px, 3.6vw, 32px);
    text-align: center;
}

.dh-carousel {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(16px, 2.4vw, 32px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dh-carousel::-webkit-scrollbar {
    display: none;
}

.dh-carousel__item {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: center;
}

.dh-offer {
    display: block;
    overflow: hidden;
    background: var(--dh-surface-card);
    border: 1px solid var(--dh-border-subtle);
    border-radius: var(--dh-radius-card);
    box-shadow: var(--dh-shadow-card);
    transition: transform var(--dh-duration-base) var(--dh-ease),
        box-shadow var(--dh-duration-base) var(--dh-ease);
}

.dh-offer:hover,
.dh-offer:focus {
    transform: translateY(-2px);
    box-shadow: var(--dh-shadow-hover);
}

.dh-offer img {
    width: 100%;
    height: auto;
}

.dh-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.dh-dots__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: var(--dh-radius-pill);
    background: var(--dh-border-subtle);
    cursor: pointer;
    transition: width var(--dh-duration-base) var(--dh-ease),
        background-color var(--dh-duration-base) var(--dh-ease);
}

.dh-dots__dot[aria-current="true"] {
    width: 30px;
    background: var(--dh-red-500);
}

.dh-dots__dot:hover {
    background: var(--dh-red-600);
}

@media (min-width: 861px) {
    .dh-carousel__item {
        flex: 0 0 calc(50% - clamp(8px, 1.2vw, 16px));
    }
}

/* --------------------------------------------------------------------------
   5 · News
   -------------------------------------------------------------------------- */

.dh-news {
    background: var(--dh-surface-page);
    padding-block: var(--dh-section-y);
}

.dh-news__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: clamp(28px, 4vw, 32px);
    text-align: center;
}

.dh-news__title {
    color: var(--dh-text-primary);
}

.dh-news__title span {
    color: var(--dh-text-brand);
}

.dh-news__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.dh-article__media img{
    max-height: 200px !important;
}

.dh-article {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--dh-surface-card);
    border: 1px solid var(--dh-border-subtle);
    border-radius: var(--dh-radius-card);
    box-shadow: var(--dh-shadow-card);
    transition: transform var(--dh-duration-base) var(--dh-ease),
        box-shadow var(--dh-duration-base) var(--dh-ease);
}

.dh-article:hover {
    transform: translateY(-2px);
    box-shadow: var(--dh-shadow-hover);
}

.dh-article__media {
    overflow: hidden;
}

.dh-article__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 320ms var(--dh-ease);
}

.dh-article:hover .dh-article__media img {
    transform: scale(1.04);
}

.dh-article__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding: 16px 14px 20px;
    text-align: center;
}

.dh-article__title {
    font: var(--dh-weight-bold) 14px/1.3 var(--dh-font);
    letter-spacing: -0.015em;
    color: var(--dh-text-brand);
}

.dh-article__summary {
    font: var(--dh-weight-regular) 12px/1.55 var(--dh-font);
    color: var(--dh-text-secondary);
}

.dh-article__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: auto;
    padding-top: 10px;
    font: var(--dh-weight-semibold) 15px/1 var(--dh-font);
    color: var(--dh-text-brand);
}

.dh-article__link:hover,
.dh-article__link:focus {
    color: var(--dh-red-600);
    text-decoration: none;
}

.dh-article__link i {
    transition: transform var(--dh-duration-base) var(--dh-ease);
}

.dh-article:hover .dh-article__link i {
    transform: translateX(3px);
}

@media (min-width: 641px) {
    .dh-news__grid {
        gap: clamp(20px, 3vw, 40px);
    }

    .dh-article__body {
        padding: 22px 20px 26px;
    }

    .dh-article__title {
        font-size: 20px;
    }

    .dh-article__summary {
        font-size: 16px;
    }
}

@media (min-width: 1101px) {
    .dh-news__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dh-article__title {
        font-size: 23px;
    }
}

/* --------------------------------------------------------------------------
   6 · Locations
   -------------------------------------------------------------------------- */

.dh-locations {
    background: var(--dh-surface-sunken);
    padding-block: clamp(44px, 6vw, 74px) var(--dh-section-y);
}

.dh-locations__title {
    margin-bottom: clamp(28px, 4vw, 32px);
}

.dh-locations__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dh-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 14px 22px;
    text-align: center;
    background: var(--dh-surface-card);
    border: 1px solid var(--dh-border-subtle);
    border-radius: var(--dh-radius-card);
    box-shadow: var(--dh-shadow-card);
    transition: transform var(--dh-duration-base) var(--dh-ease),
        box-shadow var(--dh-duration-base) var(--dh-ease);
}

.dh-location:hover {
    transform: translateY(-2px);
    box-shadow: var(--dh-shadow-hover);
}

.dh-location__name {
    font: var(--dh-weight-bold) 20px/1.2 var(--dh-font);
    letter-spacing: -0.015em;
    color: var(--dh-text-brand);
}

.dh-location__address {
    font: var(--dh-weight-regular) 14px/1.55 var(--dh-font);
    color: var(--dh-text-secondary);
}

.dh-location__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
}

.dh-locations__empty {
    text-align: center;
    font: var(--dh-weight-semibold) 17px/1.6 var(--dh-font);
    color: var(--dh-text-secondary);
}

@media (min-width: 641px) {
    .dh-locations__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
        gap: clamp(20px, 2.5vw, 32px);
    }

    .dh-location {
        padding: 26px 22px 28px;
    }

    .dh-location__name {
        font-size: 28px;
    }

    .dh-location__address {
        font-size: 16px;
    }

    .dh-location__actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1400px) {
    .dh-location__name {
        font-size: 33px;
    }
}

/* --------------------------------------------------------------------------
   7 · About
   -------------------------------------------------------------------------- */

.dh-about {
    position: relative;
    overflow: hidden;
    background: var(--dh-ink-900);
}

.dh-about__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% center;
}

.dh-about__scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.dh-about__inner {
    position: relative;
    padding-block: clamp(56px, 9vw, 132px);
}

.dh-about__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 600px;
}

.dh-about__title {
    font: 300 clamp(32px, 8vw, 40px)/1.2 var(--dh-font);
    letter-spacing: var(--dh-tracking-display);
    color: var(--dh-ink-0);
}

.dh-about__text {
    font: var(--dh-weight-medium) 15px/1.55 var(--dh-font);
    color: rgba(255, 255, 255, 0.86);
}

@media (min-width: 641px) {
    .dh-about__image {
        object-position: right center;
    }

    .dh-about__scrim {
        background: linear-gradient(
            to right,
            rgba(13, 14, 16, 1) 0%,
            rgba(13, 14, 16, 0.92) 38%,
            rgba(13, 14, 16, 0) 68%
        );
    }

    .dh-about__title {
        font-size: clamp(47px, 5vw, 68px);
    }

    .dh-about__text {
        font-size: 22px;
        font-weight: var(--dh-weight-regular);
    }
}

/* --------------------------------------------------------------------------
   Scroll reveal — opt-in, so the page is fully readable when JS is unavailable.
   -------------------------------------------------------------------------- */

.dh-reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 520ms var(--dh-ease), transform 520ms var(--dh-ease);
}

.dh-reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .dh-reveal-ready [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
