/* ═══════════════════════════════════════════════════
   Allan Domb — V1 Video Header
   ═══════════════════════════════════════════════════ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #00aeef;
    --blue-light: #00aeef;
    --blue-pale: #00aeef;
    --ink: #111;
    --ink-50: rgba(17, 17, 17, 0.5);
    --ink-25: rgba(17, 17, 17, 0.5);
    --ink-08: rgba(17, 17, 17, 0.08);
}

html {
    font-family: 'proxima-nova', sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    position: relative;
    background: #FFF;
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--blue);
    color: #fff;
}

/* ── Layout Shell ────────────────────────────── */
.app-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ── Navbar ──────────────────────────────────── */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 2rem;
    z-index: 20;
}

.navbar .inner {
    max-width: 1400px;
    margin: 0 auto;
}

.brand {
    display: inline-block;
    filter: brightness(0) invert(1);
}

.brand img {
    height: 100px;
    display: block;
}

/* ── Hero: Full-width Video Header ───────────── */
.hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.4) 70%,
            rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
}

/* ── Hero Play Button ────────────────────────── */
.hero-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    --size: 100px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(.2, .8, .2, 1),
        background 0.35s,
        border-color 0.35s,
        box-shadow 0.35s;
    animation: pulse 3s ease-in-out infinite;
}

.hero-play-btn svg {
    width: 38px;
    height: 38px;
    margin-left: 5px;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}

.hero-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(255, 255, 255, 0.92);
    border-color: #fff;
    color: var(--ink);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.hero-play-btn:hover svg {
    filter: none;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 22px rgba(255, 255, 255, 0);
    }
}

@media (min-width: 768px) {
    .hero-play-btn {
        --size: 120px;
    }

    .hero-play-btn svg {
        width: 46px;
        height: 46px;
    }
}

/* ── Hero Overlaid Text ──────────────────────── */
.hero-text {
    position: relative;
    z-index: 5;
    padding: 6rem 4rem 4rem 2rem;
    max-width: 540px;
    margin-right: 5%;
}

.hero-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #FFF;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: "bigcity-grotesque-pro", serif;
    font-weight: 800;
    font-size: clamp(3rem, 6vw, 2rem);
    line-height: 0.95;
    line-height: 1;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-title span {
    font-weight: 100;
    color: var(--blue);
}

.hero-description {
    font-size: 0.92rem;
    line-height: 1.75;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    max-width: 22rem;
    margin-bottom: 2.5rem;
}

/* ── CTA Button (on hero — light variant) ────── */
.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.8rem;
    border: 1.5px solid var(--blue);
    border-radius: 100px;
    background: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    transition: background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.35s, border-color 0.35s;
}

.explore-btn:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.arrow-icon {
    transition: transform 0.3s;
}

.explore-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* ── Video Modal ─────────────────────────────── */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
}

.video-modal.is-open .video-modal-content {
    transform: scale(1);
}

.video-modal-player {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: #000;
    object-fit: contain;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.25s;
}

.video-modal-close:hover {
    opacity: 1;
}

/* ── Vignette ────────────────────────────────── */
#vignette {
    position: relative;
    width: 90%;
    max-width: 850px;
    margin: -12rem auto 0;
    opacity: 0.8;
}

@media (max-width: 768px) {
    #vignette {
        margin: -4rem auto 0;
        opacity: 0.5;
        width: 95%;
    }
}

/* ── Allan Phone ─────────────────────────────── */
#allanPhone {
    margin: -50px auto 0;
    height: 300px;
    top: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    max-width: 100%;
}

@media (max-width: 768px) {
    #allanPhone {
        margin: -125px auto 0;
        height: auto;
    }
}

#allanPhone video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #FFF;
    margin: 0 auto;
    transform: translateY(40%);
}

/* ── Contact Section ─────────────────────────── */
.contact-section {
    position: relative;
    z-index: 2;
    padding: 5rem 2rem;
    text-align: center;
    background: #FFF;
}

