/* ==========================================================================
   Quick Fix Overrides (safe space)
   --------------------------------------------------------------------------
   This file is loaded AFTER theme.css, so rules here win by default.
   Use it for small fixes (header/menu/blog tweaks) without touching core CSS.
   ========================================================================== */

/* Example:
#site-header { outline: 1px solid red; }
*/

.home #site-header {
    background-color: #1a1a2e !important;
    backdrop-filter: none !important;
}
/* Schimbă culoarea header-ului doar pe prima pagină */
body.home .site-header {
    background-color: #0b0b1a !important; /* Codul culorii din imaginea ta */
    border-bottom: none !important;
}

/* Opțional: Dacă textul din meniu devine greu de citit */
body.home .site-header a {
    color: #ffffff !important;
}

/* ============================================================
   HAMBURGER MENU FIX - mobile homepage
   ------------------------------------------------------------
   Ensures the mobile menu toggle (#mobile-menu-toggle) is
   visible and clickable on the homepage at viewports < 1024px.
   The button is in header.php with class 'lg:hidden' so it
   already auto-hides on desktop. These rules add a strong
   fallback so it can never be hidden by other stylesheets,
   gives it a circular gold background for contrast over the
   dark hero, and keeps it on top of the hero (z-index).
   ------------------------------------------------------------
   To CHANGE the icon background colour: edit 'background' below.
   To CHANGE the icon colour:           edit 'color' below.
   To DISABLE this fix:                 delete this whole block.
   ============================================================ */
@media (max-width: 1023px) {
    #site-header { z-index: 60 !important; }
    #mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 70 !important;
        width: 44px;
        height: 44px;
        padding: 0 !important;
        margin-left: 8px;
        background: #c9a84c;        /* gold pill, change here */
        color: #0b0b1a !important;  /* icon colour, change here */
        border: 0;
        border-radius: 999px;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(0,0,0,.25);
    }
    #mobile-menu-toggle:hover { background:#d6b455; }
    #mobile-menu-toggle svg { width:22px; height:22px; stroke: currentColor; }
    /* Make sure the hero/sections never sit above the header */
    #hero, .hero, section.hero { z-index: 1; }
}
@media (min-width: 1024px) {
    #mobile-menu-toggle { display: none !important; }
}


/* ============================================================
   MOBILE HAMBURGER DRAWER - centered links + gold colour
   ------------------------------------------------------------
   Affects ONLY the mobile drawer (#mobile-menu in header.php).
   Desktop nav is untouched (it is hidden on mobile and this
   rule is wrapped in a max-width:1023px media query anyway).
   ------------------------------------------------------------
   Gold #b8860b = same colour as the phone CTA button.
   To change the link colour:   edit 'color' below.
   To change the hover colour:  edit ':hover { color: ... }'.
   To make links left-aligned again: delete 'text-align:center'.
   ============================================================ */
@media (max-width: 1023px) {
    #mobile-menu ul,
    #mobile-menu li,
    #mobile-menu .mobile-nav-item { text-align: center !important; list-style: none; }
    #mobile-menu a {
        text-align: center !important;
        color: #b8860b !important;        /* button gold */
        font-weight: 600;
        letter-spacing: .02em;
        justify-content: center;
    }
    #mobile-menu a:hover,
    #mobile-menu a:focus,
    #mobile-menu .current-menu-item > a {
        color: #d6a51b !important;        /* lighter gold on hover */
    }
    /* Submenu links inherit the same treatment */
    #mobile-menu .sub-menu a { color: #b8860b !important; }
}


/* ============================================================
   MOBILE MENU - center 'Blog' (parent with submenu) row
   ------------------------------------------------------------
   În nav-walkers.php, item-urile cu submenu sunt randate ca:
   <div class="flex items-stretch gap-1">
     <a>Blog</a><button>chevron</button>
   </div>
   Implicit acel <a> are 'flex-1' care îl întinde la stânga,
   iar săgeata stă în dreapta. Vrem ca tot rândul să fie centrat
   (textul 'Blog' la mijloc, săgeata imediat după el).
   ------------------------------------------------------------
   Ca să dezactivezi: șterge tot blocul.
   ============================================================ */
@media (max-width: 1023px) {
    #mobile-menu .mobile-nav-item > .flex {
        justify-content: center !important;
        align-items: center !important;
        gap: .25rem !important;
    }
    #mobile-menu .mobile-nav-item > .flex > a {
        flex: 0 0 auto !important;
        text-align: center !important;
    }
    #mobile-menu .mobile-submenu-toggle {
        padding: 0 !important;
    }
}

