/*
Theme Name: DINLEEY
Description: Native block theme for the complete DINLEEY multilingual site, including all page layouts and the shared site shell.
Version: 0.5.24
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: dinleey
*/

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-underline-offset: 0.18em;
}

img {
    height: auto;
    max-width: 100%;
}

.wp-site-blocks {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.wp-site-blocks > main {
    flex: 1;
}

.dly-header {
    border-bottom: 1px solid #d9dee2;
}

.dly-eyebrow {
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dly-card {
    height: 100%;
    border: 1px solid #d9dee2;
}

:focus-visible {
    outline: 3px solid #315e78;
    outline-offset: 3px;
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* DINLEEY HOMEPAGE FOUNDATION */
.dly-hero { position: relative; overflow: hidden; }
.dly-hero::after {
    position: absolute; top: -20%; right: -8%; width: min(42vw, 640px);
    aspect-ratio: 1; border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%; content: ""; pointer-events: none;
}
.dly-hero > * { position: relative; z-index: 1; }
.dly-hero h1 { max-width: 15ch; }
.dly-hero-copy { max-width: 720px; }
.dly-proof { border-top: 1px solid rgba(255,255,255,.2); }
.dly-card {
    box-sizing: border-box; height: 100%; padding: clamp(1.25rem,2.5vw,2rem);
    border: 1px solid #d9dee2; background: #f6f5f1;
}
.dly-card h3 { margin-top: 0; }
.dly-step-number {
    color: #315e78; font-size: .8rem; font-weight: 700;
    letter-spacing: .12em;
}
.dly-section-heading { max-width: 18ch; }
.dly-cta { border-top: 1px solid rgba(255,255,255,.16); }
.has-deep-navy-background-color a { color: #fff; }
@media (max-width: 781px) {
    .dly-hero::after { top: 8%; right: -35%; width: 90vw; }
    .dly-proof { gap: 1.5rem; }
}

/* DINLEEY GLOBAL NAVIGATION V1 */
.dly-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid #d9dee2;
}
.dly-header-inner { min-height: 72px; }
.dly-header .wp-block-site-title {
    margin: 0;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
}
.dly-header .wp-block-site-title a,
.dly-header .wp-block-navigation-item__content { text-decoration: none; }
.dly-header .wp-block-navigation { font-size: .95rem; }
.dly-header .wp-block-navigation-item__content {
    padding: .55rem .35rem;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.dly-header .wp-block-navigation-item__content:hover,
.dly-header .wp-block-navigation-item__content:focus-visible { color: #0b1f33; }
.dly-header .wp-block-navigation__submenu-container {
    min-width: 260px !important;
    padding: .5rem !important;
    border: 1px solid #d9dee2 !important;
    background: #fff !important;
    box-shadow: 0 18px 40px rgba(15,35,48,.12);
}
.dly-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    width: 100%;
    box-sizing: border-box;
    padding: .68rem .8rem;
}
.dly-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.dly-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
    color: #0b1f33;
    background: #f2f4f5;
}
.dly-footer-title {
    margin-top: 0;
    line-height: 1.2;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.dly-footer-brand {
    margin-top: 0;
    line-height: 1.2;
}
.dly-footer-copy { max-width: 32ch; }
.dly-footer-grid {
    align-items: flex-start;
    gap: clamp(1rem, 2vw, 2rem);
}
.dly-footer-grid > .wp-block-column { align-self: flex-start; }
.dly-footer-contact {
    max-width: none;
    margin: 0;
    font-size: .88rem;
    line-height: 1.65;
}
.dly-footer-address { max-width: 42ch; }
.dly-footer-email { margin-top: .5rem; }
.dly-footer-phone { margin-top: .2rem; }
.dly-footer-email + .dly-footer-phone { margin-top: .35rem; }
.dly-footer-nav { margin: 0; padding: 0; list-style: none; }
.dly-footer-nav li { margin: 0 0 .55rem; }
.dly-footer-nav a { color: #f6f5f1; text-decoration: none; }
.dly-footer-nav a:hover,
.dly-footer-nav a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.dly-footer-bottom { border-top: 1px solid rgba(255,255,255,.18); }
.dly-footer-bottom p { margin: 0; }
@media (min-width: 782px) and (max-width: 1100px) {
    .dly-footer-grid { flex-wrap: wrap !important; }
    .dly-footer-grid > .wp-block-column {
        flex-basis: calc(33.333% - 1.4rem) !important;
    }
}
@media (max-width: 1050px) {
    .dly-header .wp-block-navigation { font-size: .95rem; }
    .dly-header .wp-block-navigation__container { gap: .55rem; }
}
@media (max-width: 781px) {
    .dly-footer-grid { gap: 1.5rem; }
    .dly-footer-address { max-width: 34ch; }
    .dly-header-inner { min-height: 56px; }
    .dly-header .wp-block-navigation__responsive-container.is-menu-open {
        padding: 1.5rem;
        background: #fff;
        color: #0b1f33;
    }
    .dly-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
        min-width: 0 !important;
        padding: .25rem 0 .25rem 1rem !important;
        border: 0 !important;
        box-shadow: none;
    }
}

/* DINLEEY mobile responsive hardening v1 */

/* Switch the full navigation to the overlay before tablet widths become crowded. */
@media (max-width: 900px) {
    .dly-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none;
    }

    .dly-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }

    .dly-header .wp-block-navigation__responsive-container-open,
    .dly-header .wp-block-navigation__responsive-container-close {
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .dly-header .wp-block-navigation__responsive-container.is-menu-open {
        padding: 1.5rem;
        background: #ffffff;
        color: #0b1f33;
    }

    .dly-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
    .dly-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
        align-items: flex-start;
        width: 100%;
        gap: 0.25rem;
    }

    .dly-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
        width: 100%;
    }

    .dly-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
        box-sizing: border-box;
        width: 100%;
        padding: 0.7rem 0;
    }

    .dly-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
        box-shadow: none;
        min-width: 0 !important;
        width: 100% !important;
        padding: 0.25rem 0 0.5rem 1rem !important;
        border: 0 !important;
    }

    .dly-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
        margin-left: 0.35rem;
    }

}

