/* ─────────────────────────────────────────────
   13TABS Prism — Premium Light Stylesheet
   Palette: Authority blue · Cool off-white · Amber signal
   ───────────────────────────────────────────── */

@font-face {
  font-family: nasalization;
  src: url(../fonts/nasalization-rg.otf);
}

@font-face {
  font-family: Syne;
  src: url(../fonts/Syne.ttf);
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url(../fonts/IBMPlexSans.ttf);
}

/* ── Design Tokens ── */
:root {
  --bg-deep:        #F4F7FB;
  --bg-mid:         #E4ECF5;
  --bg-card:        #FFFFFF;

  --accent:         #1C5FA3;
  --accent-dim:     #144A80;
  --accent-bright:  #2C7AC8;
  --accent-rgb:     28, 95, 163;

  --signal:         #8A5008;
  --signal-border:  rgba(138, 80, 8, 0.22);
  --signal-bg:      rgba(138, 80, 8, 0.06);

  --text-primary:   #0B1929;
  --text-secondary: #2c3e50;
  --text-muted:     #8496A8;

  --border-card:    rgba(28, 95, 163, 0.11);
  --border-subtle:  rgba(0, 0, 0, 0.08);

  --font-display:   'Syne', 'Poppins', sans-serif;
  --font-body:      'IBM Plex Sans', 'Poppins', sans-serif;
  --font-mono:      'IBM Plex Mono', monospace;

  --radius-card:    12px;
  --transition:     0.26s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-card:    0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(28,95,163,0.08);
  --shadow-hover:   0 8px 28px rgba(28,95,163,0.16), 0 2px 8px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; }

/* ── Body ── */
body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 85% 50% at 50% -8%, rgba(28,95,163,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 95% 88%, rgba(28,95,163,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 35% 55% at -4% 55%, rgba(160,96,10,0.03) 0%, transparent 60%);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.78;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

::-webkit-scrollbar             { width: 5px; }
::-webkit-scrollbar-track       { background: var(--bg-mid); }
::-webkit-scrollbar-thumb       { background: rgba(28,95,163,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.bar1, .bar2, .bar3, .bar4 { background-color: var(--text-primary) !important; }

/* ─────────────── HEADER ─────────────── */
header {
  position: relative;
  text-align: center;
  padding: 60px 20px 44px;   /* reduced from 88/64 — breathable on mobile */
  overflow: hidden;
  background-color: #E8EFF8;
  border-bottom: 1px solid var(--border-subtle);
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 65% at 50% 50%, rgba(28,95,163,0.06) 0%, transparent 70%);
  pointer-events: none;
}

header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1C5FA3, #2C7AC8, #1C5FA3);
}

header h1 {
  position: relative;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 3.4rem);  /* scales down properly on small screens */
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}

header p {
  position: relative;
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 2.5vw, 0.88rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0;
  padding: 0 8px;             /* prevent edge clipping on narrow screens */
}

/* ─────────────── BRAND NAME ─────────────── */
#brand-name {
  font-family: nasalization, 'Nasalization';
  background: linear-gradient(135deg, #1A5498 0%, #2270C0 50%, #1A4E9A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────── SECTIONS — MOBILE BASE ─────────────── */
section, #why-choose-us {
  display: flex;
  flex-direction: column;
  padding: 44px 20px;         /* comfortable mobile padding */
  width: 100%;
  margin: auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid transparent;
  background-image:
    linear-gradient(var(--bg-deep), var(--bg-deep)),
    linear-gradient(90deg, transparent, rgba(28,95,163,0.14), transparent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

section p, #why-choose-us p {
  color: var(--text-secondary);
  font-size: 1rem;            /* 1.2rem was too large on mobile */
  font-weight: 400;
  line-height: 1.78;
  max-width: 680px;
  margin: 0;
  width: 100%;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5vw, 1.9rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  width: 100%;
}

/* ─────────────── SECTION IMAGE ─────────────── */
.img-sec {
  padding: 6px;
  width: 100%;                /* fluid on mobile */
  max-width: 240px;           /* cap so it never overflows */
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(28,95,163,0.12));
  transition: filter var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.img-sec:hover {
  filter: drop-shadow(0 8px 28px rgba(28,95,163,0.22));
  transform: translateY(-3px);
}

/* ─────────────── WHY CHOOSE US — mobile text order ─────────────── */
#why-choose-us {
  text-align: left;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  width: 92%;
}

/* Text block first on mobile, image below */
#why-choose-us .why-text { order: 1; width: 100%; }
#why-choose-us .img-sec  { order: 2; }

#why-choose-us .why-text > p { max-width: 100%; }

/* Government badge */
.gov-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 7px 14px;
  border: 1px solid var(--signal-border);
  border-radius: 24px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.04em;
  color: var(--signal);
  background: var(--signal-bg);
  line-height: 1.5;
  word-break: break-word;    /* prevents overflow on narrow screens */
}

/* ─────────────── GETTING STARTED — mobile text order ─────────────── */
/* Text first, image below on mobile */
#getting-started .gs-text { order: 1; width: 100%; }
#getting-started .img-sec  { order: 2; }

