/* ═══════════════════════════════════════════
   JOY AMBIENT SRL — Global Styles
   Variabile :root, reset Astra, header, footer
   ═══════════════════════════════════════════ */

/* ─── ROOT VARIABLES ─── */
:root {
    /* Teal Palette */
    --joy-v50: #f0fdfa;
    --joy-v100: #ccfbf1;
    --joy-v200: #99f6e4;
    --joy-v300: #5eead4;
    --joy-v400: #2dd4bf;
    --joy-v500: #14b8a6;
    --joy-v600: #0d9488;
    --joy-v700: #0f766e;

    /* Backgrounds (Light) */
    --joy-bg-main: #f8fafb;
    --joy-bg-white: #ffffff;
    --joy-bg-cream: #f8fafb;

    /* Text */
    --joy-ink: #1a2332;
    --joy-ink2: #2d3748;
    --joy-muted: #718096;

    /* Accent / Primary */
    --joy-accent: #0d9488;
    --joy-accent-light: #5eead4;
    --joy-accent-glow: rgba(13, 148, 136, 0.35);
    --joy-accent-soft: rgba(13, 148, 136, 0.08);
    --joy-accent-dark: #0f766e;

    /* Status */
    --joy-success: #16a34a;
    --joy-error: #dc2626;
    --joy-warning: #d97706;
    --joy-stars: #f59e0b;

    /* Fonts */
    --joy-font-main: 'Inter', sans-serif;
    --joy-font-serif: 'Playfair Display', serif;

    /* Transitions */
    --joy-transition: 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}


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

body {
    font-family: var(--joy-font-main);
    color: var(--joy-ink);
    background: var(--joy-bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}


/* ─── ASTRA RESET (Global) ─── */
.site-header,
#masthead,
.ast-main-header-wrap { display: none !important; }

.site-footer,
#colophon,
.ast-builder-footer-wrap { display: none !important; }

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post { padding: 0; }

.site-content { padding-top: 0 !important; }

/* Reset bullets for themed pages */
body[class*="joy-dark-"] ul:not(.feat-ul):not(.legal-document ul):not(.joy-prod-desc-content ul):not(.joy-article-content ul),
body.joy-product-dark ul:not(.feat-ul):not(.joy-prod-desc-content ul) {
    list-style: none;
    padding-left: 0;
    margin: 0;
}


/* ─── GRAIN OVERLAY ─── */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ═══════════════════════════════════════════
   PNRR BANNER
   ═══════════════════════════════════════════ */

.joy-pnrr-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.joy-pnrr-banner-link {
    display: inline-flex;
    align-items: center;
    padding: 0 24px;
    height: 100%;
}

.joy-pnrr-banner-link img {
    height: 36px;
    width: auto;
    object-fit: contain;
}


/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */

.joy-custom-header {
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    z-index: 10001;
    padding: 20px 0;
    background: rgba(26, 22, 37, .72);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: top var(--joy-transition),
                padding var(--joy-transition),
                background var(--joy-transition),
                backdrop-filter var(--joy-transition);
}

/* Pages with dark hero — header transparent until scroll */
body.joy-dark-home .joy-custom-header:not(.is-scrolled),
body.joy-dark-about .joy-custom-header:not(.is-scrolled),
body.joy-dark-blog .joy-custom-header:not(.is-scrolled),
body.joy-dark-article .joy-custom-header:not(.is-scrolled),
body.joy-dark-terms .joy-custom-header:not(.is-scrolled),
body.joy-dark-gdpr .joy-custom-header:not(.is-scrolled),
body.joy-dark-account .joy-custom-header:not(.is-scrolled) {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.joy-custom-header.is-scrolled {
    top: 0;
    padding: 12px 0;
    background: rgba(26, 22, 37, .72);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.joy-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.joy-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.joy-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--joy-v600);
    color: #fff;
    font-family: var(--joy-font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.joy-logo-text {
    font-family: var(--joy-font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .04em;
}

/* Nav Desktop */
.joy-nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 36px);
}

.joy-nav-link {
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    letter-spacing: .02em;
    transition: color var(--joy-transition);
}

.joy-nav-link:hover {
    color: #fff;
}

/* Cart Icon Header */
.joy-header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: color var(--joy-transition), background var(--joy-transition);
    flex-shrink: 0;
}

.joy-header-cart:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.joy-header-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    background: var(--joy-v600);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* CTA Button Header */
.joy-btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 60px;
    background: var(--joy-v600);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--joy-transition);
    flex-shrink: 0;
}

.joy-btn-cta:hover {
    background: var(--joy-v500);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--joy-accent-glow);
}

/* Burger Mobile */
.joy-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10003;
}

.joy-burger-line {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--joy-transition);
}

.joy-burger.is-active .joy-burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.joy-burger.is-active .joy-burger-line:nth-child(2) {
    opacity: 0;
}

.joy-burger.is-active .joy-burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ═══════════════════════════════════════════
   MOBILE MENU OVERLAY
   ═══════════════════════════════════════════ */

.joy-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 22, 37, .95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}

.joy-mobile-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.joy-mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.joy-mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .3s;
}

.joy-mobile-link:hover {
    color: #fff;
}

.joy-mobile-cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    border-radius: 60px;
    background: var(--joy-v600);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    transition: all .3s;
}

