/* ==========================================================================
   Stigmova „Modern Luxury” (SPEC_015.4) - tokeni globali, butoane, Header și Footer
   Alb pur + gri-perlat neutru + noir + auriu șampanie. Fără crem / bej.
   Încărcat pe TOATE paginile (handle stigmova-ds). Paginile de servicii refolosesc tokenii --stm-*.
   Atenție: tailwind.min.css folosește @layer, deci stilurile de aici au prioritate
   față de utilitarele Tailwind (inclusiv .hidden - de aceea îl reafirmăm unde setăm display).
   ========================================================================== */

:root {
    /* Suprafețe */
    --stm-white: #FFFFFF;
    --stm-pearl: #F5F6F8;
    --stm-pearl-deep: #EBEDF1;
    --stm-line: #E3E6EB;
    --stm-line-strong: #CDD2DA;

    /* Noir */
    --stm-noir: #0E131D;
    --stm-noir-soft: #161D2A;
    --stm-noir-line: rgba(255, 255, 255, 0.12);
    --stm-on-noir: #D3D7DF;
    --stm-on-noir-muted: #9BA3B1;

    /* Text */
    --stm-ink: #111827;
    --stm-text: #374151;
    --stm-muted: #596273;

    /* Auriu șampanie (accent de bijuterie) */
    --stm-champagne: #C49A6C;
    --stm-champagne-light: #DFBF99;
    --stm-champagne-deep: #9A7432;  /* titluri mari */
    --stm-champagne-ink: #85622A;   /* text mic pe alb / perlat (contrast AA) */

    /* Formă */
    --stm-radius-s: 10px;
    --stm-radius-m: 16px;
    --stm-radius-l: 24px;
    --stm-shadow: 0 24px 60px -32px rgba(14, 19, 29, 0.35);
    --stm-header-h: 80px;
}

/* --------------------------------------------------------------------------
   Butoane comune
   -------------------------------------------------------------------------- */
a.stm-btn,
button.stm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--stm-radius-s);
    font-family: var(--stm-font-sans, 'Montserrat', sans-serif);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
a.stm-btn--noir, button.stm-btn--noir { background: var(--stm-noir); color: #FFFFFF; }
a.stm-btn--noir:hover, button.stm-btn--noir:hover { background: var(--stm-noir-soft); color: var(--stm-champagne-light); }
a.stm-btn--gold, button.stm-btn--gold { background: var(--stm-champagne); color: var(--stm-noir); }
a.stm-btn--gold:hover, button.stm-btn--gold:hover { background: var(--stm-champagne-light); color: var(--stm-noir); }
a.stm-btn--ghost-noir { border-color: rgba(255, 255, 255, 0.28); color: #FFFFFF; }
a.stm-btn--ghost-noir:hover { border-color: var(--stm-champagne-light); color: var(--stm-champagne-light); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.stm-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--stm-line);
    font-family: var(--stm-font-sans, 'Montserrat', sans-serif);
}
.admin-bar .stm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .stm-header { top: 46px; } }

.stm-header *, .stm-footer * { box-sizing: border-box; }

.stm-header-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: var(--stm-header-h);
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 16px;
}

.stm-header a.stm-logo { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; }
.stm-logo img { display: block; width: auto; height: 36px; }

.stm-nav { display: none; }
.stm-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.stm-header button.stm-planner-btn { display: none; }
.stm-header a.stm-header-cta { min-height: 42px; padding: 10px 14px; font-size: 10.5px; white-space: nowrap; }
@media (max-width: 359px) { .stm-header a.stm-header-cta { display: none; } }

.stm-header button.stm-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--stm-line);
    border-radius: var(--stm-radius-s);
    background: var(--stm-white);
    color: var(--stm-ink);
    font-size: 17px;
    cursor: pointer;
}

.stm-header a:focus-visible,
.stm-header button:focus-visible,
.stm-footer a:focus-visible {
    outline: 2px solid var(--stm-champagne);
    outline-offset: 2px;
}

