/* ==========================================================================
   PAGE: Services
   Design tokens, atmosphere, layout, typography, and page-specific components.
   Reusable UI patterns (buttons, cards, FAQ, hero, CTA, etc.) are in separate
   component files.
   ========================================================================== */

/* --------- DESIGN TOKENS ---------- */
body.page-template-page-services {
    --bg-void: #000000;
    --bg-deep: #020202;
    --bg-rich: #040404;
    --bg-surface: #070707;
    --bg-card: #0a0a0a;
    --bg-elevated: #0e0e0e;
    --bg-hover: #111111;
    --border-ghost: #141414;
    --border-subtle: #1c1c1c;
    --border-mid: #282828;
    --border-accent: #333333;
    --border-glow: #3d3d3d;
    --text-primary: #F4F4F4;
    --text-secondary: #AEAEAE;
    --text-muted: #686868;
    --accent: #E85002;
    --accent-deep: #B84000;
    --accent-deeper: #C10801;
    --accent-glow: rgba(232, 80, 2, 0.28);
    --accent-subtle: rgba(232, 80, 2, 0.05);
    --accent-wash: rgba(232, 80, 2, 0.08);
    --accent-warm: #F16001;
    --accent-light: #FF7A2E;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-smooth: 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    --transition-bounce: 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-glacial: 0.5s cubic-bezier(0.16, 0.84, 0.44, 1);
}

/* --------- GLOBAL ATMOSPHERE OVERRIDES ---------- */
body.page-template-page-services::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 12% 8%, rgba(232, 80, 2, 0.018) 0%, transparent 55%),
        radial-gradient(ellipse at 78% 52%, rgba(193, 8, 1, 0.014) 0%, transparent 50%),
        radial-gradient(ellipse at 32% 78%, rgba(241, 96, 1, 0.012) 0%, transparent 55%),
        radial-gradient(ellipse at 55% 35%, rgba(232, 80, 2, 0.01) 0%, transparent 60%);
    opacity: 1;
}

body.page-template-page-services::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.55;
    mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 75%);
}

/* Geometric linework – page‑specific treatment */
body.page-template-page-services .geo-linework {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 119px,
            rgba(255, 255, 255, 0.5) 119px,
            rgba(255, 255, 255, 0.5) 120px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 119px,
            rgba(255, 255, 255, 0.5) 119px,
            rgba(255, 255, 255, 0.5) 120px);
}

/* --------- SECTION SPACING & DIVIDERS ---------- */
body.page-template-page-services .section {
    padding: 110px 0;
}

body.page-template-page-services .section-divider {
    background: linear-gradient(90deg,
            transparent 0%,
            var(--border-ghost) 15%,
            var(--border-mid) 30%,
            var(--border-glow) 50%,
            var(--border-mid) 70%,
            var(--border-ghost) 85%,
            transparent 100%);
    max-width: 860px;
    opacity: 0.55;
}

body.page-template-page-services .section-divider::after {
    font-size: 0.42rem;
    background: var(--bg-void);
    padding: 0 14px;
    opacity: 0.55;
    text-shadow: 0 0 8px rgba(232, 80, 2, 0.4);
}

body.page-template-page-services .section-label {
    gap: 12px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

body.page-template-page-services .section-label::before,
body.page-template-page-services .section-label::after {
    width: 20px;
    background: linear-gradient(90deg, transparent, var(--accent));
    opacity: 0.55;
}

body.page-template-page-services .section-label::after {
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* --------- TYPOGRAPHY ---------- */
body.page-template-page-services h1 {
    font-size: clamp(2.5rem, 5.2vw, 3.7rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

body.page-template-page-services h1 .accent-word {
    background: linear-gradient(160deg,
            var(--accent-light) 0%,
            var(--accent) 25%,
            var(--accent-warm) 55%,
            var(--accent-deep) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.page-template-page-services h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.65rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 18px;
}

body.page-template-page-services h3 {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

body.page-template-page-services p,
body.page-template-page-services .body-text {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.0625rem;
    line-height: 1.72;
}

body.page-template-page-services .subtext {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.68;
}

/* --------- GRID ADJUSTMENTS ---------- */
body.page-template-page-services .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

body.page-template-page-services .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

/* --------- PAGE‑SPECIFIC COMPONENTS ---------- */

/* Service category headings */
body.page-template-page-services .service-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

body.page-template-page-services .service-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-mid), transparent);
    opacity: 0.5;
}

/* Recommendation cards */
body.page-template-page-services .recommendation-card strong {
    color: var(--accent);
    font-weight: 600;
}

/* Feature list (if used on this page) */
body.page-template-page-services ul.feature-list {
    color: var(--text-secondary);
    list-style-type: none;
    padding-left: 0;
    display: grid;
    gap: 11px;
}

body.page-template-page-services ul.feature-list li {
    padding-left: 26px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

body.page-template-page-services ul.feature-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.75rem;
    top: 1px;
}

/* Floating diamonds (Services version) */
body.page-template-page-services .floating-diamonds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

body.page-template-page-services .geo-diamond {
    position: absolute;
    background: transparent;
    border: 1px solid rgba(232, 80, 2, 0.1);
    transform: rotate(45deg);
    animation: floatDiamondServices 10s ease-in-out infinite;
}

body.page-template-page-services .geo-diamond:nth-child(1) {
    top: 16%;
    left: 5%;
    width: 11px;
    height: 11px;
    animation-delay: 0s;
    border-color: rgba(232, 80, 2, 0.12);
    box-shadow: 0 0 12px rgba(232, 80, 2, 0.06);
}

body.page-template-page-services .geo-diamond:nth-child(2) {
    top: 28%;
    right: 7%;
    width: 14px;
    height: 14px;
    border-color: rgba(241, 96, 1, 0.09);
    animation-delay: 2.8s;
    box-shadow: 0 0 14px rgba(241, 96, 1, 0.05);
}

body.page-template-page-services .geo-diamond:nth-child(3) {
    bottom: 20%;
    left: 9%;
    width: 9px;
    height: 9px;
    animation-delay: 5.2s;
    border-color: rgba(232, 80, 2, 0.08);
}

body.page-template-page-services .geo-diamond:nth-child(4) {
    bottom: 28%;
    right: 11%;
    width: 16px;
    height: 16px;
    border-color: rgba(193, 8, 1, 0.08);
    animation-delay: 7.5s;
    box-shadow: 0 0 16px rgba(193, 8, 1, 0.04);
}

@keyframes floatDiamondServices {
    0%,
    100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.35;
    }
    20% {
        transform: rotate(45deg) translateY(-18px);
        opacity: 0.7;
    }
    40% {
        transform: rotate(45deg) translateY(-6px);
        opacity: 0.5;
    }
    60% {
        transform: rotate(45deg) translateY(14px);
        opacity: 0.25;
    }
    80% {
        transform: rotate(45deg) translateY(4px);
        opacity: 0.45;
    }
}

/* --------- RESPONSIVE TWEAKS (page‑specific) ---------- */
@media (max-width: 768px) {
    body.page-template-page-services .section {
        padding: 70px 0;
    }

    body.page-template-page-services .geo-diamond {
        display: none;
    }

    body.page-template-page-services .section-divider::after {
        font-size: 0.38rem;
        padding: 0 8px;
    }

    body.page-template-page-services .service-heading::after {
        display: none;
    }
}