/* ========================================
   ecoDrone — Apple-style Design
   Dark immersive, blur sections, big type
   ======================================== */

/* ---- Base overrides ---- */
.apple-style {
  background: #000;
  color: #f5f5f7;
}

/* ========================================
   HERO — Full viewport, massive type
   ======================================== */
.ap-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.ap-hero__media {
  position: absolute;
  inset: 0;
}
.ap-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ap-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 40%, transparent 60%);
}

.ap-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px 96px;
}

/* ---- Typography ---- */
.ap-eyebrow {
  font-family: var(--font-caps);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #88C426;
  margin-bottom: 12px;
}

.ap-display {
  font-family: var(--font-serif);
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: #f5f5f7;
  margin-bottom: 16px;
}

.ap-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #f5f5f7;
}

.ap-subheadline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.1;
}

.ap-intro {
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.009em;
}

.ap-body-large {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.ap-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================
   SECTIONS
   ======================================== */
.ap-section {
  padding: clamp(96px, 12vw, 160px) 0;
}

.ap-section--dark {
  background: #000;
  color: #f5f5f7;
}

.ap-section--light {
  background: #fff;
  color: #1d1d1f;
}
.ap-section--light .ap-eyebrow { color: #88C426; }
.ap-section--light .ap-subheadline { color: #1d1d1f; }
.ap-section--light .ap-body-large { color: rgba(29,29,31,0.62); }

.ap-section--alt {
  background: #f5f5f7;
  color: #1d1d1f;
}
.ap-section--alt .ap-eyebrow { color: #88C426; }
.ap-section--alt .ap-subheadline { color: #1d1d1f; }

.ap-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

/* ========================================
   BLUR SECTION — Image blurs on scroll
   ======================================== */
.ap-blur-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ap-blur-section__bg {
  position: absolute;
  inset: 0;
}
.ap-blur-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-blur-section__overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(0px) brightness(100%);
  -webkit-backdrop-filter: blur(0px) brightness(100%);
  transition: backdrop-filter 0.1s linear, -webkit-backdrop-filter 0.1s linear;
}

.ap-blur-section__overlay.blurred {
  backdrop-filter: blur(40px) brightness(60%);
  -webkit-backdrop-filter: blur(40px) brightness(60%);
}

.ap-blur-section__content {
  position: relative;
  z-index: 2;
  padding: 120px 0;
}

.ap-blur-card {
  max-width: 640px;
}

.ap-blur-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
}

.ap-blur-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}
.ap-blur-stat span {
  font-family: var(--font-caps);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  display: block;
}

/* ========================================
   STATS — Big numbers, dark bg
   ======================================== */
.ap-stats {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 6vw, 96px);
  text-align: center;
}

.ap-stat__num {
  font-family: var(--font-serif);
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 400;
  color: #f5f5f7;
  line-height: 1;
  letter-spacing: -0.015em;
}

.ap-stat__suffix {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  color: #88C426;
}

.ap-stat__label {
  font-family: var(--font-caps);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
}

/* ========================================
   TILE GRID — Apple-style cards
   ======================================== */
.ap-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ap-tile-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.ap-tile {
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0,0,0.5,1);
}
.ap-tile:hover {
  transform: scale(1.02);
}

.ap-tile--wide {
  grid-column: span 3;
}
.ap-tile-grid--two .ap-tile--wide {
  grid-column: span 2;
}

.ap-tile--dark {
  background: #1d1d1f;
  color: #f5f5f7;
}
.ap-tile--dark .ap-tile__eyebrow { color: #88C426; }

.ap-tile--light {
  background: #f5f5f7;
  color: #1d1d1f;
}

.ap-tile__media {
  aspect-ratio: 21/9;
  overflow: hidden;
}
.ap-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-tile__body {
  padding: 32px;
}

.ap-tile__eyebrow {
  font-family: var(--font-caps);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.ap-tile__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.ap-tile__desc {
  font-size: 15px;
  color: rgba(245,245,247,0.65);
  line-height: 1.6;
}
.ap-tile--light .ap-tile__desc {
  color: rgba(29,29,31,0.62);
}

.ap-tile__highlight {
  font-size: 17px;
  font-weight: 600;
  color: #88C426;
  margin-top: 16px;
}

/* ========================================
   IMPACT GRID
   ======================================== */
.ap-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  text-align: center;
}

.ap-impact-num {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: #f5f5f7;
  line-height: 1;
  white-space: nowrap;
}

.ap-impact-label {
  font-family: var(--font-caps);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

/* ========================================
   STAGGER ANIMATION
   ======================================== */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

[data-stagger].staggered > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay per child */
[data-stagger] > *:nth-child(1) { transition-delay: 0s; }
[data-stagger] > *:nth-child(2) { transition-delay: 0.1s; }
[data-stagger] > *:nth-child(3) { transition-delay: 0.2s; }
[data-stagger] > *:nth-child(4) { transition-delay: 0.3s; }
[data-stagger] > *:nth-child(5) { transition-delay: 0.4s; }

/* Self-staggering (for elements without children to stagger) */
[data-stagger]:not(:has(> *:nth-child(2))) {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
[data-stagger]:not(:has(> *:nth-child(2))).staggered {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .ap-tile-grid { grid-template-columns: 1fr 1fr; }
  .ap-tile--wide { grid-column: span 2; }
  .ap-impact-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .ap-stats { gap: 40px; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .ap-tile-grid,
  .ap-tile-grid--two { grid-template-columns: 1fr; }
  .ap-tile--wide { grid-column: span 1; }
  .ap-impact-grid { grid-template-columns: 1fr 1fr; }
  .ap-blur-stats { flex-direction: column; gap: 24px; }
  .ap-stats { flex-direction: column; gap: 32px; }
  .ap-hero__content { padding-bottom: 64px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-stagger] > *,
  [data-stagger] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ap-blur-section__overlay { backdrop-filter: blur(40px) brightness(60%) !important; -webkit-backdrop-filter: blur(40px) brightness(60%) !important; }
}
