/* ============================================================
   Ma's Donuts App — rebuilt marketing site
   Plain CSS, dependency-light. Brand palette from the Ma's
   Donuts and more logo: navy blue + wine maroon, coral accent.
   ============================================================ */

:root {
  --maroon: #7a1e3c;
  --maroon-dark: #5f1730;
  --maroon-deep: #4b1226;
  --coral: #ec7a8a;
  --coral-dark: #e35d70;
  --navy: #26357a;
  --cream: #fbf7f4;
  --ink: #221a1d;
  --muted: #6a5b60;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(75, 18, 38, 0.10);
  --radius: 16px;
  --maxw: 1160px;
  --nav-h: 76px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.15;
  color: var(--maroon);
  letter-spacing: -0.01em;
}

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(122, 30, 60, 0.10);
  box-shadow: 0 2px 14px rgba(75, 18, 38, 0.05);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a,
.nav-links .dropdown-toggle {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease;
}
.nav-links a:hover,
.nav-links .dropdown-toggle:hover { color: var(--coral-dark); }

.nav-social { display: flex; align-items: center; gap: 16px; }
.nav-social a { color: var(--maroon); display: inline-flex; transition: color 0.18s ease; }
.nav-social a:hover { color: var(--coral-dark); }
.nav-social svg { width: 22px; height: 22px; fill: currentColor; }

/* Dropdown */
.dropdown-toggle .caret { transition: transform 0.2s ease; }
.dropdown.open .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid rgba(122, 30, 60, 0.12);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.dropdown-menu a:hover { background: var(--cream); color: var(--maroon); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--maroon);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(227, 93, 112, 0.35);
}
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--maroon);
  color: var(--maroon);
  background: transparent;
}
.btn-outline:hover { background: var(--maroon); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: var(--maroon);
  overflow: hidden;
}
/* Crop frame: shows the bottom-right region of the banner, cropping 15% off
   the LEFT and 25% off the TOP (independent per edge, no distortion). The
   image is anchored bottom-right and scaled so its kept width fills the frame;
   the frame's aspect-ratio hides the requested top slice.
     kept width  = 85%  -> img width = 100 / 0.85 = 117.647%
     kept height = 75%  -> frame ratio = (0.85*2500) / (0.75*1667) = 2125 / 1250
   To retune: pick crop_left / crop_top, then
     img width  = 100 / (1 - crop_left) %
     frame ratio = (1 - crop_left)*2500 / ((1 - crop_top)*1667). */
.hero-inner {
  position: relative;
  width: 100%;      /* full-bleed: span the entire screen width */
  overflow: hidden;
  aspect-ratio: 2125 / 1250;
}
.hero-inner img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 117.647%;
  height: auto;
  max-width: none;
  display: block;
}

/* ---------- Download section ---------- */
.download {
  background: var(--cream);
  text-align: center;
  padding: 84px 0;
}
.download h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.download p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 38px;
}
.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.store-badges a { transition: transform 0.18s ease; display: block; }
.store-badges a:hover { transform: translateY(-3px); }
.store-badges img { height: 62px; width: auto; }

/* ---------- Feature blocks ---------- */
.features { padding: 90px 0 40px; }
.feature {
  max-width: 720px;
  margin: 0 auto 88px;
  text-align: center;
}
.feature-img {
  margin: 0 auto 30px;
  max-width: 420px;
}
.feature-img img { width: 100%; height: auto; margin: 0 auto; }
.feature h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.feature p {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 22px;
}
.learn-more {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--coral-dark);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.learn-more:hover { color: var(--maroon); }
.learn-more svg { width: 16px; height: 16px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--maroon);
  color: var(--white);
  text-align: center;
  padding: 70px 0;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
}
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.12rem; margin-top: 12px; }

/* ---------- How To Use ---------- */
.howto { padding: 76px 0 40px; }
.howto-intro { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.howto-intro img { max-width: 300px; margin: 0 auto 26px; }
.step {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  max-width: 860px;
  margin: 0 auto 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(122, 30, 60, 0.12);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex: 0 0 62px;
  height: 62px;
  width: 62px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 8px;
}
.step-body p { color: var(--ink); font-size: 1.05rem; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 40px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-wrap .updated {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  color: var(--coral-dark);
  margin-bottom: 34px;
}
.legal-wrap h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 32px 0 6px;
  color: var(--maroon);
}
.legal-wrap h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin: 22px 0 4px;
}
.legal-wrap p {
  color: var(--ink);
  font-size: 1.02rem;
  margin-bottom: 16px;
}
.legal-wrap a { color: var(--coral-dark); font-weight: 600; }
.legal-wrap a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-deep);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 46px 0;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 22px;
}
.footer-social a {
  color: var(--white);
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}
.footer-social a:hover { background: var(--coral); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-copy { font-size: 0.95rem; color: rgba(255,255,255,0.75); }
.footer-copy a { color: var(--white); font-weight: 600; }
.footer-copy a:hover { color: var(--coral); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-social { display: none; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 24px;
    border-bottom: 1px solid rgba(122,30,60,0.12);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform 0.28s ease;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > li { width: 100%; border-bottom: 1px solid rgba(122,30,60,0.08); }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links a, .nav-links .dropdown-toggle { padding: 16px 0; width: 100%; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 12px;
    min-width: 0;
    display: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown:hover .dropdown-menu { opacity: 1; }
  .step { gap: 18px; }
  .step-num { flex-basis: 50px; width: 50px; height: 50px; font-size: 1.3rem; }
  .store-badges img { height: 54px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .download { padding: 60px 0; }
  .features { padding: 60px 0 20px; }
  .step { flex-direction: row; }
}
