/* ==========================================
   BYTEFRAME — SERVICES PAGE STYLES
   ========================================== */

/* ─── SERVICES HERO ──────────────────────── */
.sv-hero {
    min-height: 90svh;
    background: var(--dark);
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 140px 0 80px;
}
.sv-hero-bg {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.04) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    pointer-events: none;
}
.sv-hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 70% 35%, rgba(193,57,26,.13) 0%, transparent 55%),
        radial-gradient(ellipse at 8% 75%, rgba(30,58,95,.09) 0%, transparent 50%);
}
.sv-hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(3rem, 7vw, 8rem);
    align-items: center;
    width: 100%;
}
.sv-hero-content .hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}
.sv-hero-nav {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-top: 2rem;
}
.sv-jump {
    display: inline-flex; align-items: center;
    padding: .45rem 1rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 99px;
    font-size: .78rem; font-weight: 600;
    color: rgba(255,255,255,.6);
    transition: border-color .2s, color .2s, background .2s;
}
.sv-jump:hover,
.sv-jump--active {
    border-color: var(--red);
    color: var(--white);
    background: rgba(193,57,26,.12);
}

/* ── Trust panel (mirrors ah-line-group) ── */
.sv-hero-aside {
    display: flex; flex-direction: column; gap: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-xl);
    overflow: hidden;
    backdrop-filter: blur(4px);
}
.sv-trust-item {
    padding: 1.35rem 1.75rem;
    display: flex; align-items: flex-start; gap: 1rem;
    transition: background .2s;
}
.sv-trust-item:hover { background: rgba(255,255,255,.04); }
.sv-trust-item strong {
    display: block;
    font-family: var(--font-display); font-size: .92rem; font-weight: 700;
    color: var(--white); margin-bottom: .2rem;
}
.sv-trust-item span {
    font-size: .8rem; color: rgba(255,255,255,.45);
}
.sv-trust-icon {
    width: 36px; height: 36px; border-radius: var(--r-md);
    background: rgba(193,57,26,.18); color: var(--red);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: .1rem;
}
.sv-trust-divider {
    height: 1px; background: rgba(255,255,255,.07);
    margin: 0 1.75rem;
}

@media (max-width: 860px) {
    .sv-hero-inner { grid-template-columns: 1fr; }
    .sv-hero-aside {
        display: grid; grid-template-columns: repeat(2, 1fr);
    }
    .sv-trust-divider { display: none; }
    .sv-trust-item {
        border: 1px solid rgba(255,255,255,.07);
        border-radius: var(--r-md); margin: .25rem;
    }
}
@media (max-width: 480px) {
    .sv-hero-aside { grid-template-columns: 1fr 1fr; }
    .sv-trust-item { padding: 1.1rem 1rem; flex-direction: column; gap: .4rem; }
}

/* ─── PRICING NOTE BAR ───────────────────── */
.pricing-note-bar {
    background: rgba(193,57,26,.06);
    border-bottom: 1px solid rgba(193,57,26,.12);
    padding: .9rem 0;
}
.pricing-note-inner {
    display: flex; align-items: flex-start; gap: .75rem;
}
.pricing-note-inner svg {
    color: var(--red); flex-shrink: 0; margin-top: .15rem;
}
.pricing-note-inner p {
    font-size: .84rem; color: var(--mid); line-height: 1.6;
    margin: 0;
}
.pricing-note-inner a {
    color: var(--red); font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.pricing-note-inner a:hover { text-decoration: underline; }

/* ─── CATEGORY SECTIONS ──────────────────── */
.sv-category { padding: 6rem 0; }

.sv-cat-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
    margin-bottom: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 1.5px solid var(--light-2);
}
.section--alt .sv-cat-header { border-bottom-color: rgba(0,0,0,.07); }