@media (max-width: 781px) {
    .dly-header-inner {
        min-height: 60px;
    }

    .dly-header .wp-block-site-title {
        font-size: 1.15rem !important;
    }

    .dly-hero h1 {
        max-width: 11ch;
        font-size: clamp(2.6rem, 12vw, 4.25rem) !important;
        line-height: 1;
    }

    .dly-hero-copy {
        max-width: 38rem;
        font-size: 1.05rem !important;
        line-height: 1.65;
    }

    .dly-hero .wp-block-buttons {
        gap: 0.75rem;
    }

    .dly-hero .wp-block-button,
    .dly-hero .wp-block-button__link {
        box-sizing: border-box;
        width: 100%;
    }

    .dly-hero .wp-block-button__link {
        text-align: center;
    }

    .dly-proof {
        gap: 1rem;
    }

    .dly-proof .wp-block-column {
        flex-basis: 100% !important;
    }

    .dly-section-heading {
        max-width: none;
    }

    .dly-card {
        padding: 1.25rem;
    }

    .dly-cta .wp-block-group.is-layout-flex {
        align-items: flex-start;
        gap: 1.25rem;
    }

    .dly-cta .wp-block-buttons,
    .dly-cta .wp-block-button,
    .dly-cta .wp-block-button__link {
        box-sizing: border-box;
        width: 100%;
    }

    .dly-cta .wp-block-button__link {
        text-align: center;
    }

    .dly-footer-bottom.is-layout-flex {
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .dly-eyebrow {
        font-size: 0.72rem;
        line-height: 1.5;
    }

    .dly-hero h1 {
        font-size: clamp(2.35rem, 13vw, 3.25rem) !important;
    }

    .dly-section-heading,
    .dly-cta h2 {
        font-size: clamp(2rem, 10vw, 2.75rem) !important;
        line-height: 1.08;
    }

    .dly-card h3 {
        font-size: 1.15rem;
    }
}

/* DINLEEY HOME CATEGORY CARDS V2 - node-004 */
.dly-home-categories .wp-block-columns {
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.6rem);
    margin-top: clamp(2rem, 3.5vw, 3rem);
}

.dly-home-categories .wp-block-column {
    display: flex;
}

.dly-home-categories .dly-card {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d6dde1;
    background: #fff;
    box-shadow: 0 12px 30px rgba(11, 31, 51, .08);
}

.dly-home-categories .wp-block-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    background: #e4e8ea;
}

.dly-home-categories .wp-block-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.dly-home-categories .wp-block-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dly-home-categories .dly-card h3 {
    margin: 0;
    padding: 1.35rem 1.4rem 0;
    font-size: clamp(1.2rem, 1.55vw, 1.48rem);
    line-height: 1.28;
}

.dly-home-categories .dly-card h3 a {
    color: #173f57;
    text-decoration: none;
}

.dly-home-categories .dly-card h3 a:hover,
.dly-home-categories .dly-card h3 a:focus-visible {
    color: #0b1f33;
    text-decoration: underline;
}

.dly-home-categories .dly-card > p {
    margin: 0;
    padding: .9rem 1.4rem 1.5rem;
    color: #344b59;
    line-height: 1.65;
}

