/* ================================
   The Ritual Co — Contact.css (rev)
   Works with contact.html as-is
   ================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #fff9f7;
  --surface: #fff2ee;
  --ink: #1a2e25;
  --muted: #6a7b74;

  --brand: #e1a592;        /* soft terracotta-pink */
  --brand-2: #d7b5a9;      /* lighter accent */
  --brand-dark: #c08270;   /* hover */

  --ring: rgba(225,165,146,0.35);
  --border: #eaded8;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-1: 0 6px 18px rgba(26,46,37,0.06);
  --shadow-2: 0 10px 30px rgba(26,46,37,0.08);

  --maxw: 980px;
}

/* ---------- Base ---------- */
html, body {
  background: var(--bg);
  color: var(--ink);
}

.page-wrapper {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.main-content {
  width: min(var(--maxw), 92%);
  margin: 48px auto 100px;
}

h1, h2 {
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.4rem);
  margin: 0 0 6px;
}

.intro {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.65;
  margin: 0 0 28px;
}

/* ---------- Sections (optional blocks) ---------- */
.contact-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 18px 18px 16px;
  margin: 18px 0;
}

.contact-section h2 {
  font-size: 1.1rem;
  margin: 4px 0 10px;
}

.contact-section p {
  margin: 8px 0 10px;
  color: var(--ink);
}

.contact-section ul {
  margin: 6px 0 10px 18px;
  padding: 0;
}

.contact-section li {
  margin: 4px 0;
}

/* ---------- Form ---------- */
.contact-form {
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 22px 18px;
  margin-top: 18px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 2px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  transition: box-shadow .15s ease, border-color .15s ease, background-color .2s ease;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9aa6a1;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

/* Row helper if you add paired fields (topic / order #) */
.form-row {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Consent checkbox line */
.contact-form .consent-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Submit button */
.contact-form button[type="submit"],
.contact-form input[type="submit"] {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(225,165,146,0.35);
  cursor: pointer;
  transition: transform .04s ease, background-color .2s ease, box-shadow .2s ease;
}

.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
  background: var(--brand-dark);
}

.contact-form button[type="submit"]:active,
.contact-form input[type="submit"]:active {
  transform: translateY(1px);
}

.contact-form button[disabled],
.contact-form input[disabled] {
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Success / alert box (if you add one) */
#contact-success {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfff3;
  border: 1px solid #b7f0c6;
  color: #144d2a;
  font-weight: 600;
}

/* ---------- Details / FAQ ---------- */
details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 8px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  outline: none;
}

details[open] {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ---------- Contact details block ---------- */
.contact-details {
  width: 100%;
  max-width: 740px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-details a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Utilities ---------- */
a { color: var(--brand-dark); }
a:hover { opacity: 0.9; }

.hr {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 20px 0;
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
