/* ===========================================================================
   Caledonia Solar — page styles
   Minimum viable render styles for single-geographic / single-sector pages.
   Designed to look professional even without final visual identity tuning.
   =========================================================================== */

body { background: #FFFFFF; color: #1A1A1A; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

.cs-main { display: block; }
.cs-section { padding: 72px 0; }
.cs-section:nth-of-type(odd) { background: #F8F7F4; }
.cs-section-title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; margin: 0 0 24px; color: var(--cs-dark); letter-spacing: -0.02em; }
.cs-section-closing { margin-top: 24px; font-style: italic; color: #44505C; }

.cs-prose { font-size: 17px; line-height: 1.65; max-width: 880px; }
.cs-prose p { margin: 0 0 16px; }
.cs-prose strong { font-weight: 700; }

/* ===== Hero ===== */
.cs-geo-hero,
.cs-sector-hero,
.cs-sol-hero {
    padding: 96px 0 72px;
    background: linear-gradient(180deg, rgba(13,17,23,0.30), rgba(13,17,23,0.65)), var(--cs-dark);
    background-size: cover;
    background-position: center;
    color: var(--cs-white);
    border-bottom: 1px solid var(--cs-border);
}
.cs-geo-h1,
.cs-sector-hero h1,
.cs-sol-hero h1 {
    font-size: clamp(28px, 4.6vw, 48px); font-weight: 700; color: var(--cs-white);
    margin: 0 0 18px; line-height: 1.12; letter-spacing: -0.025em; max-width: 1000px;
}
.cs-geo-mapline { font-size: 18px; color: var(--cs-text); line-height: 1.6; margin: 0 0 12px; max-width: 880px; font-weight: 500; }
.cs-geo-triggerline { font-size: 17px; color: rgba(255,255,255,0.85); line-height: 1.55; margin: 0 0 28px; max-width: 880px; }

/* ===== Buttons ===== */
.cs-hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.cs-btn { display: inline-block; padding: 14px 28px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform 0.15s, background 0.15s; }
.cs-btn-primary { background: var(--cs-amber); color: var(--cs-dark); border: 2px solid var(--cs-amber); }
.cs-btn-primary:hover { background: var(--cs-amber-dark); border-color: var(--cs-amber-dark); transform: translateY(-1px); }
.cs-btn-ghost { background: transparent; color: var(--cs-white); border: 2px solid rgba(255,255,255,0.5); }
.cs-btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--cs-white); }

/* On CTA block (light) */
.cs-cta-block { background: var(--cs-dark); color: var(--cs-white); text-align: center; }
.cs-cta-block .cs-section-title,
.cs-cta-block .cs-cta-heading { color: var(--cs-white); }
.cs-cta-block .cs-hero-cta-row { justify-content: center; }
.cs-cta-block .cs-cta-body { max-width: 700px; margin: 0 auto 24px; color: rgba(255,255,255,0.9); font-size: 17px; }
.cs-cta-block .cs-btn-ghost { color: var(--cs-white); border-color: rgba(255,255,255,0.5); }

/* ===== Industrial estate grid ===== */
.cs-estate-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px; margin: 32px 0;
}
.cs-estate-card {
    padding: 18px 20px; background: #FFFFFF; border: 1px solid #E5E4DF;
    border-radius: 8px; transition: border-color 0.15s, transform 0.15s;
}
.cs-estate-card:hover { border-color: var(--cs-amber); transform: translateY(-1px); }
.cs-estate-name { font-weight: 700; color: var(--cs-dark); font-size: 16px; }
.cs-estate-descriptor { font-size: 14px; color: #66707A; margin-top: 4px; }

/* ===== Process bullets ===== */
.cs-process-bullets {
    list-style: none; padding: 0; margin: 32px 0;
    display: grid; grid-template-columns: 1fr; gap: 18px;
}
.cs-process-bullets li {
    padding: 18px 22px 18px 60px; background: #FFFFFF; border: 1px solid #E5E4DF;
    border-radius: 8px; position: relative; counter-increment: cs-process;
}
.cs-process-bullets { counter-reset: cs-process; }
.cs-process-bullets li::before {
    content: counter(cs-process); position: absolute; left: 18px; top: 18px;
    width: 28px; height: 28px; border-radius: 50%; background: var(--cs-amber);
    color: var(--cs-dark); font-weight: 700; display: flex;
    align-items: center; justify-content: center; font-size: 14px;
}
.cs-bullet-title { display: block; font-weight: 700; color: var(--cs-dark); font-size: 16px; margin-bottom: 4px; }
.cs-bullet-body { display: block; color: #44505C; font-size: 15px; line-height: 1.55; }

/* ===== Stat cards ===== */
.cs-stat-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; margin: 24px 0;
}
.cs-stat-card {
    padding: 24px 22px; background: var(--cs-dark); color: var(--cs-white);
    border-radius: 8px;
}
.cs-stat-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.cs-stat-value { font-size: 22px; font-weight: 700; line-height: 1.3; }
.cs-stat-value-prose { font-size: 15px; font-weight: 500; line-height: 1.5; color: rgba(255,255,255,0.9); }
.cs-section-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cs-amber); font-weight: 700; margin: 0 0 12px; }

