/**
 * DERMAMEDIC Landing — full-page luxury composition
 * Depends on dermamedic-website.css tokens / base components
 */

.dm-body {
    margin: 0;
    background: #fff;
    color: #2a3d3d;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    /* Sharp text across engines: antialiased (WebKit/macOS), grayscale (Firefox macOS),
       optimizeLegibility for OpenType features, no synthetic bold/italic (looks mushy on Windows). */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
}

/* Buttons available outside .dm-shell */
.dm-page .dm-btn,
.dm-topbar .dm-btn,
.dm-landing-hero .dm-btn,
.dm-closing .dm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    background: #195E5F;
    color: #fff;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, filter .15s ease;
}

.dm-page .dm-btn:hover,
.dm-page .dm-btn:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    background: #2a7576;
}

.dm-page .dm-btn-gold {
    background: linear-gradient(60deg, #7E5A3A 0%, #F7CB8B 100%);
    color: #124849;
    border-color: rgba(126, 90, 58, 0.25);
}

.dm-page .dm-btn-gold:hover,
.dm-page .dm-btn-gold:focus {
    color: #124849;
    filter: brightness(1.03);
}

.dm-page .dm-btn-ghost {
    background: transparent;
    border-color: rgba(25, 94, 95, 0.22);
    color: #195E5F;
}

.dm-page .dm-btn-ghost:hover {
    border-color: rgba(126, 90, 58, 0.45);
    background: rgba(255, 255, 255, 0.55);
    color: #124849;
}

.dm-page .dm-script {
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
    color: #195E5F;
    margin: 0;
}

.dm-page .dm-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 0.95;
    color: #195E5F;
    margin: 0;
    text-transform: uppercase;
}

.dm-page .dm-subtitle {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
    color: #6b7c7c;
    max-width: 34em;
    margin: 0;
}

.dm-page .dm-rule {
    display: block;
    width: 72px;
    height: 1px;
    background: linear-gradient(60deg, #7E5A3A 0%, #F7CB8B 100%);
    border: 0;
    margin: 14px 0 0;
}

.dm-page .dm-rule-center {
    margin-left: auto;
    margin-right: auto;
}

.dm-page .dm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.dm-page {
    overflow-x: hidden;
}

/* —— Top bar —— */
.dm-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 48px;
    animation: dm-fade-down 0.9s ease both;
}

.dm-topbar-logo {
    display: block;
    height: 42px;
    width: auto;
}

.dm-topbar-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.dm-topbar-nav a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
    transition: border-color .2s ease, color .2s ease;
}

.dm-topbar-nav a:hover {
    color: #F7CB8B;
    border-bottom-color: rgba(247, 203, 139, 0.7);
}

.dm-topbar-nav .dm-btn {
    min-height: 38px;
    padding: 0 16px;
    font-size: 15px;
}

/* —— Hero (full bleed) —— */
.dm-landing-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: 0 48px 72px;
    background:
        radial-gradient(900px 520px at 78% 18%, rgba(247, 203, 139, 0.22), transparent 55%),
        linear-gradient(118deg, #124849 0%, #195E5F 48%, #0f3536 100%);
    color: #fff;
    overflow: hidden;
}

.dm-landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.35;
    pointer-events: none;
}

.dm-landing-hero-mark {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-48%);
    width: min(42vw, 460px);
    opacity: 0.95;
    animation: dm-rise 1.2s ease 0.15s both;
    pointer-events: none;
}

.dm-landing-hero-mark img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.28));
}

.dm-landing-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 50%;
    animation: dm-rise 1s ease both;
}

.dm-landing-hero-brand {
    margin: 0 0 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    color: #F7CB8B;
}

.dm-landing-hero-title {
    margin: 0 0 16px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 8vw, 84px);
    font-weight: 400;
    line-height: 0.92;
    text-transform: uppercase;
    color: #fff;
}

