/* Missionary Tie Company — brand: see Brand_Guidelines.docx */
:root {
  --navy: #1F3A5F;
  --ivory: #F5F1E8;
  --gold: #C9A227;
  --red: #B3282D;
  --slate: #4A5568;
  --green: #2F7D4F;
  --white: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--slate);
  background: var(--ivory);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--navy); font-weight: 600; line-height: 1.2; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
a { color: var(--navy); }
img { max-width: 100%; display: block; }
.zh { font-family: 'Noto Serif TC', serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }

/* Announcement bar */
.announce { background: var(--gold); color: var(--navy); text-align: center; padding: 8px 16px; font-weight: 600; font-size: .95rem; }
.announce a { color: var(--navy); }

/* Header */
header { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1100px; margin: 0 auto; }
.nav .logo { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 700; color: var(--ivory); text-decoration: none; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { color: var(--ivory); text-decoration: none; font-size: .95rem; }
.nav nav a:hover { color: var(--gold); }
.nav .cta { background: var(--gold); color: var(--navy); padding: 8px 16px; border-radius: 8px; font-weight: 600; }
.menu-btn { display: none; background: none; border: none; color: var(--ivory); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 800px) {
  .menu-btn { display: block; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px; gap: 14px; }
  .nav nav.open { display: flex; }
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, #2c4f7c 100%); color: var(--ivory); text-align: center; padding: 72px 20px; }
.hero h1 { color: var(--white); font-size: 2.8rem; margin-bottom: 12px; }
.hero p { max-width: 620px; margin: 0 auto 26px; color: #dfe6ee; font-size: 1.1rem; }
.hero .buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #17304f; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-outline { border-color: var(--ivory); color: var(--ivory); background: transparent; }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .hero h1 { font-size: 2rem; } }

.card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(31,58,95,.08); display: flex; flex-direction: column; }
.card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card a.cardlink { text-decoration: none; color: inherit; }
.card .price { font-weight: 700; color: var(--navy); font-size: 1.05rem; }

/* Product art placeholder (until photos are added to /img/temples/[slug].jpg) */
.art { aspect-ratio: 4/5; background: linear-gradient(160deg, var(--navy), #35597f); color: var(--ivory); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; }
.art.small { aspect-ratio: 16/9; font-size: 1.1rem; }

/* Badges & chips */
.badge { display: inline-block; font-size: .72rem; letter-spacing: .06em; font-weight: 700; padding: 3px 10px; border-radius: 4px; text-transform: uppercase; }
.badge-temple { background: var(--navy); color: var(--gold); }
.badge-conv { background: var(--ivory); color: var(--red); border: 1px solid var(--red); }
.chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.chip-stock { background: #e2f0e8; color: var(--green); }
.chip-preorder { background: #f7edd2; color: #8a6d14; }
.chip-waitlist { background: transparent; color: var(--navy); border: 1px solid var(--navy); }

/* Progress bar */
.progress { background: #e8e2d4; border-radius: 999px; height: 12px; overflow: hidden; }
.progress .fill { background: var(--gold); height: 100%; border-radius: 999px; transition: width .8s ease; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.deadline { font-size: .85rem; color: var(--slate); margin-top: 6px; }

/* Forms */
form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
label { font-weight: 600; color: var(--navy); font-size: .92rem; }
input, textarea, select { padding: 11px 12px; border: 1px solid #cfc8b8; border-radius: 8px; font: inherit; background: var(--white); width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.msg { padding: 12px 14px; border-radius: 8px; font-weight: 600; display: none; }
.msg.ok { display: block; background: #e2f0e8; color: var(--green); }
.msg.err { display: block; background: #f8e3e4; color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 400; }
.consent input { width: auto; margin-top: 4px; }

/* Sections */
.section-ivory { background: var(--ivory); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--ivory); }
.section-navy h2 { color: var(--white); }
.center { text-align: center; }
.lead { font-size: 1.12rem; max-width: 700px; }
.divider { border: none; border-top: 2px solid var(--gold); width: 64px; margin: 8px 0 20px; }

/* Review quotes */
.quote { background: var(--white); border-left: 4px solid var(--gold); padding: 16px 18px; border-radius: 0 10px 10px 0; font-style: italic; }
.quote .who { font-style: normal; font-weight: 600; color: var(--navy); margin-top: 8px; font-size: .9rem; }
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }

/* Waitlist rows */
.wl-row { background: var(--white); border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wl-row .meta { font-size: .88rem; color: var(--slate); }
.wl-form { display: none; width: 100%; padding-top: 12px; border-top: 1px solid #eee; margin-top: 8px; }
.wl-form.open { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-form input { flex: 1; min-width: 160px; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.filters button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--navy); background: transparent; color: var(--navy); font-weight: 600; cursor: pointer; }
.filters button.active { background: var(--navy); color: var(--white); }
#temple-search { max-width: 380px; }

/* Footer */
footer { background: var(--navy); color: #c8d2de; padding: 48px 20px 28px; margin-top: 48px; }
footer .cols { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr; } }
footer h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
footer a { color: #c8d2de; text-decoration: none; display: block; margin-bottom: 6px; font-size: .92rem; }
footer a:hover { color: var(--gold); }
footer .disclaimer { max-width: 1100px; margin: 28px auto 0; font-size: .78rem; color: #8fa0b5; border-top: 1px solid #35597f; padding-top: 18px; }
footer form { display: flex; gap: 8px; margin-top: 10px; }
footer input { border: none; }
