/* Shared structural styles for Secure Cloud product pages. */

/* ============================================================
   Per-page theme overrides — scoped to body class
   body.page-sc        = secure-cloud.html (AWS)
   body.page-sc-azure  = secure-cloud-azure.html
   body.page-sc-growing = secure-cloud-growing.html
   ============================================================ */

/* --- AWS (secure-cloud.html) --- */
body.page-sc {
  --sc-cyan: #00A8E8;
  --sc-cyan-dark: #0078B5;
  --sc-navy: #1A3551;
}
body.page-sc .sc-hero { background: linear-gradient(135deg, #1A3551 0%, #2C4E6B 100%); }
body.page-sc .sc-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,168,232,0.15); color: #00A8E8; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 14px; border-radius: 20px; margin-bottom: 24px; }
body.page-sc .sc-stat-num { font-size: 2rem; font-weight: 700; color: #00A8E8; display: block; line-height: 1; }
body.page-sc .sc-btn-primary { background: #0078B5; }
body.page-sc .sc-btn-primary:hover { background: #005F8E; }
body.page-sc .sc-section-dark { background: #1A3551; color: #fff; }
/* REC 1: sc-reg-ref colour fixed — #00A8E8 on #F7FAFC was 2.70:1 FAIL */
body.page-sc .sc-reg-ref { font-size: 0.75rem; font-weight: 600; color: #1A3551; }
body.page-sc .sc-compliance-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); }
body.page-sc .sc-compliance-card h3 { color: #fff; }
body.page-sc .sc-compliance-card p { color: rgba(255,255,255,0.75); }
body.page-sc .sc-compliance-tag { background: rgba(0,168,232,0.2); color: #5DC8F5; }
body.page-sc .sc-cta { background: linear-gradient(135deg, #1A3551 0%, #2C4E6B 100%); }
/* Compliance grid dark wrapper — AWS page only */
body.page-sc .sc-compliance-grid { background: #1A3551; border-radius: 12px; padding: 40px; }

/* --- Azure (secure-cloud-azure.html) --- */
body.page-sc-azure {
  /* REC 1: --az-blue changed from #0078D4 (4.32:1 marginal FAIL) to #0070C4 (4.87:1 PASS) */
  --az-blue: #0070C4;
  --az-blue-dark: #003A6C;
  --az-blue-light: #50A8E8;
}
body.page-sc-azure .sc-hero { background: linear-gradient(135deg, #003A6C 0%, #0078D4 100%); }
body.page-sc-azure .sc-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(80,168,232,0.18); color: #50A8E8; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 14px; border-radius: 20px; margin-bottom: 24px; }
body.page-sc-azure .sc-stat-num { font-size: 2rem; font-weight: 700; color: #50A8E8; display: block; line-height: 1; }
body.page-sc-azure .sc-btn-primary { background: #0070C4; }
body.page-sc-azure .sc-btn-primary:hover { background: #003A6C; }
body.page-sc-azure .sc-section-dark { background: #003A6C; color: #fff; }
.sc-iac-tabs { display: flex; gap: 8px; margin-bottom: 32px; }
.sc-iac-tab { padding: 9px 20px; border-radius: 6px; font-size: 0.875rem; font-weight: 600; cursor: pointer; border: 2px solid #E2E8F0; background: #fff; color: #64748B; transition: all 0.2s; }
.sc-iac-tab.active { background: var(--az-blue); border-color: var(--az-blue); color: #fff; }
/* REC 1: sc-reg-ref uses var(--az-blue) which is now #0070C4 (4.87:1 vs #F7FAFC — PASS) */
body.page-sc-azure .sc-reg-ref { font-size: 0.75rem; font-weight: 600; color: var(--az-blue); }
body.page-sc-azure .sc-compliance-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); }
body.page-sc-azure .sc-compliance-card h3 { color: #fff; }
body.page-sc-azure .sc-compliance-card p { color: rgba(255,255,255,0.75); }
body.page-sc-azure .sc-compliance-tag { background: rgba(80,168,232,0.2); color: #50A8E8; }
body.page-sc-azure .sc-cta { background: linear-gradient(135deg, #003A6C 0%, #0078D4 100%); }

/* --- Growing Businesses (secure-cloud-growing.html) --- */
body.page-sc-growing {
  --biz-green: #047857;
  --biz-green-dark: #134E36;
  --biz-green-light: #6EE7B7;
}
body.page-sc-growing .sc-hero { background: linear-gradient(135deg, #134E36 0%, #1B7A52 100%); }
.biz-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(110,231,183,0.18); color: #6EE7B7; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 14px; border-radius: 20px; margin-bottom: 24px; }
body.page-sc-growing .sc-stat-num { font-size: 2rem; font-weight: 700; color: #6EE7B7; display: block; line-height: 1; }
/* REC 1: CTA button — #047857 = 5.48:1 vs white, PASS */
body.page-sc-growing .sc-btn-primary { background: var(--biz-green); }
body.page-sc-growing .sc-btn-primary:hover { background: var(--biz-green-dark); }
body.page-sc-growing .sc-section-dark { background: #134E36; color: #fff; }
.sc-module-platforms { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-platform-tag { font-size: 0.6875rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.sc-platform-aws { background: #E0F2FE; color: #0369A1; }
.sc-platform-azure { background: #EFF6FF; color: #1D4ED8; }
/* reg-ref: biz-green #047857 on white — 5.48:1 PASS */
body.page-sc-growing .sc-reg-ref { font-size: 0.75rem; font-weight: 600; color: var(--biz-green); }
.biz-reality-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.biz-reality-item { display: flex; gap: 16px; align-items: flex-start; }
.biz-reality-icon { width: 40px; height: 40px; flex-shrink: 0; background: rgba(110,231,183,0.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.biz-reality-icon svg { width: 20px; height: 20px; stroke: #6EE7B7; }
.biz-reality-item h3 { font-size: 0.9375rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.biz-reality-item p { font-size: 0.875rem; color: rgba(255,255,255,0.75); line-height: 1.55; }
body.page-sc-growing .sc-compliance-card { background: #fff; border: 1px solid #E2E8F0; }
body.page-sc-growing .sc-compliance-card h3 { color: #1A3551; }
body.page-sc-growing .sc-compliance-card p { color: #64748B; }
body.page-sc-growing .sc-compliance-tag { background: #D1FAE5; color: #065F46; }
body.page-sc-growing .sc-cta { background: linear-gradient(135deg, #134E36 0%, #1B7A52 100%); }
@media (max-width: 768px) {
  .biz-reality-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Utility classes
   ============================================================ */
.container--raised { position: relative; z-index: 1; }

.sc-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 80px 0 60px;
}

.sc-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.sc-hero-sub {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin-bottom: 36px;
}

.sc-hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.sc-stat {
  text-align: center;
}

.sc-stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.sc-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.sc-btn-primary {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background 0.2s;
  color: #fff;
}

.sc-btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 11px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.sc-btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sc-section {
  padding: 64px 0;
}

.sc-section-alt {
  background: #F7FAFC;
}

.sc-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1A3551;
  margin-bottom: 12px;
}

.sc-section-dark h2 {
  color: #fff;
}

.sc-section-sub {
  color: #64748B;
  font-size: 1rem;
  max-width: 640px;
  margin-bottom: 40px;
}

.sc-section-dark .sc-section-sub {
  color: rgba(255, 255, 255, 0.75);
}

.sc-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.sc-module-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sc-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.sc-module-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1A3551;
  margin-bottom: 8px;
}

.sc-module-card p {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 12px;
}

.sc-compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.sc-compliance-card {
  border-radius: 10px;
  padding: 28px;
}

.sc-compliance-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.sc-compliance-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.sc-compliance-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.sc-delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.sc-delivery-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  padding: 24px;
  text-align: center;
}

.sc-delivery-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1A3551;
  margin-bottom: 8px;
}

.sc-delivery-card p {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.55;
}

.sc-cta {
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.sc-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.sc-cta p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.sc-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .sc-hero {
    padding: 56px 0 44px;
  }

  .sc-hero-stats {
    gap: 24px;
  }

  .sc-hero-cta,
  .sc-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .sc-modules-grid,
  .sc-compliance-grid,
  .sc-delivery-grid {
    grid-template-columns: 1fr;
  }

  .sc-section {
    padding: 48px 0;
  }
}
