/* ================================================================
   Page Sg Landing.Css
   SWNK Houze Singapore campaign landing - .bg-sg-landing wrapper.
   Source: additional-css-v3.5.css sections § 13 SWNK HOUZE SG CAMPAIGN LANDING
   This file is enqueued from astra_child_enqueue_styles() in
   functions.php. Keep it out of the Customizer - it is versioned in git.
   ================================================================ */

/* ================================================================
   § 13 SWNK HOUZE SG CAMPAIGN LANDING — .bg-sg-landing (SHARED)
   Shared design system used by BOTH SWNK Houze SG landing pages:
     - Type D  (slug: swnk-houze-type-d-singapore)
     - Type A  (slug: swnk-houze-type-a-sg)
   Paste this at the END of your existing Additional CSS.
   NOTE: this is NOT Type-A-specific — it is the shared .bg-sg-landing
   base that both campaigns reuse. The Type A page uses the same classes.
   ================================================================ */

.bg-sg-landing { font-family: 'Inter', system-ui, sans-serif; color: #1e293b; }

/* ── Hero ── */
.bg-sg-hero {
  background: linear-gradient(135deg, #0f2940 0%, #1a3a5c 50%, #f5c842 100%);
  padding: 100px 24px 80px;
  color: #fff;
  text-align: center;
  position: relative;
}
.bg-sg-hero h1 {
  font-size: 36px;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 auto 20px;
  max-width: 800px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.bg-sg-hero > p {
  font-size: 17px;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.93);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.bg-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto 36px;
  list-style: none;
  padding: 0;
}
.bg-bullets li {
  background: rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 14px;
  color: #fff;
  flex: 1 1 320px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.bg-bullets li::before {
  content: "\2713";
  color: #f5c842;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Buttons ── */
.bg-btn-primary {
  display: inline-block;
  background: #f5c842;
  color: #0f2940 !important;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 44px;
  line-height: 1.3;
}
.bg-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,200,66,0.35);
}
.bg-btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 44px;
  line-height: 1.3;
}
.bg-btn-secondary:hover {
  border-color: #f5c842;
  color: #f5c842 !important;
}

/* ── Sections ── */
.bg-section {
  padding: 72px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.bg-section h2 {
  font-size: 28px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #0f2940;
  margin: 0 0 16px;
}
.bg-section-dark {
  background: #0f2940;
  padding: 72px 24px;
}
.bg-section-dark h2 {
  font-size: 28px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}
.bg-section-dark p, .bg-section-dark li {
  color: rgba(255,255,255,0.93);
  -webkit-font-smoothing: antialiased;
}

/* ── Tables ── */
.bg-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}
.bg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.bg-table th {
  background: #0f2940;
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
}
.bg-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}
.bg-table tr:nth-child(even) td {
  background: #f8fafc;
}
.bg-table-dark th {
  background: #1a3a5c;
}
.bg-table-dark td {
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.93);
}
.bg-table-dark tr:nth-child(even) td {
  background: rgba(255,255,255,0.05);
}

/* ── Cards ── */
.bg-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.bg-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.bg-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f2940;
  margin: 0 0 8px;
}
.bg-card p {
  font-size: 14px;
  color: #334155;
  margin: 0;
  line-height: 1.6;
}

/* ── Fact callout ── */
.bg-fact {
  background: #fef9e7;
  border-left: 4px solid #f5c842;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.7;
}
.bg-fact strong {
  color: #0f2940;
}

