/* service.css - pagina "Service centre", 2026
   Markup: templates/content/<brand>/service-centre.ro.php
   Inregistrat din views/site/service-centre.php. Aceiasi tokeni ca livrare.css. */

.sc-page {
    --sc-brand: #1e50c8;
    --sc-deep: #122a66;
    --sc-ink: #1c2438;
    --sc-mut: #67708a;
    --sc-wash: #f5f7fc;
    --sc-line: #e6eaf4;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3.5rem;
    color: var(--sc-ink);
    font-size: 15px;
    line-height: 1.55;
}
.sc-page *, .sc-page *::before, .sc-page *::after { box-sizing: border-box; }
.sc-page a { color: var(--sc-brand); }
.sc-page h1, .sc-page h2, .sc-page h3 { color: var(--sc-ink); font-weight: 600; }

/* --- hero --- */
.sc-hero { position: relative; text-align: center; margin: 0 auto 1.75rem; max-width: 780px; padding: 1.25rem 1rem 1.25rem; }
.sc-hero::before {
    content: ""; position: absolute; inset: -1.5rem -40vw 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(30, 80, 200, .10), transparent 70%),
        radial-gradient(circle, var(--sc-line) 1.2px, transparent 1.6px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.sc-hero h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 0.6rem; line-height: 1.2; }
.sc-hero__lead { font-size: 1.02rem; color: var(--sc-mut); margin: 0 0 1.1rem; }
.sc-hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sc-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--sc-wash); border: 1px solid var(--sc-line);
    font-size: 13px; font-weight: 600; color: var(--sc-deep);
}
.sc-chip i { color: var(--sc-brand); }

/* --- bara de cautare + index alfabetic (sticky) --- */
.sc-toolbar {
    position: sticky; top: 0; z-index: 5;
    background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
    padding: .75rem 0; margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--sc-line);
}
.sc-search {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1.5px solid var(--sc-line); border-radius: 12px;
    padding: 0 14px; height: 48px; margin-bottom: .6rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.sc-search:focus-within { border-color: var(--sc-brand); box-shadow: 0 0 0 4px rgba(30, 80, 200, .10); }
.sc-search i { color: var(--sc-mut); }
.sc-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--sc-ink); min-width: 0; }
.sc-search input::-webkit-search-cancel-button { cursor: pointer; }
.sc-letters { display: flex; flex-wrap: wrap; gap: 4px; }
.sc-letters button {
    border: 1px solid var(--sc-line); background: #fff; color: var(--sc-mut);
    min-width: 32px; height: 30px; padding: 0 8px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.sc-letters button:hover { border-color: #b9c6ea; color: var(--sc-brand); }
.sc-letters button.is-active { background: var(--sc-brand); border-color: var(--sc-brand); color: #fff; }

/* --- grid branduri --- */
.sc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.sc-brand {
    background: #fff; border: 1px solid var(--sc-line); border-radius: 14px; padding: 1.1rem 1.2rem 1rem;
    transition: box-shadow .2s ease, border-color .2s ease;
    animation: sc-rise .45s cubic-bezier(.2,.7,.2,1) both;
}
.sc-brand:hover { box-shadow: 0 10px 28px rgba(18, 42, 102, .08); border-color: #cfd8f0; }
.sc-brand[hidden] { display: none; }
.sc-brand__name {
    font-size: 1.1rem; margin: 0 0 .7rem; padding-bottom: .55rem;
    border-bottom: 2px solid var(--sc-wash); letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 8px;
}
.sc-brand__name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc-brand); flex: none; }
.sc-centers { list-style: none; margin: 0; padding: 0; }
.sc-center { padding: .55rem 0; border-top: 1px dashed var(--sc-line); }
.sc-center:first-child { border-top: 0; padding-top: 0; }
.sc-center__name { font-weight: 600; font-size: 14.5px; margin-bottom: .2rem; }
.sc-center__row { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: #3a4260; margin-top: .15rem; }
.sc-center__row i { color: var(--sc-brand); width: 14px; text-align: center; margin-top: 4px; flex: none; font-size: 12px; }
.sc-center__row a { white-space: nowrap; }
.sc-empty { text-align: center; color: var(--sc-mut); padding: 2rem 1rem; background: var(--sc-wash); border-radius: 14px; margin-bottom: 2.5rem; }

/* --- pasi --- */
.sc-section { margin-bottom: 2.5rem; }
.sc-section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.sc-section__head h2 { font-size: 1.3rem; margin: 0; letter-spacing: -0.01em; }
.sc-section__head i { color: var(--sc-brand); font-size: 1.1rem; }
.sc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: sc; }
.sc-step { position: relative; background: var(--sc-wash); border-radius: 14px; padding: 1.1rem 1.1rem 1rem; counter-increment: sc; }
.sc-step::before {
    content: counter(sc);
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--sc-brand); color: #fff; font-weight: 700; font-size: 13px;
    margin-bottom: .6rem;
}
.sc-step:not(:last-child)::after {
    content: ""; position: absolute; top: 1.95rem; left: calc(1.1rem + 28px + 6px); right: -1rem;
    border-top: 2px dashed #c9d3ee; z-index: 0;
}
.sc-step h3 { font-size: .95rem; margin: 0 0 .3rem; }
.sc-step p { margin: 0; font-size: 13.5px; color: var(--sc-mut); }

/* --- CTA --- */
.sc-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--sc-deep) 0%, var(--sc-brand) 100%);
    color: #fff; border-radius: 16px; padding: 1.5rem 1.75rem;
}
.sc-cta h2 { color: #fff; font-size: 1.15rem; margin: 0 0 .25rem; }
.sc-cta p { margin: 0; opacity: .85; font-size: 14px; }
.sc-cta__links { display: flex; gap: 10px; flex-wrap: wrap; }
.sc-cta__links a {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
    color: #fff; border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 14px; text-decoration: none;
    transition: background .15s ease;
}
.sc-cta__links a:hover { background: rgba(255,255,255,.26); color: #fff; }

/* --- aparitie --- */
@keyframes sc-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sc-hero, .sc-toolbar, .sc-section, .sc-cta { animation: sc-rise .5s cubic-bezier(.2,.7,.2,1) both; }
.sc-toolbar { animation-delay: .08s; }
.sc-brand:nth-child(-n+3) { animation-delay: .16s; }
.sc-brand:nth-child(n+4):nth-child(-n+6) { animation-delay: .24s; }
.sc-brand:nth-child(n+7) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    .sc-hero, .sc-toolbar, .sc-brand, .sc-section, .sc-cta { animation: none; }
}

/* --- responsive --- */
@media (max-width: 991px) {
    .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sc-step:nth-child(2)::after { display: none; }
}
@media (max-width: 575px) {
    .sc-page { padding-top: 1.25rem; }
    .sc-hero h1 { font-size: 1.5rem; }
    .sc-grid, .sc-steps { grid-template-columns: 1fr; }
    .sc-step::after { display: none; }
    .sc-letters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
    .sc-cta { padding: 1.25rem; }
}
