/* Teenuselehed (includes/views/service.php) + teenuste lingid avalehel ja jaluses */

.sv { padding-top: 96px; }

/* --- Avaosa --- */
.sv-hero { padding: 56px 0 28px; position: relative; }
.sv-hero::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none;
    background: radial-gradient(600px 280px at 78% 30%, rgba(0, 229, 255, 0.12), transparent 70%),
                radial-gradient(520px 260px at 12% 10%, rgba(123, 77, 255, 0.14), transparent 70%);
}
.sv-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.sv-crumbs { display: flex; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 22px; }
.sv-crumbs a { color: var(--text-muted); text-decoration: none; }
.sv-crumbs a:hover { color: var(--primary); }
.sv-hero h1 {
    font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: 0.02em; margin-bottom: 20px;
    text-wrap: balance;
}
.sv-lead { font-size: 1.08rem; line-height: 1.75; color: #d5dbe8; max-width: 58ch; }
.sv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sv-hero-media { position: relative; }
.sv-hero-media::after {
    content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: var(--radius-lg); z-index: 0;
    border: 1px solid rgba(0, 229, 255, 0.25); background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(123, 77, 255, 0.08));
}
.sv-hero-media img {
    position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 96 / 68; object-fit: cover;
    border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* --- Kolm fakti --- */
.sv-facts {
    position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 56px 0 0;
    border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-card); overflow: hidden;
}
.sv-fact { padding: 24px 28px; border-left: 1px solid var(--border-subtle); }
.sv-fact:first-child { border-left: 0; }
.sv-fact dt {
    font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.75rem); letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--primary), #9d7bff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sv-fact dd { margin: 4px 0 0; color: var(--text-muted); font-size: 0.92rem; }

