/* ============================================================
   LUCRARI CU UTILAJE — app.css
   Mobile-first, fara inline styles
   ============================================================ */

/* ── FONTS ─────────────────────────────────────────────────── */

/* ── CSS VARIABLES ──────────────────────────────────────────── */
:root {
    --orange:        #EA580C;
    --orange-light:  #F97316;
    --orange-dark:   #C2410C;
    --bg-primary:    #0a0a0a;
    --bg-secondary:  #111111;
    --bg-card:       #161616;
    --bg-card-hover: #1c1c1c;
    --border:        #222222;
    --border-light:  #2a2a2a;
    --text-primary:  #f5f5f5;
    --text-secondary:#a0a0a0;
    --text-muted:    #666666;
    --font-heading:  'Poppins', sans-serif;
    --font-body:     'Inter', sans-serif;
    --radius:        8px;
    --radius-lg:     14px;
    --transition:    0.2s ease;
    --container:     1240px;
    --shadow:        0 4px 24px rgba(0,0,0,0.4);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

.section     { padding: 48px 0; }
.section-sm  { padding: 32px 0; }
.divider     { height: 1px; background: var(--border); margin: 32px 0; }

/* ── TRUST BAR ──────────────────────────────────────────────── */
.trust-bar {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(234,88,12,0.2);
    padding: 7px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: none; /* ascuns pe mobile */
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.trust-bar-items {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.55);
    font-size: 0.72rem;
}

.trust-bar-item strong {
    color: var(--orange);
    font-weight: 600;
}

.trust-dot {
    width: 5px;
    height: 5px;
    background: var(--orange);
    border-radius: 50%;
    flex-shrink: 0;
}

.trust-bar-sep {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

.trust-bar-tel {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--orange);
    white-space: nowrap;
    transition: opacity 0.2s;
}

.trust-bar-tel:hover { opacity: 0.8; }

/* ── HEADER ─────────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.header.header-scrolled {
    background: rgba(10,10,10,0.98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo img { height: 34px; width: auto; }

.nav { display: none; }

.header-cta { display: none; }

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

/* ── MOBILE NAV ─────────────────────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    overflow-y: auto;
    padding: 20px 16px;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
    display: block;
    padding: 13px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover { color: var(--orange); }

.mobile-nav-cta {
    padding: 20px 0 0;
}

/* ── MAIN OFFSET ────────────────────────────────────────────── */
main { padding-top: 60px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-light); }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-lg { padding: 15px 28px; font-size: 0.95rem; }

/* ── SECTION LABELS ─────────────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 10px;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--orange);
}

.section-title { font-size: clamp(1.6rem, 5vw, 2.6rem); margin-bottom: 12px; }
.section-subtitle { font-size: 0.95rem; color: var(--text-secondary); }

/* ── TAG ────────────────────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(234,88,12,0.12);
    color: var(--orange);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep    { color: var(--border-light); }
.breadcrumb .current{ color: var(--text-secondary); }

/* ── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
    position: relative;
    padding: 80px 0 48px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 40px;
}

.footer-brand p {
    font-size: 0.855rem;
    color: var(--text-muted);
    margin: 16px 0 0;
    line-height: 1.85;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
    font-size: 0.84rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color var(--transition);
}

.footer-col ul li a::before { content: '›'; color: var(--orange); }
.footer-col ul li a:hover   { color: var(--orange); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.footer-contact-item strong { color: var(--text-secondary); font-weight: 500; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

.footer-bottom-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-links a {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--orange); }

/* ── NAV DROPDOWN (desktop only, overridden below) ──────────── */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after { content: '▾'; font-size: 0.68rem; color: var(--text-muted); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    box-shadow: var(--shadow);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.dropdown-menu a:hover { background: var(--bg-card-hover); color: var(--orange); }

/* ── HEADER TEL ─────────────────────────────────────────────── */
.header-tel {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-tel:hover { color: var(--orange); }

/* ── UTILITIES ──────────────────────────────────────────────── */
.text-orange    { color: var(--orange); }
.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ══════════════════════════════════════════════════════════════
   TABLET — min 768px
══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .container { padding: 0 24px; }
    .section   { padding: 64px 0; }

    .trust-bar { display: block; }

    .header { top: 35px; }
    .header-inner { height: 70px; }
    main { padding-top: 105px; }
    .mobile-nav { top: 70px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ══════════════════════════════════════════════════════════════
   DESKTOP — min 1024px
══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .container { max-width: var(--container); }
    .section   { padding: 80px 0; }

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

    .nav a {
        padding: 7px 13px;
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--text-secondary);
        border-radius: var(--radius);
        transition: all var(--transition);
    }

    .nav a:hover, .nav a.active {
        color: var(--text-primary);
        background: var(--bg-card);
    }

    .header-cta {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .menu-toggle { display: none; }

    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
}

/* ══════════════════════════════════════════════════════════════
   CUM CERI OFERTĂ — secțiune refolosibila
══════════════════════════════════════════════════════════════ */
.cum-ceri {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 56px 0;
}

.cum-ceri-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.cum-ceri-header { margin-bottom: 8px; }

.cum-ceri-header .section-label { margin-bottom: 10px; }

.cum-ceri-header h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.cum-ceri-header p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 540px;
}

/* Pașii */
.cum-ceri-pasi {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cum-ceri-pas {
    background: var(--bg-card);
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: background 0.2s;
}

.cum-ceri-pas:hover { background: var(--bg-card-hover); }

.cum-ceri-pas-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--orange);
    flex-shrink: 0;
}

