/* EthioSugar — homepage styles (PC + mobile) */

:root {
  --maroon: #6b1a1a;
  --maroon-deep: #541414;
  --maroon-soft: #8a2e2e;
  --gold: #c5a059;
  --gold-soft: #d4b57a;
  --cream: #f9f6f0;
  --cream-dark: #efe8dc;
  --ink: #2a1c1c;
  --muted: #6e5f5f;
  --white: #ffffff;
  --trust-bar: #3a2424;
  --baby-bg: #f3d6d8;
  --baby-text: #8a3a45;
  --daddy-bg: #ead9b8;
  --daddy-text: #7a5a28;
  --online: #2f9e5d;
  --shadow: 0 18px 40px rgba(60, 30, 30, 0.14);
  --radius: 14px;
  --header-h: 78px;
  --bottom-nav-h: 64px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

p {
  margin: 0;
}

.section-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 8px;
  padding: 0.7rem 1.25rem;
  font-weight: 560;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}

.btn-primary:hover {
  background: var(--maroon-deep);
  border-color: var(--maroon-deep);
  box-shadow: 0 10px 24px rgba(107, 26, 26, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}

.btn-outline:hover {
  background: rgba(107, 26, 26, 0.06);
}

.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
  padding: 0.9rem 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 26, 26, 0.08);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-tagline {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-login {
  min-width: 88px;
}

.btn-join {
  min-width: 100px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0 3.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 78% 40%, rgba(197, 160, 89, 0.14), transparent 55%),
    linear-gradient(120deg, #f9f6f0 0%, #f3ebe0 48%, #ebe1d2 100%);
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(520px, 1.35fr);
  gap: 2rem 1.75rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 3.6vw, 3.55rem);
  color: var(--ink);
  max-width: 12ch;
  animation: fadeUp 0.8s ease both;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--maroon);
}

.hero-lead {
  margin-top: 1.1rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  animation: fadeUp 0.8s ease 0.1s both;
}

.trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: 1.6rem;
  animation: fadeUp 0.8s ease 0.18s both;
}

.trust-inline li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

.trust-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  display: grid;
  place-items: center;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

.hero-cta {
  margin-top: 1.85rem;
  animation: fadeUp 0.8s ease 0.26s both;
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.15rem;
  align-items: stretch;
  min-height: 0;
  animation: fadeIn 1s ease 0.15s both;
}

.hero-photo {
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 40% 15%;
}

.join-card {
  position: relative;
  width: 100%;
  align-self: center;
  background: var(--white);
  border-radius: 16px;
  padding: 1.15rem 1.1rem 1.05rem;
  box-shadow: 0 20px 50px rgba(42, 28, 28, 0.18);
  border: 1px solid rgba(197, 160, 89, 0.22);
  animation: cardRise 0.9s ease 0.35s both;
}

.join-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.95rem;
  color: var(--ink);
  text-align: center;
}

.field {
  display: grid;
  gap: 0.28rem;
  margin-bottom: 0.75rem;
}

.field span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  border: 1px solid rgba(107, 26, 26, 0.18);
  background: #fcfaf7;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  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(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.form-note {
  margin-top: 0.7rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* How it works */
.how {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, var(--cream) 0%, #f3ede3 100%);
}

.section-head {
  text-align: center;
  margin-bottom: 2.4rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  color: var(--ink);
}

.gold-rule {
  display: block;
  width: 48px;
  height: 2px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-head--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  text-align: left;
  gap: 1rem;
}

.section-head--row .gold-rule {
  display: none;
}

.view-more {
  color: var(--maroon);
  font-weight: 560;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.view-more:hover {
  color: var(--maroon-deep);
  transform: translateX(2px);
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.5rem 0.75rem;
  align-items: start;
}

.step {
  text-align: center;
  padding: 0.4rem 0.5rem;
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover .step-icon {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(107, 26, 26, 0.12);
}

.step-icon svg {
  width: 40px;
  height: 40px;
}

.step-icon--maroon {
  color: var(--maroon);
  background: rgba(107, 26, 26, 0.06);
  border-color: rgba(107, 26, 26, 0.18);
}

.step-icon--gold {
  color: var(--gold);
  background: rgba(197, 160, 89, 0.1);
  border-color: rgba(197, 160, 89, 0.35);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 22ch;
  margin-inline: auto;
}

.step-arrow {
  display: grid;
  place-items: center;
  color: var(--gold);
  padding-top: 1.6rem;
}

.step-arrow svg {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

/* Featured members */
.members {
  padding: 2.5rem 0 3.5rem;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.member-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(107, 26, 26, 0.06);
  box-shadow: 0 10px 28px rgba(60, 30, 30, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(60, 30, 30, 0.12);
}

.member-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-dark);
}

.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: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--online);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 0 rgba(47, 158, 93, 0.5);
  animation: pulse 2.2s ease infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 93, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(47, 158, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 93, 0); }
}