/* --- Sisu + tööde käik --- */
.sv-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 64px; align-items: start; }
.sv-block + .sv-block { margin-top: 44px; }
.sv-block h2 { font-size: 1.35rem; letter-spacing: 0.04em; margin-bottom: 14px; }
.sv-block p { color: #c9d0de; line-height: 1.8; margin-bottom: 14px; max-width: 68ch; }
.sv-block a, .sv-note a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.sv-block a:hover, .sv-note a:hover { color: #fff; }
.sv-block .feature-list { margin-top: 18px; }
.sv-block .feature-list li span { display: block; }
.sv-block .feature-list strong { color: #fff; }

.sv-steps {
    position: sticky; top: 110px; padding: 28px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-soft);
}
.sv-steps h2 { font-size: 1rem; letter-spacing: 0.14em; color: var(--primary); margin-bottom: 20px; }
.sv-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.sv-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-bottom: 20px; position: relative; }
.sv-steps li:not(:last-child)::before {
    content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: linear-gradient(var(--primary-soft), transparent);
}
.sv-step-n {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
    font-family: var(--font-heading); color: #001318; background: linear-gradient(135deg, var(--primary), #6ad6ff);
}
.sv-steps strong { display: block; font-size: 0.98rem; margin-bottom: 4px; }
.sv-steps p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.sv-steps-cta { width: 100%; margin-top: 6px; }

/* --- Hinnanäited --- */
.sv-prices { background: linear-gradient(180deg, transparent, rgba(11, 16, 24, 0.7) 20%, rgba(11, 16, 24, 0.7) 80%, transparent); }
.sv-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.sv-price {
    padding: 22px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-subtle);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.sv-price:hover { border-color: rgba(0, 229, 255, 0.35); transform: translateY(-3px); }
.sv-price-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.sv-price-car { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.sv-price-tag {
    font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: #001318; white-space: nowrap;
    padding: 4px 12px; border-radius: var(--radius-pill); background: linear-gradient(135deg, var(--primary), #6ad6ff);
}
.sv-price h3 { font-size: 1rem; text-transform: none; letter-spacing: 0; line-height: 1.4; margin-bottom: 8px; }
.sv-price p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.sv-note { margin-top: 22px; color: var(--text-muted); font-size: 0.9rem; }
.sv-note.center { text-align: center; }

/* --- Tehtud tööd --- */
.sv-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sv-gallery-item { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-subtle); }
.sv-gallery-item img { display: block; width: 100%; height: 100%; aspect-ratio: 10 / 7; object-fit: cover; transition: transform 0.5s ease; }
.sv-gallery-item:hover img { transform: scale(1.05); }
.sv-gallery-item span {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; font-size: 0.85rem; font-weight: 600; color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* --- KKK --- */
.sv-faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.sv-faq-item { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); }
.sv-faq-item[open] { border-color: rgba(0, 229, 255, 0.3); }
.sv-faq-item summary {
    list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.sv-faq-item summary::-webkit-details-marker { display: none; }
.sv-faq-item summary i { color: var(--primary); font-size: 0.8rem; transition: transform 0.25s ease; flex-shrink: 0; }
.sv-faq-item[open] summary i { transform: rotate(180deg); }
.sv-faq-item p { padding: 0 22px 20px; color: #c9d0de; line-height: 1.75; }

/* --- Teised teenused --- */
.sv-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sv-related-card, .sv-home-link {
    text-decoration: none; color: inherit;
}
.sv-related-card {
    display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius-md);
    background: var(--bg-card); border: 1px solid var(--border-subtle); transition: border-color 0.25s ease, transform 0.25s ease;
}
.sv-related-card:hover { border-color: rgba(0, 229, 255, 0.4); transform: translateY(-4px); }
.sv-related-card i { color: var(--primary); font-size: 1.4rem; }
.sv-related-card strong { font-family: var(--font-heading); font-size: 1.02rem; }
.sv-related-card span { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; flex: 1; }
.sv-related-card em { font-style: normal; color: var(--primary); font-weight: 600; font-size: 0.85rem; }

/* --- Lõpu üleskutse --- */
.sv-cta { padding: 0 0 90px; }
.sv-cta-inner {
    display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding: 40px 44px;
    border-radius: var(--radius-lg); border: 1px solid rgba(0, 229, 255, 0.25);
    background: linear-gradient(120deg, rgba(0, 229, 255, 0.1), rgba(123, 77, 255, 0.14));
}
.sv-cta h2 { font-size: 1.5rem; margin-bottom: 8px; }
.sv-cta p { color: #d5dbe8; max-width: 52ch; }
.sv-cta .sv-actions { margin-top: 0; }

/* --- Avalehe teenusekaartide ja jaotiste lingid --- */
.sv-home-link {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--primary); font-weight: 700;
    font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.sv-home-link:hover { color: #fff; }
.sv-home-link i { font-size: 0.75rem; transition: transform 0.25s ease; }
.sv-home-link:hover i { transform: translateX(4px); }

/* --- Jaluse teenuste lingid --- */
.sv-footer-nav { border-top: 1px solid var(--border-subtle); padding: 26px 0 6px; }
.sv-footer-nav .container { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: center; }
.sv-footer-nav strong { font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.sv-footer-nav a { color: #d5dbe8; text-decoration: none; font-size: 0.9rem; }
.sv-footer-nav a:hover { color: var(--primary); }

@media (max-width: 992px) {
    .sv { padding-top: 84px; }
    .sv-hero { padding-top: 32px; }
    .sv-hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .sv-hero-media::after { inset: 10px -8px -10px 8px; }
    .sv-body-grid { grid-template-columns: 1fr; gap: 44px; }
    .sv-steps { position: static; }
    .sv-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sv-cta-inner { padding: 30px 24px; }
}
@media (max-width: 640px) {
    .sv-facts { grid-template-columns: 1fr; margin-top: 40px; }
    .sv-fact { border-left: 0; border-top: 1px solid var(--border-subtle); padding: 18px 22px; }
    .sv-fact:first-child { border-top: 0; }
    .sv-actions .btn { width: 100%; }
    .sv-cta { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
    .sv-price, .sv-related-card, .sv-gallery-item img, .sv-home-link i { transition: none; }
}
