/* ==========================================================================
   DMC Peru: partner-focused editorial landing page
   ========================================================================== */

/* The page preserves the established light canvas while giving B2B copy a calm reading tone. */
.dmc-page {
    background-color: #ffffff;
    color: var(--welcome-copy);
}

/* Browser-level selection stays inside the project’s red and white identity. */
.dmc-page ::selection {
    background-color: var(--welcome-red);
    color: #ffffff;
}

/* The shared hero uses the same first-viewport proportion as the current editorial templates. */
.dmc-page .tour-category-hero {
    height: clamp(620px, calc(100svh - 69px), 780px);
    min-height: 620px;
    padding-top: 0;
}

/* Hero images keep their subject centered across the three supplied Peru crops. */
.dmc-page .tour-category-hero-image {
    object-position: center;
}

/* The DMC statement remains readable beside the award mark without consuming the image. */
.dmc-page .tour-category-hero-title {
    max-width: 14ch;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(2.4rem, 5.4vw, 4.65rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.98;
    text-wrap: balance;
}

/* The sticky navigation remains centered on wide screens and scrollable on small screens. */
.dmc-nav .welcome-nav-list {
    justify-content: center;
}

/* Shared section anchors clear the sticky page navigation when visited. */
.dmc-intro,
.dmc-reasons,
.dmc-experiences,
.dmc-planning-anchor {
    scroll-margin-top: 58px;
}

/* ==========================================================================
   Local partner introduction
   ========================================================================== */

/* The opening section pairs a concise partner proposition with decisive destination photography. */
.dmc-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

/* Copy remains within a comfortable editorial measure. */
.dmc-intro-copy {
    max-width: 660px;
}

/* The visual column groups the photograph and operating scope without creating a nested card. */
.dmc-intro-visual {
    min-width: 0;
}

/* Intro photography carries the emotional proof with a restrained caption at its base. */
.dmc-intro-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 7px;
    background-color: var(--welcome-soft);
}

/* The landscape crop stays substantial without overwhelming the text column. */
.dmc-intro-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* The caption is anchored to the image with solid ink rather than decorative glass. */
.dmc-intro-media figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0.8rem 1rem;
    border-radius: 7px 0 0 0;
    background-color: var(--welcome-ink);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* Scope statements use a shared horizontal rule instead of boxed statistics. */
.dmc-scope-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
    margin: 1.5rem 0 0;
    border-top: 1px solid var(--welcome-line);
    list-style: none;
}

/* Each scope item presents one operational quality in a compact reading group. */
.dmc-scope-list li {
    padding: 1.15rem 1rem 0 0;
}

/* Scope headings use the established ink hierarchy. */
.dmc-scope-list strong {
    display: block;
    color: var(--welcome-ink);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* Scope descriptions stay quieter but remain legible. */
.dmc-scope-list span {
    display: block;
    margin-top: 0.35rem;
    color: #686868;
    font-size: 0.8rem;
    line-height: 1.45;
}

/* ==========================================================================
   Partnership reasons ledger
   ========================================================================== */

/* The dark ledger creates the page’s strongest contrast change and separates operating proof from introduction. */
.dmc-reasons {
    background-color: var(--welcome-ink);
    color: #ffffff;
}

/* The section statement is intentionally narrower than the full ledger below. */
.dmc-reasons-heading {
    max-width: 900px;
}

/* Reasons form two reading columns with shared rules rather than six interchangeable cards. */
.dmc-reasons-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(2rem, 6vw, 6rem);
}

/* Each commitment uses a top rule, generous spacing and no left-side accent border. */
.dmc-reason {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 1.1rem;
    padding: clamp(1.8rem, 3vw, 2.7rem) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Icons provide quick wayfinding within the ledger using the single brand accent. */
.dmc-reason-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background-color: var(--welcome-red);
    color: #ffffff;
    font-size: 1rem;
}

/* Reason titles carry the operational promise with compact display typography. */
.dmc-reason h3 {
    margin: 0;
    color: #ffffff;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 500;
    line-height: 1.14;
}

/* Reason descriptions use a warm white tint to preserve contrast on ink. */
.dmc-reason p {
    max-width: 58ch;
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.98rem;
    line-height: 1.75;
}

/* ==========================================================================
   Experience-family cards
   ========================================================================== */

/* The experience collection sits on warm paper to distinguish selection from operational proof. */
.dmc-experiences {
    background-color: var(--welcome-warm);
}

/* The centered section heading introduces the three journey families. */
.dmc-experiences-heading .welcome-section-heading {
    margin-right: auto;
    margin-left: auto;
}

/* Three equal columns give every experience family the same visual priority. */
.dmc-experience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.4vw, 2rem);
}

/* Cards use one neutral outline and the universal 7px corner treatment. */
.dmc-experience-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--welcome-line);
    border-radius: 7px;
    background-color: #ffffff;
}

/* Every media link uses the same landscape frame and clips linked image motion. */
.dmc-experience-media {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background-color: var(--welcome-soft);
}

