/* ================================================================
   America250 – 250th U.S. Independence Day Celebration Layer
   1776 – 2026 | July 4, 2026
   ================================================================ */

:root {
  --a250-red:   #B22234;
  --a250-white: #FFFFFF;
  --a250-blue:  #3C3B6E;
  --a250-gold:  #D4AF37;
  --a250-navy:  #0A0D2E;
  --a250-gold2: #F5D060;
}


/* ================================================================
   ACCESSIBILITY – Reduced Motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  #a250-overlay, .a250-ov-content, #a250-hero-banner,
  .a250-fp, #a250-badge, .a250-tl-item, .a250-reveal,
  .a250-burst-star, .a250-cd-num {
    animation: none !important;
    transition: none !important;
  }
  #a250-hero-banner { opacity: 1 !important; transform: none !important; }
  .a250-tl-item     { opacity: 1 !important; transform: none !important; }
  .a250-reveal      { opacity: 1 !important; transform: none !important; }
  #a250-particles   { display: none !important; }
  #a250-canvas      { display: none !important; }
}

/* ================================================================
   FULL-SCREEN CELEBRATION OVERLAY (first visit, session-scoped)
   ================================================================ */
#a250-overlay {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #1a1f6e 0%, #0a0d2e 60%);
  padding: 2rem;
  text-align: center;
  opacity: 1;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#a250-overlay.a250-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#a250-ov-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.a250-ov-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 0.5rem;
  animation: a250SlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* CSS American Flag */
.a250-ov-flag {
  width: 180px;
  height: 95px;
  margin: 0 auto 1.2rem;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.18);
  background: repeating-linear-gradient(
    180deg,
    #BF0A30 0, #BF0A30 calc(100% / 13),
    #FFFFFF calc(100% / 13), #FFFFFF calc(200% / 13)
  );
  animation: a250FlagIn 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.a250-ov-flag-canton {
  position: absolute;
  top: 0; left: 0;
  width: 42%;
  height: calc(7 / 13 * 100%);
  background: #002868;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5px;
  padding: 3px 2px;
}

.a250-ov-flag-canton span {
  color: #FFFFFF;
  font-size: 5.5px;
  letter-spacing: 2.5px;
  line-height: 1;
  display: block;
  text-align: center;
}

/* "United States of America" heading */
.a250-ov-country {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.6rem;
}

@keyframes a250FlagIn {
  from { opacity: 0; transform: scale(0.75) translateY(-12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.a250-ov-content h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
  color: var(--a250-gold);
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(212,175,55,0.8), 0 0 80px rgba(212,175,55,0.3);
  margin-bottom: 1rem;
}

.a250-ov-content h2 {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.25rem;
}

.a250-ov-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.a250-ov-bar {
  width: 280px;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
}
.a250-ov-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--a250-red), var(--a250-gold));
  border-radius: 2px;
  animation: a250BarFill 5s linear forwards;
}

.a250-ov-skip {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.5);
  border-radius: 20px;
  padding: 0.35rem 1.2rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.a250-ov-skip:hover, .a250-ov-skip:focus-visible {
  border-color: rgba(255,255,255,0.6);
  color: rgba(255,255,255,0.9);
  outline: 2px solid var(--a250-gold);
  outline-offset: 2px;
}

/* ================================================================
   BACKGROUND FIREWORKS CANVAS
   ================================================================ */
#a250-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1098;
  pointer-events: none;
}

/* ================================================================
   HERO BANNER – merged with countdown
   ================================================================ */
#a250-hero-banner {
  background: linear-gradient(135deg, #15133C 0%, #1E1C4A 50%, #15133C 100%);
  border-top: 4px solid #BF0A30;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-left: none; border-right: none; border-radius: 0;
  padding: 0.5rem 2.5rem;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 18px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(-100%);
  animation: a250HeroBannerIn 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#a250-hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}

#a250-hero-banner::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: a250Shimmer 5s ease-in-out 2s infinite;
  pointer-events: none;
}

