/* ==========================================================================
   Home page: hero, sections, grids, CTA
   ========================================================================== */

/* ------------------------------
   Hero section
   ------------------------------ */

.hero {
    padding: 3rem 0 2.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}

/* Text */

.hero-text {
    max-width: 560px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    color: #9ca3af;
    margin: 0 0 0.9rem;
}

.hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    margin: 0 0 1.8rem;
    font-size: 0.98rem;
    line-height: 1.75;
    color: #d1d5db;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-pill {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

/* Hero gallery stack */

.hero-gallery {
    display: flex;
    justify-content: center;
}

.hero-stack {
    position: relative;
    width: 320px;
    max-width: 100%;
    height: 420px;
}

.hero-card {
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    overflow: hidden;
    transform-origin: center;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.7),
        0 24px 60px rgba(15, 23, 42, 0.9);
}

.hero-card-main {
    transform: translate(0, 0) rotate(-2deg);
    z-index: 3;
}

.hero-card-secondary {
    transform: translate(-26px, 22px) rotate(-8deg);
    opacity: 0.9;
    z-index: 2;
}

.hero-card-accent {
    transform: translate(26px, 36px) rotate(6deg);
    opacity: 0.85;
    z-index: 1;
}

/* Hero card backgrounds – placeholder, înlocuiești cu fotografii reale */

.hero-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-card-img-1 {
    background-image:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.1),
            rgba(15, 23, 42, 0.6)
        ),
        radial-gradient(circle at 10% 0%, #f97316 0, transparent 40%),
        radial-gradient(circle at 80% 100%, #fca5a5 0, transparent 55%);
}

.hero-card-img-2 {
    background-image:
        radial-gradient(circle at 0% 0%, #fbbf24 0, transparent 40%),
        radial-gradient(circle at 100% 100%, #4ade80 0, transparent 55%),
        linear-gradient(135deg, #020617, #111827);
}

.hero-card-img-3 {
    background-image:
        radial-gradient(circle at 10% 90%, #38bdf8 0, transparent 40%),
        radial-gradient(circle at 90% 10%, #f97316 0, transparent 45%),
        linear-gradient(135deg, #020617, #000);
}

/* ------------------------------
   Sections
   ------------------------------ */

.section {
    /* lățimea + padding X sunt controlate din layout.css (container 1348px) */
    padding: 2.5rem 0 2.75rem;
}

.section-galleries,
.section-blog {
    padding-top: 2.2rem;
}

/* Section header */

.section-header {
    max-width: var(--vp-container-width, 1348px);
    margin: 0 auto 1.8rem;
    padding: 0 var(--vp-page-padding-x, 1.5rem);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.section-title {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.section-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #9ca3af;
    max-width: 420px;
}

.section-link {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    opacity: 0.85;
    border-bottom: 1px solid transparent;
}

.section-link:hover {
    opacity: 1;
    border-bottom-color: rgba(251, 191, 36, 0.7);
}

/* ------------------------------
   Gallery grid (home)
   ------------------------------ */

.gallery-grid {
    max-width: var(--vp-container-width, 1348px);
    margin: 0 auto;
    padding: 0 var(--vp-page-padding-x, 1.5rem) 0.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.gallery-card {
    position: relative;
    border-radius: 1rem;
    border: 1px solid rgba(31, 41, 55, 0.9);
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
    transition:
        transform 0.2s ease-out,
        border-color 0.2s ease-out,
        box-shadow 0.2s ease-out,
        background 0.2s ease-out;
}

.gallery-card-featured {
    border-color: rgba(251, 191, 36, 0.7);
}

.gallery-card-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
}

.gallery-card-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.25s ease-out;
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0.8rem 0.9rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.22s ease-out;
}

.gallery-card-cta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(249, 250, 251, 0.8);
    color: #f9fafb;
    backdrop-filter: blur(4px);
}

.gallery-card-body {
    padding: 0.95rem 1rem 1.05rem;
}

.gallery-card-title {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.gallery-card-link {
    color: #f9fafb;
}

.gallery-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.gallery-card-pill {
    font-size: 0.75rem;
    color: #9ca3af;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    padding: 0.15rem 0.55rem;
}

/* Gallery hover */

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.5),
        0 18px 50px rgba(15, 23, 42, 0.9);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
}

.gallery-card:hover .gallery-card-image {
    transform: scale(1.06);
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

/* ------------------------------
   Blog grid (home)
   ------------------------------ */

.blog-grid {
    max-width: var(--vp-container-width, 1348px);
    margin: 0 auto;
    padding: 0 var(--vp-page-padding-x, 1.5rem) 0.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.blog-card {
    border-radius: 1rem;
    border: 1px solid rgba(31, 41, 55, 0.9);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
    overflow: hidden;
    transition:
        transform 0.2s ease-out,
        border-color 0.2s ease-out,
        box-shadow 0.2s ease-out,
        background 0.2s ease-out;
}

.blog-card-image-wrap {
    display: block;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.25s ease-out;
}

.blog-card-body {
    padding: 0.9rem 1rem 1.1rem;
}

.blog-card-date {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.3rem;
}

.blog-card-title {
    margin: 0 0 0.45rem;
    font-size: 0.98rem;
}

.blog-card-link {
    color: #f9fafb;
}

.blog-card-excerpt {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #d1d5db;
}

.blog-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e5e7eb;
    opacity: 0.9;
    border-bottom: 1px solid transparent;
}

.blog-card-readmore:hover {
    opacity: 1;
    border-bottom-color: rgba(251, 191, 36, 0.7);
}

/* Blog hover */

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.5),
        0 18px 55px rgba(15, 23, 42, 0.9);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
}

.blog-card:hover .blog-card-image {
    transform: scale(1.06);
}

/* ------------------------------
   CTA section
   ------------------------------ */

.section-cta {
    padding: 3rem 0 3.2rem;
}

.section-cta-inner {
    max-width: var(--vp-container-width, 1348px);
    margin: 0 auto;
    padding: 1.8rem var(--vp-page-padding-x, 1.5rem);
    border-radius: 1.5rem;
    border: 1px solid rgba(251, 191, 36, 0.7);
    background:
        radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.18), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.2), transparent 50%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), #020617);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.8rem;
}

/* varianta mai îngustă pentru home CTA (folosită cu .section-cta-inner--narrow în view) */
.section-cta-inner.section-cta-inner--narrow {
    max-width: 1120px;
}

.section-cta-text .section-title {
    text-transform: none;
    letter-spacing: 0.02em;
}

.section-cta-text .section-subtitle {
    max-width: 460px;
}

.section-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

/* ------------------------------
   Responsive (home)
   ------------------------------ */

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 2.2rem;
    }

    .gallery-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-gallery {
        order: -1;
    }

    .hero {
        padding-top: 2.3rem;
    }

    .section-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .gallery-grid,
    .blog-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-stack {
        width: 260px;
        height: 360px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
