/**
 * Services page v2 – Wolfgramm Holdings theme
 * Uses site fonts (Open Sans, Inter) and brand colors
 * Scoped to .services-v2
 */

.services-v2 {
    --sv2-font-heading: var(--font-heading);
    --sv2-font-body: var(--font-primary);
    --sv2-gold: var(--secondary-color);
    --sv2-gold-light: var(--primary-color);
    --sv2-gold-subtle: rgba(201, 152, 88, 0.12);
    --sv2-black: var(--accent-color);
    --sv2-ink: var(--text-color);
    --sv2-muted: var(--text-light);
    --sv2-cream: var(--bg-light);
    --sv2-white: var(--bg-color);
    --sv2-radius: 12px;
    --sv2-radius-lg: 20px;
    --sv2-radius-full: 9999px;
    --sv2-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --sv2-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
    --sv2-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-v2 #main-body h1,
.services-v2 #main-body h2,
.services-v2 .sv2-hero-title,
.services-v2 .sv2-section-title,
.services-v2 .sv2-pillar-title,
.services-v2 .sv2-cta-title {
    font-family: var(--sv2-font-heading) !important;
}

.services-v2 .sv2-hero-tagline,
.services-v2 .sv2-pillar-desc,
.services-v2 .sv2-intro,
.services-v2 .sv2-tag,
.services-v2 .sv2-cta-text,
.services-v2 .sv2-btn {
    font-family: var(--sv2-font-body);
}

/* ----- Hero: solid background ----- */
.sv2-hero {
    position: relative;
    min-height: clamp(260px, 30vh, 360px);
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background: var(--sv2-gold);
}

.sv2-hero::after {
    display: none;
}

.sv2-hero-inner {
    position: relative;
    z-index: 1;
}

.sv2-hero-content {
    max-width: 640px;
    text-align: center;
    margin: 0 auto;
}

.sv2-hero-title {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--sv2-ink) !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.02em;
}

.sv2-hero-tagline {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--sv2-muted);
    margin: 0;
}

/* ----- Pillars: cards with soft flow (tan bg, 3+2 layout) ----- */
.sv2-pillars {
    padding: 4rem 0 5rem;
    background: #fff;
}

.sv2-pillars-intro {
    max-width: 560px;
    margin: 0 auto 2.75rem;
    text-align: center;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--sv2-ink);
}

/* Same layout as Five Pillars: flex, centered, 3 cols then 2 centered */
.sv2-pillars-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 0;
}

.sv2-pillar-card {
    width: 100%;
    min-width: 280px;
}

@media (min-width: 640px) {
    .sv2-pillar-card {
        width: calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .sv2-pillar-card {
        width: calc(33.333% - 1.34rem);
    }
}

/* Card style: match Five Pillars (value-card) – light beige, no border, subtle shadow */
.sv2-pillar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: #f5e6d3;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: var(--sv2-ink);
    transition: var(--transition-base);
    scroll-margin-top: 6rem;
    border: none;
}

.sv2-pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Icon wrapper: same as Five Pillars value-icon-wrapper (white rounded box) */
.sv2-pillar-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
    .sv2-pillar-icon-wrapper {
        width: 90px;
        height: 90px;
        border-radius: var(--radius-xl);
        padding: 1rem;
    }
}

.sv2-pillar-card-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.sv2-pillar-card-title {
    font-family: var(--sv2-font-body) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--sv2-ink) !important;
    margin-bottom: 1rem !important;
}

.sv2-pillar-card-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--sv2-ink);
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

/* ----- Pillar detail sections: flowing, no bullets ----- */
.sv2-pillar-section {
    padding: 4.5rem 0;
    scroll-margin-top: 5rem;
}

.sv2-pillar-section:nth-child(odd) {
    background: var(--sv2-white);
}

.sv2-pillar-section:nth-child(even) {
    background: var(--sv2-cream);
}

.sv2-pillar-section-inner {
    max-width: 820px;
}

.sv2-section-label {
    display: inline-block;
    font-family: var(--sv2-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sv2-gold);
    margin-bottom: 0.75rem;
}

.sv2-section-title {
    font-size: clamp(1.65rem, 2.8vw, 2.25rem) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: var(--sv2-ink) !important;
    margin-bottom: 1.25rem !important;
    letter-spacing: -0.02em;
}

.sv2-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--sv2-muted);
    margin-bottom: 2rem;
}

/* Tags: modern pill-style offerings, no list ----- */
.sv2-tags-wrap {
    margin-top: 0.5rem;
}

.sv2-tags-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sv2-muted);
    margin-bottom: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sv2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.sv2-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sv2-ink);
    background: var(--sv2-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--sv2-radius-full);
    transition: var(--sv2-transition);
}

.sv2-pillar-section:nth-child(even) .sv2-tag {
    background: var(--sv2-white);
    border-color: rgba(0, 0, 0, 0.06);
}

.sv2-tag:hover {
    border-color: var(--sv2-gold-light);
    background: var(--sv2-gold-subtle);
    color: var(--sv2-ink);
}

/* ----- CTA: seamless gradient ----- */
.sv2-cta {
    padding: 5rem 0;
    background: linear-gradient(160deg, var(--sv2-gold) 0%, var(--sv2-gold-light) 100%);
    text-align: center;
}

.sv2-cta-inner {
    max-width: 520px;
    margin: 0 auto;
}

.sv2-cta-title {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: var(--sv2-black) !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.02em;
}

.sv2-cta-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--sv2-ink);
    margin-bottom: 1.75rem;
}

.sv2-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.sv2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--sv2-radius);
    transition: var(--sv2-transition);
    border: 2px solid var(--sv2-black);
    background: var(--sv2-black);
    color: var(--sv2-white);
}

.sv2-btn:hover {
    background: var(--sv2-white);
    color: var(--sv2-black);
    transform: translateY(-2px);
    box-shadow: var(--sv2-shadow);
}

.sv2-btn-secondary {
    background: transparent;
    color: var(--sv2-black);
    border-color: var(--sv2-black);
}

.sv2-btn-secondary:hover {
    background: var(--sv2-black);
    color: var(--sv2-white);
}

@media (max-width: 480px) {
    .sv2-cta-buttons {
        flex-direction: column;
    }
}
