/* ══════════════════════════════════════════
   Page — Salesforce Integration Services
   Shared component styles (.wd-split, .wd-features-grid, etc.)
   loaded via web-design.css dependency
   ══════════════════════════════════════════ */


/* ── Hero (dark, full-height with photo) ── */
.sf-hero {
    position: relative;
    min-height: 100vh;
    background: #121212;
    color: #F8F8F6;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.page-salesforce .site-header { background: transparent; }
.page-salesforce .site-header .logo-img { filter: none !important; }
.page-salesforce .site-header .menu-toggle .bar { background: var(--kahina-dark-text) !important; }
.page-salesforce.menu-open .site-header .logo-img { filter: brightness(0) !important; }
.page-salesforce.menu-open .site-header .menu-toggle .bar { background: var(--kahina-primary) !important; }
.page-salesforce .site-main { padding-top: 0; }

.sf-hero .eyebrow {
    margin-bottom: 32px;
}

.sf-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
    align-items: center;
}

.sf-hero-content {
    padding: 0 var(--kahina-gutter);
    padding-left: max(var(--kahina-gutter), calc((100vw - var(--kahina-container)) / 2 + var(--kahina-gutter)));
}

.sf-hero-heading {
    font-family: var(--kahina-font-display);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: #F8F8F6;
}

.sf-hero-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(248, 248, 246, 0.55);
    max-width: 500px;
}

.sf-hero-photo {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.sf-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ── Section styling ── */
.sf-section {
    padding: 120px 0;
    border-bottom: 1px solid var(--kahina-border);
}

.sf-section-header {
    margin-bottom: 64px;
}

.sf-section-heading {
    font-family: var(--kahina-font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}


/* ── Case Study ── */

/* Stacked photos */
.sf-case-photos {
    position: relative;
    margin-bottom: 80px;
    padding-bottom: 60px;
}

.sf-case-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.sf-case-photo--front {
    position: relative;
    z-index: 2;
    width: 85%;
}

.sf-case-photo--back {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 65%;
    z-index: 1;
}

/* Intro */
.sf-case-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 48px;
}

.sf-case-title {
    font-family: var(--kahina-font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: var(--kahina-accent);          /* v39: orange on case study title */
}

.sf-case-client {
    font-size: 0.85rem;
    color: var(--kahina-text-muted);
}

.sf-case-intro-right p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--kahina-text-muted);
}

.sf-case-intro-right strong {
    color: var(--kahina-text);
    font-weight: 700;
}

/* Stats bar */
.sf-case-stats {
    display: flex;
    justify-content: center;
    gap: 72px;                                              /* v39: bigger gap */
    padding: 56px 0;                                        /* v39: bigger padding */
    border-top: 1px solid var(--kahina-border);
    border-bottom: 1px solid var(--kahina-border);
    margin-bottom: 80px;
    text-align: center;
}

.sf-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;                                               /* v39: more breathing between value and label */
}

.sf-stat-value {
    font-family: var(--kahina-font-display);
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);                /* v39: much bigger numbers */
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--kahina-accent);                            /* v39: orange on numbers */
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--kahina-ease), transform 0.6s var(--kahina-ease);
}

.sf-stat-value.sf-stat-counting {
    opacity: 1;
    transform: translateY(0);
}

.sf-stat-value.sf-stat-done {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.sf-stat-label {
    font-size: 0.82rem;                                     /* v39: slightly bigger label */
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kahina-text-muted);                        /* v39: reverted from accent to muted */
}

/* Content blocks */
.sf-case-block {
    margin-bottom: 72px;
}

.sf-case-block:last-child {
    margin-bottom: 0;
}

.sf-case-block h3 {
    font-family: var(--kahina-font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.sf-case-block-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--kahina-text-muted);
    max-width: 720px;
    margin-bottom: 40px;
}

/* Two-column layout */
.sf-case-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.sf-case-col h4 {
    font-family: var(--kahina-font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--kahina-border);
}

.sf-case-col p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--kahina-text-muted);
    margin-bottom: 12px;
}

.sf-case-col p:last-child {
    margin-bottom: 0;
}

.sf-case-col strong {
    color: var(--kahina-text);
    font-weight: 700;
}

.sf-case-col code {
    font-size: 0.85em;
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 6px;
    border-radius: 2px;
}

/* Feature deep dives */
.sf-case-features-deep {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--kahina-border);
    border: 1px solid var(--kahina-border);
}

.sf-case-feat {
    background: var(--kahina-bg);
    padding: 36px 32px;
}

.sf-case-feat h4 {
    font-family: var(--kahina-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.sf-case-feat p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--kahina-text-muted);
}

.sf-case-feat code {
    font-size: 0.85em;
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 6px;
    border-radius: 2px;
}

/* Tags */
.sf-case-tags-block h4 {
    font-family: var(--kahina-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--kahina-text-muted);
    margin-bottom: 16px;
}

.sf-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--kahina-text);
    border: 1px solid var(--kahina-border);
    border-radius: 2px;
}


