/* ============================================================
   RSC — Contact Address Widget
   Design: sticky-scroll full-screen sections with
           glassmorphism content card (matches ranosys-contact demo)
   BEM prefix: rsc-ca-
============================================================ */

/* ── Outer widget — base font matches Ranosys body ── */
.rsc-ca-widget {
    font-family: "source-sans-pro", sans-serif;
    line-height: 1;
}

/* ── Offices wrapper — scroll container ── */
.rsc-ca-offices-wrapper {
    position: relative;
}

/* ── Dot navigation (fixed to viewport right edge, vertically centred)
      JS moves this element to <body> on init to avoid Elementor
      ancestor transform breaking position:fixed.
      JS sets opacity:1 / pointer-events:auto when widget is in view.
── */
.rsc-ca-dot-nav {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;              /* hidden until widget scrolls into view */
    pointer-events: none;
    transition: opacity 0.3s;
}

.rsc-ca-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.rsc-ca-dot.is-active,
.rsc-ca-dot:hover {
    background: #e01e24;
    border-color: #e01e24;
    transform: scale(1.45);
}

/* ── Individual section ── */
.rsc-ca-section {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.rsc-ca-section:last-child {
    position: relative;    /* last section scrolls away normally */
}

/* ── Background image ── */
.rsc-ca-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.rsc-ca-bg-placeholder {
    background-color: #2a2a2a;
}

/* ── Dark gradient overlay (matches HTML demo .slide-overlay) ── */
.rsc-ca-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.38) 0%,
        rgba(0, 0, 0, 0.10) 30%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

/* ── Content container — card top-aligned, left-aligned ── */
.rsc-ca-container {
    position: relative;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* ── Glassmorphism content card ── */
.rsc-ca-content-card {
    max-width: 600px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    border-radius: 12px;
    padding: 40px 48px;
    margin-bottom: 0;
    transition: transform 0.1s ease-out;
}

/* ── Meta row: region pill + weather inline ── */
.rsc-ca-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/* Region pill — red badge (Poppins matches site's uppercase label style) */
.rsc-ca-region-pill {
    background: #e01e24;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 12px 5px;
    border-radius: 4px;
    line-height: 1.6;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Weather row: [🌡icon] temp | [🕐icon] time TZ */
.rsc-ca-weather {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-family: "source-sans-pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Inline SVG thermometer + clock icons */
.rsc-ca-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.70);
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.rsc-ca-temp-val,
.rsc-ca-time-val {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.rsc-ca-tz {
    font-family: "source-sans-pro", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.06em;
    margin-left: 2px;
}

.rsc-ca-weather-sep {
    color: rgba(255, 255, 255, 0.28);
    font-weight: 300;
    font-size: 16px;
    margin: 0 2px;
}

/* ── City name — Poppins matches site h2 style ── */
.rsc-ca-city {
    font-family: "Poppins", sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin: 6px 0 0;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Red divider line ── */
.rsc-ca-divider {
    width: 48px;
    height: 2px;
    background: #e01e24;
    margin: 20px 0;
    border: none;
}

/* ── Info grid: Address | Contact ── */
.rsc-ca-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

/* Uppercase section label — Poppins matches site's category label style */
.rsc-ca-info-label {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    margin: 0 0 6px;
    line-height: 1;
}

/* Address — Source Sans Pro matches site body/paragraph style */
.rsc-ca-address {
    font-family: "source-sans-pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    font-style: normal;
    margin: 0;
}

/* Company name — Poppins for branded name, semi-bold */
.rsc-ca-company {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    margin: 0 0 5px;
}

/* Phone — Source Sans Pro, body weight */
.rsc-ca-phone {
    font-family: "source-sans-pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

.rsc-ca-phone a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s;
}

.rsc-ca-phone a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .rsc-ca-container {
        padding: 70px 28px 0;
    }

    .rsc-ca-content-card {
        padding: 32px 36px;
    }

    .rsc-ca-city {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .rsc-ca-container {
        padding: 60px 20px 0;
    }

    .rsc-ca-content-card {
        max-width: 100%;
        padding: 24px 22px;
    }

    .rsc-ca-city {
        font-size: 32px;
    }

    .rsc-ca-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rsc-ca-dot-nav {
        right: 14px;
    }

    .rsc-ca-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .rsc-ca-city {
        font-size: 26px;
    }

    .rsc-ca-content-card {
        padding: 20px 18px;
    }
}
