/* =============================================================================
   STYLES  —  brand colors live in :root below (easy to recolor).
   ============================================================================= */
:root {
  --bg:        #ffffff;
  --bg-soft:   #f6f7f9;
  --ink:       #14181d;
  --muted:     #5b6470;
  --line:      #e6e9ee;
  --brand:     #16181d;   /* refined near-black accent — change to rebrand */
  --brand-ink: #000000;
  --accent:    #b88a3e;   /* subtle gold, used sparingly */
  --radius:    16px;
  --shadow:    0 10px 30px rgba(20,24,29,.08);
  --max:       1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }

section { padding: 72px 0; }
.section-head { max-width: 620px; margin: 0 auto 42px; text-align: center; }
.section-head p { color: var(--muted); margin-top: 10px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--brand);
}

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .12s ease, background .2s ease; font-size: .98rem;
}
.btn:hover { background: var(--brand-ink); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { background: #f0f0f0; }

/* ---- announcement + nav --------------------------------------------------- */
.announce {
  background: var(--ink); color: #fff; text-align: center;
  font-size: .82rem; padding: 9px 16px; letter-spacing: .01em;
}
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
       backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 14px 22px;
             display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { font-weight: 600; font-size: 1.2rem; letter-spacing: 0.34em; text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }

/* ---- hero banner (brand artwork image) ------------------------------------ */
.hero-banner { padding: 22px 0 0; }
.hero-banner img {
  width: 100%; height: auto; display: block;
  border-radius: 20px; box-shadow: var(--shadow);
}
.hero-intro { padding: 38px 0 10px; text-align: center; }
.hero-intro .lead { max-width: 640px; margin: 14px auto 24px; }
.hero-intro .hero-actions { justify-content: center; }
.hero-intro .hero-points { justify-content: center; margin-top: 28px; }

/* ---- hero (legacy two-column, used by other layouts) ---------------------- */
.hero { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center;
  padding: 84px 0;
}
.hero h1 { margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-points div { font-size: .9rem; }
.hero-points strong { display: block; font-size: 1.4rem; color: var(--brand); }
.hero-visual {
  aspect-ratio: 4/5; border-radius: 28px; box-shadow: var(--shadow);
  background: var(--bg-soft);
  position: relative; overflow: hidden;
}
.hero-visual svg { width: 100%; height: 100%; display: block; }

/* ---- feature strip -------------------------------------------------------- */
.features { background: var(--bg-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.feature .ico { font-size: 1.7rem; }
.feature h4 { margin: 12px 0 6px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---- product grid --------------------------------------------------------- */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.grid.featured { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; background: #fff; aspect-ratio: 4/5; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(11,15,20,.72); color: #fff; backdrop-filter: blur(6px);
  font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  padding: 5px 11px; border-radius: 999px;
}
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 1.05rem; }
.card-desc { color: var(--muted); font-size: .88rem; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.capacity { font-size: .82rem; color: var(--muted); background: var(--bg-soft);
            padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.price { font-weight: 800; font-size: 1.15rem; }
.old-price { color: var(--muted); text-decoration: line-through; font-weight: 500;
             font-size: .9rem; margin-right: 8px; }
.btn-buy { width: 100%; margin-top: 4px; }

/* ---- CTA banner ----------------------------------------------------------- */
.cta {
  background: linear-gradient(140deg, var(--brand), var(--brand-ink));
  color: #fff; border-radius: 24px; padding: 56px; text-align: center;
  margin: 0 22px;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); max-width: 520px; margin: 12px auto 26px; }

/* ---- generic page content ------------------------------------------------- */
.page-hero { background: var(--bg-soft); padding: 64px 0; text-align: center; }
.prose { max-width: 720px; margin: 0 auto; }
.prose p { color: var(--muted); margin: 16px 0; }
.prose h2 { margin-top: 36px; }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 40px; }
.stat { text-align: center; background: var(--bg-soft); border-radius: var(--radius); padding: 26px; }
.stat strong { display: block; font-size: 2rem; color: var(--brand); }

/* ---- about: split image/text sections ------------------------------------ */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split-img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); display: block; }
.split-text .eyebrow { display: block; margin-bottom: 10px; }
.split-text h2 { margin-bottom: 14px; }
.split-text p { color: var(--muted); margin-bottom: 14px; }

/* ---- about: founders ------------------------------------------------------ */
.founders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.founder {
  text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 18px; transition: transform .15s, box-shadow .2s;
}
.founder:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.founder-avatar {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.7rem; color: #fff;
  background: linear-gradient(145deg, var(--c, var(--brand)), #0b0f14);
}
.founder-photo {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  object-position: 50% 28%;   /* favour the face on portrait shots */
  margin: 0 auto 14px; display: block;
  border: 3px solid #fff; box-shadow: var(--shadow);
}
.founder h4 { font-size: 1.12rem; }
.founder .role { color: var(--brand); font-size: .76rem; font-weight: 700;
                 text-transform: uppercase; letter-spacing: .08em; }
.founder p { color: var(--muted); font-size: .9rem; margin-top: 10px; }

/* ---- careers -------------------------------------------------------------- */
.job {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 14px; background: #fff;
}
.job:hover { box-shadow: var(--shadow); }
.job-meta { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ---- contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; font: inherit; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.info-row { display: flex; gap: 12px; margin-bottom: 18px; }
.info-row .ico { font-size: 1.3rem; }

/* ---- footer --------------------------------------------------------------- */
.footer { background: var(--ink); color: #cfd6df; padding: 56px 22px 28px; }
.footer-grid {
  max-width: var(--max); margin: 0 auto; display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px;
}
.footer .logo { color: #fff; margin-bottom: 8px; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: .95rem; }
.footer a { display: block; color: #aeb7c2; margin-bottom: 8px; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer .muted { color: #8b95a1; }
.footer-social a { display: inline-block; margin-right: 14px; }
.footer-bottom {
  max-width: var(--max); margin: 36px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---- buy popup ------------------------------------------------------------ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,15,20,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 22px; width: 100%; max-width: 430px;
  padding: 26px; box-shadow: 0 24px 60px rgba(11,15,20,.28);
  max-height: 92vh; overflow: auto; position: relative;
  transform: translateY(10px) scale(.98); transition: transform .2s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0;
  font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.modal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; padding-right: 28px; }
.modal-thumb { width: 66px; height: 66px; border-radius: 14px; object-fit: contain;
               background: var(--bg-soft); flex: none; }
.modal-title { font-size: 1.08rem; font-weight: 700; line-height: 1.25; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; font-weight: 600; }
.qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty-stepper button { width: 40px; height: 40px; background: #fff; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty-stepper button:hover { background: var(--bg-soft); }
.qty-stepper span { min-width: 40px; text-align: center; font-weight: 700; }
.promo-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input {
  flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; text-transform: uppercase; letter-spacing: .06em;
}
.promo-row input:focus { outline: none; border-color: var(--brand); }
.promo-row .btn-sm { padding: 0 18px; }
.promo-msg { font-size: .82rem; min-height: 20px; margin-top: 8px; }
.promo-msg.ok  { color: var(--brand); font-weight: 600; }
.promo-msg.err { color: #c0392b; }
.summary { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; }
.summary-row { display: flex; justify-content: space-between; margin: 8px 0; color: var(--muted); }
.summary-total { color: var(--ink); font-weight: 800; font-size: 1.2rem; margin-top: 12px; }
#m-pay { width: 100%; margin-top: 18px; }
#m-note { margin-top: 12px; }

/* ---- mobile sticky CTA (shown only on small screens) ---------------------- */
.mobile-cta { display: none; }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 56px; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; aspect-ratio: 16/11; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .grid, .grid.featured { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; gap: 22px; }
  .about-split.alt .split-text { order: -1; }   /* text above image on mobile */
  .founders { grid-template-columns: repeat(2, 1fr); }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 8px 22px 18px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 1.05rem; }
  .burger { display: block; }
  .nav-cta .btn-sm { display: none; }   /* sticky bar covers the CTA on mobile */
  .cta { padding: 40px 22px; }
  section { padding: 52px 0; }

  /* sticky bottom buy bar */
  .mobile-cta {
    display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    background: var(--brand); color: #fff; text-align: center; font-weight: 700;
    padding: 16px; border-radius: 14px; box-shadow: 0 8px 24px rgba(14,124,102,.4);
  }
  .mobile-cta:active { background: var(--brand-ink); }
  body { padding-bottom: 76px; }   /* room so the bar never hides content */
}
@media (max-width: 430px) {
  .feature-grid, .footer-grid, .founders { grid-template-columns: 1fr; }
  /* keep products 2-up on phones — reads like a real mobile shop */
  .card-title { font-size: .98rem; }
  .card-body { padding: 14px; }
  h1 { font-size: 2.1rem; }
  /* stack capacity + price so a sale price never gets clipped in a narrow card */
  .card-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .price { font-size: 1.1rem; }
}
