/*
 * Debenham Antiques homepage
 *
 * The homepage intentionally has its own small, namespaced design system. It
 * keeps presentation out of the PHP template while leaving the existing shop
 * and product styles available everywhere else in the theme.
 */

.da-homepage {
    --da-ink: #1c241e;
    --da-ink-deep: #111612;
    --da-cream: #eee9df;
    --da-paper: #faf9f5;
    --da-muted: #d9d4c9;
    --da-line: #d4cec3;
    --da-gold: #c8a86a;
    --da-rust: #9c624b;
    --da-sans: var(--font-sans, 'Inter', Arial, sans-serif);
    --da-serif: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    background: var(--da-paper);
    color: var(--da-ink);
    font-family: var(--da-sans);
    overflow: hidden;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.da-homepage,
.da-homepage *,
.da-homepage *::before,
.da-homepage *::after {
    box-sizing: border-box;
}

.da-homepage a {
    color: inherit;
}

.da-homepage img {
    display: block;
    max-width: 100%;
}

.da-container {
    width: calc(100% - 48px);
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
}

.da-hero {
    position: relative;
    color: #fff;
    background: var(--da-ink-deep);
}

.da-hero__inner {
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
    min-height: 500px;
}

.da-hero__copy {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(42px, 3.5vw, 56px) clamp(28px, 5.5vw, 88px) clamp(42px, 3.5vw, 56px) 0;
}

.da-eyebrow,
.da-hero__kicker {
    margin: 0 0 16px;
    color: var(--da-gold);
    font-family: var(--da-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.da-hero__title {
    max-width: 620px;
    margin: 0;
    color: #f7f4ed;
    font-family: var(--da-serif);
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: .92;
}

.da-hero__title em {
    color: #d6bd88;
    font-style: normal;
}

.da-hero__description {
    max-width: 500px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.75;
}

.da-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.da-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 1px;
    font-family: var(--da-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.da-button__label--mobile {
    display: none;
}

.da-button:hover,
.da-button:focus-visible {
    transform: translateY(-1px);
}

.da-homepage .da-button--light {
    color: var(--da-ink);
    background: #e8dfca;
}

.da-homepage .da-button--light:hover,
.da-homepage .da-button--light:focus-visible {
    background: #fffaf0;
}

.da-button--outline {
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
    background: transparent;
}

.da-button--outline:hover,
.da-button--outline:focus-visible {
    color: var(--da-ink-deep);
    border-color: #fff;
    background: #fff;
}

.da-button--dark {
    color: #f6f1e8;
    border-color: var(--da-ink);
    background: var(--da-ink);
}

.da-editorial .da-button--dark {
    color: #fff;
}

.da-button--dark:hover,
.da-button--dark:focus-visible {
    color: var(--da-ink);
    background: transparent;
}

.da-hero__media {
    position: relative;
    min-height: 500px;
    margin: 0;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, .14);
    background: #272c27;
}

.da-hero__media::before {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 34%;
    background: rgba(17, 22, 18, .72);
    content: '';
    pointer-events: none;
}

.da-hero__media::after {
    position: absolute;
    z-index: 3;
    top: 22px;
    right: 22px;
    bottom: 22px;
    left: 22px;
    border: 1px solid rgba(232, 223, 202, .32);
    content: '';
    pointer-events: none;
}

.da-hero__media > img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    object-position: center;
    opacity: .78;
}

.da-hero__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.da-hero__media--empty::before {
    width: 100%;
}

.da-hero__empty-label {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, .6);
    font-family: var(--da-serif);
    font-size: 30px;
}

.da-hero__object-link {
    position: absolute;
    z-index: 4;
    right: 38px;
    bottom: 38px;
    left: 38px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    text-decoration: none;
}

.da-hero__object-caption {
    max-width: 360px;
    padding: 10px 14px;
    border-left: 2px solid var(--da-gold);
    background: rgba(17, 22, 18, .84);
    font-size: 12px;
    line-height: 1.45;
}

.da-hero__object-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(255, 255, 255, .65);
    font-size: 20px;
}

.da-trust-strip {
    border-bottom: 1px solid var(--da-line);
    background: var(--da-cream);
}

.da-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.da-trust-item {
    display: flex;
    align-items: center;
    min-height: 120px;
    gap: 14px;
    padding: 22px 24px;
    border-right: 1px solid var(--da-line);
}

.da-trust-item:first-child {
    padding-left: 0;
}

.da-trust-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.da-trust-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    color: var(--da-rust);
}

.da-trust-item__icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
}

.da-trust-item__copy {
    display: block;
    min-width: 0;
}

