/*
 * GOLDRAGO SRL — Home Styles
 * Variabile :root sunt in global-styles.css (nu le redefini aici)
 * Extras din home.jsx → reference-homepage.css
 */

/* ============================================
   RESETARE CONFLICTE CU TEMA ASTRA (DOAR PE HOME)
   ============================================ */
body.home #masthead,
body.home .site-header,
body.home header.site-header,
body.home #colophon,
body.home .site-footer,
body.home footer.site-footer,
body.home .ast-post-title {
    display: none !important;
}

body.home .site,
body.home .site-content,
body.home .ast-container,
body.home #primary,
body.home #content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: var(--char) !important;
}

body.home .ast-container {
    display: block !important;
}

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    /* ─── GOLD PALETTE ─── */
    --gold: #d4a853;
    --gold-light: #e8c468;
    --gold-dim: #a07d3a;
    --gold-glow: rgba(212, 168, 83, .15);

    /* ─── BACKGROUNDS (Dark) ─── */
    --char: #0f1419;
    --char2: #1a2332;
    --char3: #243044;
    --slate: #2c3e50;

    /* ─── LIGHT PALETTE (Advantages section) ─── */
    --cream: #f5f0e8;
    --cream2: #ede6da;
    --warm: #fbf8f3;

    /* ─── TEXT ─── */
    --ink: #0c0e12;
    --txt: #c8c2b4;
    --muted: #8a8478;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body.home {
    font-family: 'Sora', sans-serif !important;
    color: var(--cream) !important;
    background: var(--char) !important;
    overflow-x: hidden;
}

/* ─── GRAIN OVERLAY ─── */

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .035;
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── HERO ─── */

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

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

.hero-mesh {
    position: absolute;
    inset: 0;
    opacity: .08;
    background-image:
        linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
        linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
        linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
        linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
        linear-gradient(60deg, rgba(212,168,83,.35) 25%, transparent 25.5%, transparent 75%, rgba(212,168,83,.35) 75%, rgba(212,168,83,.35)),
        linear-gradient(60deg, rgba(212,168,83,.35) 25%, transparent 25.5%, transparent 75%, rgba(212,168,83,.35) 75%, rgba(212,168,83,.35));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    animation: meshDrift 40s linear infinite;
}

@keyframes meshDrift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(80px, 140px); }
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: glowPulse 10s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0%   { opacity: var(--glow-start, .08); }
    100% { opacity: var(--glow-end, .14); }
}

.hero-glow-1 {
    width: 50vw;
    max-width: 550px;
    aspect-ratio: 1;
    background: var(--gold);
    top: -20%;
    left: -10%;
    opacity: .08;
}

.hero-glow-2 {
    width: 35vw;
    max-width: 400px;
    aspect-ratio: 1;
    background: var(--gold-light);
    bottom: -10%;
    right: 5%;
    opacity: .06;
    animation-delay: -5s;
}

.hero-line-v {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(212,168,83,.12), transparent);
}

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

.hero-ey {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    animation: su .8s ease-out .2s forwards;
}

.hero-ey-line {
    width: 32px;
    height: 1px;
    background: var(--gold-dim);
}

.hero-name {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3.5rem, 11vw, 10rem);
    font-weight: 400;
    font-style: italic;
    line-height: .88;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dim) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: .15em;
    opacity: 0;
    animation: su 1s ease-out .35s forwards;
}

.hero-sub {
    font-size: clamp(.95rem, 2vw, 1.5rem);
    font-weight: 200;
    color: rgba(245,240,232,.2);
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: su .8s ease-out .55s forwards;
}

.hero-desc {
    max-width: 500px;
    font-size: clamp(.88rem, 1.3vw, 1.05rem);
    line-height: 1.85;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: su .8s ease-out .7s forwards;
}

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

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

/* HERO — Stats (right side) */
.hero-stats {
    position: absolute;
    right: clamp(24px, 5vw, 80px);
    bottom: 70px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 2;
}

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

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

.hero-sn {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
}

.hero-sl {
    font-size: .65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    white-space: pre-line;
    margin-top: 4px;
}

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

/* ─── BUTTONS (shared) ─── */

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

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212,168,83,.25);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 4px;
    background: transparent;
    color: var(--txt);
    font-size: .88rem;
    font-weight: 400;
    border: 1px solid rgba(212,168,83,.2);
    cursor: pointer;
    transition: all .35s;
    text-decoration: none;
    font-family: inherit;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ─── MARQUEE ─── */

.mq {
    overflow: hidden;
    background: var(--gold);
    padding: 12px 0;
    white-space: nowrap;
}

.mq-t {
    display: inline-flex;
    animation: mqRun 40s linear infinite;
}

.mq-t span {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--ink);
    padding: 0 32px;
}

.mq-t span::after {
    content: '\25CF';
    margin-left: 32px;
    font-size: .4rem;
    vertical-align: middle;
    opacity: .3;
}

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

/* ─── SECTIONS (shared) ─── */

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

.sec-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.sec-tag::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--gold-dim);
}

.sec-h {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.01em;
    margin-bottom: 1rem;
    color: var(--cream);
}

.sec-h em {
    font-style: italic;
    color: var(--gold);
}

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

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

/* ─── FEATURED ─── */

.feat {
    background: var(--char2);
    position: relative;
    overflow: hidden;
}

