/*
Theme Name: Blogus Child Scalefine
Template: blogus
Version: 1.0.0
Description: Child theme for Scalefine. Custom page templates for services and portfolio. Blog inherited from Blogus parent.
Author: Scalefine
*/

/* =====================================================================
   SCALEFINE - /services template styles
   Scoped under .sf-services (loaded via functions.php for this template only)
   Reuses --sf-* tokens already defined globally in Customize Additional CSS.
   ASCII only, double quotes, no @import.
   ===================================================================== */

/* ---------- Containers ---------- */
.sf-services .sf-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}
.sf-services .sf-container--narrow {
    max-width: 760px;
}

/* ---------- Eyebrow (mono terracotta label) ---------- */
.sf-services .sf-eyebrow {
    font-family: var(--sf-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sf-accent);
    margin: 0 0 1rem;
}
.sf-services .sf-eyebrow--inline {
    display: inline-block;
    margin: 0 0.5rem 0 0;
}

/* ---------- Typography ---------- */
.sf-services .sf-services__h1 {
    font-family: var(--sf-font-serif) !important;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--sf-ink);
    margin: 0 0 1.5rem;
    max-width: 22ch;
}
.sf-services .sf-services__h2 {
    font-family: var(--sf-font-serif) !important;
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--sf-ink);
    margin: 0 0 1rem;
    max-width: 24ch;
}
.sf-services .sf-services__h3 {
    font-family: var(--sf-font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--sf-ink);
    margin: 2.5rem 0 1rem;
    text-transform: none;
}
.sf-services .sf-services__subtitle {
    font-family: var(--sf-font-sans);
    font-size: 1.125rem;
    color: var(--sf-ink-muted);
    margin: 0 0 2.5rem;
    max-width: 60ch;
    line-height: 1.5;
}
.sf-services .sf-services__lede {
    font-family: var(--sf-font-sans);
    font-size: 1.125rem;
    color: var(--sf-ink-muted);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 60ch;
}
.sf-services .sf-services__hook,
.sf-services .sf-services__body {
    font-family: var(--sf-font-sans);
    font-size: 1.0625rem;
    color: var(--sf-ink);
    line-height: 1.65;
    margin: 0 0 1.25rem;
    max-width: 65ch;
}
.sf-services .sf-services__sub {
    font-family: var(--sf-font-sans);
    font-size: 0.95rem;
    color: var(--sf-ink-muted);
    line-height: 1.5;
    margin: 0 0 1.25rem;
    max-width: 60ch;
}
.sf-services .sf-services__metrics {
    font-family: var(--sf-font-mono);
    font-size: 0.875rem;
    color: var(--sf-ink-faint);
    margin: 0 0 2rem;
    letter-spacing: 0.01em;
}
.sf-services .sf-services__for {
    font-family: var(--sf-font-sans);
    font-size: 0.95rem;
    color: var(--sf-ink-muted);
    margin: 2.5rem 0 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sf-line);
}

/* ---------- Sections base ---------- */
.sf-services > section {
    padding: 5rem 0;
}
.sf-services__hero {
    padding-top: 6rem !important;
    padding-bottom: 5rem !important;
    background: var(--sf-bg);
}
.sf-services__lane--light,
.sf-services__engagement,
.sf-services__delivery,
.sf-services__philosophy,
.sf-services__stack-domains {
    background: var(--sf-bg);
}

/* ---------- LANE 2 dark section (full-bleed) ---------- */
.sf-services__lane--dark {
    background: var(--sf-bg-dark);
    color: #E8E6DD;
    padding: 6rem 0 !important;
    /* Full-bleed escape from parent container */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.sf-services__lane--dark .sf-services__h2,
.sf-services__lane--dark .sf-services__h3,
.sf-services__lane--dark .sf-services__hook,
.sf-services__lane--dark .sf-services__body {
    color: #E8E6DD;
}
.sf-services__lane--dark .sf-services__subtitle,
.sf-services__lane--dark .sf-services__for {
    color: #A8A6A0;
}
.sf-services__lane--dark .sf-services__for {
    border-top-color: #2A2A2F;
}
.sf-services__lane--dark .sf-eyebrow {
    color: var(--sf-accent);
}
.sf-services__lane--dark .sf-bullets li {
    color: #E8E6DD;
}
.sf-services__lane--dark .sf-bullets li strong {
    color: #FFFFFF;
}

/* ---------- Bullets ---------- */
.sf-services .sf-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    max-width: 65ch;
}
.sf-services .sf-bullets li {
    font-family: var(--sf-font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--sf-ink);
    padding: 1rem 0 1rem 1.5rem;
    border-bottom: 1px solid var(--sf-line);
    position: relative;
}
.sf-services .sf-bullets li:first-child {
    border-top: 1px solid var(--sf-line);
}
.sf-services .sf-bullets li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--sf-accent);
    font-family: var(--sf-font-mono);
    font-weight: 500;
}
.sf-services .sf-bullets li strong {
    font-weight: 600;
    color: var(--sf-ink);
}
.sf-services__lane--dark .sf-bullets li {
    border-color: #2A2A2F;
}
.sf-services__lane--dark .sf-bullets li:first-child {
    border-top-color: #2A2A2F;
}

