/* ==========================================================================
   Dentist Location Pages – Custom Page Template Styles
   Prefix dl-
   ========================================================================== */

/* ---------- Design Tokens ---------- */
body .dl-page {
    --brand-primary: #4C5F49;
    --brand-secondary: #C29063;
    --brand-dark: #020101;
    --brand-dark-65: #020101A6;
    --brand-body: #5C5C5C;
    --brand-bg-cream: #F6F3ED;
    --brand-bg-olive: #E9E8E0;
    --brand-border: #D1CCC2;
    --brand-white: #FFFFFF;
    --brand-btn-hover: #8C9372;
    --ff-heading: 'Nantes Bold', 'Georgia', serif;
    --ff-body: 'Founders Grotesk', 'Inter', 'Helvetica Neue', sans-serif;
    --ff-ui: 'Inter', sans-serif;
    --container-max: 1440px;
    --section-padding-x: 4vw;
    --section-padding-y: 8vmax;
}

/* ---------- Full-stretch sections + centred content ---------- */
body .dl-section {
    width: 100%;
}

body .dl-container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
}

/* ---------- Buttons ---------- */
body .dl-btn {
    display: inline-block;
    font-family: var(--ff-ui);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: var(--brand-white);
    background-color: var(--brand-primary);
    border: none;
    border-radius: 100px;
    padding: 14px 34px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

body .dl-btn:hover,
body .dl-btn:focus {
    background-color: var(--brand-btn-hover);
    color: var(--brand-white);
}

body .dl-btn--outline {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}

body .dl-btn--outline:hover {
    background-color: var(--brand-primary);
    color: var(--brand-white);
}

body .dl-btn-subtext {
    display: block;
    font-family: var(--ff-ui);
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    margin-top: 6px;
    font-weight: 400;
}

/* ---------- Fade-in animation ---------- */
body .dl-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

body .dl-fade-in.dl-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Font Awesome icon helpers ---------- */
body .dl-btn i {
    margin-right: 6px;
}

/* ==========================================================================
   SECTION: Hero (Map + Text)
   ========================================================================== */
body .dl-hero {
    background-color: var(--brand-bg-cream);
}

body .dl-hero>.dl-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-top: 90px;
    padding-bottom: 50px;
}

body .dl-hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-width: 0;
}

body .dl-hero__title {
    font-family: var(--ff-heading);
    font-size: 54px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--brand-dark-65);
    margin-bottom: 2rem;
}

body .dl-hero__desc {
    font-family: var(--ff-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--brand-body);
    margin-bottom: 1.5rem;
}

body .dl-hero__subdesc {
    font-family: var(--ff-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--brand-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

body .dl-hero__map {
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
}

body .dl-hero__map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    border-radius: 20px;
}

/* ==========================================================================
   SECTION: Marquee Banner
   ========================================================================== */
body .dl-marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    background: var(--brand-bg-cream);
}

body .dl-marquee-track {
    display: inline-block;
    padding-right: 2rem;
    animation: dl-marquee 25s linear infinite;
    will-change: transform;
}

body .dl-marquee-track span {
    color: var(--brand-primary);
    font-family: 'Nantes Bold', serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    padding-inline: 20px;
}

body .dl-marquee-track .dl-dot {
    color: var(--brand-secondary);
    font-size: 30px;
    padding-inline: 0;
}

@keyframes dl-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* ==========================================================================
   SECTION: Split Content + Image (2-col grid)
   ========================================================================== */
body .dl-split {
    background-color: var(--brand-bg-cream);
}

body .dl-split>.dl-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-top: var(--section-padding-y);
    padding-bottom: 5vmax;
}

body .dl-split--reverse .dl-split__image {
    order: -1;
}

body .dl-split__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

body .dl-split__title {
    font-family: var(--ff-heading);
    font-size: 40px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--brand-dark);
}

body .dl-split__text {
    font-family: var(--ff-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--brand-body);
    max-width: 90%;
}

body .dl-split__text a {
    color: var(--brand-secondary);
    text-decoration: underline;
}

body .dl-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    box-shadow: rgba(100, 100, 111, 0.05) 0px 7px 29px 0px;
}

/* ==========================================================================
   SECTION: Video / About (split text + video)
   ========================================================================== */
body .dl-video {
    position: relative;
    background: var(--brand-white);
    border-top: 1px solid #E9ECEF;
}

body .dl-video>.dl-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

