/* ============================================================
   Cold Ritual — Components
   Reusable visual primitives layered on colors_and_type.css
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--r-xs);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: var(--ls-button);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    background var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--cr-dark); color: var(--cr-cream); }
.btn-primary:hover { background: #2A1208; color: var(--cr-cream); opacity: 1; }

.btn-outline { background: transparent; color: var(--cr-dark); border: 1.5px solid var(--cr-dark); }
.btn-outline:hover { background: var(--cr-dark); color: var(--cr-cream); opacity: 1; }

.btn-light { background: var(--cr-cream); color: var(--cr-dark); }
.btn-light:hover { background: #fff; color: var(--cr-dark); opacity: 1; }

.btn-outline-light { background: transparent; color: var(--cr-cream); border: 1.5px solid rgba(250,246,239,0.5); }
.btn-outline-light:hover { background: rgba(250,246,239,0.1); color: var(--cr-cream); opacity: 1; }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Tea / flavour chip ---------- */
.tea-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 8px;
}
.tea-dot.peach            { background: var(--cr-peach); }
.tea-dot.strawberry       { background: var(--cr-strawberry); }
.tea-dot.strawberry-matcha{ background: var(--cr-strawberry-matcha); }
.tea-dot.lemon            { background: var(--cr-lemon); }
.tea-dot.lemon-matcha     { background: var(--cr-lemon-matcha); }
.tea-dot.lychee-butterfly { background: var(--cr-lychee); }

/* ---------- Cards ---------- */
.card {
  background: var(--cr-cream);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.card-soft {
  background: var(--cr-cream-2);
  border: none;
  border-radius: var(--r-xl);
  padding: var(--space-6);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- Image placeholders (where AI-generated photos go) ---------- */
.img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-md);
  color: var(--cr-mid);
  font-size: 12px;
  background: var(--cr-cream-3);
  position: relative;
  overflow: hidden;
}
.img-ph.peach            { background: var(--cr-peach-tint); }
.img-ph.strawberry       { background: var(--cr-strawberry-tint); }
.img-ph.strawberry-matcha{ background: var(--cr-strawberry-matcha-tint); }
.img-ph.lemon            { background: var(--cr-lemon-tint); }
.img-ph.lemon-matcha     { background: var(--cr-lemon-matcha-tint); }
.img-ph.lychee-butterfly { background: var(--cr-lychee-tint); }

/* ---------- Form fields ---------- */
.field-label {
  display: block;
  font-size: 12px;
  color: var(--cr-mid);
  margin-bottom: 7px;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.input,
input[type="text"].cr,
input[type="email"].cr,
textarea.cr {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--cr-cream);
  color: var(--cr-text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.input:focus,
input.cr:focus,
textarea.cr:focus {
  border-color: var(--cr-dark);
  box-shadow: 0 0 0 3px rgba(58, 26, 8, 0.08);
}
textarea.cr { resize: vertical; min-height: 100px; }

.input-on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cr-cream);
  border: none;
}
.input-on-dark::placeholder { color: rgba(250, 246, 239, 0.5); }

/* ---------- Star row ---------- */
.star-row {
  display: flex;
  gap: 3px;
  color: var(--star);
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

/* ---------- FAQ item ---------- */
.faq-item {
  background: var(--cr-cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 8px;
  cursor: pointer;
}
.faq-item .faq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item .faq-q { font-weight: 600; font-size: 15px; color: var(--cr-text); margin: 0; }
.faq-item .faq-a {
  font-size: 14px;
  color: var(--cr-mid);
  line-height: var(--lh-body);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease-out), margin-top var(--t-slow) var(--ease-out);
}
.faq-item.open .faq-a { max-height: 240px; margin-top: 14px; }
.faq-item .faq-chev { transition: transform var(--t-base) var(--ease-out); flex-shrink: 0; color: var(--cr-mid); }
.faq-item.open .faq-chev { transform: rotate(180deg); }

/* ---------- Step badge (How We Brew) ---------- */
.step-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cr-cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: var(--cr-dark);
  font-size: 26px;
}
.section-dark .step-badge {
  background: rgba(250, 246, 239, 0.08);
  color: var(--cr-cream);
}

/* ---------- Nav ---------- */
.cr-nav {
  background: var(--cr-cream);
  padding: 18px var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.cr-nav .nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.cr-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--cr-brown);
}
.cr-nav a:hover { color: var(--cr-dark); opacity: 1; }
.cr-nav .nav-cta {
  background: var(--cr-dark);
  color: var(--cr-cream);
  padding: 9px 18px;
  border-radius: var(--r-xs);
}
.cr-nav .nav-cta:hover { background: #2A1208; }

/* ---------- Footer ---------- */
.cr-footer {
  background: var(--cr-dark);
  color: var(--cr-cream);
  padding: 56px var(--section-pad-x) 28px;
}
.cr-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-on-dark);
}
.cr-footer .footer-link {
  display: block;
  font-size: 13px;
  color: rgba(250, 246, 239, 0.6);
  margin-bottom: 10px;
}
.cr-footer .footer-link:hover { color: var(--cr-cream); opacity: 1; }
.cr-footer .footer-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.4);
  margin-bottom: 16px;
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .grid-5, .grid-6 { grid-template-columns: 1fr 1fr; }
  .cr-nav .nav-links { display: none; }
}