/* ── Two column ── */
.bg-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 768px) {
  .bg-two-col { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Agent ── */
.bg-agent {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.bg-agent-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── CTA row ── */
.bg-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

/* ── Disclaimer ── */
.bg-disclaimer {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-top: 24px;
  padding: 16px;
  border-top: 1px solid #e2e8f0;
}

/* ── Dark card variant (used in demand section) ── */
.bg-section-dark .bg-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.bg-section-dark .bg-card h3 {
  color: #f5c842;
}
.bg-section-dark .bg-card p {
  color: rgba(255,255,255,0.85);
}

/* ── Icons ── */
.bg-icon {
  display: block;
  margin: 0 auto 12px;
  line-height: 0;
}

/* ── FAQ details/summary ── */
.bg-section details:last-child {
  border-bottom: none;
}
.bg-section summary {
  padding: 20px;
  cursor: pointer;
  background: #fff;
  font-size: 17px;
  font-weight: 600;
  color: #0f2940;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  -webkit-user-select: none;
}
.bg-section summary::-webkit-details-marker {
  display: none;
}
.bg-section summary:hover {
  background: #f8fafc;
}
.bg-faq-answer {
  padding: 4px 20px 20px 20px;
  background: #f8fafc;
  color: #334155;
  line-height: 1.8;
  font-size: 15px;
}
.bg-faq-toggle {
  font-size: 22px;
  color: #0f2940;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}
details[open] .bg-faq-toggle {
  transform: rotate(45deg);
}

/* ── Photo Gallery ── */
.bg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.bg-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f2940;
  border: 1px solid #e2e8f0;
}
.bg-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.bg-gallery-item:hover img {
  transform: scale(1.04);
}
.bg-gallery-caption {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0f2940;
  margin: 0;
  background: #fff;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .bg-sg-hero { padding: 56px 12px 48px; }
  .bg-section, .bg-section-dark { padding: 36px 12px; }
  .bg-card-grid { grid-template-columns: 1fr; }
  .bg-card { padding: 24px 16px; }
  .bg-agent { flex-direction: column; text-align: center; }
  .bg-btn-primary, .bg-btn-secondary { font-size: 15px; padding: 14px 24px; width: 100%; box-sizing: border-box; }
  .bg-gallery-grid { grid-template-columns: 1fr; }
  .bg-gallery-item img { height: 200px; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .bg-sg-hero { padding: 72px 16px 60px; }
  .bg-section, .bg-section-dark { padding: 48px 16px; }
  .bg-bullets li { flex: 1 1 100%; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .bg-sg-hero { padding: 80px 24px 64px; }
  .bg-section, .bg-section-dark { padding: 56px 24px; }
  .bg-two-col { gap: 28px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .bg-btn-primary,
  .bg-btn-secondary,
  .bg-faq-toggle {
    transition: none;
  }
  .bg-btn-primary:hover {
    transform: none;
  }
  .bg-btn-secondary:hover {
    transform: none;
  }
}

/* ── Hero secondary text link (demoted, below primary CTA) ── */
.bg-cta-secondary-text {
  display: inline-block;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.5);
  padding: 4px 6px;
  transition: text-decoration-color 0.2s, color 0.2s;
  min-height: 44px;
  line-height: 40px;
}
.bg-cta-secondary-text:hover {
  color: #f5c842;
  text-decoration-color: #f5c842;
}

/* ── FAQ summary keyboard focus ring (a11y) ── */
.bg-section summary:focus-visible {
  outline: 2px solid #f5c842;
  outline-offset: -2px;
  border-radius: 8px;
}

/* ── Hero stat cards (Type A 2x2 key-spec grid) ── */
.bg-stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto 30px;
  padding: 0;
  list-style: none;
}
.bg-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  flex: 1 1 320px;
  min-width: 260px;
  text-align: left;
  border-top: 4px solid #f5c842;
  box-shadow: 0 6px 18px rgba(15,41,64,0.14);
}
.bg-stat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.bg-stat-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0f2940, #1a3a5c);
  color: #f5c842;
  align-items: center;
  justify-content: center;
}
.bg-stat-icon svg {
  width: 19px;
  height: 19px;
}
.bg-stat-value {
  font-size: 19px;
  font-weight: 800;
  color: #0f2940;
  line-height: 1.2;
}
.bg-stat-fact {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}
.bg-stat-fact strong {
  color: #0f2940;
}