/* E Media Solution — black / red / white theme (Bootstrap 5 extension layer) */

/* ── Section alternating backgrounds ── */
/* bg-page  = #050505  (darkest)  */
/* bg-surface = #111111 (slightly lighter) */
/* Sections alternate: hero(page) → about(surface) → services(surface) → why(surface) → process(page) → testimonials(surface) → cta → contact(surface) */

:root {
    --emedia-primary: #dc2626;
    --emedia-primary-dark: #b91c1c;
    --emedia-accent: #ef4444;
    --emedia-accent-dark: #991b1b;
    --emedia-surface: #111111;
    --emedia-page: #050505;
    --emedia-heading: #ffffff;
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.12);
    --transition: 0.25s ease;

    /* Align Bootstrap primary / links with red theme */
    --bs-primary: #dc2626;
    --bs-primary-rgb: 220, 38, 38;
    --bs-primary-bg-subtle: #fee2e2;
    --bs-primary-border-subtle: #fecaca;
    --bs-link-color: #b91c1c;
    --bs-link-hover-color: #991b1b;
}

.bg-page {
    background-color: var(--emedia-page);
}

.bg-surface {
    background-color: var(--emedia-surface);
}

.text-primary-emedia {
    color: var(--emedia-primary) !important;
}

.bg-primary-emedia {
    background-color: var(--emedia-primary) !important;
}

.text-bg-primary-subtle {
    background-color: rgba(220, 38, 38, 0.1) !important;
}

.border-primary-emedia {
    border: 2px solid var(--emedia-primary) !important;
}

.btn-emedia-primary {
    --bs-btn-bg: var(--emedia-primary);
    --bs-btn-border-color: var(--emedia-primary);
    --bs-btn-hover-bg: var(--emedia-primary-dark);
    --bs-btn-hover-border-color: var(--emedia-primary-dark);
    --bs-btn-active-bg: var(--emedia-primary-dark);
    --bs-btn-active-border-color: var(--emedia-primary-dark);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, #f43f5e 0%, #dc2626 100%);
    border: none;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.7), inset 0 1px 0 rgba(255,255,255,0.4);
    background: linear-gradient(135deg, #fb7185 0%, #ef4444 100%);
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    color: #a0a0a0;
}

.section-title {
    font-weight: 700;
    color: var(--emedia-heading);
    letter-spacing: -0.02em;
}

.section-py {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.py-lg-6 {
    padding-block: 4.5rem;
}

@media (min-width: 992px) {
    .py-lg-6 {
        padding-block: 6rem;
    }
}

.letter-spacing {
    letter-spacing: 0.12em;
}

/* ── Navbar ── */
.navbar-emedia {
    background: linear-gradient(90deg, #000000 0%, #141414 45%, #1f0a0a 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar-emedia.navbar-scrolled {
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(10px);
}

.navbar-emedia .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    border-radius: 999px;
    transition: color var(--transition), background var(--transition);
}

.navbar-emedia .nav-link:hover,
.navbar-emedia .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-emedia .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
}

.brand-mark {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
}

.brand-title {
    font-size: 1.05rem;
    line-height: 1.2;
}

/* ── Hero ── */
.hero-emedia {
    background: #020202;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Full-bleed video — sits at z-index 0, behind all overlays */
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    display: block;
}

/* Dark tint + center scrim (headline sits mid-frame over bright video) + red accent */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 95% 75% at 50% 38%, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 52%, rgba(0, 0, 0, 0.2) 100%),
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(220, 38, 38, 0.22), transparent 62%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.5) 42%, rgba(0, 0, 0, 0.82) 100%);
    pointer-events: none;
}

/* Bottom fade — video bleeds seamlessly into the page background */
.hero-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 38%;
    z-index: 2;
    background: linear-gradient(to bottom, transparent 0%, var(--emedia-page) 100%);
    pointer-events: none;
}

/* Side vignette — stronger edges so lion / bright sides don’t wash out */
.hero-fade-sides {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
}

/* Subtle grid texture above overlays, below content */
.hero-grid {
    z-index: 3;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.45;
    pointer-events: none;
}