/* ===== FAQs ===== */
.cs-faq-list { max-width: 880px; margin: 32px 0 0; }
.cs-faq-item {
    border: 1px solid #E5E4DF; border-radius: 8px; padding: 18px 22px;
    margin-bottom: 12px; background: #FFFFFF;
}
.cs-faq-item[open] { border-color: var(--cs-amber); }
.cs-faq-q { cursor: pointer; font-weight: 700; color: var(--cs-dark); font-size: 16px; }
.cs-faq-a { margin-top: 14px; color: #44505C; line-height: 1.6; font-size: 15px; }

/* ===== Sector page — answer-first + pain grid + case grid ===== */
.cs-hero-lead { font-size: 18px; color: var(--cs-text); line-height: 1.55; margin: 0 0 28px; max-width: 880px; }
.cs-answer-first {
    margin: 32px 0 0; padding: 18px 22px;
    background: #FFF7E8; border-left: 4px solid var(--cs-amber);
    color: #4A3300; font-size: 16px; line-height: 1.55; max-width: 880px;
    border-radius: 0 6px 6px 0;
}

.cs-pain-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px; margin: 32px 0;
}
.cs-pain-card {
    padding: 24px 22px; background: #FFFFFF; border: 1px solid #E5E4DF;
    border-radius: 8px; border-left: 4px solid var(--cs-amber);
}
.cs-pain-title { margin: 0 0 10px; font-size: 18px; color: var(--cs-dark); font-weight: 700; }
.cs-pain-body { margin: 0; color: #44505C; font-size: 15px; line-height: 1.55; }

.cs-case-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px; margin-top: 24px;
}
.cs-case-card {
    display: block; padding: 22px; background: var(--cs-dark); color: var(--cs-white);
    border-radius: 8px; text-decoration: none; transition: transform 0.15s;
}
.cs-case-card:hover { transform: translateY(-2px); color: var(--cs-amber); }
.cs-case-title { font-weight: 700; font-size: 17px; }

.cs-link-amber { color: var(--cs-amber-dark); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--cs-amber); }
.cs-link-amber:hover { color: var(--cs-amber); }

/* ===== Homepage Hero — Layer 1 Dark Infrastructure ===== */
.cs-home-hero {
    position: relative; overflow: hidden;
    padding: 140px 0 110px;
    background: var(--cs-dark);
    background-size: cover; background-position: center;
    color: var(--cs-white); text-align: center;
}
.cs-home-hero .cs-container { position: relative; z-index: 3; }
.cs-home-hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center; z-index: 1;
    pointer-events: none;
}
/* Dark overlay — per brief: never an amber tint, only neutral dark gradient */
.cs-home-hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(13,17,23,0.45) 0%, rgba(13,17,23,0.78) 100%);
    z-index: 2; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .cs-home-hero-video { display: none; }
}
.cs-home-h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; margin: 0 auto 20px; max-width: 1100px; color: var(--cs-white); }
.cs-home-sub { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,0.92); max-width: 900px; margin: 0 auto 18px; line-height: 1.55; }
.cs-home-micro { font-size: 14px; color: rgba(255,255,255,0.65); margin: 4px auto; }
.cs-home-hero .cs-hero-cta-row { justify-content: center; margin-top: 32px; }