@media (min-width: 782px) {
    .dly-home-categories .dly-card h3 {
        min-height: 2.56em;
    }
}

@media (max-width: 781px) {
    .dly-home-categories .wp-block-columns {
        gap: 1.25rem;
        margin-top: 1.75rem;
    }

    .dly-home-categories .wp-block-image {
        aspect-ratio: 16 / 10;
    }

    .dly-home-categories .dly-card h3 {
        padding: 1.15rem 1.2rem 0;
    }

    .dly-home-categories .dly-card > p {
        padding: .75rem 1.2rem 1.3rem;
    }
}

/* DINLEEY HOME HERO PRODUCT GALLERY - node-005 */
.dly-layout-front .dly-hero.dly-home-product-gallery {
    display: grid;
    box-sizing: border-box;
    grid-template-columns: 42.5% 57.5%;
    width: 100%;
    height: calc(100vh - 72px);
    height: calc(100svh - 72px);
    min-height: 720px;
    max-height: 860px;
    align-content: stretch;
    padding: 0 !important;
    overflow: hidden;
    background: #071a2a !important;
}

.dly-home-product-copy {
    min-width: 0;
    background: #071a2a;
    color: #fff;
}

.dly-home-product-gallery .dly-hero-content {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: clamp(6.5rem, 6.4vw, 7.5rem);
    padding-right: 2rem;
    padding-left: max(2rem, calc((100vw - 1380px) / 2));
}

