/**
 * CCSOL Redesign — homepage fixes (v1.3.1; offices unhide added v1.7.0;
 * strict dark/white alternation added v2.2.0).
 *
 * Enqueued ONLY on the front page (is_front_page()).
 *
 * Diagnosis (2026-11-16): the HOW WE WORK section and the impact-stats
 * section exist in the homepage HTML but do not render — they are hidden
 * by CSS rules (body.home main>:nth-child(5){display:none!important}
 * hides HOW WE WORK, body.home .ccsol-impact-premium{display:none!important}
 * hides the impact section, and body.home .ccsol-impact-premium
 * .impact-value{display:none!important} hides the big numbers inside it).
 * The rules below beat those hiding rules with higher specificity
 * (doubled classes) + !important, regardless of load order.
 *
 * Same story for the offices section (v1.7.0): section.ccsol-offices
 * ("Two offices, one team in your hours" — Gujranwala HQ + Islamabad
 * Sohan, with local-time clocks) is hidden by
 * body.home section.ccsol-offices{display:none!important}. The doubled
 * -class override below beats it; the theme's own .ccsol-offices styles
 * (white background, 2-col grid, map panel) do the rest — no restyling.
 * cta-section and brand-band stay hidden (not asked for).
 *
 * The brand-promise heading gets a roomier line-height: its 1.08 value
 * is tight enough to clip ascenders at large sizes.
 *
 * v2.2.0 — STRICT DARK/WHITE ALTERNATION (owner's site-wide design
 * rule, 2026-11-17): the homepage sections must alternate dark blue /
 * white from top to bottom. Rendered order (Framework + Office are
 * JS-relocated into place; cta-section + brand-band stay hidden):
 *  1 Hero DARK / 2 Selected Work WHITE / 3 Reviews DARK / 4 Impact
 *  WHITE / 5 HOW WE WORK -> DARK / 6 Brand promise -> WHITE /
 *  7 Framework DARK / 8 Services WHITE / 9 Inside Our Office DARK /
 *  10 Technology -> WHITE / 11 Insights -> DARK / 12 FAQ -> WHITE
 *  (was light grey #f6f8fb) / 13 Meet our team -> DARK / 14 Offices
 *  WHITE / 15 Footer DARK.
 * Each flip is a FULL recolor (background + headings + body text +
 * cards + numbers + links + buttons + borders), not just the section
 * background, or text contrast breaks. Dark flips use the hero's own
 * gradient (linear-gradient(135deg,#0a2244 0%,#061a33 55%,#0a2a52
 * 100%)); white flips use pure #fff. All rules use doubled section
 * classes + !important to beat the theme/Site Fixes layers, which
 * carry !important at up to (0,3,2) / (1,2,1) — e.g. Insights and
 * FAQ were originally dark in the theme and flipped light by Site
 * Fixes, and Technology carries a late dark block (incl. a leftover
 * #ff00ff test rule, immediately overridden by #0a2540) with
 * -webkit-text-fill-color hacks that must be overridden in kind.
 * Elements already correct for the new background (cyan accents on
 * dark, white cards on white, the dark terminal widget, gold CTAs)
 * are deliberately left alone — see the per-section notes. No
 * markup, copy, links or images change. Mobile: the theme's
 * responsive rules for these sections are layout-only (grid
 * columns, padding, the HWW vertical timeline), so these color
 * rules hold at all widths; the one mobile color rule (team
 * section forced #ffffff) loses to the doubled-class override on
 * specificity.
 */

/* Un-hide the HOW WE WORK section (beats body.home main>:nth-child(5)). */
body.home main > section.ccsol-how-we-work.ccsol-how-we-work {
	display: block !important;
}

/* Un-hide the impact section ("WHY ORGANIZATIONS CHOOSE CCSOL"). */
body.home section.ccsol-impact-premium.ccsol-impact-premium {
	display: block !important;
}

/* Un-hide the impact numbers (2010 / 5000+ / 4.9 / 25+). */
body.home .ccsol-impact-premium .impact-premium-card .impact-value {
	display: block !important;
}

/* v1.7.0: un-hide the offices section ("Two offices, one team in your
   hours"). Beats body.home section.ccsol-offices{display:none!important}
   — the doubled class raises specificity (0,3,2) above the hide rule
   (0,2,2), and both carry !important, so specificity decides. */
body.home section.ccsol-offices.ccsol-offices {
	display: block !important;
}

/* Force the scroll-reveal elements inside these two sections visible,
   even if the reveal JS fails to add .active (their base state is
   opacity:0). */
body.home .ccsol-impact-premium .reveal,
body.home .ccsol-how-we-work .reveal {
	opacity: 1 !important;
	transform: none !important;
}

/* Brand-promise heading: roomier line-height so ascenders never clip. */
body.home .ccsol-brand-promise #ccsol-brand-promise-title {
	line-height: 1.15 !important;
}

