/* =====================================================
   Xpert Map & Contact – Public Styles
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700&family=Open+Sans:wght@300;400;500;600;700&family=Lato:wght@300;400;700&family=Montserrat:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

/* Prevents horizontal scroll from the .xmc-section breakout below without
   reserving scrollbar space, so 100vw stays equal to the content width. */
html {
    overflow-x: clip;
}

/* ==========================
   FULL-WIDTH BREAKOUT
   The theme (Betheme) renders this shortcode inside a normal content
   column that's narrower than .xmc-wrap's max-width — no max-width on
   .xmc-wrap itself can ever make it wider than that column allows. This
   escapes the column so .xmc-wrap can actually reach (and center within)
   its own max-width.
========================== */
.xmc-section {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    /* horizontal-only — breaking out of the column shouldn't change the
       vertical spacing the theme already gives this shortcode */
    padding: 0 60px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Wrapper */
.xmc-wrap {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
    width: 100% !important;
    max-width: 1600px !important;
    height: 518px;
    margin: 0 auto !important;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    overflow: hidden;
    background: transparent;
    font-family: sans-serif;
}

/* Left: Map — fills full height of wrapper.
   70/30 split with the boxes column: map takes 70%, right column 30%. */
.xmc-map {
    flex: 1 1 70%;
    width: auto;
    min-width: 0;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.xmc-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Right: boxes column — 30% of the wrapper width (map gets 70%);
   the 30px gutter to the map is set via .xmc-wrap's gap */
.xmc-boxes {
    flex: 1 1 30%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    gap: 10px;
    box-sizing: border-box;
    min-width: 0;
    height: 100%;
}

/* Individual box — grows equally to fill available height. */
.xmc-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    flex: 1 1 0;
    min-height: 0;
    border-radius: 20px;
    border: 1px solid #DDDDDD;
    background: #FFFFFF;
    box-sizing: border-box;
    overflow: hidden;
}

/* Text block inside box */
.xmc-box-text {
    position: absolute;
    left: 28px;
    top: 0;
    width: calc(100% - 110px);
}

.xmc-box-title {
    font-family: 'Syne', sans-serif !important;
    font-weight: 700;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: 0;
    color: #35B6FF;
    margin-bottom: 10px;
    white-space: nowrap;
}

.xmc-box .xmc-box-title {
    padding-top: 30px;
}

.xmc-box-desc {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 140%;
    letter-spacing: 0;
    color: #191919;
}

/* Clickable phone / email / address text inside a box */
.xmc-box-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.xmc-box-link:hover,
.xmc-box-link:focus {
    color: #b51b5a;
    text-decoration: none;
}

/* Icon block — touches top-right corner */
.xmc-box-icon {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-shrink: 0;
    overflow: hidden;
}

.xmc-box-icon svg {
    display: block;
}

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

/* Up to 1200px - Laptop */
@media (max-width: 1200px) {
    .xmc-wrap {
        height: auto;
        flex-direction: column;
        overflow: visible;
    }
    .xmc-map {
        flex: none;
        width: 100%;
        height: 380px;
        border-radius: 15px;
    }
    .xmc-boxes {
        width: 100%;
        height: auto;
        /* no side padding so boxes align flush with the map edges;
           top gap separates the map row from the content row (#4) */
        padding: 24px 0 0;
        gap: 12px;
    }
    /* stacked boxes already have their own top padding, so drop the extra
       desktop title top-space to keep the header tight (#3, mobile) */
    .xmc-box .xmc-box-title {
        padding-top: 0;
    }
    .xmc-box {
        width: 100%;
        flex: none;
        height: auto;
        min-height: 110px;
        overflow: visible;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 20px 16px;
    }
    .xmc-box-text {
        position: static;
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }
    .xmc-box-icon {
        position: static;
        flex-shrink: 0;
        margin-left: 16px;
        overflow: visible;
    }
}

/* Up to 768px - Tablet */
@media (max-width: 768px) {
    .xmc-section {
        padding: 0 24px !important;
    }
    .xmc-map {
        height: 280px;
    }
    .xmc-box-title {
        font-size: 18px;
    }
    .xmc-box-desc {
        font-size: 14px;
    }
    .xmc-box-icon svg {
        width: 44px;
        height: 60px;
    }
    .xmc-box {
        border-radius: 14px;
        min-height: 90px;
        padding: 16px 14px;
    }
}

/* Up to 480px - Mobile */
@media (max-width: 480px) {
    .xmc-section {
        padding: 0 16px !important;
    }
    .xmc-map {
        height: 220px;
        border-radius: 12px;
    }
    .xmc-box-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .xmc-box-desc {
        font-size: 13px;
    }
    .xmc-box-icon svg {
        width: 36px;
        height: 48px;
    }
    .xmc-box {
        padding: 14px 12px;
        min-height: 76px;
    }
}

/* =====================================================
   Scroll-reveal entrance — "Tilt-settle & cascade"  (premium, unique)
   `.xmc-reveal` is rendered server-side (hidden from first paint, no flicker);
   JS adds `.xmc-in` once the section is on screen — in EVERY state. The map
   settles up out of a soft 3D tilt + scale, and the three contact boxes cascade
   in one-by-one (rise + scale), staggered via each box's `--xmc-i`. Opacity +
   transform only — no filter/blur (safe for the bordered boxes) and no changes
   to the iframe internals. The wrapper's own `overflow: hidden` clips the
   motion, so there is no layout shift or horizontal scroll.
   ===================================================== */
.xmc-reveal .xmc-map,
.xmc-reveal .xmc-box {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Map settles up out of a gentle 3D tilt + scale. */
.xmc-reveal .xmc-map {
    transform: perspective(1400px) rotateX(7deg) translateY(34px) scale(0.94);
    transform-origin: 50% 100%;
    transition-delay: 0.05s;
}

/* Contact boxes cascade in one-by-one (rise + scale), staggered per box. */
.xmc-reveal .xmc-box {
    transform: translateY(34px) scale(0.96);
    transition-delay: calc(0.25s + (var(--xmc-i, 0) * 0.13s));
}

/* Revealed resting state — back to the original (untransformed) layout. */
.xmc-reveal.xmc-in .xmc-map,
.xmc-reveal.xmc-in .xmc-box {
    opacity: 1;
    transform: none;
}

/* Reduced-motion: never hide or move anything. */
@media (prefers-reduced-motion: reduce) {
    .xmc-reveal .xmc-map,
    .xmc-reveal .xmc-box {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
