/* ==========================================================================
   Homepage — slider sus + descriere jos
   ========================================================================== */

/* ── Slider ─────────────────────────────────────────────────────────────── */
.hero-slider {
    position: relative;
    height: clamp(430px, 56vw, 700px);
    min-height: 430px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, rgba(0, 180, 216, 0.22), transparent 46%),
        linear-gradient(135deg, #031E2B 0%, #06384A 58%, #0A5A70 100%);
    color: var(--white);
    isolation: isolate;
}

.hero-slider__track {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease), visibility 1s var(--ease);
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Varianta „imagine întreagă”: fundal blurat care umple ecranul. */
.hero-slide__blur {
    position: absolute;
    inset: -12%;
    background-size: cover;
    background-position: center;
    filter: blur(32px) brightness(0.6);
    transform: scale(1.12);
    z-index: 0;
}

.hero-slider--fit-contain .hero-slide__media img {
    position: relative;
    z-index: 1;
    object-fit: contain;
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(3, 30, 43, 0.82) 0%, rgba(3, 30, 43, 0.55) 42%, rgba(3, 30, 43, 0.12) 72%, transparent 100%),
        linear-gradient(180deg, rgba(3, 30, 43, 0.12) 30%, rgba(3, 30, 43, 0.72) 100%);
    pointer-events: none;
}

.hero-slider__caption {
    position: absolute;
    left: max(var(--gutter), calc((100vw - var(--container)) / 2));
    right: var(--gutter);
    bottom: clamp(3rem, 5.5vw, 4.8rem);
    z-index: 4;
    max-width: 720px;
    pointer-events: none;
}

.hero-slider__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--sea-glass);
}

.hero-slider__eyebrow::before {
    content: "";
    width: 42px;
    height: 1px;
    background: currentColor;
}

.hero-slider__title {
    margin: 0;
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.025em;
    text-wrap: balance;
    text-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.hero-slider__text {
    max-width: 520px;
    margin-top: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.65;
}

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(3, 30, 43, 0.28);
    color: var(--white);
    backdrop-filter: blur(4px);
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-slider__arrow:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--sea);
}

.hero-slider__arrow--prev { left: clamp(0.8rem, 2vw, 1.6rem); }
.hero-slider__arrow--next { right: clamp(0.8rem, 2vw, 1.6rem); }

.hero-slider__arrow .icon { width: 20px; height: 20px; }

.hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 2.1rem;
    z-index: 5;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 32px;
    height: 2px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.38);
    transition: background 0.25s var(--ease);
}

.hero-dot.is-active { background: var(--white); }

.hero-slider__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 4;
    line-height: 0;
    pointer-events: none;
}

.hero-slider__wave svg {
    display: block;
    width: 100%;
    height: clamp(42px, 7vw, 92px);
}

.hero-slider__wave path { fill: var(--paper); }

/* ── Descriere ──────────────────────────────────────────────────────────── */
.home-intro {
    padding-block: clamp(2.2rem, 4.5vw, 3.6rem);
    background: var(--paper);
}

.home-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.65fr);
    gap: clamp(1.8rem, 4vw, 3rem);
    align-items: start;
}

.home-intro__main h2 {
    max-width: 20ch;
    margin-bottom: 0.7rem;
    font-size: clamp(1.8rem, 3.4vw, 2.9rem);
    line-height: 1.04;
}

.home-intro__lead {
    max-width: 68ch;
    color: var(--ink-soft);
    font-size: 0.97rem;
    font-weight: 300;
    line-height: 1.7;
}

.home-intro__blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    margin-top: 1.6rem;
}

.home-intro__block:last-child {
    grid-column: 1 / -1;
}

.home-intro__block h3 {
    margin: 0 0 0.55rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(11, 31, 38, 0.12);
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

.home-intro__block p {
    margin: 0;
    max-width: 60ch;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
}

.home-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-list li {
    position: relative;
    padding-left: 1.05rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.55;
}

.home-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terracotta);
}

.home-list--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 2rem;
}

.home-intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.6rem;
}

.home-intro__actions .btn {
    padding: 0.78rem 1.15rem;
    font-size: 0.74rem;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.home-intro__aside {
    position: sticky;
    top: calc(var(--header-h) + 1.2rem);
    display: grid;
    gap: 0.8rem;
}

.home-side-card {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(11, 31, 38, 0.1);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 18px 50px -40px rgba(3, 30, 43, 0.45);
}

.home-side-card h3 {
    margin: 0 0 0.7rem;
    font-size: 1.15rem;
}

.home-contact-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--ink-soft);
    font-size: 0.84rem;
    line-height: 1.5;
}

.home-contact-list .icon {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 0.15rem;
    color: var(--terracotta);
}

.home-contact-list a {
    color: var(--ink);
}

.home-contact-list a:hover { color: var(--terracotta); }

.home-map {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 4px;
    background: var(--sand-deep);
}

