/* ═══════════════════════════════════════════
   JOY AMBIENT SRL — Homepage
   ═══════════════════════════════════════════ */

/* ─── ASTRA RESET ─── */
body.joy-dark-home .site-content,
body.joy-dark-home #primary,
body.joy-dark-home #content,
body.joy-dark-home .ast-container {
    background-color: var(--joy-bg-main) !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* ─── WRAPPER ─── */
#joy-home-page {
    padding-top: 0;
    min-height: 100vh;
}


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    background: var(--joy-ink);
    overflow: hidden;
    padding: 0 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Floating Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: orbFloat 14s ease-in-out infinite alternate;
}

.hero-orb-1 {
    width: 55vw;
    max-width: 600px;
    aspect-ratio: 1;
    background: var(--joy-v600);
    top: -15%;
    right: -8%;
    opacity: .3;
}

.hero-orb-2 {
    width: 35vw;
    max-width: 400px;
    aspect-ratio: 1;
    background: var(--joy-v400);
    bottom: 5%;
    left: 8%;
    opacity: .25;
    animation-delay: -5s;
}

.hero-orb-3 {
    width: 25vw;
    max-width: 300px;
    aspect-ratio: 1;
    background: var(--joy-v300);
    top: 35%;
    right: 25%;
    opacity: .15;
    animation-delay: -9s;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -40px) scale(1.1); }
    66%  { transform: translate(-20px, 30px) scale(.95); }
    100% { transform: translate(15px, -15px) scale(1.05); }
}

/* Vertical Lines */
.hero-lines {
    position: absolute;
    inset: 0;
    opacity: .06;
}

.hero-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(94, 234, 212, .5), transparent);
    width: 1px;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 clamp(24px, 5vw, 80px);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--joy-v300);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp .8s ease-out .2s forwards;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--joy-v400);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .3; transform: scale(.6); }
}

.hero-name {
    font-family: var(--joy-font-serif);
    font-size: clamp(3.2rem, 10vw, 9rem);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, #fff 0%, var(--joy-v200) 45%, var(--joy-v400) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: .1em;
    opacity: 0;
    animation: slideUp 1s ease-out .35s forwards;
}

.hero-name-sub {
    font-size: clamp(1.1rem, 2.8vw, 2.2rem);
    font-weight: 200;
    color: rgba(255, 255, 255, .3);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: slideUp .8s ease-out .55s forwards;
}

.hero-desc {
    max-width: 460px;
    font-size: clamp(.92rem, 1.4vw, 1.1rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, .45);
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: slideUp .8s ease-out .7s forwards;
}

.hero-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideUp .8s ease-out .85s forwards;
}

/* Buttons — base definită în global-styles.css */

