/* ============================================================
   REDESIGN OVERLAY — Sandang Garment
   Style: Trust & Authority   Pattern: Enterprise Gateway
   Source of truth: design-system/sandang-garment/MASTER.md
   Loaded LAST so it overrides style.css + homepage-reference.css
   ============================================================ */

/* ── Base typography reset ───────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-secondary);
  background: var(--color-background);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6,
.sg-section-title h2,
.sg-hero-content h1 {
  font-family: var(--font-heading) !important;
  color: var(--color-foreground);
  letter-spacing: -0.01em;
}
h1 { font-weight: 700; line-height: 1.15; }
h2 { font-weight: 700; line-height: 1.2; }
h3 { font-weight: 600; line-height: 1.3; }
p  { line-height: 1.65; }

a { color: var(--color-accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-accent-700); }

/* Focus rings — visible everywhere, never removed */
*:focus-visible {
  outline: none;
  box-shadow: var(--shadow-ring);
  border-radius: 6px;
}

/* Selection */
::selection { background: var(--color-accent); color: #fff; }

/* ── Buttons (sg-btn family) ─────────────────────────────── */
.sg-btn,
button.sg-btn,
a.sg-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, box-shadow .18s ease,
              transform .18s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  min-height: 44px;       /* a11y touch target */
}
.sg-btn-lg { padding: 15px 28px; font-size: 16px; min-height: 48px; }

/* Primary = navy (authority) */
.sg-btn-primary,
.sg-btn.sg-btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}
.sg-btn-primary:hover {
  background: var(--color-primary-700);
  border-color: var(--color-primary-700);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.sg-btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

/* Secondary = sky blue CTA — used for WhatsApp/Konsultasi */
.sg-btn-secondary,
.sg-btn.sg-btn-secondary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.sg-btn-secondary:hover {
  background: var(--color-accent-700);
  border-color: var(--color-accent-700);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Outline */
.sg-btn-outline,
.sg-btn.sg-btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.sg-btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* WhatsApp green pill (semantic exception — keep brand-recognizable) */
.sg-btn[href*="wa.me"],
.sg-btn[href*="whatsapp"] {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}
.sg-btn[href*="wa.me"]:hover,
.sg-btn[href*="whatsapp"]:hover {
  background: #1EBE5A;
  border-color: #1EBE5A;
}

/* ── Header / Navbar ────────────────────────────────────── */
.sg-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.sg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.sg-header-logo img { max-height: 40px; width: auto; display: block; }
.sg-header-nav { display: flex; gap: 4px; }
.sg-header-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-secondary);
  transition: background .15s ease, color .15s ease;
}
.sg-header-nav a:hover {
  background: var(--color-muted);
  color: var(--color-primary);
}
.sg-header-nav a.active {
  color: var(--color-primary);
  background: var(--color-accent-soft);
}
.sg-header-cta .sg-btn { padding: 10px 18px; min-height: 40px; }
.sg-header-toggle {
  display: none;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--color-primary);
}
@media (max-width: 991px) {
  .sg-header-nav, .sg-header-cta { display: none; }
  .sg-header-toggle { display: inline-flex; }
}
.sg-header-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 16px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.sg-header-mobile.active { display: flex; }
.sg-header-mobile a {
  padding: 12px 14px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-secondary);
}
.sg-header-mobile a:hover { background: var(--color-muted); color: var(--color-primary); }

/* ── Hero ─────────────────────────────────────────────── */
.sg-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1E3A5F 60%, var(--color-accent) 100%);
  color: var(--color-on-primary);
  padding: clamp(56px, 9vw, 120px) 0;
  overflow: hidden;
}
.sg-hero::before {
  /* subtle grid texture for "enterprise" feel — no pink/purple gradients */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 30%, transparent 75%);
}
.sg-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .sg-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.sg-hero-content { color: #fff; }
.sg-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #E0F2FE;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sg-hero-content h1 {
  color: #fff !important;
  font-size: clamp(34px, 5vw, 56px);
  margin: 18px 0 16px;
  font-weight: 700;
}
.sg-hero-subtitle {
  color: #CBD5E1;
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 56ch;
  margin: 0 0 28px;
}
.sg-hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.sg-hero-actions .sg-btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.sg-hero-actions .sg-btn-primary:hover {
  background: var(--color-accent-700);
  border-color: var(--color-accent-700);
}
.sg-hero-actions .sg-btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.sg-hero-actions .sg-btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.sg-hero-microtrust,
.sg-hero-trust {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 32px;
  color: #94A3B8;
  font-size: 14px;
  font-weight: 500;
}
.sg-hero-microtrust > *::before,
.sg-hero-trust > *::before {
  content: '✓';
  color: #38BDF8;
  font-weight: 700;
  margin-right: 8px;
}