.member-info {
  padding: 0.95rem 1rem 1.1rem;
}

.member-info h3 {
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.member-info h3 span {
  font-weight: 500;
  color: var(--muted);
}

.member-loc {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.role-tag {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.role-tag--baby {
  background: var(--baby-bg);
  color: var(--baby-text);
}

.role-tag--daddy {
  background: var(--daddy-bg);
  color: var(--daddy-text);
}

/* Trust bar */
.trust-bar {
  background: var(--trust-bar);
  color: var(--cream);
  padding: 1.6rem 0;
}

.trust-bar-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.trust-bar-icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
  flex-shrink: 0;
}

.trust-bar-icon svg {
  width: 100%;
  height: 100%;
}

/* Footer */
.site-footer {
  background: #2a1818;
  color: rgba(249, 246, 240, 0.78);
  padding: 1.6rem 1.25rem 1.8rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 0.35rem;
  font-size: 0.92rem;
}

.footer-links a {
  color: rgba(249, 246, 240, 0.9);
  font-weight: 500;
  padding: 0.2rem 0.45rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

.footer-sep {
  color: rgba(197, 160, 89, 0.55);
  user-select: none;
}

.footer-copy {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: rgba(249, 246, 240, 0.45);
}

/* Mobile bottom nav — hidden on desktop */
.mobile-bottom-nav {
  display: none;
}

/* ========== Responsive: tablet ========== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1,
  .hero-lead {
    max-width: none;
    margin-inline: auto;
  }

  .trust-inline {
    justify-content: center;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
    gap: 1.1rem;
  }

  .hero-photo img {
    height: 480px;
    min-height: 0;
  }

  .join-card {
    width: 100%;
    margin-top: 0;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .step-arrow {
    display: none;
  }

  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== Responsive: mobile (matches mockup phone) ========== */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  body {
    padding-bottom: calc(var(--bottom-nav-h) + 0.5rem);
  }

  .header-inner {
    width: min(100% - 1rem, var(--max));
    gap: 0.5rem;
  }

  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .btn-login,
  .btn-join {
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 1.4rem 0 2rem;
  }

  .hero-inner,
  .section-inner,
  .trust-bar-inner {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-copy h1 {
    font-size: 2.05rem;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .trust-inline {
    gap: 0.75rem 1rem;
  }

  .trust-inline li {
    font-size: 0.75rem;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-photo img {
    height: 360px;
    border-radius: 14px;
  }

  .join-card {
    margin-top: 1.1rem;
    padding: 1.15rem 1rem;
  }

  .how {
    padding: 2.4rem 0 1.5rem;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .step {
    padding: 0;
  }

  .step-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0.55rem;
  }

  .step-icon svg {
    width: 28px;
    height: 28px;
  }

  .step h3 {
    font-size: 0.92rem;
  }

  .step p {
    display: none;
  }

  .members {
    padding: 1.5rem 0 2.2rem;
  }

  .section-head--row h2 {
    font-size: 1.55rem;
  }

  .member-grid {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .member-card {
    flex: 0 0 58%;
    max-width: 220px;
    scroll-snap-align: start;
  }

  .trust-bar-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.75rem;
  }

  .trust-item {
    justify-content: flex-start;
    font-size: 0.82rem;
  }

  .site-footer {
    padding-bottom: 1.4rem;
  }

  .footer-links {
    font-size: 0.85rem;
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    height: var(--bottom-nav-h);
    background: rgba(249, 246, 240, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(107, 26, 26, 0.1);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--muted);
  }

  .mobile-bottom-nav a svg {
    width: 22px;
    height: 22px;
  }

  .mobile-bottom-nav a.is-active,
  .mobile-bottom-nav a:hover {
    color: var(--maroon);
  }
}

@media (max-width: 420px) {
  .trust-inline {
    flex-direction: column;
    align-items: center;
  }

  .member-card {
    flex-basis: 70%;
  }

  .footer-sep {
    display: none;
  }

  .footer-links {
    gap: 0.35rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
