/**
 * File: /public_html/assets/css/contact.css
 * Purpose: Contact page styling.
 * Dependencies: /assets/css/main.css.
 * Credit: Designed inhouse by The Taino Resource Group LLC.
 */

.contact-page {
    min-height: 100vh;
}

.contact-hero {
    padding-top: clamp(72px, 10vw, 140px);
    padding-bottom: clamp(50px, 8vw, 96px);
}

.contact-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(30px, 6vw, 72px);
    align-items: center;
}

.contact-hero__copy {
    display: grid;
    gap: clamp(18px, 2.4vw, 26px);
    max-width: 760px;
}

.contact-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 8vw, 7.2rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
    max-width: 10.8ch;
}

.contact-hero__lead {
    margin: 0;
    color: var(--rtr-muted);
    font-size: clamp(1.04rem, 1.45vw, 1.2rem);
    line-height: 1.7;
    max-width: 62ch;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 8px;
}

.contact-card {
    display: grid;
    gap: 8px;
    min-height: 112px;
    align-content: center;
    border: 1px solid var(--rtr-line);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(247, 244, 236, 0.075), rgba(247, 244, 236, 0.025)),
        rgba(3, 7, 13, 0.3);
    padding: 22px;
    color: var(--rtr-white);
    text-decoration: none;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-card span {
    color: var(--rtr-gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    font-weight: 850;
}

.contact-card strong {
    font-size: clamp(1.05rem, 1.8vw, 1.45rem);
    line-height: 1.2;
}

.contact-card:hover,
.contact-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(216, 185, 53, 0.48);
    outline: none;
}

.contact-card--primary {
    background:
        linear-gradient(135deg, rgba(216, 185, 53, 0.22), rgba(247, 244, 236, 0.04)),
        rgba(3, 7, 13, 0.34);
}

.contact-profile {
    position: relative;
    min-height: clamp(520px, 56vw, 720px);
    overflow: hidden;
    border: 1px solid var(--rtr-line);
    border-radius: calc(var(--rtr-radius) + 18px);
    background:
        radial-gradient(circle at 78% 18%, rgba(200, 16, 46, 0.18), transparent 24rem),
        radial-gradient(circle at 18% 24%, rgba(216, 185, 53, 0.14), transparent 22rem),
        linear-gradient(135deg, rgba(247, 244, 236, 0.07), rgba(247, 244, 236, 0.025));
    box-shadow: var(--rtr-shadow);
    isolation: isolate;
}

.contact-profile::before {
    content: "";
    position: absolute;
    inset: clamp(18px, 3vw, 32px);
    z-index: 1;
    border: 1px solid rgba(216, 185, 53, 0.35);
    border-radius: calc(var(--rtr-radius) + 8px);
    pointer-events: none;
}

.contact-profile::after {
    content: "RTR";
    position: absolute;
    left: -0.08em;
    bottom: -0.18em;
    z-index: 0;
    color: rgba(255, 255, 255, 0.035);
    font-size: clamp(12rem, 24vw, 24rem);
    line-height: 0.8;
    letter-spacing: -0.12em;
    font-weight: 950;
    pointer-events: none;
}

.contact-profile__photo {
    position: absolute;
    right: clamp(8px, 3vw, 42px);
    bottom: 0;
    width: min(430px, 72%);
    height: calc(100% - clamp(28px, 5vw, 54px));
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}

.contact-profile__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center bottom;
    max-width: none;
    filter: drop-shadow(0 36px 76px rgba(0, 0, 0, 0.48));
}

.contact-profile__panel {
    position: absolute;
    left: clamp(20px, 3vw, 32px);
    right: clamp(20px, 3vw, 32px);
    bottom: clamp(20px, 3vw, 32px);
    z-index: 4;
    width: min(420px, calc(100% - 40px));
    border: 1px solid var(--rtr-line);
    background: rgba(3, 7, 13, 0.78);
    backdrop-filter: blur(16px);
    padding: clamp(20px, 3vw, 28px);
}

.contact-profile__panel h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.9;
}

.contact-profile__panel p:not(.eyebrow) {
    margin: 12px 0 0;
    color: var(--rtr-muted);
    line-height: 1.5;
}