@keyframes slideUp {
    from { opacity: 0; transform: translateY(35px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero Counter (stats) */
.hero-counter {
    position: absolute;
    right: clamp(24px, 5vw, 80px);
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    z-index: 2;
}

.hero-ci {
    text-align: right;
    opacity: 0;
    animation: slideUp .7s ease-out forwards;
}

.hero-ci:nth-child(1) { animation-delay: 1s; }
.hero-ci:nth-child(2) { animation-delay: 1.15s; }
.hero-ci:nth-child(3) { animation-delay: 1.3s; }

.hero-cn {
    font-family: var(--joy-font-serif);
    font-size: clamp(1.6rem, 2.5vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.hero-cl {
    font-size: .68rem;
    color: rgba(255, 255, 255, .25);
    text-transform: uppercase;
    letter-spacing: .1em;
    white-space: pre-line;
    margin-top: 4px;
}


/* ═══════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════ */

.marquee {
    overflow: hidden;
    background: var(--joy-v600);
    padding: 13px 0;
    white-space: nowrap;
}

.marquee-t {
    display: inline-flex;
    animation: mq 35s linear infinite;
}

.marquee-t span {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .65);
    padding: 0 36px;
}

.marquee-t span::after {
    content: '◆';
    margin-left: 36px;
    font-size: .45rem;
    vertical-align: middle;
    opacity: .35;
}

@keyframes mq {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════════ */

.sec {
    padding: clamp(70px, 10vw, 130px) clamp(24px, 5vw, 80px);
}

/* sec-tag, sec-h, sec-p — base definită în global-styles.css */

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


/* ═══════════════════════════════════════════
   FEATURED SERVICE
   ═══════════════════════════════════════════ */

.feat {
    background: var(--joy-bg-cream);
    position: relative;
    overflow: hidden;
}

.feat-deco {
    position: absolute;
    font-family: var(--joy-font-serif);
    font-size: clamp(8rem, 22vw, 20rem);
    font-weight: 700;
    color: rgba(13, 148, 136, .035);
    right: -3%;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.feat-vis {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(160deg, var(--joy-v100) 0%, var(--joy-v200) 50%, var(--joy-v300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat-ring {
    width: 55%;
    height: 55%;
    border: 2px dashed var(--joy-v400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 28s linear infinite;
    opacity: .35;
}

@keyframes spin {
    from { transform: rotate(0); }
    to   { transform: rotate(360deg); }
}

.feat-center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.feat-ico {
    color: var(--joy-v600);
    opacity: .5;
}

.feat-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.feat-pill {
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 14px 18px;
    text-align: center;
}

.feat-pill strong {
    display: block;
    font-family: var(--joy-font-serif);
    font-size: 1.4rem;
    color: var(--joy-v600);
    font-weight: 700;
}

.feat-pill small {
    font-size: .62rem;
    color: var(--joy-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.feat-info .sec-h {
    margin-bottom: 1.2rem;
}

.feat-info > p {
    font-size: .93rem;
    color: var(--joy-muted);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: none;
}

.feat-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.feat-ul li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .9rem;
    color: var(--joy-ink2);
}

.feat-ck {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--joy-v100);
    color: var(--joy-v600);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ═══════════════════════════════════════════
   BENTO SERVICES
   ═══════════════════════════════════════════ */

.svc {
    background: var(--joy-bg-white);
}

.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    margin-top: 3rem;
}

.bc {
    background: var(--joy-bg-cream);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 40px);
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: all .45s cubic-bezier(.76, 0, .24, 1);
    border: 1.5px solid transparent;
}

.bc:hover {
    transform: translateY(-5px);
    border-color: var(--joy-v200);
    box-shadow: 0 24px 60px rgba(13, 148, 136, .1);
}

.bc:nth-child(1) { grid-column: span 7; }
.bc:nth-child(2) { grid-column: span 5; }
.bc:nth-child(3) { grid-column: span 4; }
.bc:nth-child(4) { grid-column: span 4; }
.bc:nth-child(5) { grid-column: span 4; }

.bc-num {
    font-family: var(--joy-font-serif);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    color: var(--joy-v100);
    line-height: 1;
    position: absolute;
    top: 16px;
    right: 20px;
    transition: color .35s;
}

.bc:hover .bc-num {
    color: var(--joy-v200);
}

.bc-ico {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    transition: transform .35s;
}

.bc:hover .bc-ico {
    transform: scale(1.08) rotate(-3deg);
}

.bc-short {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--joy-v500);
    margin-bottom: .65rem;
}

.bc h3 {
    font-family: var(--joy-font-serif);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: .5rem;
    white-space: pre-line;
}

.bc p {
    font-size: .86rem;
    color: var(--joy-muted);
    line-height: 1.65;
    font-weight: 300;
}


/* ═══════════════════════════════════════════
   ADVANTAGES
   ═══════════════════════════════════════════ */

.adv {
    background: var(--joy-ink);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.adv::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--joy-v700);
    filter: blur(160px);
    opacity: .12;
    top: -200px;
    right: -100px;
}

.adv .sec-tag {
    color: var(--joy-v300);
    border-color: rgba(94, 234, 212, .18);
}

.adv .sec-h {
    color: #fff;
}

.adv .sec-p {
    color: rgba(255, 255, 255, .35);
}

.adv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 3rem;
}

.adv-c {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 26px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .05);
    transition: all .35s;
    cursor: default;
}

.adv-c:hover {
    background: rgba(13, 148, 136, .1);
    border-color: rgba(13, 148, 136, .2);
    transform: translateX(6px);
}

.adv-dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--joy-v500);
    margin-top: 6px;
    box-shadow: 0 0 14px rgba(13, 148, 136, .6);
}

.adv-c span:last-child {
    font-size: .93rem;
    color: rgba(255, 255, 255, .7);
    font-weight: 300;
    line-height: 1.5;
}


/* ═══════════════════════════════════════════
   COMPETENCIES
   ═══════════════════════════════════════════ */

.comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
    margin-top: 3rem;
}

.comp-c {
    background: var(--joy-bg-cream);
    border-radius: 20px;
    padding: clamp(28px, 3vw, 40px);
    position: relative;
    overflow: hidden;
    transition: all .35s;
}

.comp-c:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13, 148, 136, .08);
}