body .dl-video__content {
    flex: 0 1 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

body .dl-video__title {
    font-family: 'Domine', var(--ff-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #444444;
    margin-bottom: 0;
}

body .dl-video__title .dl-accent {
    color: var(--brand-secondary);
}

body .dl-video__text {
    font-family: var(--ff-body);
    font-size: 20px;
    line-height: 1.4;
    color: var(--brand-body);
    margin-bottom: 0;
}

body .dl-video__text a {
    color: var(--brand-secondary);
    text-decoration: underline;
}

/* Credential badge */
body .dl-video__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    font-family: var(--ff-ui);
    font-size: 14px;
    font-weight: 400;
    color: #444444;
    line-height: 1.6;
    max-width: fit-content;
}

body .dl-video__badge img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Video player wrapper */
body .dl-video__player {
    flex: 0 1 40%;
    max-width: 40%;
}

body .dl-video__player-wrap {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    border: 10px solid var(--brand-primary);
    box-sizing: border-box;
}

body .dl-video__player-wrap video {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: 62% center;
    display: block;
    width: 100%;
    height: auto;
}

/* Play button overlay */
body .dl-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s;
    background: none;
    border: none;
    padding: 0;
    animation: dl-pulse 1.6s infinite ease-in-out;
}

body .dl-video__play.dl-hide {
    opacity: 0;
    pointer-events: none;
    animation: none;
}

@keyframes dl-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.06);
        opacity: 0.93;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   SECTION: Product Tiles (3-col numbered cards)
   ========================================================================== */
body .dl-tiles {
    background-color: var(--brand-bg-cream);
}

body .dl-tiles>.dl-container {
    padding-top: 5vmax;
    padding-bottom: 5vmax;
}

body .dl-tiles__header {
    text-align: center;
    margin-bottom: 3rem;
}

body .dl-tiles__title {
    font-family: var(--ff-heading);
    font-size: 48px;
    font-weight: 300;
    line-height: 1.3;
    color: #444444;
}

body .dl-tiles__subtitle {
    font-family: var(--ff-body);
    font-size: 20px;
    color: var(--brand-body);
    margin-top: 1rem;
}

body .dl-tiles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.5rem;
    row-gap: 2.5rem;
}

/* Centre the last tile when 5 tiles wrap to 2-col */
body .dl-tiles__grid>.dl-tile:last-child:nth-child(3n+2) {
    /* handled at tablet widths */
}

body .dl-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem;
    background: #E8E2D869;
    border: 1px solid var(--brand-border);
    border-radius: 24px;
    box-shadow: 0px 7px 19px rgba(100, 100, 111, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

body .dl-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0px 12px 40px rgba(100, 100, 111, 0.12);
}

body .dl-tile__number {
    font-family: var(--ff-heading);
    font-size: 45px;
    font-weight: 300;
    font-style: italic;
    color: #AC9672;
    line-height: 1;
    letter-spacing: -1px;
}

body .dl-tile__title {
    font-family: var(--ff-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--brand-dark);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

body .dl-tile__text {
    font-family: var(--ff-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--brand-body);
}

body .dl-tile__text a {
    color: var(--brand-secondary);
    text-decoration: underline;
}

body .dl-tiles__cta {
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================================================
   SECTION: Empathy / Process (numbered steps)
   ========================================================================== */
body .dl-empathy {
    background-color: #fff;
}

body .dl-empathy>.dl-container {
    padding-top: var(--section-padding-y);
    padding-bottom: 5vmax;
    max-width: 900px;
}

body .dl-empathy__title {
    font-family: var(--ff-heading);
    font-size: 40px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--brand-dark);
    margin-bottom: 2.5rem;
    text-align: center;
}

body .dl-empathy__steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

body .dl-empathy__step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

body .dl-empathy__marker {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-secondary);
    color: #fff;
    border-radius: 50%;
    font-family: var(--ff-heading);
    font-size: 20px;
    font-weight: 700;
}

body .dl-empathy__step-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body .dl-empathy__step-title {
    font-family: var(--ff-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--brand-dark);
}

body .dl-empathy__step-text {
    font-family: var(--ff-body);
    font-size: 18px;
    line-height: 1.5;
    color: var(--brand-body);
}

/* ==========================================================================
   SECTION: Why Choose (3-card grid)
   ========================================================================== */
body .dl-why {
    text-align: center;
    background-color: var(--brand-bg-cream);
}

body .dl-why>.dl-container {
    padding-top: 4vmax;
    padding-bottom: 5vmax;
}

body .dl-why__title {
    font-family: var(--ff-heading);
    font-size: 42px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--brand-dark);
}

body .dl-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