/* ─────────────── CTA ─────────────── */
.cta-container {
  text-align: center;
  margin: 0;
  padding: 40px 20px;
  width: 100%;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #1C5FA3 0%, #134A88 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(28,95,163,0.32), 0 1px 4px rgba(0,0,0,0.10);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;        /* keep text on one line */
}

.cta-button::before {
  content: '';
  position: absolute;
  top: -50%; left: -65%;
  width: 55%; height: 200%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.cta-button:hover::before { left: 125%; }

.cta-button:hover {
  background: linear-gradient(135deg, #2270C0 0%, #1A5BA8 100%);
  box-shadow: 0 8px 28px rgba(28,95,163,0.40), 0 2px 6px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* ─────────────── PROBLEM SECTION ─────────────── */
#problem-statement {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.problem-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;       /* stretch so all cards match height */
  width: 100%;
}

.problem {
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;                /* full width on mobile */
  padding: 24px 20px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.problem::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.problem:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.problem h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
  line-height: 1.35;
}

.problem p {
  font-size: 0.90rem !important;
  color: var(--text-secondary) !important;
  margin: 0 0 8px;
  line-height: 1.68;
  font-weight: 400;
  max-width: 100% !important;
}
.problem p:last-child { margin-bottom: 0; }

.problem strong {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--signal) !important;
}

/* ─────────────── FEATURES ─────────────── */
.content {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  text-align: center;
  padding: 44px 20px;
  width: 100%;
  gap: 16px;
  border-top: 1px solid transparent;
  background-image:
    linear-gradient(var(--bg-deep), var(--bg-deep)),
    linear-gradient(90deg, transparent, rgba(28,95,163,0.14), transparent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  margin: 0;
}

.feature {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;                /* stack on mobile */
  flex: 1 1 260px;
  padding: 28px 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* CSS controls image size — inline styles removed from JSP */
.feature img {
  width: 140px;               /* comfortable on mobile */
  height: 140px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 10px rgba(28,95,163,0.12));
  transition: filter var(--transition), transform var(--transition);
}

.feature:hover img {
  filter: drop-shadow(0 6px 18px rgba(28,95,163,0.22));
  transform: scale(1.05);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

/* ─────────────── CONTACT LINKS ─────────────── */
.contact {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(28,95,163,0.25);
  transition: color var(--transition), border-color var(--transition);
}
.contact:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
}

/* ─────────────── FOOTER ─────────────── */
footer {
  background-color: var(--text-primary);
  color: #8BAFC8;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  opacity: 0.5;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-content > p {
  font-size: 0.86rem;
  color: #6A8FA8;
  max-width: 440px;
  margin: 0;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 4px;               /* row-gap so wrapped links breathe */
  font-size: 0.85rem;
}

footer .contact       { color: #7AADCC; border-bottom-color: rgba(122,173,204,0.25); }
footer .contact:hover { color: #A8CDE0; border-bottom-color: rgba(168,205,224,0.5); }

.separator { margin: 0 6px; color: #3A5570; opacity: 0.8; }

.attribution {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #3A5570;
  letter-spacing: 0.04em;
}

/* ─────────────── SCROLL REVEAL ─────────────── */
.reveal         { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }

/* ──────────────────────────────────────────────
   RESPONSIVE — 540px (small tablets / large phones)
   ────────────────────────────────────────────── */
@media only screen and (min-width: 540px) {

  .problem-content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
  }
  .problem {
    width: calc(50% - 10px);
    max-width: 300px;
    flex: 1 1 220px;
  }

  .feature { max-width: 280px; }
}

/* ──────────────────────────────────────────────
   RESPONSIVE — 720px+
   ────────────────────────────────────────────── */
@media only screen and (min-width: 720px) {

  header { padding: 108px 40px 76px; }

  section, #why-choose-us {
    flex-direction: row;
    padding: 80px 40px;
    width: 75%;
    gap: 64px;
    align-items: center;
  }

  section p, #why-choose-us p { font-size: 1.1rem; }

  .img-sec { width: 320px; max-width: 320px; padding: 12px; }

  /* Restore natural DOM order on desktop */
  #why-choose-us .why-text { order: unset; }
  #why-choose-us .img-sec  { order: unset; }
  #getting-started .gs-text { order: unset; }
  #getting-started .img-sec  { order: unset; }

  #why-choose-us { width: 75%; }

  .problem-content {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
  }
  .problem { max-width: 290px; flex: 1 1 250px; }

  .content { width: 80%; padding: 80px 40px; gap: 28px; margin: auto; }
  .feature { max-width: 270px; }

  .feature img { width: 160px; height: 160px; }

  .cta-container { padding: 56px 40px; }
  .cta-button    { padding: 16px 46px; font-size: 15px; }

  footer { padding: 52px 40px; width: 100%; }

  .gov-badge { font-size: 0.74rem; }
}

/* ──────────────────────────────────────────────
   RESPONSIVE — 1100px+
   ────────────────────────────────────────────── */
@media only screen and (min-width: 1100px) {
  section, #why-choose-us { width: 66%; }
  #why-choose-us { width: 66%; }
  .img-sec { width: 360px; max-width: 360px; }
  .feature { max-width: 280px; }
  .feature img { width: 180px; height: 180px; }
}