/* Scattered background stars */
.a250-hb-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.65;
}
.a250-hb-deco.s1 { top: 20%;    left:  3%;  color: #D4AF37; font-size: 0.7rem; }
.a250-hb-deco.s2 { bottom: 22%; left: 12%;  color: #D4AF37; font-size: 0.5rem; }
.a250-hb-deco.s3 { top: 18%;    right: 18%; color: #D4AF37; font-size: 0.6rem; }
.a250-hb-deco.s4 { bottom: 20%; right:  3%; color: #D4AF37; font-size: 0.55rem; }

/* Layout wrapper */
.a250-hb-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* ── Top row: stars + AMERICA250 + dates ── */
.a250-hb-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.a250-hb-star-row {
  color: #D4AF37;
  font-size: 0.5rem;
  letter-spacing: 0.3rem;
  opacity: 0.9;
}

.a250-hb-badge-txt {
  font-size: 0.78rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.a250-hb-badge-txt strong { color: #D4AF37; font-weight: 900; }

.a250-hb-sep-dot { color: rgba(255,255,255,0.28); font-size: 0.75rem; }

.a250-hb-dates {
  font-size: 0.56rem;
  color: rgba(255,255,255,0.48);
  letter-spacing: 0.16em;
  margin: 0;
}

/* ── Main row: 3-col grid  [spacer] | [title] | [countdown] ── */
.a250-hb-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

/* col 1 – invisible mirror so title is truly centred */
.a250-hb-spacer { display: block; }

/* col 2 – title */
.a250-hb-left { text-align: center; }

.a250-hb-title {
  font-size: clamp(0.82rem, 1.55vw, 1rem);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  white-space: nowrap;
}


/* col 3 – countdown, right-aligned within its 1fr column */
.a250-hb-cd {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
}

.a250-cd-hdr {
  font-size: 0.64rem;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.a250-hb-cd .a250-cd-digits {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  flex-wrap: nowrap;
}

.a250-hb-cd .a250-cd-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.04rem;
}

.a250-hb-cd .a250-cd-num {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(191,10,48,0.75);
  border-radius: 5px;
  padding: 0.22rem 0.6rem;
  min-width: 44px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: 'Courier New', Consolas, monospace;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255,255,255,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.a250-cd-num.a250-tick { animation: a250DigitTick 0.18s ease; }

.a250-hb-cd .a250-cd-label {
  font-size: 0.52rem;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.a250-hb-cd .a250-cd-sep {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(191,10,48,0.85);
  padding-bottom: 0.95rem;
  align-self: center;
}

.a250-cd-celebrate {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #FFFFFF;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .a250-hb-title { font-size: 0.82rem; white-space: normal; }
}

/* On small screens: collapse to single column, title above countdown */
@media (max-width: 640px) {
  #a250-hero-banner { padding: 0.45rem 0.75rem; }
  .a250-hb-star-row { display: none; }
  .a250-hb-top { gap: 0.35rem; }
  .a250-hb-main {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .a250-hb-spacer { display: none; }
  .a250-hb-left { text-align: center; }
  .a250-hb-title { font-size: 0.78rem; }
  .a250-hb-cd { justify-self: center; }
  .a250-hb-cd .a250-cd-num { font-size: 1rem; min-width: 32px; padding: 0.15rem 0.38rem; }
  .a250-hb-cd .a250-cd-sep { font-size: 0.95rem; }
}

/* ================================================================
   NAVBAR BADGE
   ================================================================ */
#a250-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(160deg, #1e1660 0%, #0d0939 55%, #1a1455 100%);
  border: 2px solid var(--a250-gold);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 3px 14px rgba(0,0,0,0.45);
  border-radius: 50px;
  padding: 0.38rem 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 0.75rem;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1;
  cursor: default;
  user-select: none;
  overflow: hidden;
}

/* Horizontal shimmer sweep */
#a250-badge::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: a250BadgeShimmer 4.5s ease-in-out 3s infinite;
  pointer-events: none;
}

/* Decorative gold stars */
.a250-b-star {
  color: var(--a250-gold);
  font-size: 0.55rem;
  opacity: 0.75;
  flex-shrink: 0;
}

/* "US" prefix – small, muted */
.a250-b-us {
  color: rgba(255,255,255,0.55);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  flex-shrink: 0;
}

/* Thin vertical rule separator */
.a250-b-rule {
  width: 1px;
  height: 12px;
  background: rgba(212,175,55,0.35);
  flex-shrink: 0;
}

/* "AMERICA" – main word, white */
.a250-b-name {
  color: var(--a250-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

/* "250" – gold, largest, boldest */
.a250-b-num {
  color: var(--a250-gold);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  flex-shrink: 0;
}

#a250-badge.a250-badge-pulse { animation: a250BadgePulse 0.8s ease-out; }

@keyframes a250BadgeShimmer {
  0%          { left: -80%; opacity: 0; }
  10%         { opacity: 1; }
  90%         { opacity: 1; }
  100%        { left: 160%; opacity: 0; }
}


/* ================================================================
   HISTORY TIMELINE — flag colors, hardcoded (keep as-is)
   ================================================================ */
#a250-timeline {
  padding: 3.5rem 0;
  margin: 0;
  background: #002868;
  position: relative;
  overflow: hidden;
}

/* Subtle flag-stripe watermark */
#a250-timeline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(191, 10, 48, 0.08) 0,
    rgba(191, 10, 48, 0.08) calc(100% / 9),
    rgba(255, 255, 255, 0.04) calc(100% / 9),
    rgba(255, 255, 255, 0.04) calc(200% / 9)
  );
  pointer-events: none;
}

/* Star-dot pattern */
#a250-timeline::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.a250-tl-title {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.a250-tl-track {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
  z-index: 1;
}

/* Red → White → Blue connecting line */
.a250-tl-track::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg,
    #002868 0%,
    #BF0A30 33%,
    #FFFFFF 66%,
    #BF0A30 100%
  );
}
@media (max-width: 767px) { .a250-tl-track::before { display: none; } }

.a250-tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  flex: 0 0 auto;
}
.a250-tl-item.a250-in { opacity: 1; transform: translateY(0); }

.a250-tl-year {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  border: 3px solid;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.a250-tl-year.y1776 { background: #002868; color: #FFFFFF; border-color: #FFFFFF; }
.a250-tl-year.y1865 { background: #BF0A30; color: #FFFFFF; border-color: #FFFFFF; }
.a250-tl-year.y1945 { background: #FFFFFF; color: #002868; border-color: rgba(255,255,255,0.4); }
.a250-tl-year.y1969 { background: #FFFFFF; color: #BF0A30; border-color: #BF0A30; }
.a250-tl-year.y2026 {
  background: repeating-linear-gradient(
    180deg,
    #BF0A30 0,  #BF0A30 20%,
    #FFFFFF 20%, #FFFFFF 40%,
    #BF0A30 40%, #BF0A30 60%,
    #FFFFFF 60%, #FFFFFF 80%,
    #BF0A30 80%, #BF0A30 100%
  );
  color: #002868;
  border-color: #002868;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(191,10,48,0.5);
  animation: a250FlagPulse 2.5s ease-in-out infinite;
}

.a250-tl-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  max-width: 90px;
  line-height: 1.4;
}

/* ================================================================
   FLOATING PATRIOTIC PARTICLES
   ================================================================ */
#a250-particles {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  overflow: hidden;
}

.a250-fp {
  position: absolute;
  bottom: -10%;
  opacity: 0;
  animation: a250FloatUp linear infinite;
  user-select: none;
  will-change: transform, opacity;
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.a250-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.a250-reveal.a250-in { opacity: 1; transform: translateY(0); }

/* ================================================================
   CTA BUTTON EFFECTS
   ================================================================ */
.a250-btn-glow {
  box-shadow: 0 0 0 4px rgba(212,175,55,0.35), 0 0 20px rgba(212,175,55,0.25) !important;
  transition: box-shadow 0.3s ease !important;
}

.a250-burst-star {
  position: fixed;
  pointer-events: none;
  z-index: 99990;
  line-height: 1;
  animation: a250BurstStar 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes a250SlideUp {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes a250HeroBannerIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes a250Shimmer {
  0%   { left: -100%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 200%; opacity: 0; }
}

@keyframes a250GoldPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(212,175,55,0.4); }
  50%       { text-shadow: 0 0 28px rgba(212,175,55,1), 0 0 55px rgba(212,175,55,0.4); }
}

@keyframes a250FlagPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(191,10,48,0.4); }
  50%       { box-shadow: 0 0 28px rgba(191,10,48,0.9), 0 0 50px rgba(0,40,104,0.4); }
}

@keyframes a250BadgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,175,55,0.7); }
  60%  { box-shadow: 0 0 0 10px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

@keyframes a250BarFill {
  from { width: 0%; }
  to   { width: 100%; }
}

@keyframes a250FloatUp {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  8%   { opacity: 1; }
  90%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-110vh) rotate(600deg); }
}

@keyframes a250DigitTick {
  0%   { transform: scale(1.0); }
  40%  { transform: scale(1.12) translateY(-2px); }
  100% { transform: scale(1.0); }
}

@keyframes a250BurstStar {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.2); }
}


@media (max-width: 575.98px) {
  #a250-badge{
    display: none !important;
  }
}