.sv-cat-label {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 800;
    color: var(--light-2);
    line-height: 1;
    letter-spacing: -.02em;
    user-select: none;
}
.sv-cat-meta .section-eyebrow { margin-bottom: .75rem; display: block; }
.sv-cat-meta .section-title {
    margin-bottom: .85rem;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.sv-cat-desc {
    color: var(--mid); font-size: .97rem; line-height: 1.75;
    max-width: 52ch;
}
.sv-cat-badge {
    background: var(--dark);
    border-radius: var(--r-xl);
    padding: 1rem 1.5rem;
    align-self: center;
    white-space: nowrap;
}
.sv-cat-badge span {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700;
    color: var(--white);
}
.section--alt .sv-cat-badge { background: var(--dark); }

@media (max-width: 900px) {
    .sv-cat-header {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .sv-cat-badge { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
    .sv-cat-header { grid-template-columns: 1fr; }
    .sv-cat-label { font-size: 3rem; }
}

/* ─── PACKAGE GRID ───────────────────────── */
.sv-pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.sv-pkg-grid--two {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
    .sv-pkg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .sv-pkg-grid,
    .sv-pkg-grid--two { grid-template-columns: 1fr; }
}

/* ─── PACKAGE CARDS ──────────────────────── */
.sv-pkg {
    background: var(--white);
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-xl);
    padding: 2rem;
    display: flex; flex-direction: column; gap: 1.5rem;
    position: relative;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sv-pkg:hover {
    border-color: rgba(193,57,26,.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Featured (highlighted) variant */
.sv-pkg--featured {
    background: var(--dark);
    border-color: transparent;
    color: var(--white);
}
.sv-pkg--featured:hover {
    border-color: rgba(193,57,26,.5);
    box-shadow: 0 16px 48px rgba(0,0,0,.35);
}

/* Dark variant */
.sv-pkg--dark {
    background: #111317;
    border-color: rgba(255,255,255,.08);
    color: var(--white);
}
.sv-pkg--dark:hover {
    border-color: rgba(193,57,26,.4);
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
}

/* "Most Popular" / badge ribbon */
.sv-pkg-best {
    position: absolute; top: -1px; right: 1.75rem;
    padding: .35rem .85rem;
    background: var(--red);
    border-radius: 0 0 var(--r-md) var(--r-md);
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--white);
}
.sv-pkg-best--dim { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }

/* Package head */
.sv-pkg-head { display: flex; flex-direction: column; gap: .5rem; }
.sv-pkg-name {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}
.sv-pkg--featured .sv-pkg-name,
.sv-pkg--dark .sv-pkg-name { color: var(--white); }

.sv-pkg-price {
    display: flex; align-items: baseline; gap: .35rem;
    flex-wrap: wrap;
}
.sv-price-from {
    font-size: .78rem; color: var(--mid); font-weight: 500;
}
.sv-pkg--featured .sv-price-from,
.sv-pkg--dark .sv-price-from { color: rgba(255,255,255,.4); }

.sv-price-val {
    font-family: var(--font-display);
    font-size: 2.1rem; font-weight: 800;
    color: var(--dark);
    letter-spacing: -.02em; line-height: 1;
}
.sv-pkg--featured .sv-price-val,
.sv-pkg--dark .sv-price-val { color: var(--white); }

.sv-pkg-price--custom .sv-price-val { font-size: 2.1rem; }

.sv-price-cur {
    font-size: .82rem; font-weight: 600; color: var(--mid);
    align-self: flex-end; padding-bottom: .2rem;
}
.sv-pkg--featured .sv-price-cur { color: rgba(255,255,255,.4); }

.sv-pkg-sub {
    font-size: .875rem; color: var(--mid); line-height: 1.65;
    margin-top: .25rem;
}
.sv-pkg--featured .sv-pkg-sub,
.sv-pkg--dark .sv-pkg-sub { color: rgba(255,255,255,.5); }

/* Scope bar (mirrors ah-line-group density) */
.sv-complexity {
    display: flex; flex-direction: column; gap: .45rem;
}
.sv-complexity-label {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--mid);
}
.sv-pkg--featured .sv-complexity-label,
.sv-pkg--dark .sv-complexity-label { color: rgba(255,255,255,.35); }
.sv-complexity-bar {
    height: 4px; background: var(--light-2);
    border-radius: 99px; overflow: hidden;
}
.sv-pkg--featured .sv-complexity-bar,
.sv-pkg--dark .sv-complexity-bar { background: rgba(255,255,255,.1); }
.sv-complexity-fill {
    height: 100%; background: var(--red);
    border-radius: 99px;
    transition: width .6s var(--ease-out);
}
.sv-complexity-fill--light { background: rgba(193,57,26,.7); }

/* Feature list */
.sv-feat-list {
    list-style: none;
    display: flex; flex-direction: column; gap: .6rem;
    flex: 1;
}
.sv-feat-list li {
    display: flex; align-items: flex-start; gap: .6rem;
    font-size: .875rem; color: var(--dark-3); line-height: 1.55;
}
.sv-feat-list li svg { color: var(--red); flex-shrink: 0; margin-top: .15rem; }
.sv-feat-list--light li { color: rgba(255,255,255,.7); }
.sv-feat-list--light li svg { color: rgba(193,57,26,.8); }

/* Timeline row */
.sv-pkg-timeline {
    display: flex; align-items: center; gap: .5rem;
    font-size: .8rem; color: var(--mid);
    padding: .8rem 1rem;
    background: var(--light);
    border-radius: var(--r-md);
    border: 1px solid var(--light-2);
}
.sv-pkg-timeline svg { color: var(--red); flex-shrink: 0; }
.sv-pkg--featured .sv-pkg-timeline,
.sv-pkg--dark .sv-pkg-timeline {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.1);
    color: rgba(255,255,255,.55);
}
.sv-pkg-timeline--light { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.55); }

/* CTA buttons inside cards */
.sv-pkg-cta {
    display: block; text-align: center;
    padding: .85rem 1.5rem;
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
    border-radius: var(--r-md);
    font-family: var(--font-display); font-weight: 700; font-size: .875rem;
    transition: background .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
}
.sv-pkg-cta:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(193,57,26,.3);
}
.sv-pkg-cta--outline {
    background: transparent;
    color: var(--red);
}
.sv-pkg-cta--outline:hover {
    background: rgba(193,57,26,.07);
    border-color: var(--red-dark);
    color: var(--red-dark);
    box-shadow: none;
}
.sv-pkg-cta--light {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.18);
    color: var(--white);
}
.sv-pkg-cta--light:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.3);
    box-shadow: none;
}

