/* ============================================================
   Coming Soon Template — Custom CSS (Bootstrap loaded via CDN)
   12 CSS variables replaced by the backend replacement engine
   ============================================================ */

:root {
    --primary-color: #4a0e1e;
    --primary-dark:  #300812;
    --primary-light: #4a0e1e66;
    --secondary-color: #ff758f;
    --secondary-dark:  #e85a74;
    --secondary-light: #ff758f66;
    --text-dark:   #1a1a1a;
    --text-light:  #f5f5f5;
    --shadow-color: #00000033;
    --overlay-dark: #000000cc;
    --white-transparent: #ffffff1a;
    --white-semi: #ffffff4d;
}

/* ── Bootstrap overrides ── */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #fff;
}
.btn-outline-light:hover { color: var(--text-dark); }

/* ── Global ── */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Heebo', sans-serif;
    color: var(--text-light);
    direction: rtl;
    /* overflow-x: hidden; */
}

body {
    background-color: var(--primary-dark);
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Heebo', sans-serif;
}

input, textarea, select, button {
    font-family: 'Heebo', sans-serif;
}

.section-padding { padding: 90px 0; }

.section-divider {
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
    margin: 14px auto 0;
}

/* ── Accessibility skip link ── */
.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--secondary-color); color: #fff;
    padding: 8px 16px; z-index: 99999;
    border-radius: 0 0 6px 6px; transition: top 0.2s; font-size: 14px;
}
.skip-link:focus { top: 0; }

/* ── Background Video ── */
video.bg-video {
    position: fixed;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

@media (pointer: coarse) and (hover: none) {
    body {
        background: url('../images/image1.webp') var(--primary-dark) no-repeat center center scroll;
        background-size: cover;
    }
    body video.bg-video { display: none; }
    /* Ensure solid-background sections fully cover the body image on mobile */
    .articles-section,
    .services-section,
    .about-section,
    .free-text-section,
    .footer { background-attachment: scroll; }
    .inner-hero-article { background: var(--primary-dark) !important; }
}

/* Primary-color tint — opacity 0.7 matching original basic template */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-color: var(--primary-color);
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}

/* ── Navbar ── */
.navbar {
    position: fixed; top: 0; width: 100%;
    z-index: 1000; min-height: 3.5em;
    transition: background 0.3s, box-shadow 0.3s;
    background: transparent;
}
.navbar.scrolled {
    background: var(--primary-color);
    box-shadow: 0 2px 20px var(--shadow-color);
}
.navbar-brand { font-family: 'Heebo', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--text-light) !important; }
.navbar .nav-link { color: var(--text-light) !important; font-weight: 500; font-family: 'Heebo', sans-serif; transition: color 0.2s; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--secondary-color) !important; }
.navbar-toggler { border-color: var(--white-semi); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(245,245,245,0.9)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 40px; height: 40px; border-radius: 8px;
    background-size: cover; background-position: center;
    flex-shrink: 0;
}
.logo-text span { color: var(--text-light); font-size: 1.1rem; font-weight: 700; }

@media (max-width: 991px) {
    /* When hamburger menu is open — immediately apply background color (no scroll needed) */
    /* .menu-open is set by JS on show.bs.collapse, BEFORE the animation starts */
    .navbar.menu-open {
        background: var(--primary-color);
        box-shadow: 0 2px 20px var(--shadow-color);
        transition: none;
    }
    .navbar .logo-text { display: none; }
    .navbar .navbar-collapse { background: var(--primary-color); padding: 12px; margin: 0 -12px; }
    .navbar .navbar-nav { align-items: flex-start !important; gap: 4px; }
    .navbar .nav-link { padding: 10px 16px; width: 100%; border-radius: 8px; }
    .navbar .nav-link:hover { background: var(--white-transparent); }
    .navbar .nav-item .btn { margin-top: 4px; }

    /* Mobile: masthead shows as left panel with video visible on right */
    .masthead {
        width: 70vw;
        margin-left: 0;
        margin-right: auto;
        min-height: 100vh;
    }
    .masthead::before {
        transform: skewX(-7deg);
        transform-origin: top right;
    }
    /* Prevent horizontal overflow in all sections */
    .section-padding, .services-section, .about-section,
    .gallery-section, .contact-section, .free-text-section,
    .yt3, .footer { overflow-x: hidden; }

    /* Gallery — 2 columns on mobile, no span override */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .gallery-grid .gallery-item:first-child,
    .gallery-grid .gallery-item:nth-child(4) { grid-column: span 1; }
}