.joy-mobile-cta:hover {
    background: var(--joy-v500);
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.joy-custom-footer {
    background: var(--joy-ink);
    color: rgba(255, 255, 255, .55);
    padding: clamp(50px, 8vw, 90px) clamp(24px, 5vw, 80px) 30px;
}

.joy-footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Footer Top */
.joy-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.joy-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.joy-footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--joy-v600);
    color: #fff;
    font-family: var(--joy-font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.joy-footer-logo-text {
    font-family: var(--joy-font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.joy-footer-tagline {
    font-size: .76rem;
    color: rgba(255, 255, 255, .3);
    margin-top: 2px;
}

/* Footer Nav */
.joy-footer-nav {
    display: flex;
    gap: clamp(16px, 3vw, 32px);
    flex-wrap: wrap;
}

.joy-footer-nav a {
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .45);
    text-decoration: none;
    transition: color .3s;
}

.joy-footer-nav a:hover {
    color: #fff;
}

/* Social Media Links */
.joy-footer-social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.joy-footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .45);
    text-decoration: none;
    transition: color .3s;
}

.joy-footer-social-link svg {
    opacity: .6;
    transition: opacity .3s;
}

.joy-footer-social-link:hover {
    color: #fff;
}

.joy-footer-social-link:hover svg {
    opacity: 1;
}

/* PNRR Info */
.joy-footer-pnrr {
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.joy-footer-pnrr-title {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 8px;
}

.joy-footer-pnrr-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.joy-footer-pnrr-links a {
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .4);
    text-decoration: none;
    letter-spacing: .03em;
    transition: color .3s;
}

.joy-footer-pnrr-links a:hover {
    color: var(--joy-v300);
}

.joy-footer-pnrr-sep {
    opacity: .3;
    color: rgba(255, 255, 255, .4);
}

.joy-footer-pnrr-disclaimer {
    font-size: .72rem;
    color: rgba(255, 255, 255, .25);
    line-height: 1.7;
    max-width: 800px;
}

/* Legal Badges */
.joy-footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.joy-footer-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.joy-footer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    min-width: 168px;
    min-height: 62px;
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}

.joy-footer-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .06);
}

.joy-footer-badge-stripe {
    min-width: 214px;
}

.joy-footer-badge-img {
    display: block;
    width: auto;
    height: 44px;
    object-fit: contain;
}

.joy-footer-badge-stripe .joy-footer-badge-img {
    height: 32px;
}

.joy-footer-badge-fallback {
    display: none;
    color: rgba(255, 255, 255, .4);
    font-size: .76rem;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    padding: 0 6px;
}

.joy-footer-badge-img.is-broken {
    display: none;
}

.joy-footer-badge-img.is-broken + .joy-footer-badge-fallback {
    display: inline-block;
}

.joy-footer-legal-links {
    display: flex;
    gap: 20px;
}

.joy-footer-legal-links a {
    font-size: .76rem;
    color: rgba(255, 255, 255, .35);
    text-decoration: none;
    transition: color .3s;
}

.joy-footer-legal-links a:hover {
    color: var(--joy-v300);
}

/* Footer Bottom / Copyright */
.joy-footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.joy-footer-bottom p {
    font-size: .72rem;
    color: rgba(255, 255, 255, .2);
}

.joy-footer-company-info {
    margin-top: 4px;
    font-size: .68rem;
    color: rgba(255, 255, 255, .15);
}


/* ═══════════════════════════════════════════
   REVEAL ANIMATION (global)
   ═══════════════════════════════════════════ */

.rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

.rv.vis {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════
   SHARED SECTION COMPONENTS
   (sec-tag, sec-h, sec-p — folosite pe toate paginile)
   ═══════════════════════════════════════════ */

.sec-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--joy-v600);
    border: 1.5px solid var(--joy-v200);
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.sec-h {
    font-family: var(--joy-font-serif);
    font-size: clamp(1.9rem, 4.2vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.sec-p {
    font-size: clamp(.92rem, 1.2vw, 1.05rem);
    color: var(--joy-muted);
    line-height: 1.7;
    font-weight: 300;
    max-width: 480px;
}


/* ═══════════════════════════════════════════
   SHARED BUTTON COMPONENTS
   (btn-p, btn-g — folosite pe homepage + despre noi)
   ═══════════════════════════════════════════ */

.btn-p {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 60px;
    background: #fff;
    color: var(--joy-ink);
    font-size: .92rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .35s cubic-bezier(.76, 0, .24, 1);
    text-decoration: none;
    font-family: inherit;
}

.btn-p:hover {
    background: var(--joy-v300);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(13, 148, 136, .35);
}

.btn-g {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 60px;
    background: transparent;
    color: rgba(255, 255, 255, .55);
    font-size: .92rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
    transition: all .35s;
    text-decoration: none;
    font-family: inherit;
}

.btn-g:hover {
    border-color: var(--joy-v400);
    color: #fff;
}


/* ═══ MOBILE ═══ */
@media (max-width: 921px) {
    .joy-nav,
    .joy-btn-cta { display: none; }

    .joy-burger { display: flex; }
}

@media (max-width: 768px) {
    .joy-pnrr-banner { height: 44px; }
    .joy-pnrr-banner-link img { height: 28px; }
    .joy-custom-header { top: 44px; }

    .joy-footer-top {
        flex-direction: column;
        gap: 24px;
    }

    .joy-footer-social-links {
        flex-direction: column;
        gap: 14px;
    }

    .joy-footer-pnrr-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .joy-footer-pnrr-sep { display: none; }

    .joy-footer-legal {
        flex-direction: column;
        align-items: center;
    }

    .joy-footer-badges {
        flex-wrap: wrap;
        gap: 10px;
    }

    .joy-footer-badge {
        width: 100%;
        max-width: 280px;
        min-height: 56px;
    }

    .joy-footer-badge-img {
        height: 40px;
    }
}

/* ═══ DESKTOP MARE ═══ */
@media (min-width: 1400px) {
    .joy-header-container {
        max-width: 1400px;
    }

    .joy-footer-container {
        max-width: 1400px;
    }
}