/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .sf-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .sf-hero { min-height: auto; }
    .sf-hero-content { padding: 140px var(--kahina-gutter) 60px; }
    .sf-hero-photo { height: 70vh; }
    .sf-case-intro { grid-template-columns: 1fr; gap: 24px; }
    .sf-case-two-col { grid-template-columns: 1fr; gap: 40px; }
    .sf-case-features-deep { grid-template-columns: 1fr; }
    .sf-case-stats { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 768px) {
    .sf-hero-content { padding: 120px var(--kahina-gutter) 48px; }
    .sf-hero-photo { height: 60vh; }

    .sf-section { padding: 80px 0; }
    .sf-section-header { margin-bottom: 40px; }
    .sf-case-stats { gap: 24px; flex-wrap: wrap; }
    .sf-case-photos { padding-bottom: 40px; }
    .sf-case-photo--front { width: 90%; }
    .sf-case-photo--back { width: 55%; }
}

@media (max-width: 480px) {
    .sf-hero-photo { height: 50vh; }
}


/* ══════════════════════════════════════════
   v39 — Section overrides
   "WordPress × Salesforce" section: keep £300/month inline price in orange
   (the h3-to-dark override is now handled globally by .page-salesforce rule below)
   ══════════════════════════════════════════ */
.sf-web-section .wd-meta-block p strong {
    color: var(--kahina-accent);          /* v39: orange on £300/month inline price */
}


/* ════════════════════════════════════════════════════════════
   v39l — EDITORIAL TYPOGRAPHY SYSTEM
   GT Super Display H2 italic em accents + reveal underline,
   numbered eyebrows, serif card titles, serif numerics.
   Scopé .page-salesforce pour ne pas toucher aux autres pages.
   ════════════════════════════════════════════════════════════ */

/* ── Eyebrow base ──────────────────────────── */
.page-salesforce .eyebrow {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--kahina-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--kahina-text-muted);
    margin-bottom: 32px;
}

/* Light variant for dark backgrounds (hero) */
.page-salesforce .eyebrow-light {
    color: rgba(248, 248, 246, 0.5);
}

/* Eyebrow number — italic serif terracotta, magazine chapter feel */
.page-salesforce .eyebrow-num {
    font-family: var(--kahina-font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--kahina-accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    display: inline-block;
}


/* ── H2 — GT Super Display + italic em + reveal underline ── */
.page-salesforce .sf-section-heading,
.page-salesforce .wd-timeline-title,
.page-salesforce .cta-heading {
    font-family: var(--kahina-font-serif);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-wrap: balance;
}

.page-salesforce .sf-section-heading em,
.page-salesforce .wd-timeline-title em,
.page-salesforce .cta-heading em {
    font-family: var(--kahina-font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--kahina-accent);
    position: relative;
    display: inline-block;
}

.page-salesforce .sf-section-heading em::after,
.page-salesforce .wd-timeline-title em::after,
.page-salesforce .cta-heading em::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 0.08em;
    height: 1px;
    background: currentColor;
    opacity: 0.35;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1s var(--kahina-ease) 0.2s;
}

.page-salesforce .sf-section-heading.is-inview em::after,
.page-salesforce .wd-timeline-title.is-inview em::after,
.page-salesforce .cta-heading.is-inview em::after {
    transform: scaleX(1);
}


/* ── Card titles — clean GT Super Display regular ── */
/* No italic, no underline reveal, just a font swap for editorial feel.
   Targets: feature grid cards, deep-dive case study cards, timeline panel titles. */
.page-salesforce .wd-feature h4,
.page-salesforce .sf-case-feat h4,
.page-salesforce .panel-title {
    font-family: var(--kahina-font-serif);
    font-weight: 400;
    letter-spacing: -0.015em;
}

/* Card titles need a slight size bump to compensate for serif's smaller x-height */
.page-salesforce .wd-feature h4 {
    font-size: 1.15rem;
}
.page-salesforce .sf-case-feat h4 {
    font-size: 1.2rem;
}


/* ── Numbers — GT Super Display for editorial unity ── */
/* Big stat values + faded panel watermark numbers */
.page-salesforce .panel-num,
.page-salesforce .sf-stat-value {
    font-family: var(--kahina-font-serif);
    font-weight: 400;
    letter-spacing: -0.02em;
}


/* ── Meta-block titles — GT Super Display, dark, mixed case ── */
/* "Who this is for", "Timeline", "Investment", "Why this matters",
   "Our edge", "Commitment", "Ongoing support" — switch from
   uppercase terracotta sans labels to mixed-case dark serif. */
.page-salesforce .wd-meta-block h3 {
    font-family: var(--kahina-font-serif);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: -0.015em;
    text-transform: none;
    color: var(--kahina-text);
    margin-bottom: 8px;
}


/* ── Prices — GT Super Display, keep terracotta ── */
/* Both standalone .wd-price strong (£1,500, £5,000, £800/mo, £15,000)
   and inline strong inside flowing meta-block paragraphs (£300/month). */
.page-salesforce .wd-price strong,
.page-salesforce .sf-web-section .wd-meta-block p strong {
    font-family: var(--kahina-font-serif);
    font-weight: 400;
}


/* ── Feature cards — individual with gap (v39n) ── */
/* Switch .wd-features-grid from connected hairline grid (1px gap +
   bg-color showthrough) to individual bordered cards with real whitespace.
   .sf-case-features-deep (case study deep dives) is intentionally excluded
   and keeps its connected grid look. */
.page-salesforce .wd-features-grid {
    background: transparent;
    border: none;
    gap: 24px;
}

.page-salesforce .wd-feature {
    border: 1px solid var(--kahina-line);
}

