/* =====================================================================
   SERVICES PAGE (new UI) — classes prefixed "sv-"
   ===================================================================== */

.sv-page {
    --sv-orange: #f7971e;
    --sv-yellow: #ffd200;
    background: #f9f5f0;
    color: #2d2d2d;
    font-family: "Poppins", sans-serif;
}

.sv-page h1,
.sv-page h2,
.sv-page h3 { font-family: inherit; margin: 0; }
.sv-page p { margin: 0; }

@keyframes svBounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-3px); }
    80% { transform: translateY(-6px); }
}

@keyframes svShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Hero ---------- */
.sv-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 20px;
    background-position: center;
    background-size: cover;
    text-align: center;
}

.sv-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--sv-orange), var(--sv-yellow), var(--sv-orange));
    background-size: 200% 100%;
    animation: svShimmer 3s ease-in-out infinite;
}

.sv-hero h1 {
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.sv-hero h1 i {
    display: inline-block;
    margin-right: 12px;
    color: #ffd700;
    animation: svBounce 2s infinite;
}

.sv-hero p {
    margin-top: 6px !important;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

/* ---------- Services ---------- */
.sv-services { padding: 50px 20px 40px; }

.sv-title {
    margin-bottom: 30px;
    text-align: center;
}

.sv-title h2 {
    display: inline-block;
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a2e;
}

.sv-title h2 i { margin-right: 12px; color: var(--sv-orange); }

.sv-title h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 4px;
    margin: 6px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--sv-orange), var(--sv-yellow));
}

.sv-title p {
    margin-top: 8px !important;
    font-size: 1rem;
    font-weight: 300;
    color: #888;
}

.sv-slider {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0 20px;
}

.sv-track {
    display: flex;
    gap: 28px;
    padding: 10px 12px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Few cards: no sliding needed, just centre them */
.sv-slider.is-static .sv-track { justify-content: center; flex-wrap: wrap; }

.sv-card {
    position: relative;
    flex: 0 0 210px;
    overflow: hidden;
    padding: 22px 18px 24px;
    border: 1px solid rgba(247, 151, 30, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, border-color 0.3s ease;
}

.sv-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sv-orange), var(--sv-yellow));
    opacity: 0.6;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.sv-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--sv-yellow);
    box-shadow: 0 20px 50px rgba(247, 151, 30, 0.14), 0 8px 20px rgba(0, 0, 0, 0.06);
}

.sv-card:hover::before { opacity: 1; height: 5px; }

.sv-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3e0, #fde8cc);
    color: var(--sv-orange);
    font-size: 2rem;
    transition: all 0.4s ease;
}

.sv-icon i { animation: svBounce 2.4s infinite; }

.sv-card:hover .sv-icon {
    background: linear-gradient(135deg, var(--sv-orange), var(--sv-yellow));
    box-shadow: 0 8px 24px rgba(247, 151, 30, 0.3);
    color: #fff;
    transform: scale(1.06) rotate(-3deg);
}

.sv-card:hover .sv-icon i { animation: none; }

.sv-card h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    transition: color 0.3s ease;
}

.sv-card:hover h3 { color: var(--sv-orange); }

.sv-card p {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.5;
    color: #777;
}

.sv-card-tag {
    margin-top: 14px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sv-card:hover .sv-card-tag { opacity: 1; transform: translateY(0); }

.sv-card-tag span {
    display: inline-block;
    padding: 4px 18px;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--sv-orange), var(--sv-yellow));
    box-shadow: 0 4px 14px rgba(247, 151, 30, 0.2);
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Touch screens have no hover, so always show the tag there */
@media (hover: none) {
    .sv-card-tag { opacity: 1; transform: none; }
}

.sv-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.sv-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d0cbc6;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.sv-dot:hover { background: var(--sv-orange); transform: scale(1.1); }

.sv-dot.active {
    background: var(--sv-orange);
    box-shadow: 0 0 12px rgba(247, 151, 30, 0.4);
    transform: scale(1.25);
}

.sv-empty {
    padding: 30px 0;
    text-align: center;
    color: #888;
}