/* ==================================================================
   v2.2.0 — strict dark/white alternation (see header comment).
   Dark flips use the hero gradient; white flips use pure #fff.
   Kept as-is on purpose: cyan accents on dark, white cards on
   white, the dark terminal widget, gold CTA buttons, the final
   HWW step's own dark card + gold accents.
   ================================================================== */

/* ---- 5. HOW WE WORK: light (#f6f8fb) -> DARK ---- */
body.home section.ccsol-how-we-work.ccsol-how-we-work {
	background: linear-gradient(135deg, #0a2244 0%, #061a33 55%, #0a2a52 100%) !important;
}

body.home section.ccsol-how-we-work.ccsol-how-we-work .ccsol-hww-header h2 {
	color: #fff !important;
}

body.home section.ccsol-how-we-work.ccsol-how-we-work .ccsol-hww-header > p {
	color: rgba(255, 255, 255, .78) !important;
}

/* Step cards: translucent dark, hero-capability style. */
body.home section.ccsol-how-we-work.ccsol-how-we-work .ccsol-hww-step {
	background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)) !important;
	border: 1px solid rgba(255, 255, 255, .16) !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .28) !important;
}

body.home section.ccsol-how-we-work.ccsol-how-we-work .ccsol-hww-step:hover {
	box-shadow: 0 16px 36px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 174, 239, .45) !important;
}

/* Timeline dot ring: white ring would halo on dark — match the section. */
body.home section.ccsol-how-we-work.ccsol-how-we-work .ccsol-hww-step::before {
	border-color: #0a2244 !important;
}

body.home section.ccsol-how-we-work.ccsol-how-we-work .ccsol-hww-step h3 {
	color: #fff !important;
	padding-left: 3px !important;
}

body.home section.ccsol-how-we-work.ccsol-how-we-work .ccsol-hww-step p {
	color: rgba(255, 255, 255, .78) !important;
	padding-left: 3px !important;
}

/* Final step keeps its own darker card + gold number: re-asserted
   AFTER the general step rule (same specificity), so it still
   stands out from the other seven steps. */
body.home section.ccsol-how-we-work.ccsol-how-we-work .ccsol-hww-step--final {
	background: linear-gradient(135deg, #062033, #0a2c4d) !important;
	box-shadow: 0 16px 40px rgba(6, 32, 51, .35), 0 0 0 1px rgba(0, 174, 239, .35) !important;
}

body.home section.ccsol-how-we-work.ccsol-how-we-work .ccsol-hww-cta p {
	color: #fff !important;
}

/* ---- 6. Brand promise: dark gradient -> WHITE ----
   Step-number discs stay dark navy with cyan text (read fine on
   white); journey line + gold button unchanged. */
body.home section.ccsol-brand-promise.ccsol-brand-promise {
	background: #fff !important;
}

body.home section.ccsol-brand-promise.ccsol-brand-promise #ccsol-brand-promise-title {
	color: #0a2244 !important;
}

/* Cyan glow shadow would blur the accent word on white. */
body.home section.ccsol-brand-promise.ccsol-brand-promise #ccsol-brand-promise-title span {
	text-shadow: none !important;
}

body.home section.ccsol-brand-promise.ccsol-brand-promise .bp-lead {
	color: #0a2244 !important;
}

body.home section.ccsol-brand-promise.ccsol-brand-promise .bp-body {
	color: rgba(10, 34, 68, .72) !important;
}

body.home section.ccsol-brand-promise.ccsol-brand-promise .bp-step-label {
	color: #0a2244 !important;
}

/* ---- 10. Technology: dark navy (#0a2540) -> WHITE ----
   The section's cards/tiles are already white with dark text and
   the terminal widget is intentionally dark — only the section
   background, heading and the two section-level paragraphs flip.
   The late dark block sets -webkit-text-fill-color on every p, so
   the paragraph overrides set the fill too (fill beats color in
   WebKit/Firefox even at lower specificity). */
body.home section.ccsol-tech.ccsol-tech {
	background: #fff !important;
}

body.home section.ccsol-tech.ccsol-tech #ccsol-tech-title {
	color: #0a2244 !important;
}

/* The late dark block forces the first line white — kill it. */
body.home section.ccsol-tech.ccsol-tech #ccsol-tech-title::first-line {
	color: #0a2244 !important;
}

/* Cyan glow shadows would blur these on white. (.ct-number has no
   live element — the live section has no .ct-group cards.) */
body.home section.ccsol-tech.ccsol-tech #ccsol-tech-title span,
body.home section.ccsol-tech.ccsol-tech .ct-eyebrow,
body.home section.ccsol-tech.ccsol-tech .ct-feature-label,
body.home section.ccsol-tech.ccsol-tech .ct-symbol,
body.home section.ccsol-tech.ccsol-tech .ct-feature-link {
	text-shadow: none !important;
}