/* Meniu mobil / tabletă */
.stm-mnav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--stm-header-h));
    max-height: calc(100dvh - var(--stm-header-h));
    overflow-y: auto;
    padding: 8px 20px 24px;
    background: var(--stm-white);
    border-top: 1px solid var(--stm-line);
    box-shadow: 0 30px 50px -24px rgba(14, 19, 29, 0.35);
}
.stm-mnav.hidden { display: none; }
.stm-mnav ul { margin: 0; padding: 0; list-style: none; }
.stm-mnav > ul > li { margin: 0; border-bottom: 1px solid var(--stm-line); }
.stm-mnav > ul > li > a {
    display: flex;
    align-items: center;
    min-height: 54px;
    font-family: var(--stm-font-serif, 'Playfair Display', Georgia, serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--stm-ink);
    text-decoration: none;
}
.stm-mnav > ul > li > a .fa-chevron-down { display: none; }
.stm-mnav ul.sub-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 0 14px;
}
.stm-mnav ul.sub-menu li { margin: 0; min-width: 0; }
.stm-mnav ul.sub-menu a {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: var(--stm-radius-s);
    background: var(--stm-pearl);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--stm-ink);
    text-decoration: none;
}
.stm-mnav .current-menu-item > a { color: var(--stm-champagne-ink); }
.stm-mnav-foot { display: grid; gap: 10px; margin-top: 18px; }
.stm-mnav button.stm-mnav-planner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 10px 16px;
    border: 1px solid var(--stm-line-strong);
    border-radius: var(--stm-radius-s);
    background: var(--stm-white);
    color: var(--stm-ink);
    font: 700 13px/1.3 var(--stm-font-sans, 'Montserrat', sans-serif);
    text-align: left;
    cursor: pointer;
}
.stm-mnav button.stm-mnav-planner i { color: var(--stm-champagne-ink); margin-right: 8px; }
.stm-mnav a.stm-mnav-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    font-size: 13px;
    font-weight: 600;
    color: var(--stm-muted);
    text-decoration: none;
}

.stm-chip {
    display: inline-block;
    padding: 2px 6px 1px;
    border: 1px solid var(--stm-champagne);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stm-champagne-ink);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .stm-header-in { padding: 0 24px; }
    .stm-logo img { height: 40px; }
    .stm-header-actions { gap: 10px; }
    .stm-header button.stm-planner-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 42px;
        padding: 8px 14px;
        border: 1px solid var(--stm-line-strong);
        border-radius: var(--stm-radius-s);
        background: var(--stm-white);
        color: var(--stm-ink);
        font: 700 11px/1.2 var(--stm-font-sans, 'Montserrat', sans-serif);
        white-space: nowrap;
        cursor: pointer;
        transition: border-color 0.2s ease;
    }
    .stm-header button.stm-planner-btn:hover { border-color: var(--stm-champagne); }
    .stm-header button.stm-planner-btn i { color: var(--stm-champagne-ink); }
    .stm-planner-btn .stm-chip { display: none; }
}

