/* Apollos Media brand overrides on top of the base template styles */

.navbar .logo-container {
    width: auto;
}

.navbar .logo-container img {
    width: auto;
    height: 44px;
    max-width: none;
}

.sidebar-header .logo-container,
.sidebar-header .logo {
    width: auto;
}

.sidebar-header img.logo {
    width: auto;
    height: 36px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.footer-logo-container img {
    height: 40px;
    width: auto;
}

@media (max-width: 767px) {
    .navbar .logo-container img {
        height: 34px;
    }
}

/* Footer watermark wordmark — keep "APOLLOS MEDIA" on one line and scale
   proportionally instead of wrapping/overlapping on narrow screens. */
.footer-title-container {
    min-height: auto;
    overflow: hidden;
}

.footer-title {
    --footer-title-size: clamp(32px, 11vw, 100px);
    font-size: var(--footer-title-size);
    line-height: 1;
    white-space: nowrap;
    margin-bottom: calc(var(--footer-title-size) * -0.3);
}

/* The base template hardcodes a rule against the literal id "video-bg-3"
   (width: 100vw, centered via a transform) assuming a fixed, static list of
   projects. Our projects are database-driven, so whichever project happens to
   get id 3 — wide or not — inherits a 100vw layer that overflows the
   viewport horizontally on mobile. An id selector always outranks a class or
   attribute selector regardless of source order, so this must be neutralized
   with !important. The "wide" container class is what actually identifies a
   full-width project card, independent of database id. */
[id^="video-bg-"] {
    width: 150% !important;
    height: 150% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* -- Site-wide floating WhatsApp button ----------------------------------- */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.45);
    transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
    animation: apollos-whatsapp-pulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe5b;
    color: #fff;
    transform: scale(1.08);
}

@keyframes apollos-whatsapp-pulse {
    0%, 100% { box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.55), 0 0 0 10px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }
}

@media (max-width: 767.98px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
        font-size: 27px;
    }
}

/* ==========================================================================
   Homepage visual refresh — scoped to body.page-home so every other page
   (portfolio, testimonials, etc.) keeps its current look untouched, even
   where the same shared component classes (.card-testimonial, .btn-accent,
   .project-video-container...) are reused there.
   ========================================================================== */

/* Scroll-reveal: hidden only once JS confirms it can reveal them again, so
   users never get stuck with permanently invisible content if JS fails. */
html.js .page-home .reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.16, .84, .44, 1);
}

html.js .page-home .reveal-up.is-inview {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html.js .page-home .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* -- Eyebrow / kicker badge (hero + testimonial banner) ------------------ */

.page-home .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-family: var(--font-family-2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
}

.page-home .hero-kicker--center {
    margin-bottom: 22px;
}

.page-home .hero-kicker-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 115, 2, 0.25);
    animation: apollos-pulse-dot 2s ease-in-out infinite;
}

@keyframes apollos-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255, 115, 2, 0.25); }
    50% { box-shadow: 0 0 0 8px rgba(255, 115, 2, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .hero-kicker-dot {
        animation: none;
    }
}

/* -- Hero: subtle divider glow, subtitle accent, grain, scroll cue ------- */

.page-home .home-divider {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.page-home .home-divider::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 140px;
    max-width: 100%;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.page-home .home-divider::after {
    content: '';
    position: absolute;
    left: 140px;
    bottom: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 12px 2px rgba(255, 115, 2, 0.6);
}

@media (max-width: 767.98px) {
    .page-home .home-divider::before,
    .page-home .home-divider::after {
        left: 50%;
        transform: translateX(-70px);
    }
    .page-home .home-divider::after {
        transform: translateX(70px);
    }
}

.page-home .home-avatar-container p {
    position: relative;
    padding-left: 18px;
    border-left: 2px solid var(--accent-color);
}

@media (max-width: 767.98px) {
    .page-home .home-avatar-container p {
        padding-left: 0;
        border-left: none;
    }
}

.page-home .hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.page-home .hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    opacity: 0.7;
    transition: opacity 300ms ease, color 300ms ease;
}

.page-home .hero-scroll-cue:hover {
    opacity: 1;
    color: var(--accent-color);
}

.page-home .hero-scroll-cue-line {
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, transparent, currentColor);
}