/* Content sits above all layers, vertically centred in the viewport */
.hero-emedia .hero-inner {
    position: relative;
    z-index: 4;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(2.5rem, 6vh, 4rem);
    padding-bottom: clamp(2.5rem, 8vh, 5rem);
}

.hero-copy {
    max-width: 44rem;
}

.hero-emedia #hero-heading {
    text-shadow:
        0 0 48px rgba(0, 0, 0, 0.98),
        0 2px 6px rgba(0, 0, 0, 0.95),
        0 6px 32px rgba(0, 0, 0, 0.88);
}

.hero-emedia .hero-copy .lead {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-emedia .hero-copy .text-white-50.small {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-emedia .hero-stat-num {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 24px rgba(0, 0, 0, 0.65);
}

.hero-emedia .hero-stats span:not(.hero-stat-num) {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.hero-emedia .hero-copy .btn-accent {
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.45), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Pricing — quotation callouts (no public amounts) */
.pricing-quote-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sound toggle button — bottom-right corner */
.hero-sound-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    padding: 0;
}
.hero-sound-btn:hover {
    background: rgba(220, 38, 38, 0.6);
    border-color: rgba(220, 38, 38, 0.8);
    color: #fff;
    transform: scale(1.1);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.78) !important;
}

.hero-visual {
    background: rgba(255, 255, 255, 0.06);
}

/* ── Shared utilities ── */
.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.card-hover {
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

.icon-tile {
    width: 52px;
    height: 52px;
    background: rgba(220, 38, 38, 0.1);
}

.icon-tile-lg {
    width: 88px;
    height: 88px;
    background: rgba(220, 38, 38, 0.1);
}

.object-fit-cover {
    object-fit: cover;
}

/* ── Page header ── */
.page-header {
    background: linear-gradient(120deg, #000000, #1a0505 55%, var(--emedia-primary-dark) 100%);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

/* ── CTA banner ── */
.cta-banner {
    background: linear-gradient(120deg, var(--emedia-primary-dark) 0%, var(--emedia-primary) 45%, #000000 100%);
    box-shadow: var(--shadow-soft);
}

/* ── Footer ── */
.footer-emedia {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.social-btn {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Reveal on scroll ── */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── FAQ ── */
.faq-accordion .accordion-button {
    background: transparent;
    color: #fff;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(220, 38, 38, 0.08);
    color: var(--emedia-primary);
    box-shadow: none;
}
.faq-accordion .accordion-button::after {
    filter: invert(1) brightness(0.7);
}
.faq-accordion .accordion-button:not(.collapsed)::after {
    filter: none;
}
.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.2);
}
.faq-accordion .accordion-body {
    background: transparent;
}

/* ── Pricing ── */
.pricing-featured {
    transform: scale(1.02);
}

@media (max-width: 991.98px) {
    .pricing-featured {
        transform: none;
    }
}

/* ── Legal ── */
.legal-content h2:first-of-type {
    margin-top: 0 !important;
}

/* ── Map ── */
.map-placeholder iframe {
    min-height: 100%;
}

/* ── Process ── */
.process-step {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

/* ── Cards (glassmorphism) ── */
.card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3) !important;
}
.text-secondary { color: #a3a3a3 !important; }
.bg-light { background-color: rgba(255,255,255,0.05) !important; }

/* ── Global font smoothing ── */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Why Choose cards ── */
.wc-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.wc-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.1);
}

/* ── Process cards ── */
.process-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.process-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.06), transparent 60%);
    pointer-events: none;
}
.process-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.08);
}
.process-num {
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    opacity: 0.9;
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* ── About section image glow ── */
.about-img-wrap {
    position: relative;
}
.about-img-wrap::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.3), transparent 60%);
    z-index: -1;
    filter: blur(18px);
}