.da-trust-item__title {
    margin: 0;
    display: block;
    color: var(--da-ink);
    font-family: var(--da-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.da-trust-item__text {
    margin: 5px 0 0;
    display: block;
    color: #615f58;
    font-size: 12px;
    line-height: 1.45;
}

.da-section {
    padding: clamp(58px, 7vw, 96px) 0;
}

.da-section--paper {
    background: var(--da-paper);
}

.da-section--cream {
    background: var(--da-cream);
}

.da-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.da-section-heading .da-eyebrow {
    margin-bottom: 7px;
    color: var(--da-rust);
}

.da-section-title {
    margin: 0;
    color: var(--da-ink);
    font-family: var(--da-serif);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: .98;
}

.da-section-intro {
    max-width: 560px;
    margin: 9px 0 0;
    color: #615f58;
    font-size: 14px;
    line-height: 1.6;
}

.da-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--da-ink);
    color: var(--da-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}

.da-text-link::after {
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    content: '';
    transform: rotate(45deg);
}

.da-text-link:hover,
.da-text-link:focus-visible {
    color: var(--da-rust);
    border-color: var(--da-rust);
}

.da-product-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 17px;
}

.da-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: var(--da-ink);
    text-decoration: none;
}

.da-product-card a,
.da-product-card__title,
.da-product-card__price,
.da-product-card__price * {
    text-decoration: none;
}

.da-product-card__image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #fff;
}

.da-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.da-product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #777168;
    font-family: var(--da-serif);
    font-size: 19px;
    text-align: center;
}

.da-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    color: #fff;
    background: var(--da-ink);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.da-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 2px 0;
}

.da-product-card__title {
    min-height: 2.8em;
    margin: 0;
    color: var(--da-ink);
    font-family: var(--da-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.42;
}

.da-product-card__price {
    margin: 7px 0 0;
    color: var(--da-ink);
    font-size: clamp(16px, 1.2vw, 19px);
    font-weight: 700;
    line-height: 1.1;
}

.da-product-card__price del {
    color: #8b877d;
    font-weight: 400;
}

.da-collections {
    padding-top: clamp(76px, 8vw, 112px);
}

.da-collection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.da-collection-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    color: #fff;
    background: var(--da-ink);
    text-decoration: none;
}

.da-collection-card::after {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(17, 22, 18, .52);
    content: '';
    transition: background-color .2s ease;
}

.da-collection-card:hover::after,
.da-collection-card:focus-visible::after {
    background: rgba(17, 22, 18, .34);
}

.da-collection-card__image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    transition: transform .45s ease;
}

.da-collection-card:hover .da-collection-card__image,
.da-collection-card:focus-visible .da-collection-card__image {
    transform: scale(1.035);
}

.da-collection-card__copy {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 20px;
    left: 22px;
}

.da-collection-card__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #e5cb91;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.da-collection-card__title {
    display: block;
    max-width: 230px;
    margin: 0;
    color: #f8f4eb;
    font-family: var(--da-serif);
    font-size: clamp(25px, 2.3vw, 34px);
    font-weight: 400;
    line-height: .98;
}

.da-collection-card__link {
    display: inline-flex;
    margin-top: 17px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .65);
    color: #f8f4eb;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.da-editorial {
    background: #e4ded2;
}

.da-editorial__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    gap: clamp(30px, 6vw, 92px);
    align-items: center;
}

.da-editorial__image {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #c7bca9;
}

.da-editorial__image img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.da-editorial__image-label {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 11px;
    color: #fff;
    background: rgba(17, 22, 18, .8);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.da-editorial__copy .da-eyebrow {
    color: var(--da-rust);
}

.da-editorial__title {
    max-width: 520px;
    margin: 0;
    color: var(--da-ink);
    font-family: var(--da-serif);
    font-size: clamp(38px, 4.4vw, 62px);
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: .96;
}

.da-editorial__text {
    max-width: 500px;
    margin: 22px 0 0;
    color: #57564f;
    font-size: 15px;
    line-height: 1.75;
}

.da-editorial__note {
    margin: 28px 0 30px;
    padding: 20px 0 0 20px;
    border-top: 1px solid rgba(28, 36, 30, .28);
    border-left: 2px solid var(--da-rust);
}

.da-editorial__note strong {
    display: block;
    margin-bottom: 7px;
    color: var(--da-ink);
    font-family: var(--da-serif);
    font-size: 25px;
    font-weight: 400;
    line-height: 1.05;
}

.da-editorial__note span {
    display: block;
    color: #67635a;
    font-size: 12px;
    line-height: 1.55;
}

.da-sold {
    padding-top: clamp(48px, 6vw, 78px);
}

.da-contact {
    color: #f8f4eb;
    background: var(--da-ink-deep);
}

.da-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 40px;
    align-items: center;
}