/* ---------- Proof cards ---------- */
.sf-services .sf-proofs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0 0;
}
.sf-services .sf-proof-card {
    background: var(--sf-bg-alt);
    border: 1px solid var(--sf-line);
    border-radius: 4px;
    padding: 1.5rem;
}
.sf-services .sf-proof-card h4 {
    font-family: var(--sf-font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sf-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.75rem;
}
.sf-services .sf-proof-card__headline {
    font-family: var(--sf-font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--sf-ink);
    margin: 0 0 0.75rem;
    line-height: 1.4;
}
.sf-services .sf-proof-card__metrics {
    font-family: var(--sf-font-mono);
    font-size: 0.8rem;
    color: var(--sf-ink-muted);
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.005em;
}
.sf-services .sf-proof-card__metrics a {
    color: var(--sf-accent);
    text-decoration: none;
}
.sf-services .sf-proof-card__metrics a:hover {
    text-decoration: underline;
}
.sf-services__lane--dark .sf-proof-card {
    background: #1A1A1F;
    border-color: #2A2A2F;
}
.sf-services__lane--dark .sf-proof-card__headline {
    color: #E8E6DD;
}
.sf-services__lane--dark .sf-proof-card__metrics {
    color: #A8A6A0;
}

/* ---------- CTAs ---------- */
.sf-services .sf-services__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
.sf-services .sf-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--sf-font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
}
.sf-services .sf-btn--primary {
    background: var(--sf-accent);
    color: #FFFFFF;
    border-color: var(--sf-accent);
}
.sf-services .sf-btn--primary:hover {
    background: var(--sf-accent-deep);
    border-color: var(--sf-accent-deep);
    color: #FFFFFF;
}
.sf-services .sf-btn--secondary {
    background: transparent;
    color: var(--sf-ink);
    border-color: var(--sf-ink);
}
.sf-services .sf-btn--secondary:hover {
    background: var(--sf-ink);
    color: var(--sf-bg);
}
.sf-services .sf-btn--on-dark {
    background: var(--sf-accent);
    color: #FFFFFF;
}
.sf-services .sf-btn--on-dark:hover {
    background: var(--sf-accent-deep);
}

/* ---------- Inline accent links ---------- */
.sf-services .sf-link--accent {
    color: var(--sf-accent);
    font-family: var(--sf-font-sans);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}
.sf-services .sf-link--accent:hover {
    border-bottom-color: var(--sf-accent);
    color: var(--sf-accent-deep);
}
.sf-services .sf-services__inline-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0 0;
    font-size: 0.95rem;
}

/* ---------- Case study chronos ---------- */
.sf-services .sf-case {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--sf-bg-alt);
    border: 1px solid var(--sf-line);
    border-radius: 4px;
}
.sf-services .sf-case__title {
    font-family: var(--sf-font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--sf-ink);
    margin: 0 0 1.5rem;
}
.sf-services .sf-case__chrono {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sf-font-sans);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}
.sf-services .sf-case__chrono thead th {
    text-align: left;
    font-family: var(--sf-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sf-ink-faint);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--sf-line);
}
.sf-services .sf-case__chrono tbody td {
    padding: 0.85rem 0.75rem;
    vertical-align: top;
    border-bottom: 1px solid var(--sf-line);
    line-height: 1.55;
    color: var(--sf-ink);
}
.sf-services .sf-case__chrono tbody td:first-child {
    font-family: var(--sf-font-mono);
    font-size: 0.85rem;
    color: var(--sf-accent);
    width: 80px;
    white-space: nowrap;
}
.sf-services .sf-case__chrono tbody tr:last-child td {
    border-bottom: 0;
}
.sf-services .sf-case__link {
    margin: 0;
}

/* ---------- Callouts ---------- */
.sf-services .sf-callout {
    font-family: var(--sf-font-mono);
    font-size: 0.95rem;
    color: var(--sf-ink);
    background: var(--sf-bg-alt);
    border-left: 3px solid var(--sf-accent);
    padding: 1.25rem 1.5rem;
    margin: 3rem 0 0;
    line-height: 1.6;
    text-align: center;
}
.sf-services .sf-callout--accent {
    color: var(--sf-accent);
    background: transparent;
    border-left: none;
    text-align: left;
    padding: 1.5rem 0 0;
    margin-top: 2.5rem;
    border-top: 1px solid var(--sf-line);
}