body .dl-why-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: var(--brand-white);
    border-radius: 20px;
    box-shadow: rgba(100, 100, 111, 0.05) 0px 7px 29px 0px;
}

body .dl-why-card__icon {
    font-size: 28px;
    color: var(--brand-secondary);
    margin-bottom: 0.25rem;
}

body .dl-why-card__title {
    text-align: center;
    font-family: var(--ff-heading);
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--brand-dark);
}

body .dl-why-card__text {
    font-family: var(--ff-body);
    font-size: 18px;
    line-height: 1.4;
    color: var(--brand-body);
    text-align: left;
}

/* ==========================================================================
   SECTION: Final CTA
   ========================================================================== */
body .dl-cta {
    background: var(--brand-white);
    border-top: 1px solid #E9ECEF;
}

body .dl-cta>.dl-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 4vmax;
    padding-bottom: 4vmax;
    gap: 2rem;
}

body .dl-cta__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 720px;
}

body .dl-cta__title {
    font-family: var(--ff-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #444444;
}

body .dl-cta__text {
    font-family: var(--ff-body);
    font-size: 20px;
    line-height: 1.5;
    color: var(--brand-body);
}

body .dl-cta__text a {
    color: var(--brand-secondary);
    text-decoration: underline;
}

body .dl-cta__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

body .dl-cta .dl-btn-subtext {
    color: rgba(255, 255, 255, .6);
}

body .dl-cta .dl-btn--outline .dl-btn-subtext {
    color: rgba(0, 0, 0, .6);
}

body .dl-cta .dl-btn--outline:hover .dl-btn-subtext {
    color: rgba(255, 255, 255, .6);
}


/* ==========================================================================
   RESPONSIVE: Tablet (≤ 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    body .dl-page {
        --section-padding-x: 5vw;
        --section-padding-y: 3vmax;
    }

    body .dl-hero>.dl-container {
        grid-template-columns: 1fr;
        padding-top: 50px;
        padding-bottom: 20px;
        gap: 2rem;
    }

    body .dl-hero__title {
        font-size: 48px;
    }

    body .dl-hero__map {
        order: -1;
    }

    body .dl-split>.dl-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    body .dl-split__text {
        max-width: 100%;
    }

    body .dl-split--reverse .dl-split__image {
        order: -1;
    }

    body .dl-tiles__grid {
        grid-template-columns: 1fr;
        row-gap: 1.5rem;
    }

    body .dl-why__grid {
        grid-template-columns: 1fr 1fr;
    }

    body .dl-video>.dl-container {
        flex-direction: column;
        gap: 2rem;
    }

    body .dl-video__content {
        flex: 1 1 100%;
        max-width: 100%;
    }

    body .dl-video__player {
        flex: 1 1 100%;
        max-width: 100%;
    }

    body .dl-video__play {
        display: none;
    }

    body .dl-video__title {
        font-size: 40px;
    }

    body .dl-btn {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* ==========================================================================
   RESPONSIVE: Small Tablet (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
    body .dl-page {
        --section-padding-x: 6vw;
    }

    body .dl-hero__title {
        font-size: 40px;
    }

    body .dl-tiles__title,
    body .dl-why__title {
        font-size: 36px;
    }

    body .dl-split__title,
    body .dl-video__title {
        font-size: 32px;
    }

    body .dl-empathy__title {
        font-size: 32px;
    }

    body .dl-cta__title {
        font-size: 36px;
    }
}

/* ==========================================================================
   RESPONSIVE: Mobile (≤ 576px)
   ========================================================================== */
@media (max-width: 576px) {
    body .dl-page {
        --section-padding-x: 7vw;
    }

    body .dl-hero__title {
        font-size: 32px;
    }

    body .dl-hero__desc,
    body .dl-split__text {
        font-size: 17px;
    }

    body .dl-split__title {
        font-size: 26px;
    }

    body .dl-tiles__grid,
    body .dl-why__grid {
        grid-template-columns: 1fr;
    }

    body .dl-tiles__title,
    body .dl-why__title {
        font-size: 28px;
    }

    body .dl-video__title {
        font-size: 26px;
    }

    body .dl-empathy__title {
        font-size: 26px;
    }

    body .dl-empathy__step {
        flex-direction: column;
    }

    body .dl-marquee-track span {
        font-size: 20px;
    }

    body .dl-marquee-track .dl-dot {
        font-size: 20px;
    }

    body .dl-cta__title {
        font-size: 28px;
    }

    body .dl-hero>.dl-container {
        padding-top: 30px;
    }
}