/* ===== Social Section (clean, high-contrast, brand-accurate) ===== */
:root {
  --ink: #0f0b12;
  --muted: #6e6474;
  --white: #fff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  /* Brand two-tone gradients */
  --fb-a: #1877f2; /* Facebook Blue */
  --fb-b: #0e5ad8;

  --ig-a: #e1306c; /* Instagram Magenta */
  --ig-b: #f77737; /* Instagram Orange */

  /* Card surface */
  --surface: #ffffff;
  --ring: rgba(26, 0, 32, 0.1);

  /* Accent (site) */
  --brand: #1a0020;
  --accent: #d048ef;
}

/* Section wrapper — now solid white background */
.ss-social {
  background: var(--white);
  color: var(--ink);
  padding: clamp(28px, 4vw, 56px) 20px;
}

.ss-container {
  max-width: 1200px;
  margin: 0 auto;
}

.ss-head {
  text-align: center;
  margin-bottom: clamp(22px, 4vw, 36px);
}
.ss-head h2 {
  font:
    800 clamp(26px, 3.2vw, 40px)/1.1 ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Helvetica Neue",
    Arial;
  color: var(--brand);
  letter-spacing: 0.2px;
  margin: 0 0 8px;
}
.ss-sub {
  margin: 0;
  font:
    600 clamp(12px, 1.5vw, 14px)/1.3 ui-sans-serif,
    system-ui;
  letter-spacing: 0.8px;
  color: var(--muted);
}

/* Grid */
.ss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}
@media (max-width: 720px) {
  .ss-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.ss-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 22px);
  border-radius: 18px;
  text-decoration: none;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--ring);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Brand gradient layer (two tones only) */
.ss-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.96;
}
.ss-fb::before {
  background: linear-gradient(135deg, var(--fb-a), var(--fb-b));
}
.ss-ig::before {
  background: linear-gradient(135deg, var(--ig-a), var(--ig-b));
}

/* Foreground surface to keep text readable, with subtle glass */
.ss-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  z-index: 0;
}

/* Content */
.ss-icon,
.ss-text,
.ss-cta {
  position: relative;
  z-index: 1;
}

.ss-icon {
  width: clamp(48px, 5.2vw, 64px);
  height: clamp(48px, 5.2vw, 64px);
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    0 6px 16px rgba(0, 0, 0, 0.1);
}
.ss-fb .ss-icon svg {
  fill: #1d3b8f;
} /* darker for contrast on white badge */
.ss-ig .ss-icon svg {
  fill: #b02256;
}

.ss-icon svg {
  width: 60%;
  height: 60%;
}

.ss-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.ss-text strong {
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink);
}
.ss-text em {
  font-style: normal;
  font-weight: 600;
  font-size: clamp(12px, 1.6vw, 14px);
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-top: 4px;
}

/* CTA */
.ss-cta {
  font-weight: 800;
  font-size: clamp(12px, 1.6vw, 14px);
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  box-shadow: 0 8px 18px rgba(208, 72, 239, 0.3);
  transform: translateZ(0);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover */
.ss-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(26, 0, 32, 0.18);
}
.ss-card:hover .ss-cta {
  transform: translateY(-1px) scale(1.02);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ss-card,
  .ss-cta {
    transition: none;
  }
}