.comp-n {
    font-family: var(--joy-font-serif);
    font-size: clamp(3.2rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--joy-v100);
    line-height: 1;
    margin-bottom: .75rem;
}

.comp-c h3 {
    font-family: var(--joy-font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: .5rem;
    white-space: pre-line;
}

.comp-c p {
    font-size: .85rem;
    color: var(--joy-muted);
    line-height: 1.6;
    font-weight: 300;
}


/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */

.test {
    background: var(--joy-bg-white);
}

.test-lay {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    margin-top: 3rem;
}

.test-card {
    background: var(--joy-bg-cream);
    border-radius: 24px;
    padding: clamp(30px, 4vw, 52px);
    position: relative;
}

.test-qi {
    color: var(--joy-v400);
    margin-bottom: 1.25rem;
}

.test-stars {
    display: flex;
    gap: 4px;
    color: var(--joy-stars);
    margin-bottom: 1.1rem;
}

.test-txt {
    font-family: var(--joy-font-serif);
    font-size: clamp(.95rem, 1.4vw, 1.15rem);
    line-height: 1.8;
    font-weight: 400;
    color: var(--joy-ink2);
    font-style: italic;
    margin-bottom: 2rem;
}

.test-auth {
    display: flex;
    align-items: center;
    gap: 14px;
}

.test-av {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--joy-v400), var(--joy-v600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--joy-font-serif);
    font-size: 1.05rem;
    font-weight: 700;
}

.test-nm {
    font-weight: 700;
    font-size: .93rem;
}

.test-rl {
    font-size: .76rem;
    color: var(--joy-muted);
    margin-top: 2px;
}

.test-nav {
    display: flex;
    gap: 10px;
    margin-top: 2rem;
}

.test-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--joy-v200);
    background: transparent;
    color: var(--joy-v500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
    font-size: 1.1rem;
    font-family: inherit;
}

.test-btn:hover {
    background: var(--joy-v600);
    color: #fff;
    border-color: var(--joy-v600);
}

.test-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 1.25rem;
}

.test-d {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--joy-v200);
    transition: all .35s;
    cursor: pointer;
}

.test-d.on {
    width: 32px;
    border-radius: 10px;
    background: var(--joy-v500);
}


/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */

.faq {
    background: var(--joy-bg-cream);
}

.faq-inner {
    max-width: 720px;
    margin: 3rem auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(13, 148, 136, .07);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--joy-font-main);
    font-size: .98rem;
    font-weight: 500;
    color: var(--joy-ink);
    transition: color .25s;
}

.faq-q:hover {
    color: var(--joy-v600);
}

.faq-chev {
    flex-shrink: 0;
    color: var(--joy-v400);
    transition: transform .4s cubic-bezier(.76, 0, .24, 1);
}

.faq-item.is-open .faq-chev {
    transform: rotate(180deg);
}

.faq-a {
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.76, 0, .24, 1), padding .35s;
    max-height: 0;
    padding: 0;
}

.faq-a.open {
    max-height: 260px;
    padding: 0 0 22px;
}

.faq-a p {
    font-size: .9rem;
    color: var(--joy-muted);
    line-height: 1.7;
    font-weight: 300;
}


/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
    .hero-counter { display: none; }

    .hero-cta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-p, .btn-g {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .bc,
    .bc:nth-child(n) { grid-column: span 12; }
}

@media (max-width: 800px) {
    .feat-grid { grid-template-columns: 1fr; gap: 2.5rem; }

    .test-lay { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .adv-grid { grid-template-columns: 1fr; }
}

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