/* Fourth of July accents — applied only when html[data-theme="july4"] */

[data-theme="july4"] {
  --patriot-red: #c41e3a;
  --silver: #d7dde8;
}

[data-theme="july4"] .site-header {
  border-bottom-color: rgba(196, 30, 58, 0.38);
}

[data-theme="july4"] .site-nav a:hover,
[data-theme="july4"] .site-nav a:focus-visible,
[data-theme="july4"] .site-nav a[aria-current="page"] {
  border-bottom-color: var(--silver);
}

[data-theme="july4"] .hero {
  position: relative;
  overflow: visible;
  --hero-glow: rgba(26, 140, 255, 0.26);
  background:
    radial-gradient(ellipse 34% 44% at 10% 16%, rgba(196, 30, 58, 0.18), transparent 58%),
    radial-gradient(ellipse 24% 30% at 8% 80%, rgba(215, 221, 232, 0.08), transparent 62%),
    radial-gradient(ellipse 52% 68% at 82% 46%, var(--hero-glow), transparent 64%),
    radial-gradient(ellipse 34% 40% at 74% 82%, rgba(0, 196, 245, 0.14), transparent 58%),
    var(--navy);
}

[data-theme="july4"] .hero > .wrap {
  position: relative;
  z-index: 1;
}

[data-theme="july4"] .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d7dde8' fill-opacity='0.55' d='M6 1.2l1.15 2.33 2.57.37-1.86 1.82.44 2.56L6 7.1 3.7 8.28l.44-2.56L2.28 3.9l2.57-.37z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 12 12'%3E%3Cpath fill='%23c41e3a' fill-opacity='0.5' d='M6 1.2l1.15 2.33 2.57.37-1.86 1.82.44 2.56L6 7.1 3.7 8.28l.44-2.56L2.28 3.9l2.57-.37z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 12 12'%3E%3Cpath fill='%231a8cff' fill-opacity='0.48' d='M6 1.2l1.15 2.33 2.57.37-1.86 1.82.44 2.56L6 7.1 3.7 8.28l.44-2.56L2.28 3.9l2.57-.37z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10% 16%, 7% 66%, 18% 86%;
  background-size: 12px 12px, 9px 9px, 8px 8px;
  opacity: 0.8;
}

[data-theme="july4"] .hero-visual,
[data-theme="july4"] .hero-daisy {
  overflow: visible;
}

[data-theme="july4"] .hero-daisy-photo {
  object-fit: contain;
  object-position: center top;
  max-width: 100%;
}

[data-theme="july4"] .hero-visual::before {
  background: radial-gradient(
    ellipse at 58% 52%,
    rgba(26, 140, 255, 0.4),
    rgba(196, 30, 58, 0.14) 48%,
    rgba(215, 221, 232, 0.1) 62%,
    transparent 74%
  );
}

[data-theme="july4"] .button-primary {
  box-shadow: 0 0 1.25rem rgba(196, 30, 58, 0.4);
}

[data-theme="july4"] .button-primary:hover,
[data-theme="july4"] .button-primary:focus-visible {
  box-shadow: 0 0 1.55rem rgba(26, 140, 255, 0.42);
}

[data-theme="july4"] .button-secondary {
  box-shadow: inset 0 0 0 2px var(--cyan), 0 0 0.75rem rgba(215, 221, 232, 0.18);
}

[data-theme="july4"] .section-header h1,
[data-theme="july4"] .section-header h2 {
  background-image: linear-gradient(90deg, var(--cyan), var(--silver));
}

[data-theme="july4"] .site-footer {
  border-top-color: rgba(196, 30, 58, 0.26);
}

[data-theme="july4"] .gp-hero {
  background:
    radial-gradient(ellipse 36% 48% at 10% 16%, rgba(196, 30, 58, 0.14), transparent 58%),
    radial-gradient(ellipse 48% 70% at 88% 18%, rgba(215, 221, 232, 0.08), transparent 58%),
    radial-gradient(ellipse 62% 80% at 78% 58%, var(--gp-glow), transparent 64%),
    radial-gradient(ellipse 40% 42% at 18% 88%, rgba(0, 196, 245, 0.1), transparent 56%),
    var(--navy);
}

[data-theme="july4"] .gp-hero-visual img {
  box-shadow:
    0 1.5rem 3rem rgba(0, 0, 0, 0.45),
    0 0 2.4rem rgba(26, 140, 255, 0.16),
    0 0 1.3rem rgba(196, 30, 58, 0.16);
}

@media (max-width: 900px) {
  [data-theme="july4"] .hero::after {
    background-position: 12% 10%, 86% 12%, 18% 92%;
    opacity: 0.66;
  }

  [data-theme="july4"] .hero-visual {
    padding-top: 0.45rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  [data-theme="july4"] .hero::after {
    animation: nac-july4-drift 3.7s ease-in-out infinite alternate;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="july4"] .hero::after {
    animation: none;
    opacity: 0.7;
  }

  [data-theme="july4"] .button-primary,
  [data-theme="july4"] .button-primary:hover,
  [data-theme="july4"] .button-primary:focus-visible {
    box-shadow: 0 0 0.6rem rgba(196, 30, 58, 0.28);
  }
}

@keyframes nac-july4-drift {
  from {
    opacity: 0.5;
    transform: translateY(0);
  }
  to {
    opacity: 0.88;
    transform: translateY(-4px);
  }
}