/* Meniul complet doar de la 1024px: la 768px rămâne compact (hamburger) */
@media (min-width: 1024px) {
    .stm-header button.stm-burger,
    .stm-header .stm-mnav { display: none; }

    .stm-nav { display: block; flex: 1 1 auto; min-width: 0; }
    .stm-nav > ul {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 22px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .stm-nav li { position: relative; margin: 0; }
    .stm-nav > ul > li > a {
        display: flex;
        align-items: center;
        gap: 6px;
        height: var(--stm-header-h);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        white-space: nowrap;
        color: var(--stm-text);
        text-decoration: none;
        box-shadow: inset 0 -2px 0 transparent;
        transition: color 0.2s ease, box-shadow 0.2s ease;
    }
    .stm-nav > ul > li > a:hover,
    .stm-nav > ul > li:focus-within > a,
    .stm-nav > ul > li.current-menu-item > a,
    .stm-nav > ul > li.current-menu-ancestor > a {
        color: var(--stm-ink);
        box-shadow: inset 0 -2px 0 var(--stm-champagne);
    }
    .stm-nav > ul > li.menu-item-has-children > a::after {
        content: "";
        width: 5px;
        height: 5px;
        margin-top: -3px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        opacity: 0.6;
    }
    .stm-nav > ul > li.menu-item-has-children > a .fa-chevron-down { display: none; }

    .stm-nav ul.sub-menu {
        position: absolute;
        top: 100%;
        left: -20px;
        z-index: 50;
        min-width: 270px;
        margin: 0;
        padding: 10px;
        list-style: none;
        background: var(--stm-white);
        border: 1px solid var(--stm-line);
        border-radius: 0 0 var(--stm-radius-m) var(--stm-radius-m);
        box-shadow: var(--stm-shadow);
        visibility: hidden;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    }
    .stm-nav li:hover > ul.sub-menu,
    .stm-nav li:focus-within > ul.sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
    .stm-nav ul.sub-menu a {
        display: block;
        padding: 11px 12px;
        border-radius: 8px;
        font-size: 12.5px;
        font-weight: 600;
        line-height: 1.35;
        color: var(--stm-ink);
        text-decoration: none;
    }
    .stm-nav ul.sub-menu a:hover,
    .stm-nav ul.sub-menu .current-menu-item > a { background: var(--stm-pearl); color: var(--stm-champagne-ink); }

    .stm-header a.stm-header-cta { padding: 10px 20px; }
}

@media (min-width: 1180px) {
    .stm-nav > ul { gap: 34px; }
    .stm-planner-btn .stm-chip { display: inline-block; }
}

@media (min-width: 1024px) and (max-width: 1139px) {
    .stm-planner-brand { display: none; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.stm-footer {
    position: relative;
    z-index: 10;
    overflow: hidden;
    background: var(--stm-noir);
    color: var(--stm-on-noir);
    font-family: var(--stm-font-sans, 'Montserrat', sans-serif);
    font-size: 13.5px;
    line-height: 1.6;
}
.stm-footer-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.stm-footer p { margin: 0; }
.stm-footer a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.stm-footer a:hover { color: var(--stm-champagne-light); }

.stm-footer-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); /* adresa de e-mail pe un rând */
    gap: 32px 16px;
    padding: 40px 0;
}
.stm-footer-col { min-width: 0; }
.stm-footer-brand { grid-column: 1 / -1; }
.stm-footer .stm-footer-head {
    margin: 0 0 14px;
    font-family: var(--stm-font-sans, 'Montserrat', sans-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stm-champagne-light);
}
.stm-footer-brand img { display: block; width: auto; height: 32px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.stm-footer-brand p { max-width: 24em; color: var(--stm-on-noir-muted); }
.stm-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.stm-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--stm-noir-line);
    border-radius: 50%;
    font-size: 17px;
}
.stm-footer-social a:hover { border-color: var(--stm-champagne-light); }

.stm-footer ul { margin: 0; padding: 0; list-style: none; }
.stm-footer li { margin: 0 0 2px; }
.stm-footer-col li a,
.stm-footer-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; overflow-wrap: anywhere; }
.stm-footer-contact a { display: flex; }
.stm-footer-contact i { width: 16px; text-align: center; color: var(--stm-champagne-light); }

/* Informații discrete: vizibile și lizibile, dar fără aspect de buton */
.stm-footer .stm-footer-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid var(--stm-noir-line);
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
    color: var(--stm-on-noir-muted);
}
.stm-footer-note a { text-decoration: underline; text-decoration-color: rgba(223, 191, 153, 0.35); text-underline-offset: 3px; overflow-wrap: anywhere; }

.stm-footer-wordmark {
    font-family: var(--stm-font-serif, 'Playfair Display', Georgia, serif);
    font-size: 17.2vw;
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: -0.01em;
    text-align: center;
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(180deg, rgba(223, 191, 153, 0.34), rgba(223, 191, 153, 0.02));
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.stm-footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0 96px; /* loc pentru butonul WhatsApp */
    border-top: 1px solid var(--stm-noir-line);
    text-align: center;
    font-size: 11px;
    color: var(--stm-on-noir-muted);
}
.stm-footer-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.stm-footer-badges a { display: block; overflow: hidden; border-radius: 4px; }
.stm-footer-badges img { display: block; width: auto; height: 40px; }
.stm-footer-company { max-width: 52em; }

@media (min-width: 768px) {
    .stm-footer-wrap { padding: 0 32px; }
    .stm-footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; padding: 48px 0; }
    .stm-footer-brand { grid-column: auto; }
    .stm-footer-wordmark { font-size: min(17.2vw, 208px); }
}

@media (min-width: 1024px) {
    .stm-footer-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; }
    .stm-footer-legal { padding-bottom: 40px; }
}
