/* Project America — Custom styles (works with Tailwind CDN) */

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: #255940;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(13, 33, 25, 0.2);
  transition: background-color 0.2s;
}
.btn-primary:hover { background-color: #1f4735; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 2px solid #255940;
  background: transparent;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f4735;
  transition: background-color 0.2s;
}
.btn-secondary:hover { background-color: #f0f7f3; }

.btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: #c9a227;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d2119;
  box-shadow: 0 10px 15px -3px rgba(201, 162, 39, 0.3);
  transition: background-color 0.2s;
}
.btn-amber:hover { background-color: #e8c84a; }

/* Section utilities */
.section-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a227;
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: #1a3c2e;
}

/* Cards */
.card {
  border-radius: 1rem;
  border: 1px solid #dceee3;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.card-featured {
  border-radius: 1rem;
  border: 1px solid #bbddc9;
  background: linear-gradient(135deg, #fff 0%, #f0f7f3 100%);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Nav */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f4735;
  transition: color 0.2s;
}
.nav-link:hover { color: #2d6f4e; }
.nav-link-active {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d6f4e;
}

/* Main navbar */
.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: #1f4735;
  transition: color 0.15s, background-color 0.15s;
}
@media (min-width: 1280px) {
  .nav-link-item { font-size: 0.875rem; padding: 0.5rem 0.875rem; }
}
.nav-link-item:hover {
  color: #2d6f4e;
  background-color: #f0f7f3;
}
.nav-link-item-active {
  font-weight: 600;
  color: #1a3c2e;
  box-shadow: inset 0 -2px 0 #c9a227;
  border-radius: 0.375rem 0.375rem 0 0;
  background-color: transparent;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.5rem;
  background-color: #255940;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  box-shadow: 0 4px 10px -2px rgba(13, 33, 25, 0.2);
  transition: background-color 0.2s;
}
.btn-nav-cta:hover { background-color: #1f4735; }

/* Programs dropdown */
.nav-dropdown-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.5rem);
  z-index: 60;
  min-width: 15rem;
  border-radius: 0.75rem;
  border: 1px solid #dceee3;
  background: #fff;
  padding: 0.375rem;
  box-shadow: 0 10px 30px -5px rgba(13, 33, 25, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-trigger { cursor: pointer; background: transparent; border: none; }
.nav-dropdown-chevron { transition: transform 0.15s; }
.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown.is-open .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-link {
  display: block;
  white-space: nowrap;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1f4735;
  transition: background-color 0.15s, color 0.15s;
}
.nav-dropdown-link:hover {
  background-color: #f0f7f3;
  color: #2d6f4e;
}
.mesh-comparison-card {
  transition: box-shadow 0.2s, transform 0.2s;
}
.mesh-comparison-card:hover {
  box-shadow: 0 12px 32px -8px rgba(13, 33, 25, 0.12);
  transform: translateY(-2px);
}
.mesh-comparison-retail {
  background: linear-gradient(135deg, #fff 0%, #fef8f8 100%);
}
.mesh-comparison-shield {
  background: linear-gradient(135deg, #f0f7f3 0%, #e8f4ec 100%);
  border-top: 2px solid #c9a227;
}

/* Image overlay */
.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,33,25,0.92) 0%, rgba(13,33,25,0.45) 50%, rgba(13,33,25,0.25) 100%);
}

/* Stat card */
.stat-card {
  border-radius: 0.75rem;
  background-color: #1a3c2e;
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: #fff;
}

/* Grid pattern background */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(26,60,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,60,46,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Hero pattern */
.bg-hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,162,39,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(45,111,78,0.12) 0%, transparent 40%);
}

/* Prose */
.prose-custom h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a3c2e;
}
.prose-custom p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #64748b;
}

/* Professional gradient panels */
.panel-dark {
  background: linear-gradient(135deg, #0d2119 0%, #1a3c2e 50%, #1f4735 100%);
}

.glass-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
}

/* Timeline */
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c9a227;
  box-shadow: 0 0 0 4px rgba(201,162,39,0.25);
}

/* Partner logo strip */
.partner-strip {
  background: linear-gradient(90deg, #f8f6f1 0%, #fff 50%, #f8f6f1 100%);
}

/* Image fallback */
.prose img { border-radius: 0.75rem; margin: 1.5rem 0; }
.prose h2 { font-family: 'Fraunces', Georgia, serif; color: #1a3c2e; margin-top: 2rem; }
.prose p { line-height: 1.75; color: #475569; margin-bottom: 1rem; }
.prose a { color: #255940; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* Image fallback */
img { background-color: #dceee3; }

/* ── Full-bleed cinematic hero ── */
.hero-stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0d2119;
  color: #fff;
}

.hero-stage__media {
  position: absolute;
  inset: 0;
}

.hero-stage__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.06);
}

.hero-stage__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 22, 16, 0.92) 0%, rgba(8, 22, 16, 0.72) 38%, rgba(8, 22, 16, 0.28) 68%, rgba(8, 22, 16, 0.15) 100%),
    linear-gradient(to top, rgba(8, 22, 16, 0.88) 0%, transparent 42%);
}

