/* ==========================================================================
   services.php — page-only styles. Loaded after theme.css.
   Prefix: sv-
   ========================================================================== */

/* ---------- hero ---------- */
.sv-hero { padding-bottom: clamp(5rem, 4rem + 4vw, 7.5rem); }
.sv-hero__grid { display: grid; gap: var(--ph-s-7); align-items: center; }
@media (min-width: 992px) { .sv-hero__grid { grid-template-columns: 1.05fr .95fr; } }
.sv-hero .ph-hero__eyebrow i { color: var(--ph-on-red-soft); }
.sv-hero h1 em {
    font-style: italic;
    font-weight: 500;
    color: #fff;
    display: block;
}
.sv-hero__visual { position: relative; max-width: 560px; width: 100%; margin-inline: auto; }
.sv-hero__frame {
    aspect-ratio: 4 / 3;
    border: 8px solid var(--ph-cream);
    box-shadow: var(--ph-shadow-lg);
    transform: rotate(1.5deg);
}
.sv-hero__frame img { object-position: 45% 50%; }
.sv-hero__tag { left: -8px; bottom: -22px; }
@media (min-width: 1200px) { .sv-hero__tag { left: -36px; } }

/* ---------- service index (overlaps the hero) ---------- */
.sv-index { position: relative; z-index: 2; margin-top: calc(-1 * clamp(2.75rem, 2rem + 2vw, 3.75rem)); }
.sv-index__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 !important;
    padding: 6px !important;
    list-style: none;
    background: var(--ph-paper);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-r-lg);
    box-shadow: var(--ph-shadow-md);
}
.sv-index__list a {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 56px;
    padding: .5rem .9rem;
    border-radius: var(--ph-r-md);
    font-weight: 700;
    color: var(--ph-ink) !important;
    line-height: 1.2;
    transition: background-color .2s, color .2s;
}
.sv-index__list a:hover { background: var(--ph-tint); color: var(--ph-red-700) !important; }
.sv-index__num {
    font-family: var(--ph-font-display);
    font-size: .95rem;
    color: var(--ph-red-700);
    flex: none;
}
@media (min-width: 768px) { .sv-index__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) {
    .sv-index__list { grid-template-columns: repeat(6, 1fr); }
    .sv-index__list li + li { border-left: 1px solid var(--ph-line); }
    .sv-index__list a { justify-content: center; }
}

