/*
File: /assets/style.css
Purpose: Beejeebers Design System (MVP Phase 1 - Step 1) — Warm/Blush Target Market Direction
Author: AI + Will Haimerl
Date created: 2026-02-24
Last modified: 2026-02-24
Dependencies: None
Related files: /index.html, /assets/app.js
Security notes: N/A (CSS only)
Future upgrades: Optional font loading, dark mode, refined type scale, component variants
*/

:root{
  /* Target-market palette: warm neutrals + blush accent + premium dark anchor */
  --bg: #FFFBF8;        /* warm white */
  --soft: #FDEFF4;      /* blush wash (use sparingly as section background) */

  --text: #1B1B1B;      /* charcoal */
  --muted: #6C625B;     /* warm muted */
  --border: #EFE5DE;    /* warm line */

  --primary: #1E2A2F;        /* premium dark anchor */
  --primary-hover: #24343A;

  --accent: #F39AAE;         /* soft rose */
  --accent-hover: #E9839A;

  --danger: #B00020;
  --info: #1E5AA8;
  --success: #0F7A3B;

  --container: 1200px;
  --hero-max: 800px;

  --radius: 8px;

  /* 8px spacing system */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;

  /* Focus uses blush accent */
  --focus: 0 0 0 3px rgba(243, 154, 174, 0.22);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img{ max-width: 100%; height: auto; display: block; }

a{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a:hover{ border-bottom-color: var(--text); }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section{ padding: 80px 0; }
.section-tight{ padding: 48px 0; }

/* Optional: soft section wash (NOT a card, just a background tint) */
.section-soft{
  background: var(--soft);
}

/* Optional: slightly warm divider */
hr.sep{
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--s6) 0;
}

/* Announcement Bar (soft + giftable) */
/* Announcement Bar (almost-black, centered white text) */
.announcement{
  background: #0E0E12; /* almost black */
  color: #ffffff;
  font-size: 14px;
  padding: 10px 0;
  text-align: center;
}
.announcement a{
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.35);
}
.announcement a:hover{ border-bottom-color: #ffffff; }
/* Header */
.header{
  position: sticky;
  top: 0;
  background: rgba(255, 251, 248, 0.92); /* warm white with slight transparency */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px; /* slightly softer/taller */
}

/* Brand / Logo */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo-mark{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  user-select: none;
}
.brand-name{
  font-weight: 750;
  letter-spacing: -0.02em;
}

/* Nav (Desktop default) */
.nav{
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a{
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav a:hover{ border-bottom-color: var(--text); }

/* Mobile nav containers (Desktop default hidden) */
.nav-toggle{
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
}
.nav-toggle:focus{ outline: none; box-shadow: var(--focus); }

/* IMPORTANT: hide mobile nav by default (desktop) */
.nav-mobile{
  display: none;
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.nav-mobile a{
  display: block;
  padding: 10px 0;
  font-size: 16px;
  border-bottom: none;
}
.nav-mobile a + a{ border-top: 1px solid var(--border); }

/* Mobile behavior */
@media (max-width: 860px){
  .nav{ display: none; }
  .nav-toggle{ display: inline-flex; align-items: center; gap: 10px; }

  .nav-mobile.open{ display: block; }
}
/* Typography */
h1,h2,h3,h4,h5,h6{
  margin: 0 0 12px 0;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
}
h1{ font-size: 48px; }
h2{ font-size: 36px; }
h3{ font-size: 28px; }
h4{ font-size: 22px; }
h5{ font-size: 18px; }
h6{ font-size: 16px; }

p{ margin: 0 0 16px 0; }
.small{ font-size: 14px; color: var(--muted); }
.muted{ color: var(--muted); }

/* Kicker: softer than “corporate uppercase” */
.kicker{
  font-size: 13px;
  letter-spacing: 0.10em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Hero */
.hero{
  padding: 78px 0 54px 0;
}
.hero-inner{
  max-width: var(--hero-max);
  margin: 0 auto;
  text-align: center;
}
.hero-actions{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Grid helpers */
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
@media (max-width: 860px){
  .grid-2{ grid-template-columns: 1fr; gap: 28px; }
}

/* Minimal media placeholder (warm, not cold grey) */
.media{
  border: 1px solid var(--border);
  background: rgba(253, 239, 244, 0.55); /* soft blush hint */
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;

  border: 1px solid transparent;
  transition: transform 0.04s ease, background 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }
.btn:focus{ outline: none; box-shadow: var(--focus); }

.btn-primary{
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover{ background: var(--primary-hover); }

.btn-secondary{
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-secondary:hover{
  border-color: var(--primary-hover);
  color: var(--primary-hover);
}

.btn-accent{
  background: var(--accent);
  color: var(--text);
}
.btn-accent:hover{ background: var(--accent-hover); }

.btn-disabled,
.btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Forms */
.form{ max-width: 680px; }

.field{ margin-bottom: 18px; }

label{
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea{
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.75);
  color: var(--text);
  font-size: 16px;
}
textarea{ min-height: 120px; resize: vertical; }
select{ padding-right: 40px; }

input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.help{ font-size: 14px; color: var(--muted); margin-top: 8px; }

.inline{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.checkline{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
}
.checkline input{
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.validation{
  margin-top: 8px;
  font-size: 14px;
}

.is-error input, .is-error select, .is-error textarea{ border-color: var(--danger); }
.is-success input, .is-success select, .is-success textarea{ border-color: var(--success); }
.msg-error{ color: var(--danger); }
.msg-success{ color: var(--success); }

/* Table */
.table{
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.table th, .table td{
  text-align: left;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.table th{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 800;
}

/* Alerts (still minimal, warmer) */
.alert{
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.75);
}
.alert + .alert{ margin-top: 12px; }
.alert-success{ border-left-color: var(--success); }
.alert-error{ border-left-color: var(--danger); }
.alert-info{ border-left-color: var(--info); }

/* Simple UI blocks (no cards; just dividers + spacing) */
.block{
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
}

/* Badge / Chip (use for “NEW”, “BEST SELLER”, etc.) */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.55);
}
.badge-accent{
  border-color: rgba(243,154,174,0.55);
  background: rgba(243,154,174,0.18);
  color: var(--text);
  font-weight: 700;
}

/* Cart / Checkout Mock */
.cart{
  border-top: 1px solid var(--border);
}
.cart-row{
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.8fr 0.4fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-row strong{ font-weight: 700; }

.qty{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.qty button{
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  color: var(--text);
}
.qty button:hover{
  border-color: rgba(243,154,174,0.55);
}
.qty button:focus{ outline: none; box-shadow: var(--focus); }

.qty input{
  width: 64px;
  text-align: center;
  padding: 10px 8px;
}

.summary{
  margin-top: 24px;
  max-width: 520px;
}
.summary-line{
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.summary-total{
  font-weight: 800;
  padding-top: 14px;
  border-bottom: none;
}

/* Admin mock */
.admin-shell{
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.admin-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer (match announcement bar: almost-black + white text) */
.footer{
  background: #0E0E12; /* same as announcement bar */
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 44px 0;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
}
.footer a{
  color: rgba(255,255,255,0.86);
  border-bottom-color: transparent;
}
.footer a:hover{
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.35);
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}