.sg-hero-image-wrapper { position: relative; }
.sg-hero-main-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.10);
}
.sg-hero-stat {
  position: absolute;
  background: #fff;
  color: var(--color-foreground);
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--color-border);
}
.sg-hero-stat-1 { top: 18px; left: -18px; }
.sg-hero-stat-2 { bottom: 18px; right: -18px; }
@media (max-width: 600px) {
  .sg-hero-stat-1, .sg-hero-stat-2 { display: none; }
}

/* ── Section titles ─────────────────────────────────────── */
.sg-section-title h2 {
  color: var(--color-foreground) !important;
  font-size: clamp(28px, 3.4vw, 40px) !important;
  font-weight: 700 !important;
  margin: 0 0 12px !important;
}
.sg-section-title p {
  color: var(--color-muted-fg) !important;
  font-size: 16px !important;
  max-width: 680px !important;
}
.sg-gold-line {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 14px auto 18px;
}

/* ── Section backgrounds ─────────────────────────────────── */
.sg-section { padding: clamp(56px, 8vw, 96px) 0; }
.sg-section-white { background: var(--color-surface); }
.sg-section-soft,
.sg-section-alt   { background: var(--color-background); }
.sg-section-dark  { background: var(--color-primary); color: #fff; }
.sg-section-dark .sg-section-title h2 { color: #fff !important; }
.sg-section-dark .sg-section-title p  { color: #CBD5E1 !important; }

/* ── Cards / grid items ─────────────────────────────────── */
.sg-stat-card,
.sg-about-card-light,
.sg-about-card-white {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.sg-stat-card:hover,
.sg-about-card-light:hover,
.sg-about-card-white:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(3,105,161,0.30);
  transform: translateY(-2px);
}
.sg-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.sg-stat-label {
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  font-size: 14.5px;
}

/* ── Lead form (kontak / hero CTA forms) ─────────────────── */
.sg-lead-section { background: var(--color-background); }
.sg-lead-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.sg-lead-form h3,
.sg-lead-content h2 { color: var(--color-foreground); }
.sg-form-group { margin-bottom: 16px; }
.sg-form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 6px;
}
.sg-form-group input,
.sg-form-group textarea,
.sg-form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-foreground);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sg-form-group input::placeholder,
.sg-form-group textarea::placeholder {
  color: #94A3B8;
}
.sg-form-group input:focus,
.sg-form-group textarea:focus,
.sg-form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-ring);
}

/* ── Final CTA strip ────────────────────────────────────── */
.sg-final-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 80px) 0;
  text-align: center;
}
.sg-final-cta h2 { color: #fff !important; }
.sg-final-cta p  { color: #CBD5E1; }
.sg-final-cta .sg-btn-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.sg-final-cta .sg-btn-primary:hover {
  background: var(--color-background);
  color: var(--color-primary);
}

/* ── Footer ─────────────────────────────────────────────── */
.sg-footer {
  background: var(--color-foreground);
  color: #CBD5E1;
  padding: 64px 0 28px;
}
.sg-footer h3,
.sg-footer h4 { color: #fff; font-family: var(--font-heading); }
.sg-footer a  {
  color: #CBD5E1;
  transition: color .15s ease;
}
.sg-footer a:hover { color: #fff; }
.sg-footer .sg-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .sg-footer .sg-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .sg-footer .sg-footer-grid { grid-template-columns: 1fr; }
}

/* ── About / split sections ─────────────────────────────── */
.sg-about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .sg-about-grid { grid-template-columns: 1fr; gap: 28px; } }
.sg-about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.sg-about-bullets { list-style: none; padding: 0; margin: 18px 0 0; }
.sg-about-bullets li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--color-secondary);
  font-size: 15.5px;
}
.sg-about-bullets li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  border: 2px solid var(--color-accent);
}