.feat-deco {
    position: absolute;
    font-family: 'Instrument Serif', serif;
    font-size: clamp(8rem, 22vw, 20rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(212,168,83,.03);
    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;
}

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

.feat-vis {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(160deg, var(--char3) 0%, var(--char) 60%, rgba(212,168,83,.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212,168,83,.08);
}

.feat-hex {
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image:
        linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%),
        linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%),
        linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%),
        linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%),
        linear-gradient(60deg, rgba(212,168,83,.4) 25%, transparent 25.5%, transparent 75%, rgba(212,168,83,.4) 75%),
        linear-gradient(60deg, rgba(212,168,83,.4) 25%, transparent 25.5%, transparent 75%, rgba(212,168,83,.4) 75%);
    background-size: 60px 105px;
    background-position: 0 0, 0 0, 30px 52px, 30px 52px, 0 0, 30px 52px;
}

.feat-ring {
    width: 50%;
    height: 50%;
    border: 1px dashed rgba(212,168,83,.2);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

@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(--gold); opacity: .4; }

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

.feat-pill {
    background: rgba(26,35,50,.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212,168,83,.12);
    border-radius: 6px;
    padding: 14px 18px;
    text-align: center;
}

.feat-pill strong {
    display: block;
    font-family: 'Instrument Serif', serif;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 400;
}

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

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

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

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

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

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

/* ─── BENTO SERVICES ─── */

.svc { background: var(--char); }

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

.bc {
    background: var(--char2);
    border-radius: 6px;
    padding: clamp(22px, 3vw, 36px);
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: all .45s cubic-bezier(.76, 0, .24, 1);
    border: 1px solid rgba(212,168,83,.05);
}

.bc:hover {
    transform: translateY(-4px);
    border-color: rgba(212,168,83,.18);
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

/* Bento grid layout (asymmetric) */
.bc:nth-child(1) { grid-column: span 5; }
.bc:nth-child(2) { grid-column: span 4; }
.bc:nth-child(3) { grid-column: span 3; }
.bc:nth-child(4) { grid-column: span 6; }
.bc:nth-child(5) { grid-column: span 6; }
.bc:nth-child(6) { grid-column: span 4; }
.bc:nth-child(7) { grid-column: span 8; }

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

.bc-num {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(212,168,83,.07);
    line-height: 1;
    position: absolute;
    top: 14px;
    right: 18px;
    transition: color .35s;
}

.bc:hover .bc-num { color: rgba(212,168,83,.15); }

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

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

.bc-short {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold);
    margin-bottom: .6rem;
}

.bc h3 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: .5rem;
    white-space: pre-line;
    color: var(--cream);
}

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

/* ─── ADVANTAGES (light section) ─── */

.adv { background: var(--cream); color: var(--ink); }
.adv .sec-tag { color: var(--gold-dim); }
.adv .sec-tag::before { background: var(--gold-dim); }
.adv .sec-h { color: var(--ink); }
.adv .sec-p { color: var(--muted); }

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

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

.adv-c {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 26px;
    border-radius: 6px;
    background: rgba(15,20,25,.03);
    border: 1px solid rgba(15,20,25,.06);
    transition: all .35s;
    cursor: default;
}

.adv-c:hover {
    background: rgba(212,168,83,.06);
    border-color: rgba(212,168,83,.15);
    transform: translateX(6px);
}

.adv-dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--gold);
    margin-top: 6px;
    transform: rotate(45deg);
}

.adv-c span { font-size: .9rem; color: var(--char2); font-weight: 400; line-height: 1.5; }

/* ─── COMPETENCIES ─── */

.comp { background: var(--char2); }

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

.comp-c {
    background: var(--char);
    border-radius: 6px;
    padding: clamp(28px, 3vw, 40px);
    position: relative;
    overflow: hidden;
    transition: all .35s;
    border: 1px solid rgba(212,168,83,.04);
}

.comp-c:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.3);
    border-color: rgba(212,168,83,.12);
}

.comp-n {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(212,168,83,.08);
    line-height: 1;
    margin-bottom: .75rem;
}

.comp-c h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: .5rem;
    white-space: pre-line;
    color: var(--cream);
}

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

/* ─── TESTIMONIALS ─── */

.test { background: var(--char); }

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

/* MOBILE */
@media (max-width: 800px) {
    .test-lay { grid-template-columns: 1fr; }
}

.test-card {
    background: var(--char2);
    border-radius: 6px;
    padding: clamp(30px, 4vw, 52px);
    position: relative;
    border: 1px solid rgba(212,168,83,.06);
}

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

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

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

.test-av {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-family: 'Instrument Serif', serif;
    font-size: 1.1rem;
    font-weight: 400;
}

.test-nm { font-weight: 600; font-size: .9rem; color: var(--cream); }
.test-rl { font-size: .72rem; color: var(--muted); margin-top: 2px; }

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

.test-btn {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    border: 1px solid rgba(212,168,83,.2);
    background: transparent;
    color: var(--gold);
    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(--gold);
    color: var(--ink);
    border-color: var(--gold);
}

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

.test-d {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(212,168,83,.15);
    transition: all .35s;
    cursor: pointer;
    transform: rotate(45deg);
}

.test-d.on {
    width: 28px;
    border-radius: 3px;
    background: var(--gold);
    transform: rotate(0deg);
}

/* ─── FAQ ─── */

.faq { background: var(--char2); }

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

.faq-item {
    border-bottom: 1px solid rgba(212,168,83,.06);
}

.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: 'Sora', sans-serif;
    font-size: .95rem;
    font-weight: 400;
    color: var(--cream);
    transition: color .25s;
}

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

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

.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: .88rem;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
}

/* ─── FOOTER (simplu — in homepage) ─── */

.ft {
    background: var(--ink);
    padding: 44px clamp(24px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid rgba(212,168,83,.08);
}

.ft-brand {
    font-family: 'Instrument Serif', serif;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--gold);
}

.ft-info {
    font-size: .75rem;
    color: var(--muted);
    text-align: right;
    line-height: 1.7;
}

/* ─── REVEAL (scroll animation) ─── */

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

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