.contact-inner {
    max-width: 660px;
    margin: 0 auto;
}

.contact-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.contact-title {
    font-family: "bigcity-grotesque-pro", Georgia, serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.contact-title span {
    color: var(--blue);
}

.contact-body {
    font-size: 0.92rem;
    line-height: 1.75;
    font-weight: 500;
    color: var(--ink-50);
    max-width: 30rem;
    margin: 0 auto 2.5rem;
}

.contact-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.35s, border-color 0.35s;
}

.contact-btn--call {
    background: var(--blue);
    color: #fff;
    border: 1.5px solid var(--blue);
}

.contact-btn--call:hover {
    background: transparent;
    color: var(--blue);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 174, 239, 0.2);
}

.contact-btn--email {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
}

.contact-btn--email:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 174, 239, 0.2);
}

/* ── Featured Video Showcase ───────────────────── */
.featured-video-section {
    position: relative;
    z-index: 2;
    padding: 5rem 6rem;
    background: #f8fafc;
    text-align: center;
}

.featured-video-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-video-header {
    font-family: "bigcity-grotesque-pro", Georgia, serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 1rem;
}

.featured-video-paragraph {
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 500;
    color: var(--ink-50);
    max-width: 34rem;
    margin: 0 auto 2.5rem;
}

.featured-videos-flex {
    display: flex;
    flex-direction: row;
    gap: 1.75rem;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.featured-video-wrapper {
    position: relative;
    flex: 1 1 0px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
    background: #000;
    aspect-ratio: 16 / 9;
}

.featured-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-video-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    --size: 80px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(.2, .8, .2, 1),
        background 0.35s,
        border-color 0.35s,
        box-shadow 0.35s,
        opacity 0.35s,
        visibility 0.35s;
    animation: pulse 3s ease-in-out infinite;
}

.featured-video-play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}

.featured-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(255, 255, 255, 0.92);
    border-color: #fff;
    color: var(--ink);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.featured-video-play-btn:hover svg {
    filter: none;
}

.featured-video-wrapper.is-playing .featured-video-play-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 768px) {
    .featured-video-section {
        padding: 3.5rem 1.25rem;
    }

    .featured-videos-flex {
        flex-direction: column;
    }

    .featured-video-wrapper {
        /* The desktop zero flex-basis collapses height in a column layout. */
        flex: 0 0 auto;
    }

    .featured-video-play-btn {
        --size: 64px;
    }

    .featured-video-play-btn svg {
        width: 26px;
        height: 26px;
    }
}

/* ── Footer ──────────────────────────────────── */
.footer {
    padding: 1rem 2rem;
    position: relative;
    z-index: 2;
    background-color: #F3F6F6;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #000;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a,
.footer-socials a {
    color: #000;
    transition: color 0.25s;
}

.footer-links a:hover,
.footer-socials a:hover {
    color: var(--blue);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-socials a {
    display: flex;
}

/* ── Entrance Animations ─────────────────────── */
@keyframes down {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes right {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fade-in-down {
    animation: down 0.6s ease-out both;
}

.fade-in-right {
    animation: right 0.7s ease-out 0.1s both;
}

.fade-in-up {
    animation: up 0.8s ease-out 0.25s both;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1023px) {
    .hero {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        padding: 6rem 2rem 3rem;
    }

    .hero-play-btn {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        --size: 80px;
        margin-top: 0.5rem;
        order: 2;
    }

    .hero-play-btn:hover {
        transform: scale(1.08);
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.4);
    }

    .hero-text {
        text-align: center;
        margin-right: 0;
        padding: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 1;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 1rem 1.25rem;
    }

    .brand img {
        height: 70px;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-text {
        padding: 5rem 1.25rem 2rem;
    }

    #copyrightYear {
        margin: 0 auto;
    }
}
