/* static/css/services.css - the /services page. */

/* ---------- Hero ---------- */
.sv-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-height) + 3rem) 0 3.5rem;
    color: #F4F1EA;
    background-color: var(--primary-deep);
    background-image:
        radial-gradient(50rem 32rem at 90% 0%, rgba(226, 174, 72, 0.14), transparent 60%),
        radial-gradient(44rem 30rem at 0% 100%, rgba(62, 140, 57, 0.16), transparent 60%),
        linear-gradient(180deg, var(--primary-navy) 0%, var(--primary-deep) 100%);
}
.sv-hero .home-eyebrow { color: var(--accent-yellow); }
.sv-hero h1 {
    max-width: 18ch;
    font-size: clamp(2.3rem, 4.8vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 1.25rem;
    text-wrap: balance;
    animation: sv-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sv-lead {
    max-width: 44rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #C9D3DF;
    margin: 0 0 2.75rem;
    animation: sv-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.sv-jump {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.sv-jump li { animation: sv-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.sv-jump li:nth-child(1) { animation-delay: 0.2s; }
.sv-jump li:nth-child(2) { animation-delay: 0.28s; }
.sv-jump li:nth-child(3) { animation-delay: 0.36s; }
.sv-jump li:nth-child(4) { animation-delay: 0.44s; }
.sv-jump a {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    padding: 1.4rem 1.4rem 1.5rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: inherit;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.sv-jump a:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(226, 174, 72, 0.6); transform: translateY(-3px); }
.sv-jump a:focus-visible { outline: 3px solid var(--accent-yellow); outline-offset: 3px; }
.sv-jump-num {
    position: absolute;
    top: 1.2rem;
    right: 1.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-yellow);
}
.sv-jump i {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-yellow);
    color: var(--primary-deep);
    margin-bottom: 0.6rem;
}
.sv-jump strong { font-family: var(--font-secondary); font-size: 1.08rem; color: #fff; }
.sv-jump span:not(.sv-jump-num) { font-size: 0.88rem; line-height: 1.5; color: #B9C5D3; }

@keyframes sv-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Core services ---------- */
.sv-list { display: grid; gap: 5.5rem; }
.sv-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem 4.5rem;
    align-items: center;
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
}
.sv-item:nth-child(even) .sv-media { order: 2; }
.sv-media {
    position: relative;
    aspect-ratio: 6 / 5;
    border-radius: 24px;
    overflow: hidden;
    background: var(--light-gray);
    box-shadow: 0 30px 60px rgba(16, 41, 74, 0.14);
}
.sv-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.sv-item:hover .sv-media img { transform: scale(1.04); }
.sv-media-num {
    position: absolute;
    left: 1.25rem;
    bottom: 1rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.sv-body .home-eyebrow i { margin-right: 0.3rem; }
.sv-body h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--primary-navy);
    margin: 0 0 1.1rem;
}
.sv-body > p:not(.home-eyebrow) {
    font-size: 1.04rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0 0 1rem;
}
.sv-includes {
    list-style: none;
    margin: 1.5rem 0 1.75rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
}
.sv-includes li {
    display: flex;
    gap: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--charcoal);
}
.sv-includes i {
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    margin-top: 0.05rem;
    border-radius: 50%;
    background: rgba(62, 140, 57, 0.14);
    color: var(--leaf-dark);
    font-size: 0.65rem;
}
.sv-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

/* ---------- On every order (dark band) ---------- */
.home-section-dark .home-section-head h2 { margin-bottom: 0; }
.sv-order {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
.sv-order li {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.6rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.sv-order i { font-size: 1.4rem; color: var(--accent-yellow); margin-bottom: 0.6rem; }
.sv-order strong { color: #fff; font-size: 1.05rem; }
.sv-order span { color: #B9C5D3; font-size: 0.92rem; line-height: 1.55; }

/* ---------- Steps ---------- */
.sv-steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}
.sv-steps li {
    counter-increment: step;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 3.6rem;
}
/* Numbered marker on a line that runs through all four steps. */
.sv-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-yellow);
    color: var(--primary-navy);
    font-family: var(--font-secondary);
    font-weight: 700;
}
.sv-steps li::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 2.5rem;
    right: -1.5rem;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(16, 41, 74, 0.25) 0 6px, transparent 6px 12px);
}
.sv-steps li:last-child::after { display: none; }
.sv-steps strong { font-family: var(--font-secondary); font-size: 1.1rem; color: var(--primary-navy); }
.sv-steps span { font-size: 0.93rem; line-height: 1.6; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .sv-jump,
    .sv-order { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .sv-item { grid-template-columns: minmax(0, 1fr); }
    .sv-item:nth-child(even) .sv-media { order: 0; }
    .sv-media { aspect-ratio: 16 / 10; }
    .sv-list { gap: 4rem; }
    .sv-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .sv-steps li { padding: 0 0 1.75rem 3.6rem; }
    .sv-steps li::after { top: 2.5rem; bottom: 0; left: 1.2rem; right: auto; width: 2px; height: auto;
        background: repeating-linear-gradient(180deg, rgba(16, 41, 74, 0.25) 0 6px, transparent 6px 12px); }
}
@media (max-width: 560px) {
    .sv-jump,
    .sv-order,
    .sv-includes { grid-template-columns: minmax(0, 1fr); }
    .sv-actions .home-btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .sv-hero h1, .sv-lead, .sv-jump li { animation: none; }
    .sv-jump a, .sv-media img { transition: none; }
}