/* ── Logo carousel — desaturate, brighten on hover ──────── */
.sg-logo-carousel img,
.sg-logo-row img {
  filter: grayscale(100%) opacity(.65);
  transition: filter .2s ease, opacity .2s ease;
}
.sg-logo-carousel img:hover,
.sg-logo-row img:hover {
  filter: grayscale(0%) opacity(1);
}

/* ── Containers ─────────────────────────────────────────── */
.sg-container {
  max-width: var(--sg-container);
  width: 100%;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── Grid utility (used by cards/products) ──────────────── */
.sg-grid {
  display: grid;
  gap: 24px;
}
.sg-col-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.sg-col-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.sg-col-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1024px) {
  .sg-col-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sg-col-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .sg-col-4, .sg-col-3, .sg-col-2 { grid-template-columns: 1fr; }
}

/* ── Pointer affordance (anti-pattern guard) ────────────── */
button, .sg-btn, [role="button"], a.sg-card, .sg-clickable { cursor: pointer; }

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Image hardening ────────────────────────────────────── */
img { max-width: 100%; height: auto; display: block; }

/* ── Scrollbar (subtle) ─────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-background); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-secondary); }

/* ════════════════════════════════════════════════════════════
   PALETTE RECONCILIATION — Trust & Authority
   These selectors live in style.css / homepage-reference.css and
   still carry legacy GOLD (#C9A23F) or off-spec navy (#0D2B45,
   #1a1a2e) literals that bypass the remapped --gold token, plus a
   few low-contrast greys. redesign.css loads LAST, so these win.
   ════════════════════════════════════════════════════════════ */

/* ── Accessibility: visually-hidden label utility ──────────── */
.sg-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Legacy buttons (.btn family on standalone pages) ──────── */
.btn-primary,
.btn.btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover,
.btn.btn-primary:hover {
  background: var(--color-accent-700);
  border-color: var(--color-accent-700);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}
/* WhatsApp keeps its recognizable green pill (semantic exception) */
.btn[href*="wa.me"],
.btn[href*="whatsapp"] {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}
.btn[href*="wa.me"]:hover,
.btn[href*="whatsapp"]:hover {
  background: #1EBE5A;
  border-color: #1EBE5A;
}

