/* ============================================================
   IEEPA REFUND WEBSITE — STYLES
   ============================================================ */

:root {
  --accent: #4F46E5;          /* indigo-600 — the accent color */
  --bg: #FAFAFA;
  --text: #111111;
  --text-muted: #666666;
  --card-bg: #FFFFFF;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  background: var(--bg);
}

.hero-inner {
  max-width: 720px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.hero-form input {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid #E5E7EB;
  border-right: none;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.hero-form input:focus {
  border-color: var(--accent);
}

.hero-form button {
  padding: 16px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 50px 50px 0;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.hero-form button:hover {
  background: #4338CA;
}

.accent {
  color: var(--accent);
}

/* ============================================================
   SECTION 1 — LOGOS (seamless from hero)
   ============================================================ */
.section-logos {
  padding: 40px 24px 80px;
  text-align: center;
  background: var(--bg);
}

.logos-title {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 36px;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.institution-logo {
  /* Fixed height so all logos sit on the same baseline */
  height: 36px;
  width: auto;          /* let each logo keep its natural aspect ratio */
  max-width: 140px;     /* cap the width of extra-wide wordmark logos */
  object-fit: contain;  /* never crop, never stretch */

  /*
   * grayscale(100%)  — strips all color
   * brightness(0)    — collapses to black
   * invert(1)        — black → white (so next step works on dark logos too)
   * invert(0)        — leave as-is; we actually want the step below:
   *
   * Simpler recipe that works for both light and dark source logos:
   * grayscale → then tint to a specific mid-gray via sepia + hue-rotate.
   * Result: every logo ends up the same flat muted gray (#9CA3AF-ish).
   */
  filter: grayscale(100%) brightness(0.85) contrast(0.6) opacity(0.55);
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.institution-logo:hover {
  /* Restore natural color on hover */
  filter: none;
}

/* ============================================================
   SECTION 2 — POSTS + CENTER TEXT
   ============================================================ */
.section-posts {
  display: flex;
  align-items: flex-start;
  padding: 80px 0 120px;
  background: var(--bg);
  position: relative;
  min-height: 100vh;
}

/* --- Posts columns --- */
.posts-column {
  width: 25%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 24px;

  /*
   * The entire column is masked by a radial-gradient centered on the cursor.
   * JS updates --reveal-x / --reveal-y on mousemove.
   * Default: fully transparent → everything hidden.
   */
  -webkit-mask-image: radial-gradient(
    circle 220px at var(--reveal-x, -9999px) var(--reveal-y, -9999px),
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0) 100%
  );
  mask-image: radial-gradient(
    circle 220px at var(--reveal-x, -9999px) var(--reveal-y, -9999px),
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0) 100%
  );
}

.post-card {
  background: var(--card-bg);
  color: var(--text);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Site icon circle */
.post-site-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post-site-icon img {
  width: 18px;
  height: 18px;
}

.post-author {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.post-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.post-body {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* --- Center animated text --- */
.center-text {
  width: 50%;
  flex-shrink: 0;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.anim-line {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-line.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SECTION 3 — WORKFLOW
   ============================================================ */
.section-workflow {
  background: var(--bg);
}

.workflow-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  max-width: 780px;
  padding: 100px 24px 48px 48px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-align: left;
}

/*
 * Sticky scroll-pause: the image sticks to the viewport center while the
 * user scrolls through the extra height provided by the tall region.
 * No JS scroll-locking needed — pure CSS sticky.
 */
.workflow-sticky-region {
  position: relative;
  height: 180vh;
}

.workflow-image-wrapper {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.10);
}

.workflow-image {
  width: 100%;
  display: block;
}

/* ============================================================
   SECTION 4 — CASE STUDY
   ============================================================ */
.section-case-study {
  padding: 100px 24px 140px;
  background: var(--bg);
}

.case-study-inner {
  max-width: 900px;
  margin: 0 auto;
}

.case-study-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.case-study-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.case-study-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* --- Stats row --- */
.cs-stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cs-stat {
  flex: 1;
  min-width: 140px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.cs-stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.cs-stat-flag {
  color: #DC2626;
}

.cs-stat-accent {
  color: var(--accent);
}

.cs-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Tariff context --- */
.cs-tariff-context {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #F1F5F9;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.cs-tariff-context-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cs-tariff-context-value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- Breakdown table --- */
.cs-breakdown {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.cs-breakdown-header,
.cs-breakdown-row,
.cs-breakdown-total {
  display: grid;
  grid-template-columns: 2fr 0.7fr 0.7fr 1.3fr;
  padding: 14px 24px;
  align-items: center;
  font-size: 0.9rem;
}

.cs-breakdown-header {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.cs-breakdown-row {
  border-bottom: 1px solid #F1F5F9;
}

.cs-breakdown-total {
  font-weight: 700;
  background: #F0FDF4;
  border-top: 2px solid #86EFAC;
}

.cs-program-name {
  font-weight: 600;
}

.cs-refund-value {
  font-weight: 700;
  color: #16A34A;
}

/* ============================================================
   ABOUT US
   ============================================================ */
.section-about {
  padding: 120px 24px 100px;
  background: var(--bg);
}

.about-inner {
  max-width: 780px;
  margin: 0 auto;
}

.about-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 24px;
}

.about-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 640px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111111;
  color: #D1D5DB;
  padding: 64px 24px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2A2A2A;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}

.footer-brand {
  flex: 1.5;
  min-width: 200px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #9CA3AF;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 4px;
}

.footer-col a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #FFFFFF;
}

.footer-address {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #9CA3AF;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: #6B7280;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .section-posts {
    flex-direction: column;
    align-items: center;
  }
  .posts-column {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 0 24px;
  }
  .post-card {
    min-width: 260px;
  }
  .center-text {
    width: 100%;
    padding: 60px 24px 0;
  }
  .posts-left {
    order: 2;
  }
  .center-text {
    order: 1;
  }
  .posts-right {
    order: 3;
  }
}

@media (max-width: 600px) {
  .hero-form {
    flex-direction: column;
    border-radius: var(--radius);
  }
  .hero-form input {
    border-right: 2px solid #E5E7EB;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .hero-form button {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}