.dly-home-product-gallery .dly-eyebrow {
    margin: 0 0 2rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.dly-home-product-gallery .dly-hero-content h1.has-display-font-size {
    max-width: 590px;
    margin: 0;
    color: #fff;
    font-size: clamp(3.15rem, 3.3vw, 3.75rem) !important;
    font-weight: 680;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.dly-home-product-gallery .dly-hero-content h1 span {
    display: block;
    white-space: nowrap;
}

.dly-home-product-gallery .dly-hero-copy {
    max-width: 590px;
    margin: 2.6rem 0 0;
    color: rgba(255, 255, 255, .96);
    font-size: clamp(1.05rem, 1.05vw, 1.2rem) !important;
    line-height: 1.72;
}

.dly-home-product-gallery .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.15rem;
    margin-top: 2.75rem;
}

.dly-home-product-gallery .wp-block-button {
    margin: 0;
}

.dly-home-product-gallery .wp-block-button__link {
    display: inline-flex;
    box-sizing: border-box;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 0;
    padding: .72rem 1.25rem;
    font-size: .88rem;
    font-weight: 650;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.dly-home-product-gallery .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.dly-home-product-gallery .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus-visible {
    background: #3d708c !important;
}

.dly-home-product-gallery .wp-block-button.is-style-outline .wp-block-button__link {
    border-color: #fff;
    background: transparent !important;
    color: #fff !important;
}

.dly-home-product-gallery .wp-block-button.is-style-outline .wp-block-button__link:hover,
.dly-home-product-gallery .wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
    background: #fff !important;
    color: #0b1f33 !important;
}

.dly-home-product-media {
    display: grid;
    min-width: 0;
    overflow: hidden;
    grid-template-columns: minmax(0, 30.5fr) minmax(0, 38.5fr) minmax(0, 31fr);
    grid-template-rows: minmax(0, 55fr) minmax(0, 45fr);
    gap: 4px;
    background: #071a2a;
}

.dly-home-product-tile {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: #0b1f33;
}

.dly-home-product-tile::after {
    position: absolute;
    inset: 0;
    background: rgba(6, 25, 41, .42);
    content: "";
    pointer-events: none;
}

.dly-home-product-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dly-home-product-tile--main {
    grid-column: 1 / -1;
}

.dly-home-product-tile--main img {
    object-position: center 44%;
}

.dly-home-product-tile--drawer img {
    object-position: center 48%;
}

.dly-home-product-tile--flip img {
    object-position: center 54%;
}

.dly-home-product-tile--cream img {
    object-position: center 52%;
}

@media (max-width: 1240px) {
    .dly-layout-front .dly-hero.dly-home-product-gallery {
        grid-template-columns: 45% 55%;
    }

    .dly-home-product-gallery .dly-hero-content {
        padding-right: 2.25rem;
        padding-left: 2.25rem;
    }

    .dly-home-product-gallery .dly-hero-content h1.has-display-font-size {
        font-size: clamp(3rem, 4.5vw, 3.7rem) !important;
    }
}

@media (max-width: 960px) {
    .dly-layout-front .dly-hero.dly-home-product-gallery {
        grid-template-columns: 48% 52%;
    }

    .dly-home-product-gallery .dly-hero-content {
        padding-top: 5.25rem;
        padding-right: 1.75rem;
        padding-left: 1.75rem;
    }

    .dly-home-product-gallery .dly-hero-content h1.has-display-font-size {
        font-size: clamp(2.65rem, 5.9vw, 3.3rem) !important;
    }

    .dly-home-product-gallery .dly-hero-copy {
        font-size: 1rem !important;
    }

    .dly-home-product-media {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 54fr) minmax(0, 23fr) minmax(0, 23fr);
    }

    .dly-home-product-tile--drawer,
    .dly-home-product-tile--flip {
        grid-row: 2;
    }

    .dly-home-product-tile--cream {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

@media (max-width: 781px) {
    .dly-layout-front .dly-hero.dly-home-product-gallery {
        display: block;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 0 !important;
        background: #071a2a !important;
    }

    .dly-home-product-gallery .dly-hero-content {
        padding: 3.2rem 1.4rem 3.5rem;
    }

    .dly-home-product-gallery .dly-eyebrow {
        margin-bottom: 1.4rem;
        font-size: .7rem;
    }

    .dly-home-product-gallery .dly-hero-content h1.has-display-font-size {
        max-width: 11ch;
        font-size: clamp(2.55rem, 12.5vw, 3.25rem) !important;
        line-height: 1.04;
    }

    .dly-home-product-gallery .dly-hero-content h1 span {
        display: inline;
        white-space: normal;
    }

    .dly-home-product-gallery .dly-hero-copy {
        margin-top: 1.45rem;
        font-size: 1rem !important;
        line-height: 1.62;
    }

    .dly-home-product-gallery .wp-block-buttons {
        gap: .75rem;
        margin-top: 1.7rem;
    }

    .dly-home-product-gallery .wp-block-button__link {
        min-height: 46px;
        padding-right: 1rem;
        padding-left: 1rem;
        font-size: .82rem;
    }

    .dly-home-product-media {
        height: 390px;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: minmax(0, 60fr) minmax(0, 40fr);
    }

    .dly-home-product-tile--main {
        grid-column: 1 / -1;
    }

    .dly-home-product-tile--drawer,
    .dly-home-product-tile--flip,
    .dly-home-product-tile--cream {
        grid-column: auto;
        grid-row: 2;
    }

    .dly-home-product-tile--main img {
        object-position: center 42%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dly-home-product-gallery *,
    .dly-home-product-gallery *::before,
    .dly-home-product-gallery *::after {
        transition-duration: .01ms !important;
    }
}

/* DINLEEY HOME HERO HEIGHT BALANCE - node-007 */
.dly-header-inner {
    min-height: 78px;
}

@media (min-width: 782px) {
    .dly-layout-front .dly-hero.dly-home-product-gallery {
        height: calc(100vh - 98px);
        height: calc(100svh - 98px);
        min-height: 620px;
        max-height: 700px;
    }

    .dly-home-product-gallery .dly-hero-content {
        padding-top: clamp(3.75rem, 4.6vw, 4.75rem);
    }

    .dly-home-product-gallery .dly-eyebrow {
        margin-bottom: 1.35rem;
    }

    .dly-home-product-gallery .dly-hero-copy {
        margin-top: 1.75rem;
        line-height: 1.62;
    }

    .dly-home-product-gallery .wp-block-buttons {
        margin-top: 2rem;
    }
}

@media (min-width: 782px) and (max-width: 960px) {
    .dly-home-product-gallery .dly-hero-content {
        padding-top: 3.75rem;
    }
}

@media (max-width: 781px) {
    .dly-header-inner {
        min-height: 60px;
    }
}

/* Node 017: compact mobile conversion path without changing the approved theme. */
@media (max-width: 480px) {
    .dly-home-product-gallery .dly-hero-content {
        padding: 2.45rem 1.25rem 2.7rem;
    }

    .dly-home-product-gallery .dly-eyebrow {
        margin-bottom: 1.05rem;
    }

    .dly-home-product-gallery .dly-hero-content h1.has-display-font-size {
        max-width: 12ch;
        font-size: clamp(2.25rem, 11.4vw, 2.8rem) !important;
        line-height: 1.03;
    }

    .dly-home-product-gallery .dly-hero-copy {
        margin-top: 1.2rem;
        line-height: 1.55;
    }

    .dly-home-product-gallery .wp-block-buttons {
        gap: .6rem;
        margin-top: 1.35rem;
    }

    .dly-home-product-media {
        height: 340px;
    }
}

/* Node 014: source-owned, page-specific visual details */
.dly-inline-visual {
  margin-block: clamp(1.5rem, 3vw, 2.75rem);
}

.dly-inline-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