/* Images fill the shared frame independently of each source asset's dimensions. */
.dmc-experience-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Image movement signals that the media is linked without moving surrounding content. */
.dmc-experience-card:hover .dmc-experience-media img,
.dmc-experience-card:focus-within .dmc-experience-media img {
    transform: scale(1.035);
}

/* Card copy uses consistent internal spacing across all three compositions. */
.dmc-experience-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* Experience titles keep the display face and a readable two-line measure. */
.dmc-experience-body h3 {
    max-width: 19ch;
    margin: 0;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(1.6rem, 2.7vw, 2.45rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.04;
    text-wrap: balance;
}

/* Linked card titles inherit the ink hierarchy and receive a clear focus state. */
.dmc-experience-body h3 a {
    color: var(--welcome-ink);
    text-decoration: none;
}

/* Supporting copy remains concise and comfortable for scanning. */
.dmc-experience-body > p {
    max-width: 60ch;
    margin: 1rem 0 0;
    color: var(--welcome-copy);
    font-size: 1rem;
    line-height: 1.72;
}

/* Example journeys are listed directly without secondary card containers. */
.dmc-experience-body ul {
    display: grid;
    gap: 0.65rem;
    padding: 0;
    margin: 1.35rem 0 1.8rem;
    list-style: none;
}

/* Each example aligns a brand check with one factual travel category. */
.dmc-experience-body li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #4b4b4b;
    font-size: 0.93rem;
    line-height: 1.5;
}

/* Check icons use the sole accent color and stay aligned with the first text line. */
.dmc-experience-body li i {
    margin-top: 0.22rem;
    color: var(--welcome-red);
    font-size: 0.72rem;
}

/* The final link anchors every card with an explicit next action. */
.dmc-page .dmc-experience-link {
    display: inline-flex;
    width: fit-content;
    min-height: 48px;
    align-items: center;
    gap: 0.7rem;
    justify-content: center;
    padding: 0.75rem 1.2rem;
    margin-top: auto;
    border-radius: 7px;
    background-color: var(--welcome-red);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: background-color 180ms ease, transform 180ms ease;
}

/* Button hover deepens the single accent and adds a small directional lift. */
.dmc-page .dmc-experience-link:hover {
    background-color: var(--welcome-red-deep);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Link arrows move horizontally to reinforce the next-step direction. */
.dmc-page .dmc-experience-link:hover i {
    transform: translateX(3px);
}

/* Arrow motion is separated so the icon never inherits the button’s vertical transform. */
.dmc-page .dmc-experience-link i {
    transition: transform 180ms ease;
}

/* The planning anchor itself adds no visual wrapper around the reusable closing CTA. */
.dmc-planning-anchor {
    display: block;
}

/* DMC footer quote overrides improve contrast without changing the shared footer elsewhere. */
.dmc-peru-body .footer-partners-quote-main {
    color: #595959;
}

/* The supporting certification line remains secondary while meeting readable contrast. */
.dmc-peru-body .footer-partners-quote-sub {
    color: #666666;
}

/* ==========================================================================
   Responsive composition
   ========================================================================== */

/* Tablet layouts stack the introduction and the three equal experience cards. */
@media (max-width: 991.98px) {
    .dmc-intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .dmc-intro-copy {
        max-width: 760px;
    }

    .dmc-reasons-list {
        gap: 0 2rem;
    }

    .dmc-experience-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Compact screens turn every major composition into a single readable column. */
@media (max-width: 767.98px) {
    .dmc-page .tour-category-hero {
        height: 700px;
        min-height: 700px;
    }

    .dmc-page .tour-category-hero-title {
        max-width: 12ch;
        font-size: clamp(2.15rem, 11vw, 3.35rem);
    }

    .dmc-nav .welcome-nav-list {
        justify-content: flex-start;
    }

    .dmc-scope-list,
    .dmc-reasons-list {
        grid-template-columns: 1fr 1fr;
    }

}

/* Phone layouts keep scope and proof items full width for comfortable reading. */
@media (max-width: 575.98px) {
    /* Four section labels remain visible at once instead of requiring discovery by horizontal scroll. */
    .dmc-nav .welcome-nav-list {
        gap: 0.55rem;
    }

    /* Compact labels preserve the shared uppercase navigation treatment within a phone viewport. */
    .dmc-nav .welcome-nav-link {
        font-size: 0.68rem;
        letter-spacing: 0.01em;
    }

    .dmc-scope-list,
    .dmc-reasons-list {
        grid-template-columns: 1fr;
    }

    .dmc-scope-list li {
        padding-right: 0;
        padding-bottom: 0.9rem;
    }

    .dmc-reason {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 0.9rem;
    }

    .dmc-reason-icon {
        width: 38px;
        height: 38px;
    }

}

/* Reduced-motion visitors keep every state without image or control movement. */
@media (prefers-reduced-motion: reduce) {
    .dmc-experience-media img,
    .dmc-experience-link,
    .dmc-experience-link i {
        transition: none;
    }

    .dmc-experience-card:hover .dmc-experience-media img,
    .dmc-experience-card:focus-within .dmc-experience-media img,
    .dmc-experience-link:hover,
    .dmc-experience-link:hover i {
        transform: none;
    }
}
