/* css/pages/home.css — Home Page Specific Styles */

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary-dark);
  margin-top: calc(-1 * var(--nav-height));
  padding-top: var(--nav-height);
}
.hero__bg, .hero__overlay, .hero__watercolor-top { display: none !important; }

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.5;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45,106,79,0.55) 0%,
    rgba(45,106,79,0.40) 50%,
    rgba(45,106,79,0.30) 100%
  );
  z-index: 1;
}

.hero__watercolor-top {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
}

.hero__watercolor-top img {
  width: 100%;
  max-width: 100%;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-block: var(--space-20);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-bottom: var(--space-6);
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.35));
}

@media (min-width: 768px) {
  .hero__logo { max-width: 360px; }
}

.hero__mission {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--color-white);
  line-height: var(--leading-normal);
  max-width: 720px;
  margin: 0 auto var(--space-10) auto;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero__mission em {
  color: var(--color-warm);
  font-style: italic;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xl);
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ── Mission Strip ───────────────────────────── */
.mission-strip__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .mission-strip__grid { grid-template-columns: repeat(3, 1fr); }
}

.mission-strip__item {
  text-align: center;
  padding: var(--space-4);
}

.mission-strip__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.mission-strip__item h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.mission-strip__item p {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  margin: 0;
}

/* ── Optin Box ───────────────────────────────── */
.optin-box {
  text-align: center;
  position: relative;
}

.optin-box__flower {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.optin-box__flower img { margin-bottom: 0 !important; }
.optin-box .hbs-section__eyebrow { margin-top: 0; }

.optin-box .hbs-section__title {
  margin-bottom: var(--space-4);
}

.optin-box p {
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
}

/* ── Opt-in Form ─────────────────────────────── */
.optin-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.optin-form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.optin-form input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid #e8e8e8;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: var(--font-body);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.optin-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.optin-form input::placeholder {
  color: var(--color-text-muted);
}

.optin-form__submit {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: background var(--transition), transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.optin-form__submit img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
  margin: 0 !important;
  vertical-align: middle;
}

.optin-form__submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.optin-form__submit:disabled {
  background: #aaa;
  cursor: not-allowed;
  transform: none;
}

.optin-form__message {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: center;
  font-weight: 500;
}

.optin-form__message--success {
  background: #e8f5e9;
  color: #2d6a4f;
  border: 1px solid #b7dfb8;
}

.optin-form__message--error {
  background: #fdecea;
  color: #B6C235;
  border: 1px solid #f5b7b1;
}

/* ── Nature School Pricing Pill ──────────────── */
.ns-preview__pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-10);
}

.ns-price-pill {
  text-align: center;
  padding: var(--space-6) var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-width: 180px;
}

.ns-price-pill__plus {
  font-size: var(--text-3xl);
  color: var(--color-text-muted);
  font-weight: 300;
}

.ns-price-pill__equals {
  font-size: var(--text-3xl);
  color: var(--color-text-muted);
  font-weight: 300;
}

.ns-price-pill--total .ns-price-pill__amount {
  color: var(--color-primary);
}

.ns-price-pill__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.ns-price-pill__amount {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  color: var(--color-warm);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.ns-price-pill__note {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── Flower List ─────────────────────────────── */
.flower-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.flower-list li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── About Preview ───────────────────────────── */
.about-preview__inner {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-12);
  position: relative;
}

.about-preview__content {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .about-preview__content {
    grid-template-columns: 280px 1fr;
  }
}

.about-preview__photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.about-preview__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--color-gold);
  box-shadow: var(--shadow-lg);
}

.about-preview__family {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* ── Nature School Banner ────────────────────── */
.ns-banner-image {
  text-align: center;
  margin: 0;
}

.ns-banner-image img {
  width: 100%;
  max-width: var(--max-width);
  height: 420px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* ── Event Cards ─────────────────────────────── */
.hbs-event-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hbs-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hbs-event-card__date {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: #B6C235;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.hbs-event-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.hbs-event-card__time {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.hbs-event-card__button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
}

.hbs-event-card__button:hover {
  background: #1e3a1e;
}

.hbs-event-card__loading {
  padding: var(--space-8) 0;
  text-align: center;
}

.hbs-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-4);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hbs-events-empty {
  text-align: center;
  padding: var(--space-12) 0;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* ── Events section header centering ─────────── */
#events .hbs-section__header { text-align: center; }
#events .hbs-section__sub {
  margin-inline: auto;
  max-width: 560px;
  text-align: center;
}


