/* ============================================================
   Application House — About Us Preview
   Brand tokens + components + layout
   ============================================================ */

/* ---------- Section stripes ---------- */
/* Grey and white follow the position on the page, so the stripes survive
   reordering. Sections with their own colour keep it. */
.page-about > .section:not(.section--blue):not(.section--blue-tint):nth-of-type(odd) {
    background: #fff;
}
.page-about > .section:not(.section--blue):not(.section--blue-tint):nth-of-type(even) {
    background: var(--c-bg-soft);
}

/* ---------- "One-Stop Salesforce Solution" full-bleed split band ---------- */
.one-stop {
    display: grid;
    grid-template-columns: 45% 55%;
    align-items: stretch;
}
.one-stop__media {
    background: var(--ah-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 2.5vw, 40px);
}
.one-stop__media .video-facade {
    width: 100%;
    max-width: 750px;
}
.one-stop__content {
    background: var(--ah-blue);
    color: #fff;
    display: flex;
    align-items: center;
    padding: clamp(32px, 5vw, 72px);
}
.one-stop__content h2 {
    color: #fff;
}
.one-stop__content h2 .accent-pink {
    color: var(--ah-pink);
}
.one-stop__content p {
    color: rgba(255, 255, 255, 0.92);
}

.one-stop__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-6);
    margin-top: var(--sp-6);
}
.contact-row {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.contact-row__icon {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-row__icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}
.contact-row__label {
    font-weight: 700;
    line-height: 1.2;
}
.contact-row__value a {
    color: #fff;
    text-decoration: none;
}
.contact-row__value a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .one-stop { grid-template-columns: 1fr; }
}

/* ---------- Click-to-play video facade (navy when the video has no poster) ---------- */
.video-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--ah-navy);
    box-shadow: var(--shadow-md);
}
.video-facade__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-facade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(38, 34, 98, 0.18);
    transition: opacity 0.18s ease;
    pointer-events: none;
}
.video-facade:hover::after { opacity: 0.55; }
.video-facade__play {
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 2;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--ah-blue);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.18s ease, background 0.18s ease;
}
.video-facade__play svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    margin-left: 3px; /* optically centre the triangle */
}
.video-facade:hover .video-facade__play { transform: scale(1.08); }

/* Video facade used as a card thumbnail (Featured Youtube Videos) */
.video-card .video-facade {
    box-shadow: none;
    margin-bottom: var(--sp-4);
}
.video-card .video-facade__play {
    width: 60px;
    height: 60px;
}
.video-card .video-facade__play svg {
    width: 26px;
    height: 26px;
}

/* ---------- Video modal (lightbox) ---------- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-5);
    background: rgba(15, 13, 40, 0.82);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.video-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.video-modal__dialog {
    position: relative;
    width: min(960px, 100%);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    transform: scale(0.96);
    transition: transform 0.2s ease;
}
.video-modal.is-open .video-modal__dialog {
    transform: scale(1);
}
.video-modal__dialog iframe,
.video-modal__dialog video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--r-lg);
}
.video-modal__close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--ah-navy);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}
.video-modal__close:hover {
    background: var(--ah-grey);
}
@media (max-width: 600px) {
    .video-modal__close { top: 8px; right: 8px; background: rgba(0, 0, 0, 0.6); color: #fff; }
}

/* ---------- Global Footprint map and Featured Videos row (template-parts/sections/about.php) ---------- */
.logo-placeholder.footprint-map { aspect-ratio: 21 / 9; }
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}
