/* ============================================
   Services Page � Advanced Layout Styles
   ============================================ */

/* --- SV-INTRO ------------------------------ */
.sv-intro {
    padding: 6rem 0 5rem;
    background: #fff;
}

.svi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.svi-content .section-tag {
    margin-bottom: 1rem;
    display: inline-block;
}

.svi-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.svi-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 2rem;
}

.svi-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.svi-pillar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    padding: 0.55rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: background 0.2s, border-color 0.2s;
}

.svi-pillar i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.svi-pillar:hover {
    background: #fff0f0;
    border-color: var(--primary-color);
}

.svi-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.svi-stat {
    background: var(--text-dark);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
}

.svi-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.svi-stat strong {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.svi-stat span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- SV-CARDS ------------------------------ */
.sv-cards {
    padding: 6rem 0;
    background: #f9f9f9;
}

.sv-cards .section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.sv-cards .section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.5rem 0 1rem;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.svc-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eaeaea;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}

.svc-card:hover::after {
    transform: scaleX(1);
}

.svc-card--featured {
    border-top: 3px solid var(--primary-color);
}

.svc-card-inner {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.svc-seq {
    font-size: 3.5rem;
    font-weight: 900;
    color: #f0f0f0;
    line-height: 1;
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.svc-card:hover .svc-seq {
    color: rgba(139,0,0,0.08);
}

.svc-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), #a00000);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.svc-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.svc-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

.svc-features {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.svc-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.svc-features li i {
    color: var(--primary-color);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
    transition: gap 0.2s;
}

.svc-link:hover {
    gap: 0.7rem;
}

/* --- SV-WHY -------------------------------- */
.sv-why {
    padding: 6rem 0;
    background: #fff;
}

/* --- WHY CHOOSE SPLIT --- */
.svw-bento {
    display: grid;
    grid-template-columns: minmax(320px, 400px) 1fr;
    gap: 3rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

/* --- LEFT PANEL --- */
.svw-panel {
    position: relative;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 2.5rem 2rem 2.5rem 2.5rem;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ececec;
}

.svw-panel::before {
    content: '';
    position: absolute;
    top: -18px; right: -18px;
    width: 120px; height: 120px;
    background: rgba(139,0,0,0.12);
    border-radius: 50%;
    z-index: -1;
}

.svw-panel::after {
    content: '';
    position: absolute;
    bottom: -28px; left: -18px;
    width: 140px; height: 140px;
    background: rgba(139,0,0,0.08);
    border-radius: 50%;
    z-index: -1;
}

.svw-panel h2 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.1rem;
    line-height: 1.15;
}

.svw-panel p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.7;
}

.svw-panel-stats {
    display: flex;
    gap: 1.25rem;
    border-top: 1px solid #ececec;
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.svw-panel-stats div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.svw-panel-stats strong {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 800;
}

.svw-panel-stats span {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.svw-panel a {
    position: relative;
    z-index: 1;
}

.svw-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.svw-card {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid #eaeaea;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.svw-card:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.svw-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary-color), #a00000);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.svw-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.svw-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

/* --- RESPONSIVE ---------------------------- */
@media (max-width: 1100px) {
    .svw-bento {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .svw-panel {
        max-width: 100%;
        border-radius: 18px;
        box-shadow: 0 4px 18px rgba(0,0,0,0.08);
        padding: 2rem 1.2rem;
        margin-bottom: 2rem;
    }
    .hps-header {
        position: static;
        max-height: none;
        overflow: visible;
        -webkit-overflow-scrolling: auto;
        z-index: auto;
    }
    .svi-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .svw-panel {
        position: static !important;
        margin-bottom: 1.5rem !important;
        border-radius: 14px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
        padding: 1.2rem 0.7rem !important;
    }

    .svi-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .svc-grid {
        grid-template-columns: 1fr;
    }

    .svw-cards {
        grid-template-columns: 1fr;
    }

    .sv-intro,
    .sv-cards,
    .sv-why {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .sv-intro {
        padding: 3rem 0 2.5rem;
    }

    .svi-grid {
        gap: 1.5rem;
    }

    .svi-content .section-tag {
        display: block;
        margin-bottom: 0.75rem;
        font-size: 0.75rem;
    }

    .svi-content h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 1rem;
    }

    .svi-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .svi-pillars {
        gap: 0.5rem;
    }

    .svi-pillar {
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
    }

    .svi-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .svi-stat {
        padding: 1.5rem 1.25rem;
    }

    .svi-stat strong {
        font-size: 1.8rem;
    }

    .svi-stat span {
        font-size: 0.7rem;
    }

    .sv-cards {
        padding: 3rem 0;
    }

    .sv-cards .section-header {
        margin-bottom: 2.5rem;
        text-align: center;
    }

    .sv-cards .section-header .section-tag {
        font-size: 0.75rem;
        display: inline-block;
    }

    .sv-cards .section-header h2 {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
        word-spacing: 9999px;
    }

    .sv-cards .section-header .section-divider {
        width: 40px;
        height: 3px;
        background: var(--primary-color);
        margin: 1rem auto 0;
    }

    .svc-card {
        border-radius: 14px;
        margin-bottom: 0.5rem;
    }

    .svc-card-inner {
        padding: 1.5rem 1.25rem;
        gap: 0.5rem;
        min-height: 100%;
    }

    .svc-seq {
        font-size: 2.5rem;
        margin-bottom: 0.1rem;
    }

    .svc-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }

    .svc-card h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .svc-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .svc-features {
        gap: 0.35rem;
    }

    .svc-features li {
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .svc-features li i {
        font-size: 0.6rem;
    }

    .svc-link {
        font-size: 0.8rem;
        padding-top: 0.75rem;
        margin-top: auto;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .sv-why {
        padding: 3rem 0;
    }

    .svw-bento {
        grid-template-columns: 1fr;
    }

    .svw-panel {
        padding: 2rem 1.5rem;
        top: 74px;
        border-radius: 16px;
        position: relative;
    }

    .svw-panel::before {
        width: 120px;
        height: 120px;
        top: -30px;
        right: -30px;
    }

    .svw-panel::after {
        width: 150px;
        height: 150px;
        bottom: -40px;
        left: -30px;
    }

    .svw-panel .section-tag {
        font-size: 0.75rem;
    }

    .svw-panel h2 {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
        margin: 0.5rem 0 1rem;
    }

    .svw-panel p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .svw-panel-stats {
        gap: 1rem;
        padding-top: 1rem;
        flex-wrap: wrap;
    }

    .svw-panel-stats div {
        flex: 1;
        min-width: 100px;
    }

    .svw-panel-stats strong {
        font-size: 1.2rem;
    }

    .svw-panel-stats span {
        font-size: 0.65rem;
    }

    .svw-panel .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
        justify-content: center;
        margin-top: 1.5rem;
    }

    .svw-cards {
        gap: 1rem;
    }

    .svw-card {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .svw-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .svw-card h4 {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .svw-card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .sv-intro {
        padding: 2.5rem 0 2rem;
    }

    .svi-content h2 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .svi-content p {
        font-size: 0.9rem;
    }

    .svi-pillar {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }

    .svi-stat {
        padding: 1.25rem 1rem;
    }

    .svi-stat strong {
        font-size: 1.5rem;
    }

    .sv-cards {
        padding: 2.5rem 0;
    }

    .sv-cards .section-header h2 {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }

    .svc-card-inner {
        padding: 1.25rem 1rem;
    }

    .svc-seq {
        font-size: 2rem;
    }

    .svc-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .svc-card h3 {
        font-size: 0.95rem;
    }

    .svc-card p {
        font-size: 0.8rem;
    }

    .svc-features li {
        font-size: 0.75rem;
    }

    .svc-link {
        font-size: 0.75rem;
    }

    .sv-why {
        padding: 2.5rem 0;
    }

    .svw-panel {
        padding: 1.5rem 1.25rem;
    }

    .svw-panel h2 {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
        margin-bottom: 0.75rem;
    }

    .svw-panel p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .svw-panel-stats {
        gap: 0.75rem;
        padding-top: 0.75rem;
    }

    .svw-panel-stats strong {
        font-size: 1rem;
    }

    .svw-panel .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        margin-top: 1rem;
    }

    .svw-card {
        padding: 1.25rem 1rem;
    }

    .svw-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .svw-card h4 {
        font-size: 0.9rem;
    }

    .svw-card p {
        font-size: 0.75rem;
    }
}
