/* ============================================
   NaijaSugar — Homepage
   ============================================ */

:root {
  --green: #1a3d32;
  --green-deep: #143029;
  --green-mid: #2a5a4a;
  --green-soft: #e6efe9;
  --gold: #c4a574;
  --gold-deep: #a88b55;
  --gold-soft: #f0e6d4;
  --cream: #f8f6f1;
  --cream-warm: #f3efe6;
  --ink: #1c1c1c;
  --muted: #5c5c5c;
  --line: #e2ddd3;
  --white: #ffffff;
  --pink-soft: #f3e8ea;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 12px 40px rgba(26, 61, 50, 0.1);
  --shadow-sm: 0 4px 18px rgba(26, 61, 50, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --header-h: 78px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Decorative palms */
.palm {
  position: fixed;
  z-index: 0;
  color: var(--green-mid);
  pointer-events: none;
  opacity: 0.55;
}

.palm svg {
  width: 100%;
  height: auto;
}

.palm--tl {
  top: 70px;
  left: -20px;
  width: 140px;
}

.palm--tr {
  top: 70px;
  right: -20px;
  width: 140px;
}

.palm--bl {
  bottom: 40px;
  left: -10px;
  width: 120px;
}

.palm--br {
  bottom: 40px;
  right: -10px;
  width: 120px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-deep);
  box-shadow: 0 8px 20px rgba(26, 61, 50, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1rem;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
  padding: 0.9rem 1rem;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(26, 61, 50, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.logo-naija {
  color: var(--green);
}

.logo-sugar {
  color: var(--gold);
}

.logo-tagline {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-actions .btn {
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
}

.header-actions .btn svg {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .logo-tagline {
    max-width: 140px;
    line-height: 1.25;
  }

  .header-actions .btn {
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  z-index: 1;
  padding: 0 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 0;
}

.hero-visual {
  position: relative;
  margin: 0 -1rem;
  overflow: hidden;
  max-height: 380px;
  order: 1;
  animation: fadeRise 0.8s ease both;
}

.hero-copy {
  padding: 1.5rem 0 0;
  text-align: center;
  order: 2;
  animation: fadeRise 0.8s 0.1s ease both;
}

.hero-form-wrap {
  display: none;
  order: 3;
  animation: fadeRise 0.8s 0.2s ease both;
}

.hero-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 20%;
}

.hero-visual-fade {
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 600;
  color: var(--green);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
  max-width: 28ch;
  margin-inline: auto;
}

.hero-cta {
  margin-bottom: 1.5rem;
}

.trust-inline {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.trust-inline li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold-deep);
  min-width: 72px;
}

.trust-inline span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
}

.signup-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 61, 50, 0.06);
}

.signup-card h2,
.register-card h1 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--green);
  font-weight: 600;
  line-height: 1.2;
}

.register-card h1 {
  font-size: clamp(1.55rem, 4vw, 1.85rem);
}

/* ========== REGISTER PAGE ========== */
.page-register {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.register-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem 0 3rem;
}

.register-wrap {
  width: min(100% - 2rem, 440px);
  margin-inline: auto;
}

.register-card {
  width: 100%;
  animation: fadeRise 0.7s ease both;
}