body.home section.ccsol-tech.ccsol-tech .ct-header p {
	color: rgba(10, 34, 68, .72) !important;
	-webkit-text-fill-color: rgba(10, 34, 68, .72) !important;
}

body.home section.ccsol-tech.ccsol-tech .ct-feature p {
	color: rgba(10, 34, 68, .72) !important;
	-webkit-text-fill-color: rgba(10, 34, 68, .72) !important;
}

/* The feature link's top divider is white-based — invisible on the
   white card without this. */
body.home section.ccsol-tech.ccsol-tech .ct-feature-link {
	border-top: 1px solid rgba(10, 34, 68, .1) !important;
}

/* ---- 11. Insights: white -> DARK ----
   Cards reuse the theme's own original dark card colors (#092437);
   the card-bottom time + divider are already dark-appropriate in
   the base theme rules, and the cyan glow shadows suit dark. */
body.home section.ccsol-insights.ccsol-insights {
	background: linear-gradient(135deg, #0a2244 0%, #061a33 55%, #0a2a52 100%) !important;
}

body.home section.ccsol-insights.ccsol-insights #ccsol-insights-title {
	color: #fff !important;
}

body.home section.ccsol-insights.ccsol-insights .ci-header p {
	color: rgba(255, 255, 255, .78) !important;
}

body.home section.ccsol-insights.ccsol-insights .ci-card {
	background: #092437 !important;
	border: 1px solid rgba(136, 191, 255, .25) !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .28) !important;
}

body.home section.ccsol-insights.ccsol-insights .ci-card:hover {
	box-shadow: 0 20px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 174, 239, .35) !important;
}

body.home section.ccsol-insights.ccsol-insights .ci-category {
	padding-left: 3px !important;
}

body.home section.ccsol-insights.ccsol-insights .ci-card h3 {
	color: #fff !important;
	padding-left: 3px !important;
}

body.home section.ccsol-insights.ccsol-insights .ci-card p {
	color: #afc2d4 !important;
	padding-left: 3px !important;
}

/* Navy button would vanish on dark — gold, like the other CTAs. */
body.home section.ccsol-insights.ccsol-insights .ci-button {
	background: #f7b500 !important;
	border: 1px solid #f7b500 !important;
	color: #0a2244 !important;
}

/* ---- 12. FAQ: light grey (#f6f8fb) -> pure WHITE ----
   Cards + text are already white-card/dark-text, so only the
   section background changes. Accordion is native <details> —
   untouched. */
body.home section.ccsol-home-faq.ccsol-home-faq {
	background: #fff !important;
}

/* ---- 13. Meet our team: light (#f6f8fb) -> DARK ----
   Photo rings + initials discs are already dark navy/cyan — kept.
   The two in-card links need explicit colors: the global
   a{color:#06c} rule would otherwise paint them medium blue. */
body.home section.ccsol-team.ccsol-team {
	background: linear-gradient(135deg, #0a2244 0%, #061a33 55%, #0a2a52 100%) !important;
}

body.home section.ccsol-team.ccsol-team h2 {
	color: #fff !important;
}

body.home section.ccsol-team.ccsol-team .ccsol-container > p {
	color: rgba(255, 255, 255, .78) !important;
}

body.home section.ccsol-team.ccsol-team .ccsol-team-card {
	background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)) !important;
	border: 1px solid rgba(255, 255, 255, .16) !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .28) !important;
}

body.home section.ccsol-team.ccsol-team .ccsol-team-card h3 {
	color: #fff !important;
	padding-left: 3px !important;
}

body.home section.ccsol-team.ccsol-team .ccsol-team-card h3 a {
	color: #fff !important;
}

body.home section.ccsol-team.ccsol-team .ccsol-team-card p.ccsol-team-role {
	padding-left: 3px !important;
}

body.home section.ccsol-team.ccsol-team .ccsol-team-card p.ccsol-team-bio {
	color: rgba(255, 255, 255, .78) !important;
	padding-left: 3px !important;
}

body.home section.ccsol-team.ccsol-team .ccsol-team-card p.ccsol-team-bio a {
	color: #00aeef !important;
}

/* Navy button would vanish on dark — gold, like the other CTAs. */
body.home section.ccsol-team.ccsol-team .ccsol-team-btn {
	background: #f7b500 !important;
	color: #0a2244 !important;
}

