/* ===================================================================
   DECA Landing Page — Gutenberg Block Styles
   Classes for native Gutenberg blocks used in the landing page.
   Uses corporate CSS custom properties from :root in deca.css
   =================================================================== */

/* ---- Override Gutenberg layout max-width on landing blocks ---- */
.deca-lp-hero > *,
.deca-lp-countdown > *,
.deca-lp-legal > *,
.deca-lp-cta > *,
.deca-lp-section > * {
  max-width: none !important;
}

/* ---- Hero section ---- */
.deca-lp-hero {
  background: #fff !important;
  color: var(--color-main-alt, #232323);
  padding: 80px 24px 60px !important;
  text-align: center;
  border: 2px solid var(--color-main, #007236) !important;
  border-radius: 20px !important;
  margin: 24px auto !important;
  max-width: 960px;
}

.deca-lp-hero-badge {
  display: inline-block !important;
  background: rgba(0, 114, 54, 0.08) !important;
  color: var(--color-main, #007236) !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  margin-bottom: 24px;
}

.deca-lp-hero h1,
.deca-lp-hero .deca-lp-title {
  font-size: clamp(28px, 5vw, 44px) !important;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 auto 20px !important;
  max-width: 720px;
  color: var(--color-main-alt, #232323) !important;
}

.deca-lp-hero .deca-lp-subtitle {
  font-size: clamp(16px, 2.5vw, 19px) !important;
  line-height: 1.6;
  margin: 0 auto 32px !important;
  max-width: 600px;
  color: #555 !important;
}

.deca-lp-hero .wp-block-buttons {
  gap: 14px;
  justify-content: center;
}

/* ---- Buttons ---- */
.deca-lp-btn-primary .wp-block-button__link {
  background: var(--color-main, #007236) !important;
  color: #fff !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deca-lp-btn-primary .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 114, 54, 0.2);
}

.deca-lp-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--color-main, #007236) !important;
  border: 2px solid var(--color-main, #007236) !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.deca-lp-btn-outline .wp-block-button__link:hover {
  background: rgba(0, 114, 54, 0.05) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 114, 54, 0.1);
}

.deca-lp-btn-green .wp-block-button__link {
  background: var(--color-main, #007236) !important;
  color: #fff !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deca-lp-btn-green .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 114, 54, 0.2);
}

/* ---- Countdown strip ---- */
.deca-lp-countdown {
  background: #fff !important;
  border: 2px solid var(--color-main-alt, #232323) !important;
  border-radius: 20px !important;
  padding: 20px 24px !important;
  text-align: center;
  max-width: 960px;
  margin: 24px auto !important;
}

.deca-lp-countdown p {
  font-size: 15px !important;
  font-weight: 500;
  color: var(--color-main-alt, #232323) !important;
  margin: 0 !important;
}

.deca-lp-countdown strong {
  color: var(--color-main, #007236);
}

/* ---- Sections ---- */
.deca-lp-section {
  padding: 64px 24px !important;
  max-width: 960px;
  margin: 0 auto;
}

.deca-lp-section-alt {
  background: #f7f9f8 !important;
}

.deca-lp-section-title {
  font-size: clamp(24px, 4vw, 34px) !important;
  font-weight: 800;
  color: var(--color-main-alt, #232323) !important;
  margin: 0 0 12px !important;
  text-align: center;
}

.deca-lp-section-subtitle {
  font-size: 16px !important;
  color: #666 !important;
  max-width: 560px;
  margin: 0 auto 48px !important;
  line-height: 1.6;
  text-align: center;
}

/* ---- Material Icon blocks ---- */
.deca-lp-icon-wrap {
  text-align: center;
  margin-bottom: 16px;
}

.deca-lp-icon-wrap .deca-lp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 114, 54, 0.08);
  color: var(--color-main, #007236);
  font-size: 28px;
}

.deca-lp-module .deca-lp-icon-wrap {
  margin-bottom: 12px;
}

.deca-lp-module .deca-lp-icon-wrap .deca-lp-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 24px;
  background: rgba(0, 114, 54, 0.06);
}

/* ---- Feature cards ---- */
.deca-lp-cards {
  gap: 24px !important;
}

.deca-lp-cards + .deca-lp-cards {
  margin-top: 24px !important;
}

.deca-lp-card {
  background: #fff !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 14px !important;
  padding: 28px 24px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.deca-lp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.deca-lp-card h3 {
  font-size: 17px !important;
  font-weight: 700;
  color: var(--color-main-alt, #232323) !important;
  margin: 0 0 8px !important;
}

.deca-lp-card p {
  font-size: 14px !important;
  line-height: 1.6;
  color: #555 !important;
  margin: 0 !important;
}

/* ---- Legal compliance ---- */
.deca-lp-legal {
  background: #fff !important;
  border: 2px solid var(--color-main-alt, #232323) !important;
  border-radius: 20px !important;
  padding: 48px 24px !important;
  text-align: center;
  max-width: 960px;
  margin: 24px auto !important;
}

.deca-lp-legal h2 {
  font-size: clamp(22px, 3.5vw, 30px) !important;
  font-weight: 800;
  margin: 0 0 16px !important;
  color: var(--color-main-alt, #232323) !important;
}

.deca-lp-legal p {
  font-size: 16px !important;
  line-height: 1.6;
  margin: 0 0 8px !important;
  color: #555 !important;
}

.deca-lp-legal-date {
  display: inline-block !important;
  background: rgba(0, 114, 54, 0.08) !important;
  color: var(--color-main, #007236) !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 600;
  font-size: 15px !important;
  margin-top: 16px !important;
}

/* ---- Steps / How it works ---- */
.deca-lp-steps {
  gap: 32px !important;
}

.deca-lp-step {
  text-align: center;
  padding: 24px 16px !important;
}

.deca-lp-step-number {
  width: 48px;
  height: 48px;
  line-height: 48px !important;
  border-radius: 50% !important;
  background: var(--color-main, #007236) !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 800;
  display: block;
  margin: 0 auto 16px !important;
  text-align: center;
}

.deca-lp-step h3 {
  font-size: 16px !important;
  font-weight: 700;
  color: var(--color-main-alt, #232323) !important;
  margin: 0 0 8px !important;
  text-align: center;
}

.deca-lp-step p:not(.deca-lp-step-number) {
  font-size: 14px !important;
  line-height: 1.5;
  color: #666 !important;
  margin: 0 !important;
  text-align: center;
}

/* ---- Modules ---- */
.deca-lp-modules {
  gap: 16px !important;
}

.deca-lp-module {
  background: #fff !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 12px !important;
  padding: 24px 16px !important;
  text-align: center;
  transition: border-color 0.2s ease;
}

.deca-lp-module:hover {
  border-color: var(--color-main, #007236) !important;
}

.deca-lp-module h4 {
  font-size: 15px !important;
  font-weight: 700;
  color: var(--color-main-alt, #232323) !important;
  margin: 0 0 4px !important;
}

.deca-lp-module p {
  font-size: 13px !important;
  color: #888 !important;
  margin: 0 !important;
}

/* ---- CTA footer ---- */
.deca-lp-cta {
  background: #fff !important;
  border: 2px solid var(--color-main, #007236) !important;
  border-radius: 20px !important;
  padding: 56px 24px !important;
  text-align: center;
  max-width: 960px;
  margin: 24px auto !important;
}

.deca-lp-cta h2 {
  font-size: clamp(22px, 3.5vw, 30px) !important;
  font-weight: 800;
  margin: 0 0 12px !important;
  color: var(--color-main-alt, #232323) !important;
}

.deca-lp-cta p {
  font-size: 16px !important;
  margin: 0 0 28px !important;
  color: #555 !important;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .deca-lp-hero {
    padding: 56px 20px 40px !important;
    margin: 16px !important;
  }

  .deca-lp-countdown,
  .deca-lp-legal,
  .deca-lp-cta {
    margin: 16px !important;
  }

  .deca-lp-section {
    padding: 48px 20px !important;
  }

  .deca-lp-cards,
  .deca-lp-steps {
    flex-direction: column;
  }

  .deca-lp-hero .wp-block-buttons {
    flex-direction: column;
    align-items: center;
  }

  .deca-lp-hero .wp-block-button {
    width: 100%;
    max-width: 280px;
  }

  .deca-lp-hero .wp-block-button__link {
    width: 100%;
    justify-content: center;
  }
}
