/* ============================================================
   PUSHPA GROW — style.css
   Mobile-first, AA-accessible
   ============================================================ */

/* ── Fonts ────────────────────────────────────────────────── */
@font-face {
  font-family: 'IntroRust';
  src: url('../assets/fonts/IntroRust.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IntroRust';
  src: url('../assets/fonts/IntroRust 2.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IntroRust-Base';
  src: url('../assets/fonts/IntroRust-Base.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IntroRust-Base';
  src: url('../assets/fonts/IntroRust-Base 2.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dark:         #06231a;
  --accent:       #dbed89;
  --accent-dark:  #b8c96a;
  --off-white:    #F5F5ED;
  --radius:       11px;
  --font:         'Poppins', system-ui, sans-serif;
  --max-w:        1140px;
  --narrow-w:     720px;
  --transition:   0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: #111111;
  background: var(--off-white);
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ── Skip link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  border-radius: var(--radius);
  z-index: 1000;
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 1rem;
}

/* ── Focus states ─────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container--narrow {
  max-width: var(--narrow-w);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 1rem 2rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
}

.btn--accent {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(219, 237, 137, 0.3);
}

.btn--outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.08);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  max-width: none;
}

@media (max-width: 768px) {
  .nav__logo-img {
    height: 40px;
  }
}

picture img[src*="Icon"] {
  mix-blend-mode: screen;
}

/* Mobile menu toggle */
.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger {
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after  { top:  6px; }

/* Open state */
.nav__toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav__toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Nav menu — mobile */
.nav__menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}
.nav__menu.is-open {
  display: flex;
}

.nav__link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  opacity: 0.8;
  transition: opacity var(--transition), color var(--transition);
}
.nav__link:hover {
  opacity: 1;
  color: var(--accent);
}

.nav__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }
  .nav__menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    border: none;
    position: static;
  }
  .nav__ctas {
    flex-direction: row;
    margin-top: 0;
    gap: 0.75rem;
  }
}

/* ── Section base ─────────────────────────────────────────── */
.section {
  padding-block: 5.5rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 6.5rem;
  }
}

.section--dark {
  background: var(--dark);
  color: #ffffff;
}
.section--dark .section__heading {
  color: #ffffff;
}
.section--dark .section__heading::after {
  background: var(--accent);
}

.section--light {
  background: #ffffff;
  color: #111111;
}

/* Section headings with accent underline */
.section__heading {
  font-family: 'IntroRust', 'IntroRust-Base', var(--font);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: normal;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 1.75rem;
  display: inline-block;
  padding-bottom: 0.6rem;
  position: relative;
}
.section__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section__heading--center {
  display: block;
  text-align: center;
}
.section__heading--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ── Prose ────────────────────────────────────────────────── */
.prose p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  max-width: 68ch;
  color: #111111;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose--center p {
  margin-inline: auto;
}
.section--dark .prose p {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background-color: #06231a;
  padding-block: 9rem 8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__vines {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.hero__vines--left  { left: 0; }
.hero__vines--right { right: 0; }

.hero__vines svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 1100px) {
  .hero__vines {
    width: 380px;
    opacity: 0.2;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-block: 11rem 10rem;
  }
}

.hero__inner {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.hero__heading {
  font-family: 'IntroRust', 'IntroRust-Base', var(--font);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: normal;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .hero__heading {
    font-size: 4.5rem; /* 72px */
  }
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: 2.75rem;
  line-height: 1.75;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Problem section ──────────────────────────────────────── */
#problem {
  padding-block: 6.25rem;
}

#problem .prose p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  #problem .prose p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
  }
}

/* ── How it works tabs ────────────────────────────────────── */
.how-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.how-tab {
  flex: 1;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 2px solid var(--dark);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  line-height: 1.3;
  transition: background var(--transition), color var(--transition);
}

.how-tab--active {
  background: var(--dark);
  color: #ffffff;
}

.how-col--hidden {
  display: none;
}

/* ── How it works ─────────────────────────────────────────── */
.how-it-works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 620px;
  margin-inline: auto;
}

.how-col__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--dark);
}

/* Steps list */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 12px 12px 0 0;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.step__number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.step__label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.step__body {
  font-size: 0.95rem;
  color: #111111;
  line-height: 1.6;
}

/* ── CTA section ──────────────────────────────────────────── */
.cta-section {
  padding-block: 6.5rem;
}

@media (min-width: 768px) {
  .cta-section {
    padding-block: 8rem;
  }
}

.cta-section .section__heading {
  color: #ffffff;
  margin-bottom: 2.25rem;
}

.cta-section__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding-block: 2.5rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer__logo-img {
  height: 28px;
  width: auto;
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.25rem;
}

/* ── Mobile padding: Risk & Who we are ───────────────────── */
@media (max-width: 767px) {
  #risk .container,
  #who-we-are .container {
    padding-inline: 1.75rem;
  }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