/* ---------- Principles ---------- */
.sf-services .sf-principle {
    margin: 1.75rem 0;
    padding: 0;
}
.sf-services .sf-principle__title {
    font-family: var(--sf-font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--sf-ink);
    margin: 0 0 0.5rem;
    letter-spacing: -0.005em;
}
.sf-services .sf-principle p {
    font-family: var(--sf-font-sans);
    font-size: 1rem;
    color: var(--sf-ink-muted);
    line-height: 1.65;
    margin: 0;
    max-width: 65ch;
}

/* ---------- Stack & Domains grid ---------- */
.sf-services .sf-stack-domains__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
.sf-services .sf-stack-tags__group {
    font-family: var(--sf-font-mono);
    font-size: 0.8rem;
    color: var(--sf-ink-muted);
    line-height: 1.7;
    margin: 0 0 1rem;
    letter-spacing: 0.005em;
}
.sf-services .sf-stack-tags__label {
    display: block;
    font-family: var(--sf-font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sf-ink);
    margin-bottom: 0.25rem;
    text-transform: none;
    letter-spacing: 0;
}
.sf-services .sf-stack-tags__meta {
    font-family: var(--sf-font-mono);
    font-size: 0.8rem;
    color: var(--sf-ink-faint);
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* ---------- Final CTA ---------- */
.sf-services__final-cta {
    background: var(--sf-bg);
    text-align: left;
    border-top: 1px solid var(--sf-line);
}
.sf-services__final-cta .sf-services__h2 {
    max-width: 100%;
}
.sf-services .sf-cal-embed {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--sf-bg-alt);
    border: 1px dashed var(--sf-line);
    border-radius: 4px;
    text-align: center;
}
.sf-services .sf-cal-embed__placeholder {
    font-family: var(--sf-font-mono);
    font-size: 0.85rem;
    color: var(--sf-ink-faint);
    margin: 0;
}
.sf-services__footer-note {
    font-family: var(--sf-font-sans);
    font-size: 0.95rem;
    color: var(--sf-ink-muted);
    margin: 1.5rem 0 0.5rem;
}
.sf-services__footer-note a,
.sf-services__footer-links a {
    color: var(--sf-accent);
    text-decoration: none;
}
.sf-services__footer-note a:hover,
.sf-services__footer-links a:hover {
    text-decoration: underline;
}
.sf-services__footer-links {
    font-family: var(--sf-font-mono);
    font-size: 0.8rem;
    color: var(--sf-ink-faint);
    margin: 0;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Tablet 768px+ */
@media (min-width: 768px) {
    .sf-services > section {
        padding: 6rem 0;
    }
    .sf-services__hero {
        padding-top: 8rem !important;
    }
    .sf-services .sf-proofs {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    .sf-services .sf-stack-domains__grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 4rem;
    }
    .sf-services .sf-case {
        padding: 2.5rem;
    }
}

/* Desktop 1024px+ */
@media (min-width: 1024px) {
    .sf-services > section {
        padding: 7rem 0;
    }
    .sf-services__lane--dark {
        padding: 7rem 0 !important;
    }
}

/* Mobile <600px adjustments */
@media (max-width: 599px) {
    .sf-services .sf-container {
        padding: 0 1.25rem;
    }
    .sf-services .sf-case {
        padding: 1.25rem;
    }
    .sf-services .sf-case__chrono tbody td {
        padding: 0.75rem 0.5rem;
    }
    .sf-services .sf-case__chrono tbody td:first-child {
        width: 60px;
    }
    .sf-services .sf-services__cta-row .sf-btn {
        width: 100%;
        text-align: center;
    }
}
/* HERO grid 60/40 with photo right */
.sf-services .sf-services__hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
.sf-services .sf-services__hero-text {
    min-width: 0;
}
.sf-services .sf-services__hero-photo-wrap {
    display: flex;
    justify-content: center;
}
.sf-services .sf-services__hero-photo {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    border: 1px solid var(--sf-line);
    background: var(--sf-bg-alt);
    display: block;
    box-shadow: none;
    filter: grayscale(8%);
}

@media (min-width: 768px) {
    .sf-services .sf-services__hero-grid {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: 4rem;
    }
    .sf-services .sf-services__hero-photo-wrap {
        justify-content: flex-end;
    }
    .sf-services .sf-services__hero-photo {
        max-width: 360px;
    }
}

@media (max-width: 767px) {
    .sf-services .sf-services__hero-grid {
        grid-template-rows: auto 1fr;
    }
    .sf-services .sf-services__hero-photo-wrap {
        order: -1;
    }
    .sf-services .sf-services__hero-photo {
        max-width: 200px;
    }
}