.dm-landing-hero-lead {
    margin: 0 0 28px;
    max-width: 28em;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.dm-landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dm-landing-hero .dm-btn-gold {
    background: linear-gradient(60deg, #7E5A3A 0%, #F7CB8B 100%);
    color: #124849;
}

.dm-landing-hero .dm-btn-ghost {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: transparent;
}

.dm-landing-hero .dm-btn-ghost:hover {
    border-color: #F7CB8B;
    color: #F7CB8B;
    background: rgba(255, 255, 255, 0.04);
}

.dm-landing-scroll {
    position: absolute;
    left: 48px;
    bottom: 28px;
    z-index: 2;
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    animation: dm-pulse 2.4s ease-in-out infinite;
}

/* —— Sections —— */
.dm-section {
    padding: 96px 48px;
}

.dm-section-narrow {
    max-width: 1120px;
    margin: 0 auto;
}

.dm-section-head {
    max-width: 520px;
    margin-bottom: 48px;
}

.dm-section-head .dm-script {
    display: block;
    margin-bottom: 8px;
    color: #195E5F;
}

.dm-section-head .dm-title {
    font-size: clamp(36px, 5vw, 52px);
    margin-bottom: 12px;
}

.dm-section-head .dm-subtitle {
    margin-top: 14px;
}

.dm-section-ivory {
    background: #E7DFC8;
}

.dm-section-white {
    background: #fff;
}

.dm-section-emerald {
    background: linear-gradient(145deg, #195E5F 0%, #124849 100%);
    color: #fff;
}

.dm-section-emerald .dm-script,
.dm-section-emerald .dm-title {
    color: #fff;
}

.dm-section-emerald .dm-subtitle,
.dm-section-emerald .dm-section-caption {
    color: rgba(255, 255, 255, 0.72);
}

.dm-section-emerald .dm-rule {
    background: linear-gradient(60deg, #7E5A3A 0%, #F7CB8B 100%);
}

/* —— Treatments —— */
.dm-treatments {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(25, 94, 95, 0.14);
}

.dm-treatment {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid rgba(25, 94, 95, 0.14);
    text-decoration: none;
    color: inherit;
    transition: padding-left .25s ease, background .25s ease;
}

.dm-treatment:hover {
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(247, 203, 139, 0.18), transparent 55%);
}

.dm-treatment-code {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #195E5F;
}

.dm-treatment-name {
    margin: 0 0 4px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    text-transform: uppercase;
    color: #195E5F;
}

.dm-treatment-text {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: #6b7c7c;
    max-width: 42em;
}

.dm-treatment-link {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #7E5A3A;
    white-space: nowrap;
}

/* —— Ritual strip —— */
.dm-ritual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.dm-ritual-item {
    padding: 36px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.dm-ritual-item:last-child {
    border-right: 0;
}

.dm-ritual-num {
    display: block;
    margin-bottom: 14px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 34px;
    color: #F7CB8B;
}

.dm-ritual-title {
    margin: 0 0 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
}

.dm-ritual-text {
    margin: 0;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

/* —— Closing CTA —— */
.dm-closing {
    text-align: center;
    padding: 120px 48px;
    background:
        radial-gradient(700px 320px at 50% 0%, rgba(247, 203, 139, 0.22), transparent 60%),
        #fff;
}

.dm-closing .dm-script {
    font-size: 48px;
}

.dm-closing .dm-title {
    font-size: clamp(42px, 6vw, 68px);
    margin-bottom: 10px;
}

.dm-closing .dm-subtitle {
    margin: 16px auto 28px;
}

.dm-closing .dm-rule {
    margin: 0 auto 18px;
}

/* —— Footer —— */
.dm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 28px 48px;
    background: #124849;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    text-transform: uppercase;
}

.dm-footer strong {
    color: #F7CB8B;
    font-weight: 400;
}

.dm-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.dm-footer a:hover {
    color: #F7CB8B;
}

/* —— Motion —— */
@keyframes dm-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dm-fade-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dm-pulse {

    0%,
    100% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.8;
    }
}

.dm-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}

.dm-reveal.is-in {
    opacity: 1;
    /* `none` (not translateY(0)) so the element leaves the compositor layer —
       lingering transforms cause soft/blurry glyphs on Windows. */
    transform: none;
}

@media (max-width: 900px) {

    .dm-topbar,
    .dm-landing-hero,
    .dm-section,
    .dm-closing,
    .dm-footer {
        padding-left: 22px;
        padding-right: 22px;
    }

    .dm-topbar-nav a:not(.dm-btn) {
        display: none;
    }

    .dm-landing-hero {
        align-items: center;
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .dm-landing-hero-mark {
        position: absolute;
        right: -8%;
        top: 18%;
        width: 70vw;
        opacity: 0.22;
        transform: none;
    }

    .dm-landing-scroll {
        display: none;
    }

    .dm-treatment {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dm-ritual {
        grid-template-columns: 1fr;
    }

    .dm-ritual-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .dm-footer {
        flex-direction: column;
        text-align: center;
    }
}