/* ============================================================
   cc-components.css  –  Shared header, aside, mobile menu,
   and footer styles for Creators Cave static site.
   Loaded by all pages. Index overrides header with its own
   transparent-header <style> block.
   ============================================================ */

/* ── Nav font ── */
.mainnav ul.main-menu > li > a,
.mr_menu .mr_navmenu a {
    font-family: 'Black Ops One', cursive !important;
    letter-spacing: 0.5px;
}

/* ── Logo sizing ── */
.logo img.cc-logo { height: 38px; width: auto; filter: none; transition: filter 0.3s ease; }
.header { padding-top: 6px !important; padding-bottom: 6px !important; }

/* ── Mobile header fixes ── */
@media (max-width: 1199px) {
    /* Smaller logo on mobile/tablet */
    .logo img.cc-logo { height: 28px !important; }

    /* Hide the aside (side panel) toggle — only show the mobile nav hamburger */
    .aside_open { display: none !important; }

    /* Remove the | divider that appears between .wptb-element buttons */
    .header .header_right_part .wptb-element + .wptb-element { margin-left: 0; padding-left: 0; }
    .header .header_right_part .wptb-element + .wptb-element::before { display: none !important; }
}

/* ── Transparent header for pages with dark hero (blogs, blog posts) ── */
body.cc-header-dark .logo img.cc-logo { filter: brightness(0) invert(1); transition: filter 0.3s ease; }
body.cc-header-dark .header,
body.cc-header-dark .header.color-fixed,
body.cc-header-dark .header .header-inner {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.cc-header-dark .header .mainnav ul.main-menu > li > a,
body.cc-header-dark .header.color-fixed .mainnav ul.main-menu > li > a { color: #ffffff !important; font-weight: 500; }
body.cc-header-dark .header .mainnav ul.main-menu > li > a:hover,
body.cc-header-dark .header .mainnav ul.main-menu > li.active > a { color: #B90808 !important; }
body.cc-header-dark .header .mainnav ul.main-menu > li > a::before,
body.cc-header-dark .header.color-fixed .mainnav ul.main-menu > li.active > a::before { background-color: #B90808 !important; }
body.cc-header-dark .header .aside_open span,
body.cc-header-dark .header.color-fixed .aside_open span { background: #fff !important; }
body.cc-header-dark .header .mr_menu_toggle,
body.cc-header-dark .header.color-fixed .mr_menu_toggle { color: #fff !important; }

/* Sticky: solid white with brown links (matches homepage sticky) */
body.cc-header-dark .header.sticky,
body.cc-header-dark .header.color-fixed.sticky {
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    transform: translateY(0) !important;
    transform-origin: unset !important;
    perspective: none !important;
}
body.cc-header-dark .header.sticky .logo img.cc-logo,
body.cc-header-dark .header.color-fixed.sticky .logo img.cc-logo { filter: none; }
body.cc-header-dark .header.sticky .mainnav ul.main-menu > li > a,
body.cc-header-dark .header.color-fixed.sticky .mainnav ul.main-menu > li > a { color: #8B5322 !important; }
body.cc-header-dark .header.sticky .mainnav ul.main-menu > li > a:hover,
body.cc-header-dark .header.color-fixed.sticky .mainnav ul.main-menu > li > a:hover { color: #B90808 !important; }
body.cc-header-dark .header.sticky .aside_open span,
body.cc-header-dark .header.color-fixed.sticky .aside_open span { background: #8B5322 !important; }
body.cc-header-dark .header.sticky .mr_menu_toggle,
body.cc-header-dark .header.color-fixed.sticky .mr_menu_toggle { color: #8B5322 !important; }

/* ── White header (matches homepage sticky state exactly) ── */
.header,
.header.color-fixed {
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.header .header-inner {
    background: transparent !important;
}
.header .mainnav ul.main-menu > li > a,
.header.color-fixed .mainnav ul.main-menu > li > a { color: #8B5322 !important; }
.header .mainnav ul.main-menu > li > a:hover,
.header .mainnav ul.main-menu > li.active > a { color: #B90808 !important; }
.header .mainnav ul.main-menu > li > a::before,
.header.color-fixed .mainnav ul.main-menu > li.active > a::before { background-color: #B90808 !important; }
.header .aside_open span,
.header.color-fixed .aside_open span { background: #8B5322 !important; }
.header .mr_menu_toggle,
.header.color-fixed .mr_menu_toggle { color: #8B5322 !important; }

/* ── Sticky state ── */
.header.sticky,
.header.color-fixed.sticky {
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    transform: translateY(0) !important;
    transform-origin: unset !important;
    perspective: none !important;
}
.header.sticky .header-inner,
.header.color-fixed.sticky .header-inner { background: transparent !important; }
.header.top-up {
    transform: translateY(-100%) !important;
    transform-origin: unset !important;
    transition: transform 0.3s ease !important;
}
.header.sticky .mainnav ul.main-menu > li > a,
.header.color-fixed.sticky .mainnav ul.main-menu > li > a { color: #8B5322 !important; }
.header.sticky .mainnav ul.main-menu > li > a:hover,
.header.color-fixed.sticky .mainnav ul.main-menu > li > a:hover { color: #B90808 !important; }
.header.sticky .aside_open span,
.header.color-fixed.sticky .aside_open span { background: #8B5322 !important; }
.header.sticky .mr_menu_toggle,
.header.color-fixed.sticky .mr_menu_toggle { color: #8B5322 !important; }

/* ── Aside panel (red, same for all pages) ── */
.aside_info_wrapper { background-color: #B90808 !important; overflow-y: auto !important; overflow-x: hidden !important; }
.aside_close { color: #fff !important; }
.aside_info_wrapper .aside_close { margin-bottom: 20px !important; }
.aside_info_wrapper .aside_logo { margin-bottom: 28px !important; }
.aside_info_wrapper h6 { margin-bottom: 10px !important; margin-top: 0 !important; }
.aside_info_wrapper .insta-logo { margin-bottom: 14px !important; }
.aside_info_wrapper .wptb-instagram--gallery { margin-bottom: 50px !important; width: 100% !important; }
.aside_info_wrapper .wptb-icon-box1 { margin-bottom: 18px !important; }
.aside_info_wrapper, .aside_info_wrapper h6, .aside_info_wrapper p,
.aside_info_wrapper a, .aside_info_wrapper .insta-logo,
.aside_info_wrapper .wptb-item--description,
.aside_info_wrapper .wptb-item--icon i { color: #ffffff !important; }
.aside_info_wrapper .aside_logo,
.aside_info_wrapper h6,
.aside_info_wrapper .insta-logo,
.aside_info_wrapper .wptb-instagram--gallery,
.aside_info_wrapper .wptb-icon-box1,
.aside_info_wrapper .social-box { text-align: left !important; justify-content: flex-start !important; }
.aside_info_wrapper .aside_logo img { filter: brightness(0) invert(1) !important; }
.aside_info_wrapper .wptb-instagram--gallery .wptb-item--inner {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3px !important;
}
.aside_info_wrapper .wptb-instagram--gallery .wptb-item { width: auto !important; max-width: none !important; }
.aside_info_wrapper .wptb-instagram--gallery .wptb-item--image { width: 100%; height: 80px; overflow: hidden; }
.aside_info_wrapper .wptb-instagram--gallery .wptb-item--image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Mobile sidebar — dark theme ── */
.mr_menu {
    width: 300px; background: #0d0d0d;
    padding: 28px 24px; height: 100%; position: fixed;
    left: -300px; top: 0; z-index: 14; transition: .3s;
    overflow-x: hidden; overflow-y: auto;
    box-shadow: 4px 0 32px rgba(0,0,0,0.4);
}
body.mr_menu_active .mr_menu { left: 0; }

/* Full width on phones */
@media (max-width: 767px) {
    .mr_menu { width: 100vw !important; left: -100vw; }
    body.mr_menu_active .mr_menu { left: 0; }
}

/* Close button */
.mr_menu_close { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 24px; cursor: pointer; padding: 0; margin-bottom: 20px; display: block; }
.mr_menu_close:hover { color: #fff; }

/* Logo — white, left-aligned */
.mr_menu .logo { text-align: left; margin-bottom: 20px; }
.mr_menu .logo img,
.mr_menu .logo img.cc-logo { filter: brightness(0) invert(1) !important; height: 36px !important; width: auto; }

/* Section headings — Black Ops One */
.mr_menu h6 {
    font-family: 'Black Ops One', cursive !important;
    color: rgba(255,255,255,0.35); font-size: 11px;
    margin: 24px 0 10px; letter-spacing: 2px; text-transform: uppercase;
}

/* Nav links */
.mr_menu ul.main-menu { border-top-color: rgba(255,255,255,0.08) !important; }
.mr_menu ul.main-menu li a {
    color: rgba(255,255,255,0.7) !important; text-align: left !important;
    border-bottom-color: rgba(255,255,255,0.07) !important;
}
.mr_menu ul.main-menu li.current > a,
.mr_menu ul.main-menu li.active > a,
.mr_menu ul.main-menu li:hover > a { color: #B90808 !important; }

/* 7th nav item icon (Contact) — theme only defines 6 */
.mr_menu ul.main-menu > li:nth-child(7) > a::before { content: '\F32A'; font-family: 'bootstrap-icons'; color: #B90808; }

/* Contact info items */
.wptb-icon-box1.style2 .wptb-item--inner { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.wptb-item--icon i { color: #B90808 !important; font-size: 16px; margin-top: 2px; }
.wptb-item--description {
    font-family: 'Black Ops One', cursive !important;
    font-size: 12px !important; color: rgba(255,255,255,0.55) !important;
    margin: 0 !important; letter-spacing: 0.3px;
}
.wptb-item--description a { color: rgba(255,255,255,0.55) !important; text-decoration: none; }
.wptb-item--description a:hover { color: #B90808 !important; }

/* Follow us social button */
.social-box ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.social-box ul li a {
    width: 38px; height: 38px; border-radius: 8px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); text-decoration: none; font-size: 16px; transition: all 0.2s;
}
.social-box ul li a:hover { background: #B90808; border-color: #B90808; color: #fff; }

/* ── Footer (dark, same for all pages) ── */
.cc-footer { background: #111; }

/* CTA strip */
.cc-footer-cta {
    background: #B90808;
    padding: 36px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cc-footer-cta-inner {
    display: flex; align-items: center;
    justify-content: space-between; gap: 24px;
    flex-wrap: wrap;
}
.cc-fcta-label {
    font-family: 'Syne', sans-serif;
    font-size: 11px; letter-spacing: 3px;
    text-transform: uppercase; color: rgba(255,255,255,0.65);
    display: block; margin-bottom: 6px;
}
.cc-fcta-heading {
    font-family: 'Black Ops One', cursive;
    font-size: clamp(20px, 2.4vw, 28px);
    color: #fff; margin: 0;
}
.cc-fcta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cc-fcta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 8px;
    font-family: 'Syne', sans-serif; font-size: 13px;
    font-weight: 700; text-decoration: none;
    transition: all 0.2s; white-space: nowrap;
}
.cc-fcta-whatsapp { background: #25D366; color: #fff; }
.cc-fcta-whatsapp:hover { background: #1ebe5a; color: #fff; }
.cc-fcta-call { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.cc-fcta-call:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* Main footer body */
.cc-footer-main { padding: 64px 0 48px; }
.cc-footer-desc {
    font-family: 'Syne', sans-serif;
    font-size: 14px; color: rgba(255,255,255,0.45);
    line-height: 24px; margin-bottom: 24px; max-width: 320px;
}
.cc-footer-contact { display: flex; flex-direction: column; gap: 10px; }
.cc-fcontact-item {
    display: flex; align-items: flex-start; gap: 10px;
    font-family: 'Syne', sans-serif; font-size: 13px;
    color: rgba(255,255,255,0.55); text-decoration: none;
    line-height: 20px; transition: color 0.2s;
}
a.cc-fcontact-item:hover { color: #d4a017; }
.cc-fcontact-item i { color: #B90808; margin-top: 2px; flex-shrink: 0; }

/* Footer headings */
.cc-footer-heading {
    font-family: 'Black Ops One', cursive;
    font-size: 13px; letter-spacing: 2px;
    text-transform: uppercase; color: #fff;
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Footer links */
.cc-footer-links {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.cc-footer-links li a {
    font-family: 'Syne', sans-serif; font-size: 13px;
    color: rgba(255,255,255,0.45); text-decoration: none;
    transition: color 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.cc-footer-links li a::before {
    content: ''; font-size: 10px;
    color: rgba(185,8,8,0.5); flex-shrink: 0;
}
.cc-footer-links li a:hover { color: #d4a017; }

/* Social buttons */
.cc-footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-fsocial-btn {
    width: 40px; height: 40px; border-radius: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); font-size: 16px;
    text-decoration: none; transition: all 0.2s;
}
.cc-fsocial-btn:hover { background: #B90808; border-color: #B90808; color: #fff; }

/* Studio hours */
.cc-fhour-item {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
    font-family: 'Syne', sans-serif; font-size: 12px;
    color: rgba(255,255,255,0.45);
}

/* Bottom bar */
.cc-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 18px 0;
}
.cc-footer-bottom-inner {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.cc-footer-bottom-inner p {
    font-family: 'Syne', sans-serif; font-size: 12px;
    color: rgba(255,255,255,0.3); margin: 0;
}
.cc-footer-bottom-inner a { color: #d4a017; text-decoration: none; }
.cc-footer-bottom-inner a:hover { color: #fff; }

/* ── Footer mobile responsive — all !important to beat page-specific CSS ── */
@media (max-width: 768px) {
    /* CTA strip */
    .cc-footer-cta { padding: 20px 0 !important; }
    .cc-footer-cta-inner { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
    .cc-fcta-label { font-size: 9px !important; letter-spacing: 2px !important; margin-bottom: 3px !important; }
    .cc-fcta-heading { font-size: 18px !important; }
    .cc-fcta-btn { padding: 8px 14px !important; font-size: 11px !important; border-radius: 6px !important; gap: 6px !important; }
    .cc-fcta-actions { gap: 8px !important; }

    /* Main body */
    .cc-footer-main { padding: 24px 0 12px !important; }

    /* Bootstrap mb-5 override */
    .cc-footer .row > [class*="col-"] { margin-bottom: 14px !important; }
    .cc-footer .row > [class*="col-"]:last-child { margin-bottom: 0 !important; }

    /* Logo */
    .cc-footer .cc-footer-brand-img,
    .cc-footer img[alt="Creators Cave"] { height: 36px !important; margin-bottom: 10px !important; display: block !important; }

    /* Description */
    .cc-footer-desc { font-size: 12px !important; line-height: 18px !important; margin-bottom: 12px !important; max-width: 100% !important; }

    /* Contact items */
    .cc-footer-contact { gap: 6px !important; }
    .cc-fcontact-item { font-size: 11px !important; line-height: 16px !important; gap: 8px !important; }
    .cc-fcontact-item i { font-size: 13px !important; }

    /* 3-column layout */
    .cc-footer-main .col-6 { flex: 0 0 33.333% !important; max-width: 33.333% !important; padding-left: 6px !important; padding-right: 6px !important; }
    .cc-footer-main .col-lg-3 { flex: 0 0 33.333% !important; max-width: 33.333% !important; padding-left: 6px !important; padding-right: 6px !important; }
    .cc-footer-main .offset-lg-1 { margin-left: 0 !important; }

    /* Headings */
    .cc-footer .cc-footer-heading { font-size: 9px !important; letter-spacing: 0.8px !important; margin-bottom: 8px !important; padding-bottom: 5px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }

    /* Links */
    .cc-footer .cc-footer-links { gap: 4px !important; }
    .cc-footer .cc-footer-links li { margin: 0 !important; padding: 0 !important; }
    .cc-footer .cc-footer-links li a { font-size: 11px !important; line-height: 1.4 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }

    /* Follow Us */
    .cc-footer-social { margin-bottom: 10px !important; gap: 6px !important; }
    .cc-fsocial-btn { width: 30px !important; height: 30px !important; font-size: 13px !important; border-radius: 6px !important; }

    /* Studio hours */
    .cc-footer-hours .cc-footer-heading { margin-top: 10px !important; }
    .cc-fhour-item { flex-direction: column !important; align-items: flex-start !important; padding: 4px 0 !important; font-size: 10px !important; gap: 1px !important; border-bottom-color: rgba(255,255,255,0.05) !important; }
    .cc-fhour-item span:first-child { color: rgba(255,255,255,0.6) !important; font-size: 10px !important; }
    .cc-fhour-item span:last-child { color: rgba(255,255,255,0.35) !important; font-size: 9px !important; }

    /* Bottom bar — centered */
    .cc-footer-bottom { padding: 12px 0; }
    .cc-footer-bottom-inner { flex-direction: column; align-items: center; gap: 3px; text-align: center; }
    .cc-footer-bottom-inner p { font-size: 11px; text-align: center; }
}