/* ── Hero / Masthead — LEFT side (flush left, video visible on right) ── */
.masthead {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    direction: ltr;  /* anchor block to physical left edge (RTL page would right-align otherwise) */
    margin-left: 0;
}

/* Skewed dark overlay — uses CSS palette variable */
.masthead::before {
    content: '';
    position: absolute; inset: 0;
    background-color: var(--overlay-dark);
    z-index: 0;
}

/* Desktop: masthead LEFT-aligned */
@media (min-width: 992px) {
    .masthead {
        width: 75vw;
        min-height: 100vh;
        margin-left: 0;
        margin-right: auto;
        justify-content: center;
    }
    .masthead::before {
        transform: skewX(-9deg);
        transform-origin: top right; /* Slant on right edge (facing video) */
    }
    .masthead-content {
        padding: 0 4rem 0 2rem;
        /* Extra padding-right keeps text away from slanted right edge */
    }
    .masthead-content h1 { font-size: 5rem; }
    .masthead-content p.lead { font-size: 1.45rem; }
}
@media (min-width: 1200px) { .masthead { width: 65vw; } }

.masthead-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    width: 100%;
    padding: 120px 2rem 60px;
    color: var(--text-light);
    direction: rtl; /* restore RTL text inside the LTR-anchored masthead */
}
.masthead-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.masthead-content p.lead {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 0;
    font-family: 'Heebo', sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Mobile masthead overrides — MUST come after base styles to win the cascade */
@media (max-width: 991px) {
    .masthead { align-items: flex-start; } /* allows padding-top to control vertical position */
    .masthead-content {
        padding: 28vh 2rem 50px 1rem; /* 1rem left spacing from edge */
        max-width: 100%;
        overflow: hidden;
    }
    /* Left-anchor text in RTL: stays on the dark side, never overlaps video */
    .masthead-content h1 {
        font-size: 1.35rem;
        line-height: 1.3; /* comfortable when wrapping to 2 lines */
        text-align: left;
        word-break: break-word;
        white-space: normal;
    }
    .masthead-content p.lead {
        font-size: 0.82rem;
        text-align: left;
    }
}

/* Desktop: nav links on LEFT (brand stays on right in RTL) */
@media (min-width: 992px) {
    .navbar .navbar-nav {
        margin-right: auto !important;
        margin-left: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   SERVICES — "Editorial List" design
   Clean full-width rows with horizontal separators, numbers,
   icons and service names. Cinematic, typographic, minimal.
════════════════════════════════════════════════════════════ */
.services-section {
    position: relative;
    z-index: 2;
    background: var(--primary-dark);
}

.services-section h2 {
    color: var(--text-light);
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Full-width list container */
.svc-list {
    border-top: 1px solid var(--white-semi);
    margin-top: 0;
}

/* Each service row */
.svc-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 16px;
    border-bottom: 1px solid var(--white-semi);
}

/* Service number */
.svc-num {
    font-family: 'Heebo', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 2px;
    min-width: 26px;
    flex-shrink: 0;
    opacity: 0.75;
}

/* Short accent line between number and icon */
.svc-sep {
    width: 20px;
    height: 1px;
    background: var(--secondary-color);
    flex-shrink: 0;
    opacity: 0.45;
    display: none; /* hidden by default, shown on md+ */
}
@media (min-width: 576px) { .svc-sep { display: block; } }

/* Icon badge */
.svc-icon {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: var(--secondary-color);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Service title */
.svc-row h5 {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    letter-spacing: 0.01em;
}

/* ── About section ── */
.about-section {
    position: relative; z-index: 2;
    background: var(--primary-dark);
    border-top: 1px solid var(--white-transparent);
}
.about-card {
    background: var(--white-transparent);
    border: 1px solid var(--white-semi);
    border-radius: 12px;
    padding: 36px;
    backdrop-filter: blur(6px);
}
.about-card h2 { color: var(--secondary-color); margin-bottom: 16px; }
.about-card p  { color: var(--text-light); opacity: 0.9; line-height: 1.8; margin: 0; }

/* ═══════════════════════════════════════════════════════════
   GALLERY — "Neon Frame" cinematic design
   Desaturated-to-color on hover + glowing secondary border
════════════════════════════════════════════════════════════ */
.gallery-section {
    position: relative; z-index: 2;
    background: var(--primary-color);
}
.gallery-section h2 {
    color: var(--text-light);
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.gallery-grid .gallery-item:first-child  { grid-column: span 2; }
.gallery-grid .gallery-item:nth-child(4) { grid-column: span 2; }

.gallery-item {
    position: relative; overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.gallery-item.visible { opacity: 1; transform: translateY(0); }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.45s ease;
    filter: saturate(0.55) brightness(0.8);
}
.gallery-item:hover img {
    transform: scale(1.08);
    filter: saturate(1.1) brightness(1.05);
}

/* Neon frame on hover */
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    border: 2px solid var(--secondary-color);
    box-shadow: inset 0 0 28px var(--secondary-light), 0 0 12px var(--secondary-light);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none; z-index: 2;
}
.gallery-item:hover::after { opacity: 1; }

.gallery-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end; justify-content: flex-end;
    padding: 14px;
    color: var(--secondary-color); font-size: 1.2rem;
    opacity: 0; transition: opacity 0.3s ease;
    pointer-events: none; z-index: 3;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Stagger */
.gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-item:nth-child(2) { transition-delay: 0.12s; }
.gallery-item:nth-child(3) { transition-delay: 0.19s; }
.gallery-item:nth-child(4) { transition-delay: 0.26s; }
.gallery-item:nth-child(5) { transition-delay: 0.33s; }
.gallery-item:nth-child(6) { transition-delay: 0.40s; }
.gallery-item:nth-child(7) { transition-delay: 0.47s; }
.gallery-item:nth-child(8) { transition-delay: 0.54s; }

/* Lightbox */
.lightbox-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.94); z-index: 9999;
    align-items: center; justify-content: center;
}
.lightbox-modal.active { display: flex; }
.lightbox-image { max-width: 90vw; max-height: 90vh; border-radius: 4px; }
.lightbox-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer;
}

@media (max-width: 767px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .gallery-grid .gallery-item:first-child,
    .gallery-grid .gallery-item:nth-child(4) { grid-column: span 1; }
}

/* ── YouTube section ── */
.yt3 {
    position: relative; z-index: 2;
    background: var(--primary-color);
    border-top: 1px solid var(--white-transparent);
    padding: 60px 0;
}
.yt3-container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.yt3-title { text-align: center; color: var(--text-light); font-family: 'Heebo', sans-serif; font-size: 1.8rem; margin-bottom: 32px; font-weight: 700; letter-spacing: -0.02em; }
.yt3-shell { position: relative; display: flex; align-items: center; gap: 12px; }
.yt3-viewport { flex: 1; overflow: hidden; border-radius: 10px; }
.yt3-track { display: flex; direction: ltr; transition: transform 0.4s ease; list-style: none; margin: 0; padding: 0; }
.yt3-slide { flex: 0 0 100%; }
.yt3-media { position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.yt3-lite {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    border: none; cursor: pointer;
}
.yt3-lite::after {
    content: '\25B6';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 3rem; color: rgba(255,255,255,0.85);
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.yt3-nav {
    background: transparent; border: none; border-radius: 0;
    width: 48px; height: 48px; color: var(--text-light); font-size: 2rem;
    cursor: pointer; flex-shrink: 0; transition: opacity 0.2s;
    opacity: 0.75; padding: 0; line-height: 1;
}
.yt3-nav:disabled { opacity: 0.2; cursor: default; }
.yt3-nav:not(:disabled):hover { opacity: 1; }

/* ── Free text ── */
.free-text-section {
    position: relative; z-index: 2;
    background: var(--primary-dark);
    border-top: 1px solid var(--white-transparent);
}
.free-text-section p {
    color: var(--text-light); font-size: 1.1rem;
    line-height: 1.9; opacity: 0.9; white-space: pre-wrap;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT — Split layout: info left / form right
   Minimalist underline inputs, no boxed card
════════════════════════════════════════════════════════════ */
.contact-section {
    position: relative; z-index: 2;
    background: var(--primary-color);
    border-top: 1px solid var(--white-transparent);
}
.contact-section .contact-heading {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 8px;
}
.contact-section .contact-tagline {
    font-size: 1rem;
    opacity: 0.6;
    margin-bottom: 32px;
    font-family: 'Heebo', sans-serif;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Contact info list (phone, email, address) */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.85;
}
.contact-info-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--secondary-color);
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary-color);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Contact form — minimal underline inputs */
.contact-form-card {
    background: transparent;
    border: none;
    padding: 0;
}
.contact-form-card .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--white-semi);
    border-radius: 0;
    color: var(--text-light);
    padding: 14px 0;
    font-size: 1rem;
    font-family: 'Heebo', sans-serif;
    transition: border-color 0.25s;
}
.contact-form-card .form-control::placeholder { color: rgba(245,245,245,0.4); font-size: 0.9rem; }
.contact-form-card .form-control:focus {
    background: transparent;
    border-bottom-color: var(--secondary-color);
    box-shadow: none;
    color: var(--text-light);
    outline: none;
}
/* Textarea keeps a box border */
.contact-form-card textarea.form-control {
    border: 1px solid var(--white-semi);
    border-radius: 6px;
    padding: 12px 14px;
    resize: vertical;
}
.contact-form-card textarea.form-control:focus {
    border-color: var(--secondary-color);
}

