/* =================================================================
   BedoyaBuys — stylesheet
   Edit the variables below to rebrand the whole site at once.
   ================================================================= */

:root {
  /* ---- BRAND COLORS (change these to match your brand) ---- */
  --ink:        #14131f;   /* near-black text / dark sections   */
  --ink-soft:   #3a3850;   /* secondary text                    */
  --accent:     #ff5a3c;   /* primary brand accent (coral)      */
  --accent-2:   #ff8a5b;   /* gradient partner                  */
  --accent-deep:#e0421f;   /* hover state                       */
  --bg:         #ffffff;   /* page background                   */
  --bg-alt:     #f6f5fb;   /* alternating section background     */
  --line:       #e7e5f0;   /* borders / dividers                */
  --white:      #ffffff;

  /* ---- TYPE ---- */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* ---- LAYOUT ---- */
  --maxw: 1140px;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(20, 19, 31, 0.25);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- LAYOUT HELPERS ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 1rem; padding: 14px 28px; border-radius: 999px;
  cursor: pointer; border: 2px solid transparent; transition: all .2s ease;
}
.btn--primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: var(--white); box-shadow: 0 10px 24px -10px var(--accent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: all .3s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -12px rgba(20,19,31,.3); padding: 12px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo {
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: -.5px;
}
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-weight: 500; font-size: .98rem; transition: color .2s; }
.nav__links a:hover { color: var(--accent); }
.nav__cta {
  background: var(--ink); color: var(--white) !important; padding: 10px 22px;
  border-radius: 999px; font-weight: 600;
}
.nav__cta:hover { background: var(--accent); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- HERO ---------- */
.hero {
  padding: 160px 0 90px;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(255,90,60,.12), transparent 60%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__eyebrow {
  font-family: var(--font-head); font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 2px; font-size: .82rem; margin-bottom: 14px;
}
.hero__title {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.08; letter-spacing: -1px; margin-bottom: 22px;
}
.hero__sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--ink); }
.stat span { font-size: .9rem; color: var(--ink-soft); }

.hero__photo, .about__photo {
  border-radius: var(--radius); box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--bg-alt), #ece9f7);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--ink-soft); font-family: var(--font-head); font-weight: 600;
  border: 1px dashed var(--line);
}
.hero__photo { aspect-ratio: 4/5; }
.hero__photo small, .about__photo small { font-family: var(--font-body); font-weight: 400; opacity: .7; }

/* Real photos (replace the dashed placeholders) */
.hero__photo--img, .about__photo--img {
  width: 100%; height: 100%; object-fit: cover; border: 0;
  aspect-ratio: 4/5; padding: 0;
}
.about__photo--img { aspect-ratio: 4/5; max-height: 560px; }

/* ---------- TRUST BAR ---------- */
.trustbar { background: var(--ink); color: var(--white); padding: 22px 0; }
.trustbar__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trustbar span { font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; opacity: .6; }
.trustbar ul { display: flex; gap: 28px; flex-wrap: wrap; }
.trustbar li { font-family: var(--font-head); font-weight: 600; opacity: .9; }

/* ---------- SECTION HEADERS ---------- */
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__eyebrow {
  font-family: var(--font-head); font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 2px; font-size: .82rem; margin-bottom: 12px;
}
.section__eyebrow--light { color: var(--accent-2); }
.section__title {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15; letter-spacing: -.5px; margin-bottom: 14px;
}
.section__lead { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about__photo { aspect-ratio: 1/1; }
.about__content p { color: var(--ink-soft); margin-bottom: 16px; }
.about__list { margin-top: 22px; display: grid; gap: 12px; }
.about__list li { position: relative; padding-left: 30px; font-weight: 500; }
.about__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* ---------- STATS GRID ---------- */
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.statcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 24px; text-align: center; transition: transform .25s ease, box-shadow .25s ease;
}
.statcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.statcard strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.statcard span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- VIDEO SAMPLES (iPhone mockups by category) ---------- */
.catgroup { margin-bottom: 64px; text-align: center; }
.catgroup:last-child { margin-bottom: 0; }
.catgroup__title {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 1.35rem; color: var(--white);
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  padding: 12px 34px; border-radius: 999px; margin: 0 auto 40px;
  box-shadow: 0 10px 24px -12px var(--accent);
}
.phones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }

