/* Why choose us — full-bleed marketing composition */

.why-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height, 64px));
  min-height: calc(100svh - var(--nav-height, 64px));
  min-height: calc(100dvh - var(--nav-height, 64px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-color);
  background: var(--brand-mist, #e8f4f4);
  box-sizing: border-box;
}

.why-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.why-hero-visual::before {
  content: '';
  position: absolute;
  inset: -6%;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  animation: whyZoom 22s var(--ease-soft, ease) alternate infinite;
  will-change: transform;
}

.why-hero-image {
  display: none;
}

.why-hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 88% 42%, rgba(255, 255, 255, 0.18), transparent 58%),
    radial-gradient(ellipse 45% 40% at 72% 78%, rgba(var(--accent-warm-rgb, 232, 163, 23), 0.28), transparent 60%),
    radial-gradient(ellipse 40% 50% at 8% 20%, rgba(13, 138, 138, 0.18), transparent 55%);
}

.why-hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(247, 251, 251, 0.96) 0%,
      rgba(247, 251, 251, 0.9) 26%,
      rgba(247, 251, 251, 0.55) 44%,
      rgba(247, 251, 251, 0.12) 62%,
      transparent 78%
    ),
    linear-gradient(
      180deg,
      rgba(232, 244, 244, 0.35) 0%,
      transparent 28%,
      transparent 72%,
      rgba(13, 138, 138, 0.14) 100%
    );
}

.why-hero-inner {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  padding: clamp(40px, 8vw, 88px) clamp(24px, 6vw, 72px);
}

.why-brand {
  display: block;
  width: min(240px, 70vw);
  height: auto;
  margin-bottom: 22px;
  animation: whyRise 0.9s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.why-kicker {
  margin: 0 0 12px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-color);
  animation: whyRise 0.9s 0.08s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.why-headline {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 3.85rem);
  line-height: 1.06;
  font-weight: 400;
  color: var(--brand-ink, #0c2e2e);
  text-wrap: balance;
  animation: whyRise 0.9s 0.14s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.why-lede {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 36ch;
  animation: whyRise 0.9s 0.2s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.why-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: whyRise 0.9s 0.28s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.why-btn {
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
}

.why-btn-solid {
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-ink, #0c2e2e);
  border: 1px solid rgba(13, 80, 80, 0.18);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.why-btn-solid:hover,
.why-btn-solid:focus-visible {
  background: #ffffff;
  color: var(--brand-ink, #0c2e2e);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

html.dark-theme .why-hero,
body.dark-theme .why-hero {
  background: #0e1818;
  color: #eef6f6;
}

html.dark-theme .why-hero-atmosphere,
body.dark-theme .why-hero-atmosphere {
  background:
    linear-gradient(
      105deg,
      rgba(14, 24, 24, 0.88) 0%,
      rgba(14, 24, 24, 0.72) 28%,
      rgba(14, 24, 24, 0.28) 48%,
      transparent 72%
    ),
    linear-gradient(180deg, rgba(43, 184, 184, 0.12) 0%, transparent 35%, rgba(14, 24, 24, 0.35) 100%);
}

html.dark-theme .why-kicker,
body.dark-theme .why-kicker {
  color: #7ecfcf;
}

html.dark-theme .why-headline,
body.dark-theme .why-headline {
  color: #ffffff;
}

html.dark-theme .why-lede,
body.dark-theme .why-lede {
  color: rgba(232, 244, 244, 0.88);
}

html.dark-theme .why-btn-solid,
body.dark-theme .why-btn-solid {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

html.dark-theme .why-btn-solid:hover,
html.dark-theme .why-btn-solid:focus-visible,
body.dark-theme .why-btn-solid:hover,
body.dark-theme .why-btn-solid:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: #fff;
}

.why-close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.why-close .why-btn-solid {
  background: var(--secondary-color);
  color: #f4fbfb;
  border-color: var(--secondary-color);
  box-shadow: none;
  backdrop-filter: none;
}

.why-close .why-btn-solid:hover,
.why-close .why-btn-solid:focus-visible {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.why-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 104px) clamp(24px, 5vw, 40px);
}

.why-story--reverse {
  direction: rtl;
}

.why-story--reverse > * {
  direction: ltr;
}

.why-eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 600;
}

.why-story-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  color: var(--text-color);
}

.why-story-copy p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 38ch;
}

.why-story-panel {
  position: relative;
  min-height: 220px;
  border-radius: 28px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-story-panel--teal {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  color: #f4fbfb;
}

.why-story-panel--gold {
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(145deg, var(--accent-warm, var(--accent-gold)), color-mix(in srgb, var(--accent-warm, var(--accent-gold)) 70%, #000));
  color: #fff8e8;
}

.why-story-panel--ink {
  background:
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--primary-color) 35%, transparent), transparent 50%),
    linear-gradient(145deg, var(--brand-ink), var(--secondary-color));
  color: #e8f4f4;
}

.why-panel-mark {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  opacity: 0.22;
  font-family: var(--font-display);
}

.why-story-panel > p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
  max-width: 16ch;
}

.why-close {
  padding: clamp(48px, 8vw, 88px) 24px 96px;
}

.why-close-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 48px);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(13, 138, 138, 0.16), transparent 60%),
    var(--card-background);
  border: 1px solid var(--glass-border, var(--border-color));
  box-shadow: var(--shadow-lg);
}