/* ==================================================================
   v2.2.1 — Offices section rescue (white band 14 of the alternation).

   ROOT CAUSE (diagnosed 2026-11-17 from the live combined CSS): the
   theme/Site Fixes stylesheet opens `@media
   (prefers-reduced-motion:reduce)` and NEVER closes it — the last
   ~50 KB / 353 rules of the combined bundle are trapped inside that
   query, so they only apply to users with reduced-motion enabled.
   Most trapped rules duplicate earlier top-level rules (invisible
   breakage), but the offices styles exist ONLY in the trapped block:
   for normal visitors the section had NO background, NO card
   surfaces and NO text colors — it rendered as dark-on-dark
   (transparent section over the dark page background, dark-navy
   headings from a base rule). The fix re-declares those exact rules
   at TOP LEVEL here, with the same values the trapped block intended
   (copied verbatim from the live bundle). We do NOT edit Site Fixes
   or the theme — the override lives in this plugin, per pattern.
   ================================================================== */

body.home section.ccsol-offices.ccsol-offices {
	background: #fff !important;
	padding: 96px 0 !important;
}

body.home .ccsol-offices h2 {
	color: #0a2244 !important;
	font-size: clamp(36px, 4.5vw, 56px) !important;
	line-height: 1.1 !important;
	margin: 0 0 14px !important;
}

body.home .ccsol-offices-header p {
	color: rgba(10, 34, 68, .72) !important;
	font-size: 17px !important;
	line-height: 1.65 !important;
	max-width: 820px !important;
}

body.home .ccsol-offices-grid {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 24px !important;
	margin: 36px 0 28px !important;
}

body.home .ccsol-office-card {
	background: #fff !important;
	border-radius: 18px !important;
	box-shadow: 0 10px 30px rgba(10, 34, 68, .08) !important;
	padding: 32px !important;
}

body.home .ccsol-office-tag {
	color: #00aeef !important;
	letter-spacing: .25em !important;
	font-weight: 700 !important;
	font-size: 12px !important;
}

body.home .ccsol-office-card h3 {
	color: #0a2244 !important;
	font-size: 22px !important;
	margin: 10px 0 10px !important;
	padding-left: 3px !important;
}

body.home .ccsol-office-address {
	color: rgba(10, 34, 68, .72) !important;
	font-size: 15px !important;
	line-height: 1.6 !important;
	margin: 0 0 16px !important;
	padding-left: 3px !important;
}

body.home .ccsol-office-time {
	color: rgba(10, 34, 68, .72) !important;
	font-size: 14px !important;
	margin: 0 !important;
	padding-left: 3px !important;
}

body.home .ccsol-office-time time {
	color: #00aeef !important;
	font-weight: 700 !important;
	font-size: 18px !important;
}

body.home .ccsol-offices-map {
	position: relative !important;
	height: 320px !important;
	border-radius: 18px !important;
	background: linear-gradient(135deg, #0a2244, #061a33 60%, #0a2a52) !important;
	overflow: hidden !important;
}

body.home .ccsol-offices-map::before {
	content: "" !important;
	position: absolute !important;
	inset: 0 !important;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) !important;
	background-size: 44px 44px !important;
}

body.home .ccsol-map-pin {
	position: absolute !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	white-space: nowrap !important;
}

body.home .ccsol-map-pin i {
	display: block !important;
	width: 14px !important;
	height: 14px !important;
	border-radius: 50% !important;
	background: #00aeef !important;
	border: 3px solid #fff !important;
	box-shadow: 0 0 0 6px rgba(0, 174, 239, .3), 0 0 18px rgba(0, 174, 239, .8) !important;
	margin: 0 auto 8px !important;
}

body.home .ccsol-map-pin-isl {
	left: 24% !important;
	top: 22% !important;
	text-align: center !important;
}

body.home .ccsol-map-pin-guj {
	left: 66% !important;
	top: 58% !important;
	text-align: center !important;
}

body.home .ccsol-map-route {
	position: absolute !important;
	left: 27% !important;
	top: 26% !important;
	width: 42% !important;
	border-top: 2px dashed rgba(0, 174, 239, .7) !important;
	transform: rotate(16deg) !important;
	transform-origin: left center !important;
}

body.home .ccsol-offices .ccsol-office-tag,
body.home .ccsol-offices .ccsol-office-time time {
	text-shadow: 0 0 14px rgba(0, 174, 239, .6) !important;
}

@media (max-width: 768px) {
	body.home .ccsol-reviews,
	body.home .ccsol-offices {
		padding: 64px 0 !important;
	}

	body.home .ccsol-offices-grid {
		grid-template-columns: 1fr !important;
	}

	body.home .ccsol-offices-map {
		height: 260px !important;
	}
}

/* ==================================================================
   v2.3.0 — single office: the Islamabad card is removed by
   offices-cleanup.js, so the grid becomes one centered card instead
   of two columns. Same specificity as the v2.2.1 grid rule, later in
   the file, so it wins. The 768px rule above already uses 1 column.
   ================================================================== */
body.home .ccsol-offices-grid {
	grid-template-columns: 1fr !important;
	max-width: 640px !important;
	margin: 36px auto 28px !important;
}