/* Trust strip — high-restraint per visual brief */
.cs-trust-strip { padding: 44px 0; background: #FFFFFF; border-bottom: 1px solid #E5E4DF; text-align: center; }
.cs-funder-logo { display: inline-block; max-height: 36px; width: auto; vertical-align: middle; margin: 0 12px; opacity: 0.85; transition: opacity 0.2s; }
.cs-funder-logo:hover { opacity: 1; }
.cs-trust-strapline { font-size: 15px; color: #44505C; margin: 0 0 16px; font-style: italic; }
.cs-trust-items { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: center; }
.cs-trust-item { font-size: 14px; color: var(--cs-dark); font-weight: 600; position: relative; padding-left: 18px; }
.cs-trust-item::before { content: '✓'; color: var(--cs-amber-dark); position: absolute; left: 0; font-weight: 700; }
.cs-funder-row { font-size: 13px; color: #66707A; }
.cs-funder-label { font-weight: 700; color: var(--cs-dark); margin-right: 8px; }
.cs-funder-name { display: inline-block; margin: 0 6px; padding: 4px 10px; background: #F8F7F4; border-radius: 4px; }

.cs-home-opportunity { background: #F8F7F4; text-align: center; }
.cs-opportunity-headline { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; color: var(--cs-dark); max-width: 1000px; margin: 0 auto 24px; line-height: 1.3; }
.cs-home-opportunity .cs-prose { max-width: 880px; margin: 0 auto; text-align: left; }

.cs-pillar-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px; margin: 24px 0;
}
.cs-pillar-card {
    padding: 32px 28px; background: #FFFFFF; border: 1px solid #E5E4DF;
    border-radius: 8px; border-top: 4px solid var(--cs-amber);
}
.cs-pillar-title { margin: 0 0 14px; font-size: 22px; color: var(--cs-dark); font-weight: 700; }
.cs-pillar-body { margin: 0; color: #44505C; font-size: 15px; line-height: 1.6; }

.cs-process-steps {
    list-style: none; padding: 0; margin: 32px 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; counter-reset: cs-step;
}
.cs-process-steps li {
    padding: 30px 22px 22px; background: var(--cs-dark); color: var(--cs-white);
    border-radius: 8px; position: relative; counter-increment: cs-step;
}
.cs-process-steps li::before {
    content: counter(cs-step); position: absolute; top: -16px; left: 22px;
    width: 36px; height: 36px; border-radius: 50%; background: var(--cs-amber);
    color: var(--cs-dark); font-weight: 800; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
}
.cs-step-title { display: block; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.cs-step-body { display: block; color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.5; }

.cs-sector-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px; margin: 32px 0 0;
}
.cs-sector-card {
    display: block; padding: 24px 22px; background: #FFFFFF; border: 1px solid #E5E4DF;
    border-radius: 8px; text-decoration: none; transition: border-color 0.15s, transform 0.15s;
}
.cs-sector-card:hover { border-color: var(--cs-amber); transform: translateY(-2px); }
.cs-sector-card-title { font-weight: 700; font-size: 17px; color: var(--cs-dark); margin-bottom: 8px; }
.cs-sector-card-blurb { font-size: 14px; color: #66707A; line-height: 1.55; }

.cs-funding-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin: 32px 0 0;
}
.cs-funding-card {
    padding: 32px 26px; background: #FFFFFF; border: 1px solid #E5E4DF; border-radius: 8px;
}
.cs-funding-card-title { font-weight: 700; font-size: 19px; color: var(--cs-dark); }
.cs-funding-card-tagline { font-size: 14px; color: var(--cs-amber-dark); font-weight: 600; margin-top: 4px; }
.cs-funding-card-body { color: #44505C; font-size: 15px; line-height: 1.6; margin: 18px 0; }
.cs-funding-card-cta { color: var(--cs-amber-dark); font-weight: 600; text-decoration: none; }

.cs-home-final { background: #F8F7F4; text-align: center; }
.cs-home-final .cs-section-title { text-align: center; }
.cs-final-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px; margin: 24px 0 0; text-align: left;
}
.cs-final-card {
    padding: 32px 28px; background: #FFFFFF; border: 1px solid #E5E4DF; border-radius: 8px;
}
.cs-final-title { font-weight: 700; font-size: 20px; color: var(--cs-dark); margin: 0 0 12px; }
.cs-final-body { font-size: 15px; color: #44505C; line-height: 1.6; margin: 0 0 18px; }

.cs-prose-intro { max-width: 880px; margin: 0 0 16px; color: #44505C; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .cs-section { padding: 56px 0; }
    .cs-geo-hero, .cs-sector-hero, .cs-sol-hero { padding: 60px 0 40px; }
    .cs-stat-cards { grid-template-columns: repeat(2, 1fr); }
    .cs-process-bullets li { padding: 18px 18px 18px 56px; }
}
@media (max-width: 480px) {
    .cs-stat-cards { grid-template-columns: 1fr; }
}