.cum-ceri-pas-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cum-ceri-pas-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* CTA box */
.cum-ceri-cta {
    background: var(--bg-card);
    border: 1px solid rgba(234,88,12,0.25);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.cum-ceri-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-dark), var(--orange-light));
}

.cum-ceri-cta h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cum-ceri-cta p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.cum-ceri-cta-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cum-ceri-cta .btn { justify-content: center; }

.cum-ceri-garantii {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.cum-ceri-garantie {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cum-ceri-garantie span { color: #22c55e; font-size: 0.85rem; }

@media (min-width: 768px) {
    .cum-ceri-pasi { grid-template-columns: repeat(2, 1fr); }
    .cum-ceri-cta-btns { flex-direction: row; }
}

@media (min-width: 1024px) {
    .cum-ceri-inner { grid-template-columns: 1fr 340px; align-items: start; gap: 56px; }
    .cum-ceri-pasi { grid-template-columns: 1fr; }
    .cum-ceri-cta-btns { flex-direction: column; }
}

/* ═══════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════ */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: #111;
    border-top: 1px solid rgba(234,88,12,0.3);
    padding: 20px 24px;
    display: none;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}
#cookie-banner.visible { display: block; }

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 260px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cookie-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cookie-text a {
    color: var(--orange);
    text-decoration: none;
}

.cookie-text a:hover { text-decoration: underline; }

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-accept {
    padding: 10px 22px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font-body);
}

.cookie-accept:hover { background: var(--orange-light); }

.cookie-refuse {
    padding: 10px 22px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.cookie-refuse:hover {
    border-color: var(--text-muted);
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .cookie-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cookie-actions { width: 100%; }
    .cookie-accept, .cookie-refuse { flex: 1; text-align: center; }
}

/* ── Mobile General Fixes ── */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Navbar */
    .nav-cta { padding: 8px 14px; font-size: 0.82rem; }

    /* Hero homepage */
    .hero { padding: 80px 0 60px; }
    .hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

    /* Section spacing */
    .section { padding: 48px 0; }
    .section-title { font-size: clamp(1.3rem, 4vw, 1.8rem); }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr !important; gap: 32px; }
    .footer-brand p { max-width: 100%; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-links { justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .btn { padding: 10px 18px; font-size: 0.85rem; }
    .section-label { font-size: 0.68rem; }

    /* Sub-servicii cards pe homepage */
    .sub-grid { grid-template-columns: 1fr !important; }

    /* Judete links */
    .judete-links-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .alte-judete-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ── WhatsApp Floating Button ── */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: wa-pop 0.4s ease 1.5s both;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

.wa-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.wa-tooltip {
    position: absolute;
    right: 68px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: #1a1a1a;
}

.wa-float:hover .wa-tooltip { opacity: 1; }

@keyframes wa-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
    .wa-float { bottom: 20px; right: 16px; width: 50px; height: 50px; }
    .wa-float svg { width: 26px; height: 26px; }
}

/* ── Image Optimization ── */
img {
    max-width: 100%;
    height: auto;
}

/* Hero background images — object-fit optimizat */
.hero-bg,
.sub-hero-bg,
.geo-hero-bg,
.sv-hero-bg,
.despre-hero-bg {
    will-change: auto;
    transform: translateZ(0);
}

/* Lazy loaded images — fade in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* Aspect ratio pentru carduri servicii - previne layout shift */
.serviciu-card-img,
.serviciu-index-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}
