/* Medenco.eu — Medical Energy Consulting
   Single page, full-width sections. Colours from the MEC logo. No external fonts. */

:root {
    --green: #7ab929;
    --blue: #1e9ad6;
    --blue-dark: #12577d;
    --grey: #8a8a8a;
    --ink: #1d2327;
    --muted: #5b6670;
    --line: #e3e7ea;
    --tint: #f3f6f8;
    --dark: #0f1d26;
    --white: #ffffff;
    --bar-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h2, h3 { line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; color: var(--blue-dark); }
h3 { font-size: 1.3rem; font-weight: 700; color: var(--blue-dark); }
p { margin: 0 0 1rem; }

.kicker {
    margin: 0 0 .5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green);
}

.btn {
    display: inline-block;
    padding: .85rem 1.6rem;
    border: 2px solid var(--blue);
    background: var(--blue);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--light:hover, .btn--light:focus-visible { background: var(--white); color: var(--blue-dark); border-color: var(--white); }

/* ================= Top bar ================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--bar-h);
    padding: 0 clamp(16px, 3vw, 48px);
}
.topbar__logo img { height: 56px; width: auto; }
.menu { display: flex; align-items: center; gap: clamp(.8rem, 1.8vw, 2rem); }
.menu a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    padding: .4rem 0;
    border-bottom: 2px solid transparent;
}
.menu a:hover, .menu a.is-current { border-bottom-color: var(--green); }
.menu a.menu__cta { padding: .55rem 1rem; background: var(--blue); color: var(--white); border-bottom: 0; }
.menu a.menu__cta:hover { background: var(--blue-dark); }
.topbar__toggle { display: none; }

/* ================= Hero slider ================= */
.hero {
    position: relative;
    height: min(78vh, 760px);
    min-height: 380px;
    overflow: hidden;
    background: var(--dark);
}
.hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    text-decoration: none;
}
.hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 22, 32, .42);
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__title {
    position: relative;
    padding: 0 1rem;
    color: var(--white);
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
}
.hero__dots {
    position: absolute;
    left: 0; right: 0; bottom: 26px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.hero__dots button {
    width: 34px; height: 4px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
}
.hero__dots button[aria-selected="true"] { background: var(--green); }

/* ================= Full-width split sections ================= */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}
.split--tint { background: var(--tint); }
.split__media {
    background-size: cover;
    background-position: center;
    min-height: 320px;
}
.split--reverse .split__media { order: 2; }
.split__media--contain { background-size: contain; background-repeat: no-repeat; background-color: var(--white); margin: clamp(20px, 3vw, 48px); }
.split__text {
    align-self: center;
    padding: clamp(40px, 6vw, 96px) clamp(20px, 6vw, 96px);
    max-width: 760px;
}
.split__text p:last-child { margin-bottom: 0; }

/* ================= Africa band ================= */
.band {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(8, 22, 32, .55); }
.band__inner { position: relative; padding: clamp(70px, 10vw, 140px) 20px; }
.band h2 { color: var(--white); margin-bottom: 1.5rem; }

/* ================= Africa ================= */
.africa { border-bottom: 1px solid var(--line); }
.wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 5vw, 80px);
    padding: clamp(40px, 6vw, 90px) clamp(20px, 6vw, 96px);
    background: var(--tint);
}
.phases { padding: clamp(40px, 6vw, 90px) clamp(20px, 6vw, 96px) 0; }
.phases__list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.phases__list li { background: var(--white); padding: 1.6rem 1.4rem; color: var(--muted); font-size: .95rem; }
.phases__list strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: .4rem; }
.phases__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem; height: 2.2rem;
    margin-bottom: .9rem;
    background: var(--green);
    color: var(--white);
    font-weight: 700;
}
.why {
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    padding: clamp(40px, 6vw, 90px) clamp(20px, 6vw, 96px);
}
.why__stat { font-size: 1.1rem; }
.why__stat strong { display: block; font-size: 2.2rem; color: var(--blue); line-height: 1.1; }
.why__partners h3 { font-size: 1.05rem; }

/* ================= About ================= */
.about {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--dark);
    color: #d9e2e8;
}
.about h2, .about h3 { color: var(--white); }
.about__main { padding: clamp(50px, 7vw, 110px) clamp(20px, 6vw, 96px); }
.about__capital {
    padding: clamp(50px, 7vw, 110px) clamp(20px, 6vw, 96px);
    background: var(--blue-dark);
    color: #e6f1f8;
}
.about__capital .btn { margin-top: .5rem; }

/* ================= Contact ================= */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(24px, 5vw, 80px);
    padding: clamp(50px, 7vw, 110px) clamp(20px, 6vw, 96px);
}
.contact__address { color: var(--muted); }
.contact__form { display: grid; gap: 1rem; }
.contact__form label { display: grid; gap: .35rem; font-weight: 700; font-size: .9rem; }
.contact__form input[type=text],
.contact__form input[type=email],
.contact__form textarea {
    width: 100%;
    padding: .8rem .9rem;
    border: 1px solid #c9d1d7;
    background: var(--white);
    font: inherit;
    font-weight: 400;
    color: var(--ink);
    border-radius: 0;
}
.contact__form input:focus, .contact__form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.contact__form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
.contact__form .check input { margin-top: .3rem; }
.contact__form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-weight: 700; min-height: 1.5em; }
.form-msg.is-ok { color: #2e7d32; }
.form-msg.is-err { color: #b3261e; }

/* ================= Privacy Policy page ================= */
.legal {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 90px) clamp(20px, 5vw, 40px);
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 .4rem; color: var(--blue-dark); }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 .8rem; }
.legal__meta { color: var(--muted); font-size: .9rem; }
.legal__summary { padding: 1.2rem 1.4rem; background: var(--tint); border-left: 4px solid var(--green); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal__back { margin-top: 2.5rem; }

/* ================= Footer ================= */
.footer {
    padding: 34px clamp(20px, 6vw, 96px);
    background: var(--dark);
    color: #aebbc4;
    font-size: .9rem;
    text-align: center;
}
.footer p { margin: .2rem 0; }
.footer strong { color: var(--white); }
.footer a { color: #cfe3ef; }

/* ================= Tablet / mobile ================= */
@media (max-width: 1080px) {
    .topbar__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px; height: 44px;
        padding: 0 10px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .topbar__toggle span { display: block; height: 2px; background: var(--ink); }
    .menu {
        position: absolute;
        top: var(--bar-h);
        left: 0; right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }
    .menu.is-open { display: flex; }
    .menu a { padding: .9rem clamp(16px, 3vw, 48px); border-bottom: 1px solid var(--line); }
    .menu a.menu__cta { margin: 0; }
    .why { grid-template-columns: 160px 1fr; }
    .why__partners { grid-column: 1 / -1; }
    .phases__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
    :root { --bar-h: 64px; }
    body { font-size: 16px; }
    .topbar__logo img { height: 46px; }
    .split, .about, .contact, .wide { grid-template-columns: 1fr; }
    .split { min-height: 0; }
    .split__media { min-height: 0; aspect-ratio: 16 / 10; }
    .split--reverse .split__media { order: 0; }
    .band { background-attachment: scroll; }
    .why { grid-template-columns: 1fr; }
    .why__map { max-width: 180px; }
    .phases__list { grid-template-columns: 1fr; }
    .hero { height: 60vh; min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__slide { transition: none; }
}
