/* =====================================================================
   site-extra.css
   Styles for: logo image in nav/footer, the "Services" nav dropdown,
   the Our Work grid, the Packages pricing cards and the Reviews section.
   Loaded on every public page from includes/header.php.
   ===================================================================== */

/* ---- Logo image (shown once an admin uploads a logo in Site Settings) */
.site-logo-img {
    max-height: 40px;
    width: auto;
    display: block;
}

.footer--logo .site-logo-img {
    max-height: 34px;
    margin-bottom: 6px;
}

/* ---- "Services" nav dropdown ------------------------------------- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-caret {
    font-size: 11px;
    transition: transform .2s ease;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.16);
    padding: 10px 0;
    z-index: 500;
    margin-top: 10px;
}

.nav-dropdown-menu a {
    display: block;
    padding: 9px 20px;
    color: #444;
    font-size: 14px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #f4f9fc;
    color: var(--mainColor);
}

.nav-dropdown-viewall {
    margin-top: 4px;
    padding-top: 12px !important;
    border-top: 1px solid #eee;
    font-weight: 700;
    color: var(--mainColor) !important;
}

.nav-dropdown-empty {
    display: block;
    padding: 9px 20px;
    color: #999;
    font-size: 13px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret {
    transform: rotate(180deg);
}

@media screen and (max-width: 990px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        margin: 6px 0 0;
        width: 100%;
        text-align: center;
        border-radius: 8px;
    }
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }
}

/* ---- Section intros (shared by Our Work / Packages pages) --------- */
/* NOTE: these pages deliberately use their own ".page-section" wrapper
   instead of the template's "#main.main" (which has a fixed
   height: calc(100vh - 62px) meant for the original single-row Services
   hero). Taller content - like a 3+ card grid - would overflow that fixed
   height and get visually overlapped by the next section, so we isolate
   these pages from that rule entirely. */
.page-section {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
    background-color: #e7f4fa;
}

.page-hero {
    padding: 70px 0 30px;
    text-align: center;
}

.page-hero h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--neroColor);
}

.page-hero p {
    max-width: 620px;
    margin: 10px auto 0;
}

/* ---- Our Work grid -------------------------------------------------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0 60px;
}

.work-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
}

.work-card-img {
    position: relative;
    line-height: 0;
    background: #eef3f8;
}

.work-card-img img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.work-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(16, 144, 203, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 30px;
}

.work-card-body {
    padding: 22px 24px 26px;
}

.work-card-body h5 {
    font-weight: 700;
    color: var(--neroColor);
    margin-bottom: 6px;
}

.work-card-client {
    color: var(--mainColor);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.work-card-body p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 16px;
}

.work-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--mainColor);
    font-size: 14px;
}

.work-card-link:hover {
    text-decoration: underline;
}

/* ---- Packages pricing cards ---------------------------------------- */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    padding: 20px 0 40px;
    align-items: stretch;
}

.package-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px 30px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.07);
    border: 1px solid #eef1f5;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.package-card.featured {
    border-color: var(--mainColor);
    box-shadow: 0 18px 45px rgba(16, 144, 203, 0.22);
    transform: scale(1.03);
}

.package-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mainColor);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    white-space: nowrap;
}

.package-name {
    font-weight: 700;
    font-size: 22px;
    color: var(--neroColor);
    text-align: center;
    margin-bottom: 6px;
}

.package-desc {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.package-price {
    text-align: center;
    margin-bottom: 24px;
}

.package-price .amount {
    font-size: 40px;
    font-weight: 800;
    color: var(--mainColor);
}

.package-price .suffix {
    font-size: 14px;
    color: #999;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    flex-grow: 1;
}

.package-features li {
    padding: 9px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.package-features li::before {
    content: "\2713";
    color: var(--mainColor);
    font-weight: 700;
}

.package-card .buttom {
    text-align: center;
    border: none;
    width: 100%;
}

/* .package-btn deliberately carries no color of its own in the markup -
   color is fully controlled here so it can't be silently overridden by a
   Bootstrap utility class like .text-white (which uses !important) again. */
.package-card.featured .package-btn {
    color: #fff !important;
}

.package-card:not(.featured) .buttom {
    background-color: #fff;
    box-shadow: inset 0 0 0 2px var(--mainColor);
}

.package-card:not(.featured) .package-btn {
    color: var(--mainColor) !important;
}

/* ---- Reviews --------------------------------------------------------- */
.reviews-section {
    background: #f8fafc;
    padding: 60px 0;
    margin-top: 30px;
}

.star-rating {
    color: #f5b301;
    letter-spacing: 2px;
    font-size: 16px;
}

.review-summary {
    text-align: center;
    margin-bottom: 30px;
}

.review-summary .avg {
    font-size: 44px;
    font-weight: 800;
    color: var(--neroColor);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.review-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
}

.review-card .review-name {
    font-weight: 700;
    color: var(--neroColor);
    margin-top: 10px;
}

.review-card .review-company {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.review-card p {
    font-size: 14px;
    line-height: 22px;
    color: #555;
}

.review-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.star-select {
    display: flex;
    gap: 6px;
    font-size: 15px;
}

.star-select label {
    cursor: pointer;
    background: #f4f4f4;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.star-select input {
    display: none;
}

.star-select input:checked + span {
    color: var(--mainColor);
}

.star-select label:has(input:checked) {
    background: #e6f4fb;
    box-shadow: inset 0 0 0 1px var(--mainColor);
}

/* ---- Full-bleed hero video section (used on the homepage) ---------- */
.hero-video-section {
    position: relative;
    min-height: calc(100vh - 62px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #061620;
}

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

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(6, 22, 32, 0.82) 0%, rgba(6, 22, 32, 0.55) 55%, rgba(6, 22, 32, 0.35) 100%);
    z-index: 1;
}

.hero-video-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 60px 0;
}

.hero-video-content .main--title {
    color: #fff;
}

.hero-video-content .main--title .mainColor {
    color: #4fd1ff;
}

.hero-video-content p {
    color: #dbe7ee;
}

.hero-video-caption-tag {
    display: inline-block;
    background: rgba(16, 144, 203, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
}

/* Music/sound toggle button, top-right of the hero video */
.hero-music-toggle {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(6, 22, 32, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s ease, transform .2s ease;
}

.hero-music-toggle:hover {
    background: rgba(16, 144, 203, 0.85);
    transform: scale(1.06);
}

.hero-music-toggle .icon-unmuted {
    display: none;
}

.hero-music-toggle.is-unmuted .icon-muted {
    display: none;
}

.hero-music-toggle.is-unmuted .icon-unmuted {
    display: block;
}

.hero-music-toggle.is-unmuted {
    background: rgba(16, 144, 203, 0.9);
    animation: heroMusicPulse 1.8s ease-in-out infinite;
}

@keyframes heroMusicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 144, 203, 0.55); }
    50% { box-shadow: 0 0 0 8px rgba(16, 144, 203, 0); }
}

@media screen and (max-width: 767px) {
    .hero-music-toggle {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }
}

@media screen and (max-width: 767px) {
    .hero-video-section {
        min-height: 80vh;
    }
}