/* ============================================================
   MOBILE MENU - hide phone button on HOMEPAGE only
   ------------------------------------------------------------
   Cerință: pe homepage scoatem ultimul rând (butonul galben
   cu numărul de telefon) din meniul mobil, pentru că în hero
   există deja CTA-ul cu telefonul. Pe restul paginilor butonul
   rămâne vizibil.
   ------------------------------------------------------------
   Ca să-l reafișezi pe homepage: șterge acest bloc.
   ============================================================ */
body.home #mobile-menu > div > a[href^="tel:"] {
    display: none !important;
}

/* ============================================================
   FOOTER - center column headings & links
   ------------------------------------------------------------
   În footer.php, coloanele 'Despre Noi', 'Domenii de Practică',
   'Servicii' sunt randate left-aligned implicit. Cerință:
   să apară centrate (titlu și linkuri).
   ------------------------------------------------------------
   Ca să le faci iar left-aligned: șterge acest bloc.
   ============================================================ */
.cs-footer .cs-footer__col,
.cs-footer .cs-footer__heading,
.cs-footer .cs-footer__links,
.cs-footer .cs-footer__links li,
.cs-footer .cs-footer__links a {
    text-align: center !important;
}
.cs-footer .cs-footer__links {
    align-items: center !important;
}

/* ----------------------------------------------------------------
   CTA color fix on blog/article posts (in-content boxes)
   ----------------------------------------------------------------
   Targets the in-post call-to-action boxes injected inside .prose:
     - .calinsega-cta-call : dark navy box with phone button
     - .calinsega-cta-wa   : light-green box with WhatsApp button
   Theme rule ".prose h1..h6 { color: #1a1a2e }" forces dark color on
   ALL headings inside .prose, even when class="not-prose" is used,
   so we override here with high-specificity selectors + !important.
   To revert: delete this whole block.
   ---------------------------------------------------------------- */
.prose .calinsega-cta-call,
.prose .calinsega-cta-call h1,
.prose .calinsega-cta-call h2,
.prose .calinsega-cta-call h3,
.prose .calinsega-cta-call h4,
.prose .calinsega-cta-call h5,
.prose .calinsega-cta-call h6,
.prose .calinsega-cta-call p,
.prose .calinsega-cta-call strong,
.prose .calinsega-cta-call span {
    color: #ffffff !important;
}

/* Phone button inside the dark CTA: white text, no underline */
.prose .calinsega-cta-call a,
.prose .calinsega-cta-call a[href^="tel:"],
.prose .calinsega-cta-call a[href^="tel:"]:hover,
.prose .calinsega-cta-call a[href^="tel:"]:focus,
.prose .calinsega-cta-call a[href^="tel:"]:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}
.prose .calinsega-cta-call a[href^="tel:"] svg { color: #ffffff !important; }

/* WhatsApp green button: white text, no underline */
.prose .calinsega-cta-wa a[href*="wa.me"],
.prose .calinsega-cta-wa a[href*="whatsapp"],
.prose .calinsega-cta-wa a[href*="wa.me"]:hover,
.prose .calinsega-cta-wa a[href*="whatsapp"]:hover,
.prose .calinsega-cta-wa a[href*="wa.me"]:focus,
.prose .calinsega-cta-wa a[href*="wa.me"]:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ----------------------------------------------------------------
   FAQ accordion styling (single post: <details class="cs-faq">)
   ----------------------------------------------------------------
   Markup is generated by JS in main.js, which wraps each H3+content
   pair following <h2 id="intrebari-frecvente"> into <details>.
   To revert visuals: delete this block. To disable accordion entirely:
   remove the FAQ block in assets/js/main.js.
   ---------------------------------------------------------------- */
.prose .cs-faq {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 12px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.prose .cs-faq + .cs-faq { margin-top: 14px; }
.prose .cs-faq > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    color: #1a1a2e;
    margin: 0;
}
.prose .cs-faq > summary::-webkit-details-marker { display: none; }
.prose .cs-faq > summary::after {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}
.prose .cs-faq[open] > summary::after { transform: rotate(180deg); }
.prose .cs-faq > .cs-faq__body {
    margin-top: 12px;
    color: #374151;
    font-size: 0.97rem;
    line-height: 1.6;
}
.prose .cs-faq > .cs-faq__body p { margin: 0 0 8px 0; }
.prose .cs-faq > .cs-faq__body p:last-child { margin-bottom: 0; }