/* ---------- services ledger ---------- */
.sv-services { padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.sv-ledger {
    background: var(--ph-paper);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-r-xl);
    overflow: hidden;
}
.sv-row {
    position: relative;
    display: grid;
    gap: var(--ph-s-4);
    padding: var(--ph-s-5);
    transition: background-color .25s;
}
.sv-row + .sv-row { border-top: 1px solid var(--ph-line); }
.sv-row:hover { background: #FFFBF7; }
.sv-row::before {   /* crimson rule that grows on hover */
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--ph-red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s var(--ph-ease);
}
.sv-row:hover::before { transform: scaleY(1); }
.sv-row__num {
    font-family: var(--ph-font-display);
    font-size: clamp(2.6rem, 2rem + 2.5vw, 4.25rem);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ph-red);
    font-variant-numeric: tabular-nums;
}
.sv-row__main { display: flex; gap: var(--ph-s-4); align-items: flex-start; }
.sv-row__main h3 { font-size: var(--ph-fs-h3); margin-bottom: .3em !important; }
.sv-row__main p { margin: 0; }
.sv-row__subjects { align-self: center; }
.sv-row__cta { justify-self: start; align-self: center; }
@media (max-width: 767.98px) {
    .sv-row { grid-template-columns: auto 1fr; column-gap: var(--ph-s-4); }
    .sv-row__num { grid-row: 1; align-self: center; }
    .sv-row__main { grid-column: 1 / -1; }
    .sv-row__main .ph-icon-badge { display: none; }
    .sv-row__num { grid-column: 1; }
    .sv-row__main { grid-row: 2; }
    .sv-row__subjects, .sv-row__cta { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
    .sv-row {
        grid-template-columns: 96px 1.25fr 1fr;
        column-gap: var(--ph-s-6);
        align-items: center;
        padding: var(--ph-s-6) var(--ph-s-6);
    }
    .sv-row__cta { grid-column: 2; }
}
@media (min-width: 1100px) {
    .sv-row { grid-template-columns: 110px 1.3fr 1fr auto; }
    .sv-row__cta { grid-column: auto; }
}

/* ---------- entrance exams ---------- */
.sv-exams {
    margin-top: var(--ph-s-5);
    padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
    background: var(--ph-ink);
    color: var(--ph-on-ink-soft);
    border-radius: var(--ph-r-xl);
    display: grid;
    gap: var(--ph-s-5);
}
.sv-exams .ph-eyebrow { color: #F08A84; margin-bottom: .5rem; }
.sv-exams__lead {
    font-family: var(--ph-font-display);
    font-size: var(--ph-fs-xl);
    line-height: 1.3;
    color: var(--ph-on-ink);
    margin: 0 !important;
    max-width: 22ch;
}
.sv-exams__grid { display: grid; gap: var(--ph-s-4); }
@media (min-width: 700px) { .sv-exams__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
    .sv-exams { grid-template-columns: 1fr 2.4fr; align-items: center; gap: var(--ph-s-6); }
}
.sv-exam {
    display: flex;
    flex-direction: column;
    padding: var(--ph-s-5);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--ph-r-lg);
    transition: background-color .25s, border-color .25s;
}
.sv-exam:hover { background: rgba(255,255,255,.08); border-color: rgba(240,138,132,.5); }
.sv-exam__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--ph-s-4); }
.sv-exam .ph-icon-badge { background: rgba(255,255,255,.08); color: #F08A84; }
.sv-exam__num { font-family: var(--ph-font-display); font-size: 1.6rem; font-weight: 700; color: rgba(255,255,255,.35); }
.sv-exam h3 { color: #fff !important; font-size: var(--ph-fs-h3); margin-bottom: .35em !important; }
.sv-exam p { margin: 0; }
.sv-exam .ph-chip { background: rgba(255,255,255,.08); color: var(--ph-on-ink); }
.sv-exam__foot { margin-top: auto; padding-top: var(--ph-s-4); }
.sv-exam .ph-link { color: #fff !important; }

/* ---------- class picker ---------- */
.sv-classes { display: grid; gap: var(--ph-s-6); align-items: center; }
@media (min-width: 992px) { .sv-classes { grid-template-columns: .8fr 1.2fr; gap: var(--ph-s-8); } }
.sv-classes__intro .ph-lead { margin-bottom: var(--ph-s-5); }

.sv-picker {
    background: var(--ph-cream);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-r-xl);
    padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
}
.sv-picker h3 { font-size: var(--ph-fs-h3); margin-bottom: .3em !important; }
.sv-picker > p { color: var(--ph-muted); }
.sv-picker__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-block: var(--ph-s-5) !important; }
@media (min-width: 560px) { .sv-picker__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .sv-picker__grid { grid-template-columns: repeat(6, 1fr); } }
.sv-class {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: .6rem .3rem;
    background: var(--ph-paper);
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-r-md);
    text-align: center;
    transition: transform .2s var(--ph-ease), background-color .2s, border-color .2s, color .2s;
}
.sv-class strong {
    font-family: var(--ph-font-display);
    font-size: 2rem;
    line-height: 1;
    color: var(--ph-red);
    transition: color .2s;
}
.sv-class span { margin-top: .3rem; font-size: var(--ph-fs-xs); font-weight: 600; color: var(--ph-muted); transition: color .2s; }
/* four tints = the four school bands 01–04 above */
.sv-class--b2 { background: #FEF6F4; }
.sv-class--b3 { background: var(--ph-tint); border-color: var(--ph-tint-2); }
.sv-class--b4 { background: var(--ph-tint-2); border-color: #E9BDB5; }
.sv-class--b4 span, .sv-class--b3 span { color: var(--ph-red-900); }
.sv-class:hover { transform: translateY(-3px); background: var(--ph-red); border-color: var(--ph-red); }
.sv-class:hover strong, .sv-class:hover span { color: #fff; }

.sv-picker__note {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: var(--ph-s-4);
    background: var(--ph-paper);
    border-radius: var(--ph-r-md);
    border-left: 3px solid var(--ph-red);
    font-size: var(--ph-fs-sm);
}
.sv-picker__note i { color: var(--ph-red); margin-top: .25em; }
.sv-picker__note p { margin: 0; }

/* ---------- why ---------- */
.sv-why { display: grid; gap: var(--ph-s-7); align-items: center; }
@media (min-width: 992px) { .sv-why { grid-template-columns: .9fr 1.1fr; gap: var(--ph-s-8); } }
.sv-why__media { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.sv-why__frame { aspect-ratio: 4 / 5; border-radius: var(--ph-r-xl) var(--ph-r-xl) var(--ph-r-xl) 160px; }
.sv-why__frame img { object-position: 62% 50%; }
.sv-why__stamp {
    position: absolute;
    right: -12px; top: 24px;
    width: 104px; height: 104px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--ph-red);
    color: #fff;
    font-family: var(--ph-font-display);
    font-size: 2.1rem;
    font-weight: 700;
    box-shadow: 0 0 0 8px var(--ph-cream), var(--ph-shadow-md);
}
@media (min-width: 1200px) { .sv-why__stamp { right: -40px; } }

.sv-points { display: grid; gap: var(--ph-s-3); margin-top: var(--ph-s-5) !important; }
@media (min-width: 640px) { .sv-points { grid-template-columns: 1fr 1fr; } }
.sv-points li {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: var(--ph-s-4);
    background: var(--ph-paper);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-r-md);
}
.sv-points h3 { font-size: 1.15rem; margin-bottom: .2em !important; }
.sv-points p { margin: 0; font-size: var(--ph-fs-sm); line-height: 1.5; }

/* ---------- steps on ink ---------- */
.sv-steps {
    display: grid;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    counter-reset: none;
}
.sv-step {
    position: relative;
    padding: var(--ph-s-5) 0 var(--ph-s-5) 76px;
    border-top: 1px solid rgba(255,255,255,.14);
}
.sv-step__num {
    position: absolute;
    left: 0; top: var(--ph-s-5);
    font-family: var(--ph-font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: #F08A84;
}
.sv-step h3 { font-size: var(--ph-fs-h3); margin-bottom: .3em !important; }
.sv-step p { margin: 0; }
@media (min-width: 900px) {
    .sv-steps { grid-template-columns: repeat(4, 1fr); }
    .sv-step { padding: var(--ph-s-5) var(--ph-s-5) 0; border-top: 0; border-left: 1px solid rgba(255,255,255,.14); }
    .sv-step:first-child { border-left: 0; padding-left: 0; }
    .sv-step__num { position: static; display: block; font-size: clamp(3rem, 2rem + 2vw, 4.25rem); margin-bottom: var(--ph-s-4); }
}

/* ---------- small-screen tuning ---------- */
.sv-why__frame { border: 1px solid var(--ph-line); background: #fff; }
@media (max-width: 479.98px) {
    .sv-hero .ph-hero__eyebrow { letter-spacing: .08em; }
    .sv-why__frame { aspect-ratio: 1 / 1; border-bottom-left-radius: 110px; }
    .sv-why__stamp { right: 8px; top: 12px; width: 84px; height: 84px; font-size: 1.7rem; }
}

/* balance multi-line display headings so a single word is not left alone (candidate for theme.css) */
.ph-body .ph-h2 { text-wrap: balance; }
