/* ==========================================================================
   Components
   ========================================================================== */

/* Footer framework-mapping CTA */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  margin-top: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(4, 196, 217, 0.06), rgba(232, 115, 74, 0.03));
  flex-wrap: wrap;
}

.footer-cta > div { flex: 1; min-width: 260px; }

/* Reading time label on article cards */
.read-time {
  color: var(--color-text-tertiary);
  margin-left: 4px;
}

/* Hero multi-button area */
.hero__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* Full-bleed banner slideshow — avoids aggressive crops on wide screens */
.banner-slideshow {
  position: relative;
  width: 100%;
  height: clamp(360px, 42vw, 620px);
  overflow: hidden;
}

.banner-slideshow__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

.banner-slideshow__slide.is-active { opacity: 1; }

.banner-slideshow__dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.banner-slideshow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.banner-slideshow__dot.is-active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.3);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-cyan);
  color: var(--color-midnight);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Site Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: background var(--duration-base) ease,
              padding var(--duration-base) ease,
              box-shadow var(--duration-base) ease;
}

.site-header.scrolled {
  background: rgba(10, 11, 26, 0.92);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  padding: var(--space-3) 0;
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  height: clamp(18px, 2.4vw, 24px);
  width: auto;
  max-width: 200px;
}

/* ---------- Navigation ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-nav__list {
  display: flex;
  gap: var(--space-8);
}

.site-nav__list a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.site-nav__list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-cyan);
  transition: width var(--duration-base) var(--ease-out-expo);
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--color-text-primary);
}

.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after {
  width: 100%;
}

/* ---------- Nav Toggle (Mobile) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out-expo),
              opacity var(--duration-fast) ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 11, 26, 0.97);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    flex-direction: column;
    justify-content: center;
    gap: var(--space-12);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-base) ease,
                visibility var(--duration-base) ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
  }

  .site-nav__list a {
    font-size: var(--text-2xl);
    font-family: var(--font-heading);
    font-weight: 600;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  transition: all var(--duration-base) var(--ease-out-expo);
  white-space: nowrap;
}

.btn--coral {
  background: var(--color-coral);
  color: #fff;
  box-shadow: 0 0 0 0 var(--color-coral-glow);
}

.btn--coral:hover {
  background: #d4663f;
  transform: translateY(-1px);
  box-shadow: 0 0 30px 8px var(--color-coral-glow);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.btn--outline:hover {
  border-color: var(--color-border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.btn--sm {
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: rgba(18, 19, 44, 0.5);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--duration-base) ease,
              transform var(--duration-base) var(--ease-out-expo),
              box-shadow var(--duration-base) ease;
}

.glass-card:hover {
  border-color: var(--color-border-hover);
}

.glass-card--lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-card--interactive {
  cursor: pointer;
}

/* ---------- Image Card ---------- */
.image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.image-card:hover img {
  transform: scale(1.04);
}

.image-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 11, 26, 0.9) 0%, rgba(10, 11, 26, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-8);
}

/* ---------- Metric Counter ---------- */
.metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-12);
  padding: var(--space-16) 0;
}

.metric {
  text-align: center;
  min-width: 140px;
}

.metric__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.metric__label {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--space-2);
  font-weight: 500;
}

/* ---------- Glow Section ---------- */
.glow {
  position: relative;
  overflow: hidden;
}

.glow::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-cyan-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.glow--coral::before {
  background: radial-gradient(circle, var(--color-coral-glow) 0%, transparent 70%);
}

.glow--left::before {
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
}

.glow--right::before {
  left: auto;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero--short { min-height: 70vh; }
.hero--shorter { min-height: 60vh; }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img,
.hero__bg iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(10, 11, 26, 0.45) 0%,
    rgba(10, 11, 26, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: var(--space-32) var(--container-pad) var(--space-16);
}

.hero__content h1 {
  margin-bottom: var(--space-6);
}

.hero__content p {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 640px;
  margin-inline: auto;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-tertiary);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-indicator::before {
  content: '';
  width: 3px;
  height: 8px;
  background: var(--color-text-tertiary);
  border-radius: 3px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* ---------- Photo Strip ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding: var(--space-4);
}

.photo-strip img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.photo-strip img:hover {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .photo-strip {
    grid-template-columns: 1fr;
  }
  .photo-strip img { height: 250px; }
}

/* ---------- Video Embed ---------- */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-teal));
  border-radius: 3px;
  border: none;
}

.divider--center { margin-inline: auto; }

/* ---------- Tag / Badge ---------- */
.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: rgba(4, 196, 217, 0.12);
  color: var(--color-cyan);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Embed Frame ---------- */
.embed-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.embed-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
  background: var(--color-midnight);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__logo img {
  height: 24px;
  width: auto;
  margin-bottom: var(--space-4);
}

.site-footer__links a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  padding: var(--space-1) 0;
  transition: color var(--duration-fast) ease;
}

.site-footer__links a:hover {
  color: var(--color-text-primary);
}

.site-footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: var(--space-24) 0;
}

.cta-section h2 {
  margin-bottom: var(--space-4);
}

.cta-section p {
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.cta-section .email-link {
  display: inline-block;
  font-size: var(--text-xl);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-cyan);
  margin-bottom: var(--space-6);
  transition: color var(--duration-fast) ease;
}

.cta-section .email-link:hover {
  color: var(--color-coral);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-6);
  counter-reset: step;
}

.step {
  counter-increment: step;
  position: relative;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-surface-alt);
  line-height: 1;
  margin-bottom: var(--space-4);
  display: block;
}

.step h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.step p {
  font-size: var(--text-sm);
}