/* ─── AUTOMATION: SCOPE CARDS ────────────── */
.sv-scope-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.sv-scope-card {
    background: var(--white);
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-xl);
    padding: 2rem;
    display: flex; flex-direction: column; gap: 1.25rem;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sv-scope-card:hover {
    border-color: rgba(193,57,26,.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.sv-scope-icon {
    width: 50px; height: 50px; border-radius: var(--r-md);
    background: rgba(193,57,26,.07); color: var(--red);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sv-scope-body { flex: 1; }
.sv-scope-body h4 {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    color: var(--dark); margin-bottom: .5rem;
}
.sv-scope-body p {
    font-size: .9rem; color: var(--mid); line-height: 1.75;
}
.sv-scope-price {
    display: flex; align-items: baseline; gap: .4rem;
}
.sv-scope-from {
    font-size: .78rem; color: var(--mid);
}
.sv-scope-price strong {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 800;
    color: var(--dark);
}
.sv-scope-link {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .84rem; font-weight: 700;
    color: var(--red);
    text-decoration: none;
    transition: gap .2s, color .2s;
}
.sv-scope-link:hover { gap: .65rem; color: var(--red-dark); }
.sv-scope-link svg { flex-shrink: 0; }

@media (max-width: 720px) { .sv-scope-grid { grid-template-columns: 1fr; } }

/* ─── RETAINER NOTE ──────────────────────── */
.sv-retainer-note {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0,0,0,.025);
    border-left: 3px solid var(--red);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-size: .875rem; color: var(--mid); line-height: 1.7;
}

/* ─── WHAT'S ALWAYS INCLUDED ─────────────── */
.sv-included { padding: 6rem 0; }
.sv-inc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}
.sv-inc-item {
    background: var(--white);
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-xl);
    padding: 1.75rem;
    display: flex; flex-direction: column; gap: .85rem;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sv-inc-item:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.sv-inc-icon {
    width: 44px; height: 44px; border-radius: var(--r-md);
    background: rgba(193,57,26,.07); color: var(--red);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sv-inc-item h5 {
    font-family: var(--font-display);
    font-size: .95rem; font-weight: 700;
    color: var(--dark); line-height: 1.3;
}
.sv-inc-item p {
    font-size: .85rem; color: var(--mid); line-height: 1.7;
}

@media (max-width: 1024px) { .sv-inc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .sv-inc-grid { grid-template-columns: 1fr; } }

/* ─── FAQ ────────────────────────────────── */
.sv-faq { padding: 6rem 0; }
.sv-faq-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(3rem, 6vw, 7rem);
    align-items: start;
}
.sv-faq-head .section-eyebrow { margin-bottom: .75rem; display: block; }
.sv-faq-head .section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.sv-faq-list {
    display: flex; flex-direction: column; gap: 0;
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-xl);
    overflow: hidden;
}
.sv-faq-item {
    border-bottom: 1px solid var(--light-2);
}
.sv-faq-item:last-child { border-bottom: none; }

.sv-faq-item summary {
    padding: 1.35rem 1.75rem;
    font-family: var(--font-display);
    font-size: .95rem; font-weight: 700;
    color: var(--dark); cursor: pointer;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
    transition: background .15s, color .15s;
    user-select: none;
}
.sv-faq-item summary::-webkit-details-marker { display: none; }
.sv-faq-item summary::after {
    content: '+';
    font-size: 1.3rem; font-weight: 300;
    color: var(--red); flex-shrink: 0;
    transition: transform .2s;
}
.sv-faq-item[open] summary::after { transform: rotate(45deg); }
.sv-faq-item summary:hover { background: rgba(193,57,26,.03); color: var(--red); }

.sv-faq-item p {
    padding: 0 1.75rem 1.35rem;
    font-size: .9rem; color: var(--mid); line-height: 1.8;
    margin: 0;
}

@media (max-width: 860px) {
    .sv-faq-inner { grid-template-columns: 1fr; }
}

/* ─── NAV ACTIVE ─────────────────────────── */
.nav-link.active { color: rgba(255,255,255,.9) !important; }
.nav.scrolled .nav-link.active { color: var(--red) !important; }