/*
 * Tema paginii de prezentare (layouts.home). Separata de theme.css, care
 * ramane pentru paginile baltilor.
 *
 * Paleta:
 *   Verde de balta   #1F4D3F  predominanta
 *   Crem nisip       #F3EEE3  secundara
 *   Portocaliu pluta #E8743B  accent
 *   Albastru lac     #3A7CA5  suport
 *   Grafit           #1E2A2B  text
 */

:root {
    --green: #1F4D3F;
    --green-dark: #163a2f;
    --green-soft: #e3ebe7;
    --sand: #F3EEE3;
    --sand-dark: #e7dfcd;
    --orange: #E8743B;
    --orange-dark: #cf5f28;
    --lake: #3A7CA5;
    --lake-soft: #e2edf4;
    --ink: #1E2A2B;
    --muted: #5d6a66;
    --line: #e0d8c6;
    --surface: #ffffff;
    --whatsapp: #25D366;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(30, 42, 43, .10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--sand);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--lake);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ---------------- Antet ---------------- */

.site-header {
    background: var(--green-dark);
    color: #fff;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

/* Logo-ul: semnul (pluta pe apa) si numele */
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    /* Semnul are acelasi verde ca antetul: un contur fin il scoate in evidenta. */
    box-shadow: 0 0 0 1px rgba(243, 238, 227, .22), 0 6px 14px rgba(0, 0, 0, .22);
    transition: transform .2s ease;
}

.site-brand:hover .brand-mark {
    transform: rotate(-6deg) translateY(-1px);
}

.brand-word {
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--sand);
}

.brand-word span {
    color: var(--orange);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.site-nav a.is-primary {
    background: var(--orange);
    color: #fff;
}

.site-nav a.is-primary:hover {
    background: var(--orange-dark);
}

/* Comutatorul de limba din antet (elements/locale-switcher), pe fundal inchis. */
.locale-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.locale-switch form {
    margin: 0;
    display: inline;
}

.locale-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    opacity: .55;
    transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}

.locale-flag img {
    display: block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    /* Steagurile deschise la culoare au nevoie de un contur ca sa nu se piarda. */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .45);
}

.locale-flag:hover,
.locale-flag.is-active {
    opacity: 1;
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .7);
}

/* Limba curenta nu se mai apasa. */
.locale-flag.is-active {
    cursor: default;
}

.locale-switch.is-compact .locale-flag span {
    display: none;
}

.locale-switch.is-compact .locale-flag {
    padding: 4px 6px;
}

/* ---------------- Erou ---------------- */

.hero {
    background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
    padding: 64px 0 72px;
}

.hero h1 {
    margin: 0 0 14px;
    max-width: 820px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.hero p {
    margin: 0;
    max-width: 660px;
    font-size: 17px;
    color: rgba(255, 255, 255, .86);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ---------------- Sectiuni ---------------- */

.section {
    padding: 48px 0;
}

.section-head {
    max-width: 720px;
    margin-bottom: 26px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: -.02em;
    color: var(--green);
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.band {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.band .card {
    background: var(--sand);
    box-shadow: none;
}

.card h2 {
    color: var(--green);
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

/* Pasii */
.steps {
    counter-reset: step;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    padding: 22px 20px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--green);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
}

.steps h3 {
    margin: 0 0 6px;
    font-size: 16.5px;
    color: var(--green);
}

.steps p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

/* Blocuri cu pictograma */
.feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature .icon {
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--lake-soft);
    color: var(--lake);
    font-size: 17px;
}

.feature h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: var(--green);
}

.feature p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

/* ---------------- Subsol ---------------- */

.site-footer {
    margin-top: 40px;
    padding: 26px 0;
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}

.site-footer a {
    color: #fff;
}

/* ---------------- Utilitare ---------------- */

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------------- Butoane plutitoare de contact ---------------- */

.contact-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-float-btn {
    position: relative;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 26px;
    box-shadow: 0 8px 22px rgba(30, 42, 43, .28);
    animation: contact-float-bob 3s ease-in-out infinite;
    transition: transform .15s ease;
}

.contact-float-btn.is-whatsapp {
    background: var(--whatsapp);
    font-size: 30px;
}

.contact-float-btn.is-call {
    background: var(--orange);
    /* Defazat fata de WhatsApp, ca sa nu se miste amandoua la unison. */
    animation-delay: -1.5s;
}

/* Inelul care pulseaza in jurul butonului */
.contact-float-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    animation: contact-float-ring 2.4s ease-out infinite;
}

.contact-float-btn.is-call::after {
    animation-delay: -1.2s;
}

.contact-float-btn:hover {
    animation-play-state: paused;
    transform: scale(1.08);
}

@keyframes contact-float-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes contact-float-ring {
    0% { transform: scale(1); opacity: .55; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .contact-float-btn,
    .contact-float-btn::after {
        animation: none;
    }

    .brand-mark {
        transition: none;
    }
}

@media (max-width: 767.98px) {
    .site-header .container {
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .brand-word {
        font-size: 18px;
    }

    .hero {
        padding: 44px 0 52px;
    }

    .locale-flag {
        padding: 3px 6px;
        font-size: 11px;
        gap: 5px;
    }

    .locale-flag img {
        width: 18px;
        height: 12px;
    }

    .contact-float {
        right: 14px;
        bottom: 14px;
        gap: 10px;
    }

    .contact-float-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .contact-float-btn.is-whatsapp {
        font-size: 27px;
    }
}