/* =============================================================
   Candor Property — Homepage Commercial Banner
   Imports existing homepage styles; new rules are isolated to
   the commercial promo section only.
============================================================== */
@import url('./home.css');

.cp-home-commercial {
    background: #ffffff;
    font-family: 'Manrope', sans-serif;
}

.cp-home-commercial-banner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 390px;
    overflow: hidden;
    border-radius: 6px;
    isolation: isolate;
    background: #302d67;
    text-align: center;
}

.cp-home-commercial-media,
.cp-home-commercial-overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.cp-home-commercial-media { z-index: -2; }
.cp-home-commercial-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
}

.cp-home-commercial-overlay {
    z-index: -1;
    background: linear-gradient(110deg,
        rgba(23, 23, 59, .77) 0%,
        rgba(27, 27, 64, .69) 54%,
        rgba(28, 29, 64, .69) 100%);
}

.cp-home-commercial-inner {
    width: 100%;
    max-width: 840px;
    padding: 55px 34px;
    color: #ffffff;
}

.cp-home-commercial-eyebrow {
    color: #dfd2c0;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.cp-home-commercial-title {
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1.85rem, 3.0vw, 2.65rem);
    letter-spacing: -.035em;
    line-height: 1.16;
}

.cp-home-commercial-intro {
    max-width: 670px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.cp-home-commercial-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 22px;
}

.cp-home-commercial-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    background: #ffffff;
    color: #302d67;
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cp-home-commercial-button:hover,
.cp-home-commercial-button:focus-visible {
    border-color: #e1d7ca;
    background: #e1d7ca;
    color: #302d67;
    text-decoration: none;
}
.cp-home-commercial-arrow { margin-left: 10px; font-size: 1.2em; line-height: 1; }

.cp-home-commercial-secondary {
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
}
.cp-home-commercial-secondary:hover,
.cp-home-commercial-secondary:focus-visible {
    border-color: #ffffff;
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .cp-home-commercial-banner { min-height: 420px; }
    .cp-home-commercial-inner { padding: 54px 27px; }
    .cp-home-commercial-title { font-size: 2rem; }
    .cp-home-commercial-intro { font-size: 1.05rem; }
}

@media (max-width: 575.98px) {
    .cp-home-commercial { padding-top: 36px !important; padding-bottom: 36px !important; }
    .cp-home-commercial-banner { min-height: 440px; }
    .cp-home-commercial-inner { padding: 44px 23px; }
    .cp-home-commercial-title { font-size: 1.75rem; }
    .cp-home-commercial-eyebrow { font-size: .67rem; }
    .cp-home-commercial-actions { flex-direction: column; gap: 12px; }
    .cp-home-commercial-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .cp-home-commercial-button { transition: none; }
}


/* =============================================================
   COMMERCIAL BANNER — OUTLINE BUTTON CONTRAST FIX
   Keep second CTA transparent with readable white type on all states.
   Scoped selectors override the shared button styles safely.
============================================================= */
.cp-home-commercial .cp-home-commercial-actions a.btn.cp-home-commercial-secondary,
.cp-home-commercial .cp-home-commercial-actions a.btn.cp-home-commercial-secondary:link,
.cp-home-commercial .cp-home-commercial-actions a.btn.cp-home-commercial-secondary:visited {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff;
    text-decoration: none;
}

.cp-home-commercial .cp-home-commercial-actions a.btn.cp-home-commercial-secondary:hover,
.cp-home-commercial .cp-home-commercial-actions a.btn.cp-home-commercial-secondary:focus,
.cp-home-commercial .cp-home-commercial-actions a.btn.cp-home-commercial-secondary:focus-visible {
    background-color: rgba(255, 255, 255, .16) !important;
    color: #ffffff !important;
    border-color: #ffffff;
    text-decoration: none;
}