/* ---------- Family band ---------- */
.sv-family {
    padding: 50px 30px;
    border-top: 4px solid var(--sv-yellow);
    border-bottom: 4px solid var(--sv-yellow);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
}

.sv-family-inner { max-width: 900px; margin: 0 auto; }

.sv-family h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.sv-family h2 i {
    display: inline-block;
    margin-right: 10px;
    color: #ffd700;
    animation: svBounce 2.2s infinite;
}

.sv-family p {
    max-width: 600px;
    margin: 10px auto 0 !important;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.sv-family-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.sv-family-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s ease;
}

.sv-family-chip i {
    font-size: 1.6rem;
    color: #ffd700;
    animation: svBounce 2.6s infinite;
}

.sv-family-chip:hover {
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 48px rgba(255, 215, 0, 0.2);
    transform: translateY(-6px) scale(1.03);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .sv-card { flex-basis: 185px; padding: 18px 14px; }
    .sv-icon { width: 56px; height: 56px; font-size: 1.7rem; }
    .sv-card h3 { font-size: 1rem; }
    .sv-card p { font-size: 0.75rem; }
}

@media (max-width: 768px) {
    .sv-hero { min-height: 200px; }
    .sv-hero h1 { font-size: 2.4rem; }
    .sv-hero p { font-size: 0.9rem; letter-spacing: 2px; }
    .sv-title h2 { font-size: 1.8rem; }
    .sv-card { flex-basis: 170px; padding: 16px 12px; border-radius: 20px; }
    .sv-track { gap: 18px; }
    .sv-family { background-attachment: scroll; }
    .sv-family h2 { font-size: 1.8rem; }
    .sv-family-chip { padding: 14px 20px; font-size: 0.9rem; }
}

/* Phones: 2-column grid instead of a slider */
@media (max-width: 600px) {
    .sv-hero { min-height: 170px; }
    .sv-hero h1 { font-size: 2rem; }
    .sv-hero p { font-size: 0.8rem; letter-spacing: 1.5px; }
    .sv-services { padding: 36px 12px 30px; }
    .sv-title h2 { font-size: 1.6rem; }
    .sv-track {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 6px 4px;
        transform: none !important;
    }
    .sv-card { padding: 14px 10px; }
    .sv-icon { width: 48px; height: 48px; font-size: 1.4rem; }
    .sv-card h3 { font-size: 0.9rem; }
    .sv-card p { font-size: 0.72rem; }
    .sv-dots { display: none; }
    .sv-family { padding: 36px 18px; }
    .sv-family h2 { font-size: 1.6rem; }
    .sv-family-icons { gap: 14px; }
    .sv-family-chip { padding: 12px 18px; font-size: 0.85rem; }
}

@media (max-width: 380px) {
    .sv-hero h1 { font-size: 1.5rem; }
    .sv-card h3 { font-size: 0.8rem; }
    .sv-family-chip { width: 100%; max-width: 220px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .sv-hero::after,
    .sv-hero h1 i,
    .sv-icon i,
    .sv-family h2 i,
    .sv-family-chip i { animation: none; }
}

/* =====================================================================
   HOVER EFFECTS (scroll reveals come from data-reveal)
   ===================================================================== */

/* Card light sweep */
.sv-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 210, 0, 0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.8s ease;
    pointer-events: none;
}

.sv-card:hover::after { left: 140%; }

/* Pulsing ring behind the icon */
.sv-icon { position: relative; }

.sv-icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(247, 151, 30, 0.5);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.sv-card:hover .sv-icon::after { opacity: 1; transform: scale(1); }

/* Slider dots grow on hover (already coloured) */
.sv-dot { transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease; }
.sv-dot.active { width: 26px; border-radius: 10px; transform: none; }

/* Title icon */
.sv-title h2 i { display: inline-block; transition: transform 0.5s ease; }
.sv-title:hover h2 i { transform: rotate(-12deg) scale(1.15); }
.sv-title h2::after { transition: width 0.5s ease; }
.sv-title:hover h2::after { width: 90%; }

/* Family chips: icon spins */
.sv-family-chip:hover i { animation: none; transform: rotate(360deg); transition: transform 0.6s ease; }

@media (prefers-reduced-motion: reduce) {
    .sv-card::after { display: none; }
}