.hero-stage__grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.hero-stage__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 7rem 1.25rem 5.5rem;
}

@media (min-width: 640px) {
  .hero-stage__inner { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .hero-stage__inner { padding: 8rem 2rem 6.5rem; }
}

.hero-stage__copy {
  max-width: 38rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.hero-brand__mark {
  width: 3.75rem;
  height: 3.75rem;
  object-fit: contain;
  border-radius: 9999px;
  background: #fff;
  padding: 0.2rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .hero-brand__mark { width: 4.5rem; height: 4.5rem; }
}

.hero-brand__name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.hero-brand__meta {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a227;
}

.hero-stage__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-stage__title em {
  font-style: italic;
  font-weight: 500;
  color: #c9a227;
}

.hero-stage__lead {
  margin-top: 1.35rem;
  max-width: 30rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  color: rgba(220, 238, 227, 0.88);
}

.hero-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-btn-primary {
  padding: 0.95rem 1.75rem !important;
  font-size: 0.95rem !important;
}

.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.hero-btn-ghost svg {
  width: 1rem;
  height: 1rem;
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.45rem;
}

@media (min-width: 640px) {
  .hero-scroll { display: flex; }
}

.hero-scroll span {
  width: 0.3rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: #c9a227;
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.45; }
}

/* Programs strip — edge-to-edge image band below hero */
.program-strip {
  background: #0d2119;
}

.program-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 900px) {
  .program-strip__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.program-strip__item {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 11rem;
  isolation: isolate;
}

@media (min-width: 900px) {
  .program-strip__item { min-height: 14rem; }
}

.program-strip__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.program-strip__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 22, 16, 0.85) 0%, rgba(8, 22, 16, 0.2) 55%, transparent 100%);
  z-index: 1;
}

.program-strip__item span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 1.15rem 1.25rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.program-strip__item:hover img {
  transform: scale(1.06);
}

/* Atmosphere + motion */
.bg-hero-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes hero-ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.2%, -0.8%, 0); }
}
.animate-hero-ken {
  animation: hero-ken 30s ease-out forwards;
  will-change: transform;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.animate-fade-up.delay-1 { animation-delay: 0.14s; }
.animate-fade-up.delay-2 { animation-delay: 0.28s; }
.animate-fade-up.delay-3 { animation-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .animate-hero-ken,
  .animate-fade-up,
  .hero-scroll span,
  .program-strip__item img {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }
}

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] {
  transform: translateX(-36px);
}
[data-reveal="left"].is-visible {
  transform: translateX(0);
}
[data-reveal="right"] {
  transform: translateX(36px);
}
[data-reveal="right"].is-visible {
  transform: translateX(0);
}
[data-reveal="scale"] {
  transform: scale(0.96) translateY(18px);
}
[data-reveal="scale"].is-visible {
  transform: scale(1) translateY(0);
}
[data-reveal="fade"] {
  transform: none;
}
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.4s; }
[data-delay="6"] { transition-delay: 0.48s; }

/* Parallax media wrappers */
.parallax-frame {
  overflow: hidden;
  isolation: isolate;
}
.parallax-frame > img,
.parallax-frame > [data-parallax] {
  will-change: transform;
  backface-visibility: hidden;
}

.hero-stage__media {
  overflow: hidden;
}
.hero-stage__img {
  will-change: transform;
}
.hero-stage__copy {
  will-change: transform, opacity;
  transition: none;
}

.program-strip__item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.program-strip.is-visible .program-strip__item {
  opacity: 1;
  transform: translateY(0);
}
.program-strip.is-visible .program-strip__item:nth-child(1) { transition-delay: 0.05s; }
.program-strip.is-visible .program-strip__item:nth-child(2) { transition-delay: 0.12s; }
.program-strip.is-visible .program-strip__item:nth-child(3) { transition-delay: 0.19s; }
.program-strip.is-visible .program-strip__item:nth-child(4) { transition-delay: 0.26s; }

.pillar-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.pillar-card:hover {
  transform: translateY(-6px);
}

.cta-parallax {
  position: relative;
  overflow: hidden;
}
.cta-parallax__bg {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