.home-map iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero-slider {
        height: clamp(380px, 62vw, 560px);
        min-height: 380px;
    }

    .hero-slider__caption {
        bottom: 4.6rem;
        padding-right: 1rem;
    }

    .home-intro__grid {
        grid-template-columns: 1fr;
    }

    .home-intro__aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .home-intro__aside > .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .hero-slider {
        height: 46svh;
        min-height: 330px;
    }

    .hero-slider__arrow {
        width: 40px;
        height: 40px;
    }

    .hero-slider__dots { bottom: 1.4rem; }

    .hero-slider__caption {
        left: var(--gutter);
        right: var(--gutter);
        bottom: 3.5rem;
    }

    .hero-slider__eyebrow {
        gap: 0.5rem;
        margin-bottom: 0.7rem;
        font-size: 0.58rem;
        letter-spacing: 0.22em;
    }

    .hero-slider__eyebrow::before { width: 26px; }

    .hero-slider__title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.02;
    }

    .hero-slider__text {
        margin-top: 0.5rem;
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .hero-slider__actions { margin-top: 0.9rem; }

    .hero-slider__actions .btn {
        padding: 0.55rem 1rem;
        font-size: 0.7rem;
    }

    .home-intro__blocks,
    .home-list--columns,
    .home-intro__aside {
        grid-template-columns: 1fr;
    }

    .home-intro__block:last-child {
        grid-column: auto;
    }

    .home-intro__aside > .btn {
        grid-column: auto;
    }
}

/* Compact footer only on the homepage */
body.home .site-footer {
    padding-top: 1.4rem;
}

body.home .footer-grid {
    display: none;
}

body.home .footer-bottom {
    margin-top: 0;
    padding-top: 1rem;
}

/* ── Homepage blocks (composer) ─────────────────────────────────────────── */
.hb-section {
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
    background: var(--paper);
}

.hb-section--sand { background: var(--sand); }

.hb-section + .hb-section { border-top: 1px solid rgba(11, 43, 51, 0.06); }

.hb-head {
    max-width: 640px;
    margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
}

.hb-head--center {
    margin-inline: auto;
    text-align: center;
}

.hb-head__title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }

.hb-head__text {
    margin-top: 0.8rem;
    color: var(--ink-soft);
}

.hb-text { max-width: 720px; }

.hb-text--center {
    margin-inline: auto;
    text-align: center;
}

.hb-text__title { font-size: clamp(2rem, 4vw, 3.2rem); }

.hb-text__body {
    margin-top: 1rem;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.hb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.hb-actions--center { justify-content: center; }

.hb-cards {
    display: grid;
    gap: clamp(1rem, 2vw, 1.6rem);
}

.hb-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hb-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hb-cards--2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }

.hb-card {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hb-card__title {
    margin-bottom: 0.7rem;
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(11, 43, 51, 0.12);
}

.hb-card__text {
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.hb-checklist { display: grid; gap: 0.55rem; }

.hb-checklist--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1.6rem;
}

.hb-checklist li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.hb-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--terracotta);
    border-bottom: 2px solid var(--terracotta);
    transform: rotate(-45deg);
}

.hb-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.6rem, 4vw, 3.5rem);
    align-items: center;
}

.hb-split--left .hb-split__text { order: 2; }
.hb-split--left .hb-split__media { order: 1; }

.hb-split__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--sand-deep);
}

.hb-split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hb-split__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--wood);
}

.hb-split__placeholder .icon { width: 42px; height: 42px; }

.hb-split__title { margin-bottom: 0.9rem; }

.hb-split__body {
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.2vw, 1.05rem);
}

.hb-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1.2rem, 3vw, 2.4rem);
    align-items: start;
}

.hb-contact__list {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.hb-contact__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.hb-contact__list .icon {
    width: 18px;
    height: 18px;
    margin-top: 0.25rem;
    color: var(--terracotta);
}

.hb-contact__map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    line-height: 0;
}

.hb-contact__map iframe {
    width: 100%;
    height: clamp(240px, 32vw, 360px);
    border: 0;
}

.hb-contact + .hb-actions,
.hb-actions--center { margin-top: 1.8rem; }

.hero-slider__actions { margin-top: 1.3rem; }

/* Benzile de intro: textul si coloanele curg ca in designul vechi. */
.hb-section--intro-head {
    padding-block: clamp(2rem, 4vw, 3.2rem) 0.6rem;
    background: var(--paper);
}

.hb-section--intro-body {
    padding-block: 0 clamp(2rem, 4vw, 3.2rem);
    background: var(--paper);
}

.hb-section--intro-head + .hb-section--intro-body { border-top: 0; }

.home-intro__grid--single { grid-template-columns: minmax(0, 1fr); }

.hb-section--contact {
    padding-block: clamp(1.4rem, 3vw, 2.2rem) clamp(2rem, 4vw, 3rem);
    background: var(--paper);
}

.hb-section--contact + .hb-section { border-top: 0; }
.hb-section--intro-body + .hb-section--contact { border-top: 0; }
.hb-section--intro-body .home-intro__blocks { margin-top: 0; }

.hb-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hb-contact .home-side-card { height: 100%; }
.hb-section--contact .hb-contact > .btn {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 0.4rem;
}
.home-side-card--map .home-map { margin-top: 0.6rem; }

.hb-text--center { text-align: center; }
.hb-text--center h2 { margin-inline: auto; }
.hb-text--center .home-intro__lead { margin-inline: auto; }
.hb-text--center .home-intro__actions { justify-content: center; }

.home-intro__blocks.hb-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-intro__blocks.hb-cards--3 > :last-child { grid-column: auto; }

@media (max-width: 960px) {
    .hb-cards--2,
    .hb-cards--3 { grid-template-columns: 1fr; }
    .hb-cards--2 > :last-child:nth-child(odd) { grid-column: auto; }
    .hb-split,
    .hb-contact { grid-template-columns: 1fr; }
    .hb-split--left .hb-split__text,
    .hb-split--left .hb-split__media { order: 0; }
}

@media (max-width: 720px) {
    .hb-checklist--2 { grid-template-columns: 1fr; }
}