.phone { text-align: center; }
.phone__frame {
  display: block; position: relative; padding: 7px;
  background: linear-gradient(150deg, #34323f, #14131f 70%);
  border-radius: 30px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,.05);
  transition: transform .28s ease, box-shadow .28s ease;
}
.phone:hover .phone__frame {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px -20px rgba(20,19,31,.5), inset 0 0 0 2px rgba(255,255,255,.08);
}
/* side buttons */
.phone__frame::before, .phone__frame::after {
  content: ""; position: absolute; left: -2px; width: 2px; border-radius: 2px;
  background: #2a2935;
}
.phone__frame::before { top: 92px; height: 26px; }
.phone__frame::after  { top: 128px; height: 42px; box-shadow: 0 54px 0 #2a2935; }
.phone__screen {
  width: 100%; aspect-ratio: 9/16; object-fit: cover;
  border-radius: 24px; display: block; background: #000;
}
/* Empty state for videos not yet added */
.phone__screen--empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(160deg, #2a2935, #14131f);
  color: rgba(255,255,255,.5); font-family: var(--font-body); font-size: .78rem;
  padding: 16px;
}
.phone__screen--empty span { display: block; }
.phone__screen--empty strong { display: block; font-size: 1.6rem; color: rgba(255,255,255,.4); margin-bottom: 6px; font-weight: 400; }
.phone__island {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 32%; max-width: 62px; height: 16px; background: #000;
  border-radius: 999px; z-index: 2;
}
/* Play badge — visual affordance; the whole frame is the link to the storefront */
.phone__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 3; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(20, 19, 31, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: .9; pointer-events: none;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.phone__play::before {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.phone__frame:hover .phone__play { opacity: 1; background: var(--accent); transform: translate(-50%, -50%) scale(1.1); }
.phone figcaption {
  margin-top: 16px; font-family: var(--font-head); font-weight: 600;
  font-size: .92rem; color: var(--ink); line-height: 1.3;
}

/* ---------- BRANDS ---------- */
/* Moving logo carousel */
.marquee {
  overflow: hidden; width: 100%; padding: 8px 0; margin-bottom: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 64px; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.logo img {
  height: 44px; width: auto; max-width: 170px; object-fit: contain;
  opacity: .55; filter: grayscale(100%);
  transition: opacity .25s ease, filter .25s ease;
}
.logo img:hover { opacity: 1; filter: grayscale(0); }
/* Square logos carry baked-in whitespace — size up so they read as large as the wide ones */
.logo img[src*="ninja"], .logo img[src*="bobandbrad"] { height: 68px; max-width: 90px; }

.brands__more {
  text-align: center; color: var(--ink-soft); font-family: var(--font-head);
  font-weight: 600; margin: 24px 0 18px;
}
.brands {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 880px; margin: 0 auto;
}
.brands li {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 24px; transition: border-color .2s, color .2s, transform .2s;
}
.brands li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- SHOP ---------- */
.shop { background: var(--ink); color: var(--white); text-align: center; }
.shop .section__title { color: var(--white); }
.shop p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 28px; }
.shop__content { max-width: 640px; margin: 0 auto; }

/* ---------- CONTACT FORM ---------- */
.contact { max-width: 720px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.form input, .form textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form button { justify-self: start; margin-top: 6px; }
.contact__alt { text-align: center; margin-top: 24px; color: var(--ink-soft); }
.contact__alt a { color: var(--accent); font-weight: 600; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--white); padding: 48px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer__social { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.social {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: var(--white);
  transition: background .2s ease, transform .2s ease;
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social:hover {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  transform: translateY(-3px);
}
.about__social { margin-top: 32px; width: 100%; }
.about__social .social {
  background: var(--ink);
  color: var(--white);
  border: none;
}
.about__social .social:hover {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
}
.footer__copy { font-size: .85rem; opacity: .55; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
  .phones { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 900px) {
  .hero__inner, .about { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 380px; }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 130px 0 70px; }

  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(75%, 320px);
    background: var(--white); flex-direction: column; align-items: flex-start;
    justify-content: center; padding: 40px; gap: 26px;
    transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -10px 0 40px -20px rgba(0,0,0,.4);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__toggle { display: flex; z-index: 101; }
  .nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 540px) {
  .phones { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .statgrid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: 26px; }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Reveal-on-scroll (toggled by JS) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