.contact-details {
    padding-top: 0;
    padding-bottom: clamp(64px, 10vw, 132px);
}

.contact-details__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.detail-panel {
    border: 1px solid var(--rtr-line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(247, 244, 236, 0.065), rgba(247, 244, 236, 0.025)),
        rgba(3, 7, 13, 0.28);
    padding: clamp(24px, 4vw, 38px);
}

.detail-panel h2 {
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3.2vw, 3.15rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.detail-panel p {
    color: var(--rtr-muted);
    line-height: 1.7;
}

.detail-panel dl {
    display: grid;
    gap: 16px;
    margin: 0;
}

.detail-panel div {
    display: grid;
    gap: 5px;
    border-top: 1px solid rgba(247, 244, 236, 0.09);
    padding-top: 14px;
}

.detail-panel dt {
    color: var(--rtr-gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.66rem;
    font-weight: 850;
}

.detail-panel dd {
    margin: 0;
    color: var(--rtr-white);
    line-height: 1.45;
}

.detail-panel a {
    color: var(--rtr-white);
    text-decoration: none;
}

.detail-panel a:hover,
.detail-panel a:focus-visible {
    color: var(--rtr-gold);
    outline: none;
}

.fine-print {
    margin-top: 22px;
    color: var(--rtr-muted);
    font-size: 0.92rem;
}

@media (min-width: 760px) {
    .contact-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .detail-panel--wide {
        grid-column: 1 / -1;
    }
}

@media (min-width: 980px) {
    .contact-hero__grid {
        grid-template-columns: minmax(0, 0.94fr) minmax(430px, 0.86fr);
    }

    .contact-actions {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

@media (min-width: 1180px) {
    .contact-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: none;
    }

    .contact-hero__grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(500px, 0.82fr);
    }
}

@media (max-width: 620px) {
    .contact-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.6rem);
    }

    .contact-profile {
        min-height: 560px;
    }

   .contact-profile__photo {
    right: 50%;
    transform: translateX(50%);
    width: min(340px, 82%);
    height: 76%;
}

.contact-profile__photo img {
    width: 100%;
    height: 100%;
}

    .contact-profile__panel {
        left: 18px;
        right: 18px;
        bottom: 18px;
        width: auto;
    }
}

/* Contact card overflow control */
.contact-actions,
.contact-card {
    min-width: 0;
}

.contact-card strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Contact page: match homepage Rosaura photo layout */
.contact-profile {
    min-height: clamp(520px, 42vw, 680px);
}

.contact-profile__photo {
    position: absolute;
    right: clamp(0px, 2vw, 24px);
    bottom: 0;
    width: min(440px, 66%);
    height: calc(100% - 18px);
    z-index: 2;
    overflow: visible;
    pointer-events: none;
    transform: none;
}

.contact-profile__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: right bottom;
    max-width: none;
    filter: drop-shadow(0 34px 62px rgba(0, 0, 0, 0.42));
}

.contact-profile__panel {
    left: clamp(20px, 3vw, 36px);
    right: auto;
    bottom: clamp(20px, 3vw, 36px);
    width: min(330px, 52%);
    padding: clamp(18px, 2.4vw, 24px);
    background: rgba(3, 7, 13, 0.82);
}

.contact-actions,
.contact-card {
    min-width: 0;
}

.contact-card strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 900px) {
    .contact-profile {
        min-height: 600px;
    }

    .contact-profile__photo {
        right: 50%;
        transform: translateX(50%);
        width: min(380px, 78%);
        height: 78%;
    }

    .contact-profile__panel {
        left: 20px;
        right: 20px;
        bottom: 20px;
        width: auto;
        max-width: 420px;
    }
}

@media (max-width: 520px) {
    .contact-profile {
        min-height: 560px;
    }

    .contact-profile__photo {
        width: min(320px, 84%);
        height: 70%;
    }
}


/* Contact page: bottom-align Rosaura and enlarge portrait */
.contact-profile__photo {
    right: clamp(-80px, -4vw, -24px);
    bottom: 0;
    width: min(660px, 99%);
    height: calc(100% - 6px);
    transform: none;
}

.contact-profile__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