.page-home .hero-scroll-cue i {
    font-size: 13px;
    animation: apollos-scroll-bounce 2s ease-in-out infinite;
}

@keyframes apollos-scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .hero-scroll-cue i {
        animation: none;
    }
}

@media (max-width: 767.98px) {
    .page-home .hero-scroll-cue {
        display: none;
    }
}

/* -- CTA button polish (scoped to homepage only) -------------------------- */

.page-home .btn-accent {
    transition: transform 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
}

.page-home .btn-accent i {
    margin-left: 10px;
    transition: transform 300ms ease;
}

.page-home .btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -12px rgba(255, 115, 2, 0.55);
}

.page-home .btn-accent:hover i {
    transform: translateX(4px);
}

/* -- Core service: glowing logo, iconed cards, framed image --------------- */

.page-home .core-service__circle-logo-glow {
    position: absolute;
    inset: -25%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 115, 2, 0.35) 0%, rgba(255, 115, 2, 0) 70%);
    filter: blur(8px);
}

.page-home .core-service__circle-logo {
    position: relative;
    z-index: 1;
}

.page-home .card-core-service {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 350ms ease, box-shadow 350ms ease, border-color 350ms ease;
}

.page-home .card-core-service:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 115, 2, 0.4);
}

.page-home .card-core-service.highlight-core {
    border-color: transparent;
}

.page-home .card-core-service.highlight-core:hover {
    box-shadow: 0 24px 48px -24px rgba(255, 115, 2, 0.5);
}

.page-home .core-service-card-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    border-radius: 50%;
    font-size: 24px;
    background: rgba(255, 115, 2, 0.12);
    color: var(--accent-color);
}

.page-home .card-core-service.highlight-core .core-service-card-icon {
    background: rgba(0, 0, 0, 0.15);
    color: var(--primary);
}

@media (max-width: 767.98px) {
    .page-home .card-core-service {
        align-items: center;
        text-align: center;
    }
}

.page-home .core-service-image-frame {
    position: relative;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(160deg, rgba(255, 115, 2, 0.08), rgba(255, 255, 255, 0.02));
}

.page-home .core-service-image-frame img {
    display: block;
    width: 100%;
}

.page-home .core-service-image-frame::before,
.page-home .core-service-image-frame::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--accent-color);
    pointer-events: none;
}

.page-home .core-service-image-frame::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.page-home .core-service-image-frame::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* -- Featured project cards: hover zoom, lift, viewfinder corners -------- */

.page-home .section-project {
    position: relative;
}

.page-home .section-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 90%);
    height: 1px;
    background: radial-gradient(ellipse at center, rgba(255, 115, 2, 0.35), transparent 75%);
}

.page-home .project-video-container {
    box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.75);
}

.page-home .project-video-container .project-video-bg {
    transition: transform 700ms cubic-bezier(.16, .84, .44, 1), filter 700ms ease;
}

.page-home .project-video-container:hover .project-video-bg {
    transform: translate(-50%, -50%) scale(1.08) !important;
    filter: brightness(0.75);
}

.page-home .project-video-corners {
    position: absolute;
    inset: 14px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 350ms ease;
}

.page-home .project-video-container:hover .project-video-corners {
    opacity: 1;
}

.page-home .project-video-corners::before,
.page-home .project-video-corners::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary);
}

.page-home .project-video-corners::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.page-home .project-video-corners::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* -- Testimonials: glass cards, gradient avatar ring, quote watermark ---- */

.page-home .section-testimonial-home {
    position: relative;
}

.page-home .section-testimonial-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 90%);
    height: 1px;
    background: radial-gradient(ellipse at center, rgba(255, 115, 2, 0.35), transparent 75%);
    z-index: 2;
}

.page-home .card-testimonial {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}

.page-home .card-testimonial:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 115, 2, 0.35);
    box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.7);
}

.page-home .card-testimonial > * {
    position: relative;
    z-index: 1;
}

.page-home .testimonial-icon-watermark {
    position: absolute;
    top: 4px;
    right: 18px;
    font-size: 64px;
    color: rgba(255, 115, 2, 0.08);
    z-index: 0;
    pointer-events: none;
}

.page-home .testimonial-image {
    border: none;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
}

.page-home .testimonial-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 100px;
    object-fit: cover;
}