/* ── Legacy hero (konveksi-malang) — navy gradient, no gold glow ── */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1E293B 55%, #1E3A5F 100%);
}
.hero::before { background: radial-gradient(circle, rgba(3,105,161,0.22) 0%, transparent 70%); }
.hero::after  { background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%); }
.hero-badge {
  background: rgba(255,255,255,0.12);
  color: #E0F2FE;
  border-color: rgba(255,255,255,0.20);
}
.hero h1 span { color: #7DD3FC; }

/* ── Landing final CTA — accent glow instead of gold ───────── */
.lp-final-cta::before { background: radial-gradient(circle, rgba(3,105,161,0.25) 0%, transparent 70%); }
.lp-final-cta h2 span { color: #7DD3FC; }

/* ── Product price (was gold gradient text) ────────────────── */
.sg-product-price {
  background: none;
  color: var(--color-accent);
  -webkit-text-fill-color: var(--color-accent);
}
.sg-product-price i { -webkit-text-fill-color: var(--color-accent); }

/* ── Card hover borders (were gold) ────────────────────────── */
.sg-trust-card:hover,
.sg-audience-card:hover,
.sg-product-card:hover { border-color: rgba(3,105,161,0.30); }
.sg-trust-bar { border-color: rgba(3,105,161,0.15); }
.sg-trust-bar-item:hover { background: rgba(3,105,161,0.10); color: #7DD3FC; }

/* ── HERO CLEAN block (homepage) — full palette remap ──────── */
.sg-hero-clean { background: var(--color-background); color: var(--color-foreground); }
.sg-hero-clean-content h1 { color: var(--color-foreground); }
.sg-hero-clean-badge {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-color: rgba(3,105,161,0.20);
}
.sg-hc-stat strong { color: var(--color-accent); }
.sg-hc-bullets li i { color: var(--color-accent); }
.sg-hc-micro { color: var(--color-muted-fg); }
.sg-hc-micro i { color: var(--color-accent); }
.sg-btn-primary-clean { background: var(--color-primary); box-shadow: var(--shadow-md); }
.sg-btn-primary-clean:hover { background: var(--color-primary-700); }
.sg-btn-outline-clean { color: var(--color-primary) !important; border-color: var(--color-primary); }
.sg-btn-outline-clean:hover { background: var(--color-primary); color: #fff !important; }
.sg-hcs-dot { background: rgba(15,23,42,0.20); }
.sg-hcs-dot.active { background: var(--color-primary); }

/* ── Trusted logo strip ────────────────────────────────────── */
.sg-trusted-strip { background: var(--color-background); border-color: var(--color-border); }
.sg-trusted-title { color: var(--color-primary); }
.sg-trusted-logo-caption { color: var(--color-muted-fg); }

/* ── "Why trust us" cards (were slate-blue #7F8FAA) ────────── */
.sg-hc-trust-card { background: var(--color-primary); }
.sg-hc-trust-card:hover { box-shadow: var(--shadow-lg); }

/* ── Low-contrast greys → accessible muted foreground (≥4.5:1) ── */
.sg-audience-showcase-hint,
.trust-card p,
.process-step p,
.testimonial-author-info p,
.form-note,
.map-placeholder { color: var(--color-muted-fg); }

/* ── Rating stars — refined amber (semantic exception for ratings) ── */
.sg-stars i { color: #F59E0B; }

/* ════════════════════════════════════════════════════════════
   STYLESHEET RECONCILIATION — header / footer / final-CTA
   These components had DUELING rules across style.css +
   homepage-reference.css. redesign.css loads LAST, so we raise
   specificity here to (a) fix a white-on-light invisible-text bug
   on the final CTA, and (b) make header/footer fully adopt the
   Trust & Authority palette instead of leftover legacy styling.
   ════════════════════════════════════════════════════════════ */

/* ── FINAL CTA — always navy→accent banner (FIX: invisible text) ──
   The CMS adds .sg-section-alt/.sg-section-white which style.css
   turned into a LIGHT background while text stayed white. Force the
   intended gradient banner regardless of the section modifier.    */
.sg-final-cta,
.sg-final-cta.sg-section-white,
.sg-final-cta.sg-section-alt,
.sg-final-cta.sg-section-dark {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%) !important;
  color: #fff !important;
}
.sg-final-cta.sg-section-white h2,
.sg-final-cta.sg-section-alt  h2,
.sg-final-cta.sg-section-dark h2,
.sg-final-cta h2 { color: #fff !important; }
.sg-final-cta.sg-section-white p,
.sg-final-cta.sg-section-alt  p,
.sg-final-cta.sg-section-dark p,
.sg-final-cta p { color: #E2E8F0 !important; }
.sg-final-cta .sg-gold-line { background: rgba(255,255,255,0.65) !important; }
.sg-final-cta .sg-cta-trust span,
.sg-final-cta .sg-cta-trust span i { color: #E2E8F0 !important; }

/* ── HEADER — clean Trust & Authority bar ──────────────────────── */
.sg-header { height: auto; }
.sg-header-nav a.active::after { display: none; }      /* kill legacy underline */
.sg-header-logo a { color: var(--color-primary); }
.sg-header-nav a { color: var(--color-secondary); font-size: 14.5px; }
.sg-header-nav a:hover { color: var(--color-primary); }
.sg-header-nav a.active { color: var(--color-primary); background: var(--color-accent-soft); }

/* ── FOOTER — premium near-navy footer with readable links ─────── */
.sg-footer { background: var(--color-foreground); color: #CBD5E1; }
.sg-footer-brand h3,
.sg-footer-col h4 { color: #fff; }
.sg-footer-brand p,
.sg-footer-col a,
.sg-footer-bottom p,
.sg-footer-social a { color: #CBD5E1; }
.sg-footer-col a:hover,
.sg-footer-social a:hover { color: #fff; }
.sg-footer-bottom { border-top-color: rgba(255,255,255,0.12); }

/* ════════════════════════════════════════════════════════════
   DARK PREMIUM PASS — Header / Footer / Hero (screenshot fixes)
   redesign.css loads LAST so this block is the final authority.
   Class names below are the REAL ones rendered by hero_split.php,
   navbar.php and footer.php (.sg-hero-stat, .sg-btn, .sg-header-*,
   .sg-footer*) — NOT the generic names from the brief.
   Palette: navy #112F47 / deep #0E2238 / abyss #0B1C2F /
            blue #0E8FC3 / cyan #38BDF8.
   ════════════════════════════════════════════════════════════ */

/* ── A. HEADER → dark navy, sticky, logo stays readable ─────── */
.sg-header {
  background: linear-gradient(90deg, #0E2238 0%, #112F47 55%, #0E2238 100%) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.sg-header-inner { height: 80px; }
/* Logo wrapped in a soft white pill so a dark/navy logo stays visible */
.sg-header-logo {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 7px 13px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.sg-header-logo img { max-height: 38px; }
.sg-header-logo span { color: var(--color-primary) !important; }
/* Nav links → soft white, clear hover/active */
.sg-header-nav a {
  color: rgba(255,255,255,0.88);
}
.sg-header-nav a:hover { color: #FFFFFF; background: rgba(255,255,255,0.12); }
.sg-header-nav a.active { color: #FFFFFF; background: rgba(255,255,255,0.16); }
.sg-header-nav a.active::after { display: none; }   /* kill legacy underline */
.sg-header-toggle {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  color: #FFFFFF;
}
/* Mobile dropdown → match dark header */
.sg-header-mobile {
  background: #0E2238;
  border-bottom-color: rgba(255,255,255,0.10);
}
.sg-header-mobile a { color: rgba(255,255,255,0.88); }
.sg-header-mobile a:hover { background: rgba(255,255,255,0.12); color: #FFFFFF; }

/* ── B. FOOTER → dark navy gradient, consistent with header ── */
.sg-footer {
  background: linear-gradient(180deg, #112F47 0%, #0B1C2F 100%) !important;
  color: rgba(255,255,255,0.80);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.sg-footer h1, .sg-footer h2, .sg-footer h3, .sg-footer h4,
.sg-footer strong, .sg-footer-brand h3, .sg-footer-col h4 { color: #FFFFFF; }
.sg-footer-brand p,
.sg-footer-col a,
.sg-footer-bottom p,
.sg-footer-social a { color: rgba(255,255,255,0.82); }
.sg-footer-col a:hover,
.sg-footer-social a:hover { color: #FFFFFF; }
.sg-footer-bottom { border-top-color: rgba(255,255,255,0.12); }
.sg-footer-hours {
  display: block;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  padding: 4px 0;
}

/* ── C. HERO background + layout ───────────────────────────── */
.sg-hero {
  background: linear-gradient(120deg, #0A182D 0%, #112F47 52%, #0E5C86 100%);
  color: #FFFFFF;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.sg-hero .sg-container { width: 100%; }
.sg-hero-grid {
  grid-template-columns: minmax(0,1fr) minmax(340px,500px);
  gap: 56px;
  align-items: center;
}
.sg-hero-content h1 {
  color: #FFFFFF !important;
  max-width: 640px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

/* ── C2. HERO text readability ─────────────────────────────── */
.sg-hero-subtitle { color: rgba(255,255,255,0.82) !important; max-width: 600px; }
.sg-hero-eyebrow { color: #51C7F5; font-weight: 600; }
.sg-hero-trust { gap: 16px; }
.sg-hero-trust span { color: rgba(255,255,255,0.85); font-weight: 500; }
.sg-hero-trust span i { color: #38BDF8; }
.sg-hero-microtrust { color: rgba(255,255,255,0.72); }
.sg-hero-microtrust i { color: #38BDF8; }
/* Remove the duplicate ✓ pseudo-element (markup already has FA icons) */
.sg-hero-trust > *::before,
.sg-hero-microtrust > *::before { content: none !important; }

/* ── D. HERO FLOATING BADGES (the elongated-column fix) ─────────
   Root cause: .sg-hero-stat is position:absolute with NO width and
   NO white-space:nowrap → shrink-to-fit wrapped "Min. Order" /
   "6 pcs" word-by-word into a tall narrow column. Lock width auto +
   nowrap + compact box.                                          */
.sg-hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
}
.sg-hero-main-img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 18px;
}
.sg-hero-stat {
  position: absolute;
  z-index: 3;
  width: auto;
  height: auto;
  min-width: 92px;
  max-width: 140px;
  min-height: 64px;
  padding: 12px 15px;
  border-radius: 14px;
  white-space: nowrap;            /* <-- prevents word-by-word wrap */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  background: rgba(14,34,56,0.92);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 16px 35px rgba(0,0,0,0.22);
  animation: none;                /* stop floaty keyframes from style.css */
}
.sg-hero-stat strong {
  display: block;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 700;
  color: #FFFFFF;
}
.sg-hero-stat span {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  color: #38BDF8;
}
.sg-hero-stat-1 { top: 20px; left: 18px; bottom: auto; right: auto; }
.sg-hero-stat-2 { top: 20px; right: 18px; bottom: auto; left: auto; background: #0E8FC3; }
.sg-hero-stat-2 span { color: rgba(255,255,255,0.92); }

/* ── E. HERO buttons — premium polish ──────────────────────── */
.sg-hero-actions { gap: 14px; margin-top: 26px; }
.sg-hero-actions .sg-btn { min-height: 50px; }
.sg-hero-actions .sg-btn-outline {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
}
.sg-hero-actions .sg-btn-outline:hover {
  background: #FFFFFF;
  color: #112F47;
  border-color: #FFFFFF;
}

/* ── F. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .sg-header-inner { height: 68px; }
  .sg-hero { min-height: auto; padding: 64px 0 52px; }
  .sg-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .sg-hero-image-wrapper { max-width: 100%; margin: 0 auto; }
  .sg-hero-main-img { max-height: 340px; }
  .sg-hero-stat { min-width: 80px; max-width: 118px; min-height: 56px; padding: 10px 12px; }
  .sg-hero-stat strong { font-size: 16px; }
  .sg-hero-stat span { font-size: 10px; }
}
@media (max-width: 575px) {
  .sg-hero-content h1 { font-size: 30px; }
  .sg-hero-actions { flex-direction: column; }
  .sg-hero-actions .sg-btn { width: 100%; justify-content: center; }
  .sg-hero-main-img { max-height: 280px; }
  .sg-hero-stat-1 { top: 12px; left: 12px; }
  .sg-hero-stat-2 { top: 12px; right: 12px; }
}

/* ════════════════════════════════════════════════════════════
   HOMEPAGE SECTION RHYTHM — premium dark ↔ light alternation
   ─────────────────────────────────────────────────────────────
   DB-SAFE: backgrounds are bound to each section's MEANING via the
   .sg-key-* hook classes added in renderer.php (no background_preset
   data is changed). Light sections receive DISTINCT soft tints so the
   page never reads as a flat white slab; dark anchors (hero,
   why_choose, testimonial, stats_counter, final_cta) create rhythm.
   Only index.php renders CMS sections → no other page is affected.
   Rollback: delete this block + the .sg-key-* logic in renderer.php.
   ════════════════════════════════════════════════════════════ */

/* ── Dark anchor sections: rich navy → blue gradient ───────────
   2-class specificity (.sg-section.sg-section-dark) + last-loaded
   so it beats the legacy charcoal gradient in style.css.          */
.sg-section.sg-section-dark {
  background: linear-gradient(135deg, #0E2238 0%, #112F47 58%, #0E6F9E 100%);
  color: #FFFFFF;
}
.sg-section.sg-key-testimonial {
  background: linear-gradient(135deg, #0B1C2F 0%, #112F47 62%, #0E6F9E 100%);
}
.sg-stats-section.sg-section-dark,
.sg-section.sg-key-stats_counter {
  background: linear-gradient(180deg, #112F47 0%, #0B1C2F 100%);
}

/* ── Stats counter contrast fix (section is now dark) ──────────
   Base .sg-stat-number is navy → would be navy-on-navy. Force light. */
.sg-stats-section.sg-section-dark .sg-stat-number { color: #FFFFFF; }
.sg-stats-section.sg-section-dark .sg-stat-label  { color: rgba(255,255,255,0.80); opacity: 1; }
.sg-stats-section.sg-section-dark .sg-stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
}
.sg-stats-section.sg-section-dark .sg-stat-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(56,189,248,0.45);
  transform: translateY(-3px);
}

/* ── Light sections: distinct soft-blue / white tints ──────────
   (.sg-section.sg-key-X = 2 classes, last-loaded → wins over the
   plain .sg-section-white / .sg-section-alt rules.)               */
.sg-section.sg-key-trusted_logos {
  background: linear-gradient(180deg, #F4F8FB 0%, #FFFFFF 100%);
}
.sg-section.sg-key-client_proof {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFD 100%);
}
.sg-section.sg-key-service_cards {
  background: linear-gradient(180deg, #F4F8FB 0%, #EEF5FA 100%);
}
.sg-section.sg-key-products {
  background: linear-gradient(180deg, #EEF5FA 0%, #F7FAFD 100%);
}
.sg-section.sg-key-product_table {
  background:
    radial-gradient(circle at top left, rgba(14,143,195,0.07), transparent 36%),
    #FFFFFF;
}
.sg-section.sg-key-about {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFD 100%);
}
.sg-section.sg-key-process {
  background: linear-gradient(180deg, #F4F8FB 0%, #FFFFFF 100%);
}
.sg-section.sg-key-portfolio {
  background: linear-gradient(180deg, #F7FAFD 0%, #EEF5FA 100%);
}
.sg-section.sg-key-lead_form,
.sg-lead-section.sg-section {
  background:
    radial-gradient(circle at top right, rgba(14,143,195,0.10), transparent 34%),
    linear-gradient(180deg, #F7FAFD 0%, #FFFFFF 100%);
}

/* ── Smooth hero → first light section transition (kill the hard cut) ── */
.sg-hero + .sg-section { position: relative; }
.sg-hero + .sg-section::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(17,47,71,0.10) 0%, rgba(17,47,71,0) 100%);
  pointer-events: none;
  z-index: 0;
}
.sg-hero + .sg-section > * { position: relative; z-index: 1; }

/* ── Card polish — soft premium shadow + gentle lift ───────────── */
.sg-section .sg-logo-card,
.sg-section .sg-service-card,
.sg-section .sg-process-step,
.sg-section .sg-table-wrap,
.sg-section.sg-section-white .sg-trust-card,
.sg-section.sg-section-alt .sg-trust-card {
  box-shadow: 0 12px 30px rgba(17,47,71,0.06);
}
.sg-section .sg-logo-card:hover,
.sg-section .sg-service-card:hover,
.sg-section .sg-process-step:hover {
  box-shadow: 0 18px 45px rgba(17,47,71,0.12);
  border-color: rgba(17,47,71,0.16);
}

/* ── Accent line → cyan on dark sections, blue on light ────────── */
.sg-section-dark .sg-gold-line,
.sg-key-testimonial .sg-gold-line,
.sg-key-stats_counter .sg-gold-line { background: #38BDF8; }

/* ── Section titles: navy on light, white on dark (no pure black) ── */
.sg-section.sg-section-white .sg-section-title h2,
.sg-section.sg-section-alt   .sg-section-title h2 { color: #112F47 !important; }
.sg-section-dark .sg-section-title h2,
.sg-key-testimonial .sg-section-title h2,
.sg-key-stats_counter .sg-section-title h2 { color: #FFFFFF !important; }

/* ── Mobile rhythm padding ─────────────────────────────────────── */
@media (max-width: 767px) {
  .sg-hero + .sg-section::before { height: 60px; }
}