/* Contact page: refine profile plate after enlarged portrait */
.contact-profile__panel {
    width: min(300px, 42%);
    left: clamp(22px, 3vw, 34px);
    bottom: clamp(22px, 3vw, 34px);
}

.contact-profile__panel h2 {
    font-size: clamp(1.9rem, 3vw, 2.75rem);
}

.contact-profile__panel p:not(.eyebrow) {
    font-size: 0.9rem;
}

/* Contact page: reuse homepage Rosaura visual component */
.contact-rosaura-visual {
    margin: 0;
    min-height: clamp(520px, 42vw, 680px);
}

.contact-rosaura-visual.home-rosaura-feature__visual {
    align-self: center;
}

.contact-actions,
.contact-card {
    min-width: 0;
}

.contact-card strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Contact page: controlled Rosaura portrait layout */
.contact-profile {
    min-height: clamp(520px, 42vw, 680px);
}

.contact-profile::before {
    inset: auto;
    right: clamp(18px, 4vw, 48px);
    top: clamp(22px, 4vw, 42px);
    width: min(340px, 60%);
    height: calc(100% - clamp(48px, 8vw, 84px));
    opacity: 0.8;
}

.contact-profile__photo {
    position: absolute;
    right: clamp(-80px, -4vw, -24px);
    bottom: 0;
    width: min(660px, 99%);
    height: 100%;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
    transform: none;
}

.contact-profile__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: right bottom;
    max-width: none;
    filter: drop-shadow(0 34px 62px rgba(0, 0, 0, 0.42));
}

.contact-profile__panel {
    left: clamp(20px, 3vw, 36px);
    right: auto;
    bottom: clamp(20px, 3vw, 36px);
    width: min(330px, 52%);
    padding: clamp(18px, 2.4vw, 24px);
    background: rgba(3, 7, 13, 0.82);
}

.contact-actions,
.contact-card {
    min-width: 0;
}

.contact-card strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Contact page: final portrait visual refinement */
.contact-profile__photo {
    right: -90px;
    bottom: 0;
    width: min(760px, 112%);
    height: 100%;
}

.contact-profile__panel {
    bottom: 18px;
}

/* Contact page: final fine-tuning */
.contact-profile__photo {
    right: -105px;
    width: min(800px, 118%);
}

.contact-profile__panel {
    width: min(290px, 42%);
}

/* Contact page: final portrait anchor and softer name plate */
.contact-profile__photo {
    right: -105px;
    bottom: 18px;
    width: min(800px, 118%);
    height: calc(100% - 18px);
}

.contact-profile__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

.contact-profile__panel {
    bottom: 18px;
    width: min(290px, 42%);
    border-radius: 28px 28px 28px 10px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .contact-profile__photo {
        right: -72px;
        bottom: 18px;
        width: min(720px, 116%);
        height: calc(100% - 18px);
    }

    .contact-profile__panel {
        border-radius: 24px 24px 24px 10px;
    }
}

@media (max-width: 520px) {
    .contact-profile__photo {
        right: -46px;
        bottom: 18px;
        width: min(560px, 112%);
        height: calc(100% - 18px);
    }

    .contact-profile__panel {
        left: 18px;
        bottom: 18px;
        width: min(178px, 46%);
        border-radius: 22px 22px 22px 8px;
    }
}

/* Contact page email fit */
.contact-card[href="mailto:rosaura@rtrnextgen.com"] {
    min-width: 0;
}

.contact-card[href="mailto:rosaura@rtrnextgen.com"] strong {
    display: block;
    max-width: 100%;
    font-size: clamp(0.88rem, 0.95vw, 1rem);
    line-height: 1.16;
    overflow-wrap: anywhere;
    word-break: normal;
}

.contact-info a[href="mailto:rosaura@rtrnextgen.com"],
.contact-panel a[href="mailto:rosaura@rtrnextgen.com"],
.contact-grid a[href="mailto:rosaura@rtrnextgen.com"] {
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 760px) {
    .contact-card[href="mailto:rosaura@rtrnextgen.com"] strong {
        font-size: 0.96rem;
    }
}

/* Contact page email fit */
.contact-actions .contact-card[href^="mailto:"] strong {
    font-size: 0.92em;
}
