/* Site-ul autom8connect — CSS scris de mână (fără Elementor, fără Font Awesome), fidel look-ului site-ului WordPress:
   fundal negru, PT Sans, accente #FFA400 (galben) și #8CCCEC (bleu), titluri #EAF6FF, container 1140 px.
   PT Sans e self-hosted (OFL), regular + bold, latin + latin-ext (ș, ț). */

@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap;
    src: url(/fonts/pt-sans-400-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap;
    src: url(/fonts/pt-sans-400-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap;
    src: url(/fonts/pt-sans-700-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap;
    src: url(/fonts/pt-sans-700-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --bg: #000;
    --bg-alt: #111;
    --bg-grey: #1c2127;
    --text: #ddd;
    --muted: #9a9a9a;
    --title: #eaf6ff;
    --accent: #ffa400;
    --accent-2: #8cccec;
    --container: 1140px;
    --header-h: 90px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 "PT Sans", "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--accent); }
a:hover { color: #ffbc40; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

[id] { scroll-margin-top: var(--header-h); }

/* ── Butoane ─────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border: 2px solid var(--accent);
    border-radius: 3px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.btn:hover, .btn:focus-visible { background: #ffb933; border-color: #ffb933; color: #000; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--accent); color: #000; }
.btn--blue { background: var(--accent-2); border-color: var(--accent-2); color: #000; text-transform: none; font-weight: 400; font-size: 17px; padding: 14px 34px; }
.btn--blue:hover, .btn--blue:focus-visible { background: #a9dbf3; border-color: #a9dbf3; }
.btn--small { padding: 6px 16px; font-size: 14px; }

.link-arrow { text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ── Antet și meniu ──────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, .85);
    border-bottom: 1px solid #222;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.logo { display: block; color: #fff; font-weight: 700; font-size: 22px; text-decoration: none; letter-spacing: .5px; }
.logo span { color: var(--accent); }
.logo__img { width: 207px; height: auto; }

.site-menu ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-menu a {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-decoration: none;
}
.site-menu a:hover, .site-menu a:focus-visible { color: var(--accent-2); }

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 5px; }
.menu-toggle__bars span { display: block; width: 26px; height: 3px; background: #fff; transition: transform .2s, opacity .2s; }
.is-open .menu-toggle__bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.is-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.is-open .menu-toggle__bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
    :root { --header-h: 72px; }
    .logo__img { width: 150px; }
    .site-header__inner { flex-wrap: wrap; }
    .js .menu-toggle { display: inline-flex; }
    .site-menu { width: 100%; }
    .js .site-menu { display: none; }
    .js .is-open .site-menu { display: block; }
    .site-menu ul { flex-direction: column; gap: 0; padding: 0 0 12px; }
    .site-menu a { display: block; padding: 12px 0; border-top: 1px solid #222; }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(900px, calc(100vh - var(--header-h)));
    padding: 120px 0 72px;
    overflow: hidden;
    text-align: center;
    background: #111;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%); }
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__title { margin: 0 0 4px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 400; line-height: 1.3; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero__rotator { font-size: clamp(44px, 9vw, 99px); margin: 0 0 28px; color: var(--accent-2); text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.rotator { position: relative; height: 1.15em; line-height: 1.15; font-weight: 700; }
.rotator span {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(.3em);
    transition: opacity .5s, transform .5s;
}
.rotator span.is-visible { opacity: 1; transform: none; }

/* ── Secțiunile Securitate / Confort / Economie / Proiecte speciale ─ */
.feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: var(--bg); }
.feature__media { position: relative; min-height: 320px; background: #111; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__body { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(24px, 4vw, 56px); }
.feature--reverse .feature__media { order: 2; }
.feature__title {
    margin: 0 0 32px;
    font-size: clamp(30px, 4vw, 53px);
    line-height: 1.05;
    font-weight: 700;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
}
.feature--boxed { max-width: 1440px; margin: 0 auto; }
.feature--boxed .feature__title { font-size: clamp(26px, 3vw, 40px); text-align: left; }
.feature__body .btn { align-self: center; margin-top: 16px; }

.rich p { margin: 0 0 1.2em; }
.rich ul { margin: 0 0 1.2em; padding-left: 1.4em; }
.rich li { margin-bottom: .2em; }
.rich a { text-decoration: none; }
.rich a:hover { text-decoration: underline; }

/* ── Capul secțiunilor (supratitlu + titlu mare) ─────────────────── */
.section { padding: 110px 0 90px; }
.section--grey { background: linear-gradient(180deg, #11161b 0%, var(--bg-grey) 20%, var(--bg-grey) 80%, #11161b 100%); }
.section-header { margin: 0 0 56px; }
.section-header--right { text-align: right; }
.section-header__kicker {
    margin: 0;
    font-size: clamp(16px, 1.5vw, 19px);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-2);
}
.section-header__title {
    margin: 0;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.05;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--title);
    overflow-wrap: anywhere;
}

/* ── Carduri (De ce suntem unici, Ce clădiri automatizăm, Pachete) ─ */
.cards { display: grid; gap: 40px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; }
.card--center { text-align: center; align-items: center; }
.card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__img--square { aspect-ratio: 1; }
.card__title { margin: 22px 0 14px; font-size: clamp(22px, 2vw, 27px); line-height: 1.1; color: #fff; text-transform: uppercase; }
.card__title--small { margin: 0 0 14px; font-size: 18px; line-height: 1.3; }
.card__bar { display: block; width: 32px; height: 4px; margin: 0 0 20px; background: var(--accent); }
.card__bar--left { margin: 22px 0 16px; }
.card__text { margin: 0 0 20px; flex: 1; }
.card--center .card__text { text-align: left; }
.card .btn { align-self: center; }

/* ── Testimoniale ────────────────────────────────────────────────── */
.testimonials { max-width: 920px; margin: 0 auto; }
.testimonials__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.testimonials__track::-webkit-scrollbar { display: none; }
.testimonial { flex: 0 0 100%; margin: 0; padding: 0 8px; scroll-snap-align: center; text-align: center; }
.testimonial blockquote { margin: 0 0 20px; font-size: clamp(18px, 2vw, 22px); font-style: italic; line-height: 1.5; color: #fff; }
.testimonial strong { display: block; font-size: 20px; color: var(--accent); }
.testimonial span { display: block; font-size: 14px; font-style: italic; color: var(--text); }
.testimonials__dots { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.testimonials__dots a { display: block; width: 30px; height: 4px; background: #fff; }
.testimonials__dots a.is-active { background: var(--accent); }

/* ── Branduri ────────────────────────────────────────────────────── */
.brands { background: linear-gradient(180deg, #e9eef1, #f6f8f9); color: #111; padding: 64px 0 56px; text-align: center; }
.brands__rotator { margin: 0 0 44px; font-size: clamp(26px, 4.5vw, 54px); font-weight: 400; text-transform: uppercase; color: #111; }
.brands__logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px 40px; align-items: center; margin: 0; padding: 0; list-style: none; }
.brands__logos img { width: auto; max-width: 160px; max-height: 60px; margin: 0 auto; object-fit: contain; }

/* ── Pachete ─────────────────────────────────────────────────────── */
.package { display: flex; flex-direction: column; border: 2px solid #2a2a2a; background: #050505; }
.package__media { position: relative; }
.package__details { position: absolute; left: 40px; bottom: -20px; font-size: 15px; padding: 9px 22px; }
.package__body { display: flex; flex-direction: column; flex: 1; padding: 48px 10px 32px; }
.package__name { margin: 0 30px; font-size: clamp(36px, 4vw, 52px); line-height: 1; color: #fff; }
.package__subtitle { margin: 6px 30px 0; font-weight: 700; font-size: 16px; text-transform: uppercase; color: var(--accent); }
.package__rule { width: calc(100% - 60px); margin: 28px 30px 32px; border: 0; border-top: 1px solid #444; }
.package__text { flex: 1; }
.package__cta { align-self: center; margin-top: 12px; text-transform: uppercase; }

/* ── Contact ─────────────────────────────────────────────────────── */
.contact-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-box {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    align-items: center;
    padding: 24px;
    border: 1px solid #222;
    color: var(--text);
    text-decoration: none;
}
.contact-box:hover { border-color: var(--accent); color: #fff; }
.contact-box__icon { grid-row: 1 / 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 6px; background: var(--accent); color: #000; }
.contact-box__label { font-size: 24px; font-weight: 700; color: #fff; }
.contact-box__value { font-size: 18px; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { padding: 64px 0 24px; border-top: 1px solid #222; color: var(--muted); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.site-footer__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #fff; }
.site-footer__col ul { margin: 0 0 28px; padding: 0; list-style: none; }
.site-footer__col li { margin-bottom: 4px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent-2); }
.site-footer__contact p { margin: 0 0 10px; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; }
.site-footer__contact .icon { width: 20px; height: 20px; color: var(--accent); }
.site-footer__logo { width: 160px; margin-bottom: 20px; }
.site-footer__legal { margin-top: 24px; padding-top: 20px; border-top: 1px solid #1a1a1a; font-size: 13px; }
.site-footer__legal p { margin: 0; }

/* ── Paginile interioare (detalii, scenarii, aplicația, frigidere, formular) ── */
.page-head { padding: 110px 0 60px; text-align: center; }
.page-head__title {
    max-width: 1040px;
    margin: 0 auto;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.05;
    color: #fff;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.rows { padding-bottom: 32px; }
.rule { margin: 36px 0; border: 0; border-top: 1px solid #444; }
.section--tight { padding: 24px 0 64px; }
.center { text-align: center; }
.narrow { max-width: 820px; }
.intro { font-size: 18px; }

/* Rândul „text + poză”: poza în dreapta (o treime), `--reverse` în stânga, cu titlul aliniat spre ea */
.row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.row--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.row__media { position: relative; order: 2; min-height: 380px; background: #111; }
.row--reverse .row__media { order: 0; }
.row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row--contain .row__media { background: none; }
.row--contain .row__media img { object-fit: contain; }
.row__body { display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.row__kicker { margin: 0 0 6px; font-size: clamp(16px, 1.5vw, 19px); letter-spacing: .5px; text-transform: uppercase; color: var(--accent-2); }
.row__title { margin: 0 0 24px; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; color: #fff; text-transform: uppercase; overflow-wrap: anywhere; }
.row--reverse .row__kicker, .row--reverse .row__title { text-align: right; }
.row__btn { align-self: center; margin-top: 12px; }

/* Scenariile: poza cu titlul scris pe ea + lista de automatizări, alternând */
.scenario { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.scenario--reverse { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.scenario--reverse .scenario__media { order: 2; }
.scenario__media { position: relative; display: flex; align-items: flex-end; min-height: 380px; background: #111; }
.scenario__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scenario__title {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 64px 16px 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
    font-size: clamp(22px, 2.2vw, 27px);
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.scenario__body { display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.scenario__body .btn { align-self: center; margin-top: 12px; }

.rich ul ul { margin: .3em 0 .5em; list-style: circle; }
.rich li:has(> ul:only-child) { list-style: none; }

/* Capturile de ecran din aplicație: câte 4 pe rând, cu legendă */
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; margin-bottom: 40px; }
.screen { margin: 0; }
.screen__images { display: grid; gap: 8px; }
.screen img { width: 100%; border-radius: 4px; }
.screen figcaption { margin-top: 12px; font-size: 15px; line-height: 1.4; }

/* ── Pagina 404 ──────────────────────────────────────────────────── */
.not-found { display: block; min-height: 0; text-align: center; padding: 120px 0; }
.not-found .feature__inner { max-width: 820px; margin: 0 auto; }
.not-found .feature__title { font-size: clamp(28px, 4vw, 40px); }

/* ── Tabletă și mobil ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    body { font-size: 16px; }
    .hero { min-height: calc(100svh - var(--header-h)); padding-bottom: 48px; }
    .feature { grid-template-columns: 1fr; min-height: 0; }
    .feature__media { min-height: 0; aspect-ratio: 16 / 10; }
    .feature--reverse .feature__media { order: 0; }
    .feature__body { padding: 40px 16px 56px; }
    .section { padding: 72px 0 56px; }
    .section-header { margin-bottom: 36px; }
    .cards--3, .cards--5 { grid-template-columns: 1fr; gap: 48px; }
    .contact-boxes { grid-template-columns: 1fr; gap: 16px; }
    .contact-box__label { font-size: 20px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 8px; }
    .package__details { left: 24px; }
    .page-head { padding: 64px 0 32px; }
    .row, .row--reverse, .scenario, .scenario--reverse { grid-template-columns: 1fr; gap: 0; }
    .row__media, .row--reverse .row__media, .scenario--reverse .scenario__media { order: 0; }
    .row__media, .scenario__media { min-height: 0; aspect-ratio: 1; }
    .row--contain .row__media { aspect-ratio: auto; }
    .row--contain .row__media img { position: static; max-height: 70vh; margin: 0 auto; width: auto; }
    .row__body { padding: 32px 0 16px; }
    .row--reverse .row__kicker, .row--reverse .row__title { text-align: left; }
    .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .rotator span { transition: none; }
}
