/* ============================================================
   Lady Mahjong — global styles
   Palette: ivory, jade green, warm gold, charcoal
   ============================================================ */

:root {
  --jade: #1f6b52;
  --jade-dark: #185a44;
  --jade-deep: #124a39;
  --gold: #c39a4d;
  --gold-soft: #e4cf9c;
  --ivory: #f7f3ea;
  --cream: #fbf9f3;
  --charcoal: #23211d;
  --muted: #6f6a60;
  --line: #e6dfd0;
  --shadow: 0 10px 30px rgba(35, 33, 29, 0.10);
  --radius: 14px;
  --maxw: 1180px;
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

a { color: var(--jade); text-decoration: none; }
a:hover { color: var(--jade-deep); }

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

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--jade); color: #fff; }
.btn--primary:hover { background: var(--jade-deep); color: #fff; box-shadow: var(--shadow); }

.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #b0863c; color: #fff; }

.btn--ghost { background: transparent; color: var(--charcoal); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--jade); color: var(--jade); }

.btn--block { display: block; width: 100%; text-align: center; }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .tile {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 38px;
  background: #fff;
  border: 1.5px solid var(--jade);
  border-radius: 5px;
  color: var(--jade);
  font-size: 1rem;
  box-shadow: inset 0 -3px 0 rgba(31,107,82,0.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--jade); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  padding: 6px;
  color: var(--charcoal);
}
.cart-count {
  position: absolute;
  top: -4px; right: -6px;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
}

/* ============================================================
   Image placeholder (swap for real photos later)
   ============================================================ */
.img-ph {
  background:
    repeating-linear-gradient(
      45deg,
      #d6342f,
      #d6342f 14px,
      #c62d29 14px,
      #c62d29 28px);
  color: rgba(255,255,255,0.85);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.img-ph span {
  background: rgba(0,0,0,0.18);
  padding: 4px 10px;
  border-radius: 6px;
}
.img-ph--square { aspect-ratio: 1 / 1; }
.img-ph--wide { aspect-ratio: 16 / 9; }
.img-ph--tall { aspect-ratio: 3 / 4; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(160deg, var(--ivory), #efe9db);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 80px 0;
}
.hero-copy h1 { margin-bottom: 0.35em; }
.hero-copy p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art .img-ph { aspect-ratio: 1 / 1; box-shadow: var(--shadow); }
.hero-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.trust-bar span {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-bar b { color: var(--jade); }

/* ============================================================
   Product grid + cards
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; }
.card-media .img-ph { border-radius: 0; aspect-ratio: 1 / 1; }
.card-img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); font-weight: 700; }
.card-title { font-size: 1.12rem; margin: 0; }
.card-desc { font-size: 0.9rem; color: var(--muted); margin: 0; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.card-price { font-size: 1.2rem; font-weight: 700; font-family: var(--font-head); }

/* ---------- Filters (shop) ---------- */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--charcoal);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--jade); }
.filter-chip.active { background: var(--jade); color: #fff; border-color: var(--jade); }
.shop-count { color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   Split / feature sections
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--charcoal);
}
.feature-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- Values / steps ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.value {
  text-align: center;
  padding: 30px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value .ico {
  font-size: 1.9rem;
  display: block;
  margin-bottom: 12px;
}
.value h3 { font-size: 1.15rem; }
.value p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.quote p { font-style: italic; color: var(--charcoal); margin: 0 0 14px; }
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.quote .who { font-weight: 600; font-size: 0.9rem; }
.quote .who span { color: var(--muted); font-weight: 400; }

/* ============================================================
   Bands
   ============================================================ */
.band {
  background: var(--jade);
  color: #fff;
  text-align: center;
}
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 26px; }
.band .eyebrow { color: var(--gold-soft); }

.newsletter {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.newsletter input:focus { outline: 2px solid var(--gold); }

/* ============================================================
   About page bits
   ============================================================ */
.page-hero {
  background: linear-gradient(160deg, var(--ivory), #efe9db);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 64px 0;
}
.page-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.08rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat b { font-family: var(--font-head); font-size: 2.4rem; color: var(--jade); display: block; }
.stat span { color: var(--muted); font-size: 0.92rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.team-card { text-align: center; }
.team-card .img-ph { aspect-ratio: 1/1; border-radius: 50%; margin-bottom: 14px; }
.team-img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%; margin-bottom: 14px; }
.team-card h3 { margin: 0; font-size: 1.1rem; }
.team-card span { color: var(--gold); font-size: 0.85rem; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 46px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--charcoal);
}
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--jade); }
.field textarea { min-height: 130px; resize: vertical; }

.contact-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-info h3 { margin-top: 0; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.info-item .ico { font-size: 1.3rem; }
.info-item b { display: block; font-size: 0.95rem; }
.info-item span { color: var(--muted); font-size: 0.9rem; }

.form-note {
  display: none;
  background: #eaf5ef;
  border: 1px solid #bfe0cf;
  color: var(--jade-deep);
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.form-note.show { display: block; }

.map-ph { margin-top: 40px; }
.map-ph .img-ph { aspect-ratio: 21 / 9; }
.map-img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--charcoal);
  font-family: var(--font-body);
}
.faq-q .plus { color: var(--gold); font-size: 1.3rem; transition: transform 0.2s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 20px 18px; margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ============================================================
   Cart drawer
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,33,29,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 90;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(400px, 90vw);
  background: var(--cream);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 { margin: 0; }
.cart-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 0; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line .img-ph { width: 64px; height: 64px; border-radius: 8px; aspect-ratio: 1/1; flex-shrink: 0; font-size: 0; }
.cart-line-info { flex: 1; }
.cart-line-info h4 { margin: 0 0 2px; font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; }
.cart-line-info .price { color: var(--muted); font-size: 0.88rem; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button {
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--charcoal);
}
.qty span { min-width: 20px; text-align: center; font-size: 0.9rem; }
.cart-remove { background: none; border: none; color: #b0433d; cursor: pointer; font-size: 0.8rem; margin-top: 4px; padding: 0; }
.cart-foot { padding: 20px 22px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.cart-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: #cfc9bd;
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 36px;
}
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer p { font-size: 0.9rem; color: #a49e92; max-width: 280px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #cfc9bd; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8f897d;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero-grid,
  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .hero-art { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 22px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { width: 100%; }
}
