/* ==========================================================================
   Mom's House Creatives — landing page
   Design tokens per "Mom's House Brand Guide v1.0"
   ========================================================================== */

:root {
  --pink: #E6407D;
  --pink-dark: #C22F65;
  --blue: #2E82C7;
  --blue-dark: #24689E;
  --white: #FFFFFF;
  --navy: #22303D;
  --blush: #FBD1E0;
  --blush-soft: #FDF0F5;
  --blue-tint: #EAF3FB;
  --border: #E4E9ED;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --max-width: 1160px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 32px rgba(34, 48, 61, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--pink); text-decoration: none; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

@media (max-width: 720px) {
  section { padding: 56px 0; }
}

.section-white { background: var(--white); }
.section-blush { background: var(--blush-soft); }
.section-blue-tint {
  background: linear-gradient(180deg, var(--blue-tint) 0%, var(--blue-tint) 55%, var(--white) 100%);
}
.section-blue { background: var(--blue); color: var(--white); }
.section-blue h2, .section-blue h3 { color: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}
.section-blue .eyebrow,
.section-navy .eyebrow { color: var(--blush); }

.lede {
  font-size: 1.15rem;
  color: #4C5A67;
  max-width: 640px;
}
.section-blue .lede,
.section-navy .lede { color: #D9E6F2; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--pink);
  color: var(--white);
}
.btn-primary:hover { background: var(--pink-dark); }

.btn-secondary {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-secondary:hover { background: var(--blue-tint); }

.btn-outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-lockup img { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pink);
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  position: relative;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--pink);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--pink); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 76px 0 88px; }
.hero-center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-center .lede { margin: 0 auto 1em; }
.hero-center .btn-row { justify-content: center; }

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card-eyebrow {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
  display: block;
}

.section-intro { max-width: 640px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Package cards ---------- */

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--pink);
}
.service-card--featured {
  border: 2px solid var(--pink);
  position: relative;
}
.service-card--featured::before {
  content: "Next Step";
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--pink);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.service-card h3 { margin-bottom: 18px; }
.service-card .best-for {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--blue-dark);
  font-weight: 700;
}

.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promise-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.22s ease;
}
.promise-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--pink-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.22s ease, background-color 0.22s ease;
}
.promise-list li:hover { transform: translateX(4px); }
.promise-list li small { display: block; font-weight: 500; color: #4C5A67; }

/* ---------- Sample website previews: sticky stacked cards ---------- */

.stack {
  position: relative;
  max-width: 960px;
  margin: 48px auto 0;
}

.stack-card-wrap {
  position: sticky;
  padding-bottom: 120px;
}
.stack-card-wrap:nth-child(1) { top: 96px; z-index: 1; }
.stack-card-wrap:nth-child(2) { top: 122px; z-index: 2; }
.stack-card-wrap:nth-child(3) { top: 148px; z-index: 3; }
.stack-card-wrap:nth-child(4) { top: 174px; z-index: 4; }

.stack-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px rgba(20, 28, 36, 0.32);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.stack-card:hover { transform: translateY(-4px); }

.stack-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 0 6px;
}
.stack-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.stack-meta { flex: 1; min-width: 0; }
.stack-tag {
  display: block;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 3px;
}
.stack-meta h3 { color: var(--white); margin: 0; font-size: 1.15rem; }
.stack-badge {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.stack-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.stack-preview {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}
.stack-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #EEF1F3;
  border-bottom: 1px solid var(--border);
}
.stack-preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D7DEE4;
  flex-shrink: 0;
}
.stack-preview-url {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  margin-left: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #6B7885;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stack-preview-viewport { height: 460px; }
.stack-preview-viewport iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 600px) {
  .stack-card-top { flex-wrap: wrap; }
  .stack-badge { margin-left: 56px; }
  .stack-preview-viewport { height: 240px; }
  .stack-card-wrap { padding-bottom: 80px; }
}

/* ---------- CTA banner ---------- */

.cta-banner { text-align: center; }
.cta-banner h2 { max-width: 680px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-row { justify-content: center; }

/* ---------- Contact form ---------- */

.form-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  max-width: 560px;
  margin: 48px auto 0;
}
@media (max-width: 600px) { .form-shell { padding: 26px; } }

.text-field { margin-bottom: 20px; }
.text-field label {
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
}
.text-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  font-family: var(--font-body);
  font-size: 16px;
}
.text-field input:focus { outline: none; border-color: var(--blue); }

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
@media (max-width: 520px) { .option-grid { grid-template-columns: 1fr; } }

.option-pill { display: block; position: relative; }
.option-pill input { position: absolute; opacity: 0; }
.option-pill span {
  display: block;
  text-align: center;
  padding: 13px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-pill input:checked + span {
  border-color: var(--pink);
  background: var(--blush-soft);
  color: var(--pink-dark);
}

.form-shell .btn { width: 100%; }

.confirmation { display: none; text-align: center; }
.confirmation.active { display: block; }
.confirmation .check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--pink);
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #C7D2DA;
  padding: 48px 0 28px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-brand img { width: 28px; height: 28px; }
.footer-brand span {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-tagline { color: #9FADB8; margin-bottom: 0; font-size: 14px; }

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-1.is-visible { transition-delay: 0.08s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
