/* ============================================================
   SmartBags — common.css
   Design tokens + navbar/footer/buttons shared across every page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* colour */
  --navy-950: #050b16;
  --navy-900: #0a1626;
  --navy-800: #11213a;
  --navy-700: #1b3358;
  --navy-600: #294874;
  --gold-500: #cf9d4f;
  --gold-300: #e3c07f;
  --cream: #f6f3ec;
  --muted: #8a97ab;
  --line: rgba(207, 157, 79, 0.22);
  --danger: #d9705c;

  /* type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* layout */
  --max-w: 1240px;
  --radius-s: 4px;
  --radius-m: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

p { margin: 0 0 1em; color: var(--muted); }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950);
}
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--navy-600);
}
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-300); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 11, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-links a {
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--cream);
  border-color: var(--gold-500);
}
.nav-logo {
  display: flex;
  justify-content: center;
}
.nav-logo img { height: 40px; width: auto; }
.nav-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-300);
}
.nav-cta .dot { color: var(--muted); font-weight: 500; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-s);
  color: var(--cream);
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-inner { grid-template-columns: auto 1fr auto; padding: 14px 20px; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 14px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--navy-700); }
  .nav-toggle { display: inline-flex; order: -1; }
  .nav-cta span.nav-cta-text { display: none; }
}

/* ---------- feature icon row ---------- */
.features {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 34px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gold-300);
}
.feature-label {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.3;
}
@media (max-width: 900px) {
  .features-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .features-inner { grid-template-columns: 1fr; padding: 26px 20px; }
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
}
.footer-greeting {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 6px;
  margin-bottom: 0;
}
.footer-phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-300);
}
.footer-phone .label {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 12.5px;
  margin-bottom: 4px;
}
.footer-bottom {
  border-top: 1px solid var(--navy-800);
  text-align: center;
  padding: 18px 20px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- shared modal (buy popup, admin order detail) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 22, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 100;
}
.modal-overlay.is-open { display: flex; }
.modal-panel {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  width: 100%;
  max-width: 460px;
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--cream); }
.modal-title { font-size: 22px; margin-bottom: 4px; }
.modal-sub { font-size: 13.5px; margin-bottom: 22px; }

/* ---------- shared form field ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 14.5px;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold-500); }
.field input:disabled,
.field input[readonly] { opacity: 0.75; }