.register-switch {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.register-switch a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-lead {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.25rem 0 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
}

.field input,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(42, 90, 74, 0.12);
  background: var(--white);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.password-toggle svg {
  display: block;
}

.password-toggle svg[hidden] {
  display: none !important;
}

.password-toggle:hover {
  color: var(--green);
}

.legal {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.legal a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HOW IT WORKS ========== */
.how {
  position: relative;
  z-index: 1;
  padding: 2.75rem 0 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 600;
  color: var(--green);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--gold);
  margin: 0.65rem auto 0;
}

.section-title--left {
  text-align: left;
  margin-bottom: 0;
}

.section-title--left::after {
  display: none;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "s1 a1 s2"
    "s3 a2 s4";
  gap: 1.5rem 0.25rem;
  align-items: start;
  max-width: 400px;
  margin-inline: auto;
}

.how-step:nth-of-type(1) { grid-area: s1; }
.how-step:nth-of-type(2) { grid-area: s2; }
.how-step:nth-of-type(3) { grid-area: s3; }
.how-step:nth-of-type(4) { grid-area: s4; }

.how-arrow {
  display: flex;
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 300;
  align-self: flex-start;
  margin-top: 1.15rem;
  line-height: 1;
  justify-content: center;
}

.how-arrow--1 { grid-area: a1; }
.how-arrow--2 { grid-area: a2; }
.how-arrow--desktop { display: none; }

.how-step {
  text-align: center;
  max-width: 200px;
  margin-inline: auto;
}

.how-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 0.85rem;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.how-step:hover .how-icon {
  transform: scale(1.06);
}

.how-icon--green {
  background: var(--green);
}

.how-icon--gold {
  background: var(--gold);
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.how-step p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ========== FEATURED MEMBERS ========== */
.members {
  position: relative;
  z-index: 1;
  padding: 2rem 0 1.5rem;
}

.members-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.view-more {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.view-more:hover {
  color: var(--gold-deep);
}

.members-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.member-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 61, 50, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.member-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.member-card:hover .member-photo img {
  transform: scale(1.05);
}

.online-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.member-info {
  padding: 0.7rem 0.75rem 0.9rem;
}

.member-info h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.member-loc {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.tag--baby {
  background: var(--green-soft);
  color: var(--green);
}

.tag--daddy {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

/* ========== JOURNEY CTA ========== */
.journey {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 2rem;
}

.journey-box {
  position: relative;
  background: var(--green-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 2rem 1.25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.journey-leaf {
  flex-shrink: 0;
  width: 72px;
  color: var(--green-mid);
  opacity: 0.7;
}

.journey-content {
  flex: 1;
}

.journey-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.journey-content p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  max-width: 36ch;
}

/* ========== TRUST BAR ========== */
.trust-bar {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  color: var(--green);
}

.trust-item h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
}

.trust-item p {
  display: none;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 24ch;
  margin-inline: auto;
}

/* ========== FOOTER ========== */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--green);
  color: var(--white);
  padding: 1.75rem 1rem;
}

.footer-inner {
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
  overflow-x: auto;
}

.footer-links a {
  padding: 0.25rem 0.3rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-sep {
  color: var(--gold);
  font-weight: 400;
  user-select: none;
  padding: 0 0.15rem;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.7;
  font-weight: 400;
}

/* ========== TABLET+ ========== */
@media (min-width: 768px) {
  .palm--tl,
  .palm--tr {
    width: 180px;
  }

  .hero-visual {
    margin: 0;
    border-radius: var(--radius-lg);
    max-height: 420px;
  }

  .hero-photo {
    height: 420px;
    border-radius: var(--radius-lg);
  }

  .hero-visual-fade {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .hero-copy {
    text-align: left;
    padding-top: 2rem;
  }

  .hero-sub {
    margin-inline: 0;
    max-width: 40ch;
  }

  .trust-inline {
    justify-content: flex-start;
  }

  .how-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.25rem;
    max-width: 900px;
    margin-inline: auto;
  }

  .how-step:nth-of-type(1),
  .how-step:nth-of-type(2),
  .how-step:nth-of-type(3),
  .how-step:nth-of-type(4) {
    grid-area: auto;
  }

  .how-arrow {
    display: none;
  }

  .members-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    padding-bottom: 0;
    gap: 1.15rem;
  }

  .member-card {
    flex: unset;
  }

  .journey-box {
    padding: 2.5rem 3rem;
  }

  .journey-leaf {
    width: 100px;
  }

  .journey-content h2 {
    font-size: 1.85rem;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .trust-item p {
    display: block;
  }
}

/* ========== DESKTOP (PC mockup) ========== */
@media (min-width: 1024px) {
  :root {
    --header-h: 88px;
  }

  .logo-mark {
    font-size: 1.85rem;
  }

  .logo-tagline {
    font-size: 0.68rem;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .header-actions .btn {
    padding: 0.7rem 1.35rem;
    font-size: 0.92rem;
  }

  .hero {
    padding: 1.5rem 0 3.5rem;
    background:
      radial-gradient(ellipse 50% 60% at 50% 40%, rgba(196, 165, 116, 0.08), transparent 70%);
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1.15fr 0.95fr;
    gap: 1.75rem;
    align-items: center;
    min-height: 520px;
  }

  .hero-copy {
    order: 1;
    padding: 0;
    animation: fadeRise 0.9s ease both;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 3.2vw, 3.15rem);
    margin-bottom: 1rem;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1.6rem;
  }

  .hero-cta {
    margin-bottom: 1.75rem;
  }

  .trust-inline {
    gap: 1.35rem;
  }

  .trust-inline span {
    font-size: 0.72rem;
  }

  .hero-visual {
    order: 2;
    max-height: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    animation: fadeRise 0.9s 0.12s ease both;
  }

  .hero-photo {
    height: 520px;
    border-radius: 16px;
    object-position: center 15%;
  }

  .hero-visual-fade {
    display: none;
  }

  .hero-form-wrap {
    display: block;
    order: 3;
  }

  .signup-card {
    padding: 1.85rem 1.65rem;
  }

  .how {
    padding: 3.5rem 0 2rem;
  }

  .how-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.35rem;
    max-width: 980px;
    margin-inline: auto;
  }

  .how-step {
    flex: 1;
    max-width: 200px;
  }

  .how-arrow,
  .how-arrow--desktop {
    display: flex;
    flex: 0 0 auto;
    font-size: 1.75rem;
    margin-top: 1.4rem;
    opacity: 0.85;
  }

  .how-icon {
    width: 72px;
    height: 72px;
  }

  .members {
    padding: 2.5rem 0 2rem;
  }

  .members-head {
    margin-bottom: 1.75rem;
  }

  .section-title--left {
    font-size: 2.15rem;
  }

  .member-info h3 {
    font-size: 1.02rem;
  }

  .member-photo {
    aspect-ratio: 1 / 1.08;
  }

  .journey {
    padding: 1.5rem 0 3rem;
  }

  .journey-box {
    padding: 2.75rem 3.5rem;
  }

  .trust-bar {
    padding: 2.5rem 0 3.5rem;
    background: linear-gradient(to bottom, transparent, var(--cream-warm));
  }

  .trust-item {
    gap: 0.75rem;
  }

  .trust-item svg {
    color: var(--gold-deep);
  }

  .trust-item h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .footer-links {
    font-size: 1.15rem;
    gap: 0.25rem;
  }

  .footer-sep {
    padding: 0 0.5rem;
  }
}

@media (min-width: 1200px) {
  .hero-grid {
    gap: 2.25rem;
  }

  .palm--tl,
  .palm--tr {
    width: 200px;
    opacity: 0.45;
  }

  .palm--bl,
  .palm--br {
    width: 150px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}


html,
body {
  min-height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
.site-footer {
  flex-shrink: 0;
}