.contact-form-feedback {
    margin-top: 16px; padding: 12px; border-radius: 8px;
    font-weight: 500; display: none;
}
.contact-form-feedback.success { display: block; background: rgba(40,167,69,0.25); color: #a3ffb4; border: 1px solid rgba(40,167,69,0.4); }
.contact-form-feedback.error   { display: block; background: rgba(220,53,69,0.25); color: #ffb3ba; border: 1px solid rgba(220,53,69,0.4); }

/* Map embed — used on contact.html only */
.map-embed iframe { width: 100%; height: 320px; border: none; border-radius: 10px; margin-top: 24px; }

/* ── Footer ── */
.footer {
    position: relative; z-index: 2;
    background: var(--primary-dark);
    border-top: 1px solid var(--white-transparent);
    color: var(--text-light);
}
.footer h5 { color: var(--secondary-color); margin-bottom: 12px; font-weight: 700; }
.footer p, .footer a { color: rgba(245,245,245,0.75); text-decoration: none; font-family: 'Heebo', sans-serif; }
.footer a:hover { color: var(--secondary-color); }
.social-link { list-style: none; padding: 0; margin: 0; }
.social-link li { margin-bottom: 8px; }
.social-link a { display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.social-link a:hover { color: var(--secondary-color) !important; }
.footer .border-light { border-color: var(--white-transparent) !important; }

/* ── Float contact buttons ── */
.float-contact-container {
    position: fixed; bottom: 24px; left: 24px;
    z-index: 9998; display: flex; flex-direction: column; gap: 12px;
}
.contact-btn {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff; text-decoration: none;
    box-shadow: 0 4px 15px var(--shadow-color); transition: transform 0.2s;
}
.contact-btn:hover { transform: scale(1.1); color: #fff; }
.whatsapp-btn { background: #25D366; }
.phone-btn    { background: var(--secondary-color); }

/* ── Inner page hero ── */
.inner-hero {
    position: relative; z-index: 2;
    min-height: 260px; display: flex;
    align-items: flex-end; padding-bottom: 40px;
    background-color: var(--primary-dark); /* solid fallback when no background-image */
    background-size: cover; background-position: center;
}
/* Article page: solid color only — no photo behind the title */
.inner-hero-article {
    background-image: none !important;
}
.inner-hero .parallax-overlay { position: absolute; inset: 0; background: var(--overlay-dark); z-index: 0; }
.inner-hero .hero-content { position: relative; z-index: 1; padding-top: 100px; }
.inner-hero h1 {
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ── Articles list ── */
.articles-section {
    position: relative; z-index: 2;
    background: var(--primary-dark);
}
.article-card {
    display: block;
    background: var(--white-transparent);
    border: 1px solid var(--white-semi);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    color: var(--text-light);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.article-card:hover { border-color: var(--secondary-color); transform: translateX(-4px); color: var(--text-light); }
.article-card h5 { color: var(--secondary-color); margin-bottom: 6px; }
.article-card small { opacity: 0.6; font-size: 0.85rem; }

.article-body { color: var(--text-light); line-height: 1.9; font-size: 1.05rem; }

/* Article content card: remove backdrop-filter so video doesn't show through.
   Section already has solid background — card blends with it cleanly. */
.about-card.article-body {
    background: rgba(255,255,255,0.07);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.about-card.article-body pre { color: var(--text-light) !important; }

/* ── Search bar ── */
#articleSearch {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--white-semi);
    color: var(--text-light); border-radius: 8px;
    padding: 10px 16px; width: 100%; max-width: 400px; margin-bottom: 24px;
}
#articleSearch::placeholder { color: rgba(245,245,245,0.45); }
#articleSearch:focus { border-color: var(--secondary-color); outline: none; box-shadow: 0 0 0 2px var(--secondary-light); }