.da-contact .da-eyebrow {
    color: #d7bb7f;
}

.da-contact__title {
    max-width: 620px;
    margin: 0;
    color: #f8f4eb;
    font-family: var(--da-serif);
    font-size: clamp(38px, 4.5vw, 66px);
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: .95;
}

.da-contact__text {
    max-width: 500px;
    margin: 20px 0 0;
    color: rgba(248, 244, 235, .7);
    font-size: 15px;
    line-height: 1.7;
}

.da-homepage :focus-visible {
    outline: 2px solid var(--da-rust);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .da-product-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .da-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .da-hero__inner,
    .da-editorial__grid,
    .da-contact__grid {
        grid-template-columns: 1fr;
    }

    .da-hero__copy {
        padding: 56px 0 48px;
    }

    .da-hero__media {
        min-height: 420px;
        border-top: 1px solid rgba(255, 255, 255, .14);
        border-left: 0;
    }

    .da-hero__media > img {
        min-height: 420px;
    }

    .da-editorial__image,
    .da-editorial__image img {
        min-height: 360px;
    }

    .da-contact__content {
        padding-top: 12px;
    }
}

@media (max-width: 767px) {
    .da-container {
        width: calc(100% - 32px);
    }

    .da-button__label--full {
        display: none;
    }

    .da-button__label--mobile {
        display: inline;
    }

    .da-hero .da-actions {
        flex-wrap: nowrap;
        width: 100%;
        gap: 8px;
    }

    .da-hero .da-actions .da-button {
        flex: 0 1 auto;
        min-width: 0;
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 720px) {
    .da-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .da-trust-item,
    .da-trust-item:first-child,
    .da-trust-item:last-child {
        min-height: 100px;
        padding: 18px 12px;
        border-right: 1px solid var(--da-line);
    }

    .da-trust-item:nth-child(2n) {
        border-right: 0;
    }

    .da-trust-item:nth-child(n + 3) {
        border-top: 1px solid var(--da-line);
    }

    .da-trust-item__icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .da-trust-item__icon svg {
        width: 28px;
        height: 28px;
    }

    .da-section-heading {
        display: block;
    }

    .da-section-heading .da-text-link {
        margin-top: 18px;
    }

    .da-product-rail {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(205px, 42vw);
        grid-template-columns: none;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .da-collection-card {
        min-height: 270px;
    }

    .da-collection-card__image {
        min-height: 270px;
    }
}

@media (max-width: 520px) {
    .da-hero__title {
        font-size: clamp(45px, 14vw, 68px);
    }

    .da-hero__description {
        font-size: 14px;
    }

    .da-hero__media,
    .da-hero__media > img {
        min-height: 340px;
    }

    .da-hero__object-link {
        right: 24px;
        bottom: 24px;
        left: 24px;
    }

    .da-hero__object-arrow {
        display: none;
    }

    .da-collection-grid {
        grid-template-columns: 1fr;
    }

    .da-collection-card,
    .da-collection-card__image {
        min-height: 290px;
    }

    .da-editorial__image,
    .da-editorial__image img {
        min-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .da-homepage *,
    .da-homepage *::before,
    .da-homepage *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Keep the below-hero confidence callouts on one centred mobile carousel. */
@media (max-width: 767px) {
    .da-trust-strip[data-da-trust-carousel] .da-trust-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        min-height: 122px;
    }

    .da-trust-strip[data-da-trust-carousel] .da-trust-item,
    .da-trust-strip[data-da-trust-carousel] .da-trust-item:first-child {
        grid-area: 1 / 1;
        box-sizing: border-box;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 106px;
        padding: 18px 16px;
        border: 0;
        opacity: 0;
        text-align: center;
        transform: translateX(1rem);
        transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
        visibility: hidden;
    }

    .da-trust-strip[data-da-trust-carousel] .da-trust-item:first-child {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
    }

    .da-trust-strip[data-da-trust-carousel] .da-trust-grid.is-ready .da-trust-item:first-child:not(.is-active) {
        opacity: 0;
        transform: translateX(-1rem);
        transition-delay: 0s, 0s, .35s;
        visibility: hidden;
    }

    .da-trust-strip[data-da-trust-carousel] .da-trust-item.is-active {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0s;
        visibility: visible;
    }

    .da-trust-strip[data-da-trust-carousel] .da-trust-item__copy {
        text-align: center;
    }
}