.why-close-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  color: var(--text-color);
}

.why-close-inner p {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.7s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes whyRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whyZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (max-width: 1024px) {
  .why-hero {
    align-items: flex-end;
    justify-content: center;
  }

  .why-hero-inner {
    width: 100%;
    max-width: none;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 6vw, 48px) clamp(18px, 5vw, 32px);
    padding-bottom: max(clamp(36px, 8vw, 56px), env(safe-area-inset-bottom, 0px));
  }

  .why-lede {
    max-width: 40ch;
  }

  .why-hero-actions {
    justify-content: center;
    width: 100%;
  }

  .why-brand {
    margin-left: auto;
    margin-right: auto;
  }

  .why-hero-atmosphere {
    background:
      linear-gradient(
        180deg,
        rgba(247, 251, 251, 0.2) 0%,
        rgba(247, 251, 251, 0.45) 38%,
        rgba(247, 251, 251, 0.88) 68%,
        rgba(247, 251, 251, 0.96) 100%
      ),
      radial-gradient(
        ellipse 70% 45% at 50% 100%,
        rgba(var(--accent-warm-rgb, 232, 163, 23), 0.18),
        transparent 55%
      );
  }

  .why-hero-glow {
    background:
      radial-gradient(ellipse 70% 40% at 50% 0%, rgba(13, 138, 138, 0.12), transparent 55%),
      radial-gradient(ellipse 60% 35% at 50% 100%, rgba(var(--accent-warm-rgb, 232, 163, 23), 0.16), transparent 60%);
  }

  html.dark-theme .why-hero-atmosphere,
  body.dark-theme .why-hero-atmosphere {
    background:
      linear-gradient(
        180deg,
        rgba(14, 24, 24, 0.25) 0%,
        rgba(14, 24, 24, 0.55) 42%,
        rgba(14, 24, 24, 0.9) 100%
      ),
      radial-gradient(ellipse 70% 40% at 50% 100%, rgba(232, 163, 23, 0.14), transparent 55%);
  }

  .why-story,
  .why-story--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .why-brand {
    width: min(210px, 80vw);
    margin-bottom: 20px;
  }

  .why-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .why-headline {
    font-size: clamp(2.15rem, 9.5vw, 2.85rem);
  }

  .why-lede {
    font-size: 1.02rem;
    margin-bottom: 24px;
    max-width: 32ch;
  }

  .why-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .why-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 1rem;
  }

  .why-story,
  .why-story--reverse {
    padding: 40px 16px;
    gap: 18px;
  }

  .why-story-copy h2 {
    font-size: clamp(1.65rem, 7vw, 2.05rem);
  }

  .why-story-copy p {
    font-size: 1.02rem;
    max-width: none;
  }

  .why-story-panel {
    min-height: 180px;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .why-close {
    padding: 40px 16px 72px;
  }

  .why-close-inner {
    padding: 32px 18px;
    border-radius: 22px;
  }

  .why-close-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .why-close-actions .why-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-brand,
  .why-kicker,
  .why-headline,
  .why-lede,
  .why-hero-actions,
  .why-hero-visual::before {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