/* ── Icon animations ── */
@keyframes float-icon {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}
@keyframes pulse-icon {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes swing-icon {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(10deg); }
    50%  { transform: rotate(0deg); }
    75%  { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}
.anim-float { animation: float-icon 3s ease-in-out infinite; }
.anim-pulse { animation: pulse-icon 2.5s ease-in-out infinite; }
.anim-swing { animation: swing-icon 3s ease-in-out infinite; }

/* ── Section divider gradient lines ── */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(220, 38, 38, 0.4), transparent);
    border: none;
    margin: 0;
}

/* ── Testimonial card ── */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.star-icon { filter: drop-shadow(0 0 3px rgba(248, 184, 3, 0.55)); }

/* ── Contact info card ── */
.contact-info-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Form dark ── */
.form-dark .form-control,
.form-dark .form-select {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
}
/* Dark arrow for select — replaces Bootstrap's default dark chevron */
.form-dark .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23aaaaaa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
/* Options inside the dropdown list */
.form-dark .form-select option {
    background-color: #1a1a1a;
    color: #fff;
}
.form-dark .form-control:focus,
.form-dark .form-select:focus {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.2);
    color: #fff;
}
.form-dark .form-label {
    color: #e5e5e5;
    font-weight: 500;
    font-family: "Plus Jakarta Sans", sans-serif;
}
.form-dark input:-webkit-autofill,
.form-dark select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: white !important;
}
/* Placeholder option text color */
.form-dark .form-select option[value=""][disabled] {
    color: rgba(255,255,255,0.4);
}

/* ── CTA banner ── */
.cta-banner {
    position: relative;
    overflow: hidden;
}
.cta-banner::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

/* ── Icon animations for contact ── */
@keyframes ring-phone {
    0%   { transform: rotate(0); }
    10%  { transform: rotate(15deg); }
    20%  { transform: rotate(-10deg); }
    30%  { transform: rotate(5deg); }
    40%  { transform: rotate(-5deg); }
    50%  { transform: rotate(0); }
    100% { transform: rotate(0); }
}
@keyframes float-mail {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}
@keyframes bounce-pin {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}
.icon-ring { animation: ring-phone 2s ease-in-out infinite; }
.icon-mail { animation: float-mail 3s ease-in-out infinite; }
.icon-pin  { animation: bounce-pin 2.5s ease-in-out infinite; }

/* ── Blog card ── */
.blog-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 38, 38, 0.35) !important;
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.1);
}

/* ── Article / blog-show body ── */
.article-body {
    color: #c0c0c0;
    line-height: 1.85;
    font-size: 1.05rem;
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    color: #fff;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.article-body a {
    color: var(--emedia-primary);
    text-decoration: underline;
    text-decoration-color: rgba(220, 38, 38, 0.4);
}
.article-body a:hover {
    color: var(--emedia-accent);
    text-decoration-color: var(--emedia-accent);
}
.article-body code {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    color: #f87171;
    font-size: 0.9em;
}
.article-body pre {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 1.25rem;
    overflow-x: auto;
}
.article-body blockquote {
    border-left: 3px solid var(--emedia-primary);
    padding-left: 1.25rem;
    margin-left: 0;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}
.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
}
.article-body li {
    margin-bottom: 0.4rem;
}
.article-body strong {
    color: #fff;
    font-weight: 600;
}

/* ── Floating WhatsApp support (all pages) ── */
.wa-support-fab {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1040;
    pointer-events: none;
}

.wa-support-fab__btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem 0.65rem 0.75rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #052e16;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow:
        0 4px 14px rgba(34, 197, 94, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-support-fab__btn:hover {
    color: #052e16;
    transform: translateY(-2px);
    box-shadow:
        0 8px 22px rgba(34, 197, 94, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.4);
}

.wa-support-fab__btn:focus-visible {
    outline: 2px solid rgba(34, 197, 94, 0.9);
    outline-offset: 3px;
}

.wa-support-fab__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    font-size: 1.35rem;
    line-height: 1;
}

.wa-support-fab__text {
    padding-right: 0.15rem;
}

@media (max-width: 575.98px) {
    .wa-support-fab__text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .wa-support-fab__btn {
        padding: 0.65rem;
        border-radius: 50%;
    }
}
