/* ============================================================
   allcalming - the calm stylesheet (dark veil edition)
   Palette: deep forest ink, sage, soft white text
   ============================================================ */

:root {
  --ink:       #10160f;
  --veil:      rgba(16, 22, 15, 0.62);
  --veil-deep: rgba(16, 22, 15, 0.82);
  --sage:      #a8c5ab;
  --sage-soft: #cfe3d1;
  --white:     #f4f6f2;
  --white-dim: rgba(244, 246, 242, 0.78);
  --shadow:    0 18px 50px rgba(0, 0, 0, 0.35);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  font-family: var(--sans);
  color: var(--white);
  background: transparent;
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Full-picture background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(16, 22, 15, 0.38) 0%,
      rgba(16, 22, 15, 0.55) 55%,
      rgba(16, 22, 15, 0.72) 100%);
}

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--veil-deep);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 197, 171, 0.22);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--sage-soft);
  text-decoration: none;
  margin-right: auto;
}

.nav a {
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.4s ease, color 0.4s ease;
  white-space: nowrap;
}

.nav a:hover, .nav a.active {
  background: rgba(168, 197, 171, 0.18);
  color: var(--sage-soft);
}

.nav .nav-auth a { color: var(--sage); font-weight: 600; }

/* ---------- Layout ---------- */

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.card {
  background: var(--veil);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 44px 48px;
  margin-bottom: 28px;
}

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.25; }

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--sage-soft); margin-bottom: 18px; }
h2 { font-size: 1.7rem; color: var(--sage-soft); margin: 30px 0 12px; }
h3 { font-size: 1.25rem; color: var(--sage); margin: 22px 0 8px; }

p { margin-bottom: 16px; }
.lead { font-size: 1.15rem; color: var(--white-dim); }

a { color: var(--sage); }
a:hover { color: var(--sage-soft); }

blockquote {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--white-dim);
  border-left: 3px solid var(--sage);
  padding-left: 20px;
  margin: 26px 0;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,197,171,0.5), transparent);
  margin: 34px 0;
}



/* ---------- Gentle fade-in ---------- */

.fade { opacity: 0; transform: translateY(14px); transition: opacity 1.4s ease, transform 1.4s ease; }
.fade.in { opacity: 1; transform: none; }

/* ---------- Breathing guide ---------- */

.breath { display: flex; flex-direction: column; align-items: center; padding: 30px 0 10px; }

.breath-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35), rgba(168,197,171,0.30));
  box-shadow: 0 0 60px rgba(168, 197, 171, 0.35);
  animation: breathe 19s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breath-circle span {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.08em;
}

@keyframes breathe {
  0%   { transform: scale(0.75); }  /* rest */
  20%  { transform: scale(1.15); }  /* in   (4s) */
  50%  { transform: scale(1.15); }  /* hold (7s) */
  80%  { transform: scale(0.75); }  /* out  (8s) */
  100% { transform: scale(0.75); }
}

.breath-label { margin-top: 18px; color: var(--white-dim); font-size: 0.95rem; min-height: 1.6em; }

/* ---------- Paths grid on Home ---------- */

.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.path {
  display: block;
  background: rgba(16, 22, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--white);
  transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}

.path:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: rgba(16, 22, 15, 0.60); }
.path strong { font-family: var(--serif); font-size: 1.25rem; color: var(--sage-soft); display: block; margin-bottom: 4px; }
.path span { font-size: 0.92rem; color: var(--white-dim); }

/* ---------- Forms ---------- */

label { display: block; margin: 18px 0 6px; color: var(--white-dim); font-size: 0.95rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(168, 197, 171, 0.35);
  border-radius: 14px;
  background: rgba(16, 22, 15, 0.55);
  font: inherit;
  color: var(--white);
  transition: border 0.4s ease, box-shadow 0.4s ease;
}

input::placeholder, textarea::placeholder { color: rgba(244, 246, 242, 0.45); }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(168, 197, 171, 0.18);
}

button, .btn {
  font: inherit;
  background: var(--sage);
  color: #10160f;
  border: none;
  border-radius: 999px;
  padding: 13px 30px;
  cursor: pointer;
  margin-top: 22px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: background 0.4s ease, transform 0.4s ease;
}

button:hover, .btn:hover { background: var(--sage-soft); transform: translateY(-2px); }

.btn-quiet {
  background: transparent;
  color: var(--sage-soft);
  border: 1px solid rgba(168, 197, 171, 0.45);
}

.hint { font-size: 0.85rem; color: var(--white-dim); }
.ok   { color: var(--sage-soft); font-size: 0.9rem; }
.warn { color: #e0a898; font-size: 0.9rem; }

/* ---------- Notices ---------- */

.notice { border-radius: 14px; padding: 16px 20px; margin-bottom: 22px; font-size: 0.95rem; }
.notice-good { background: rgba(168, 197, 171, 0.16); border: 1px solid rgba(168, 197, 171, 0.35); }
.notice-soft { background: rgba(16, 22, 15, 0.55);  border: 1px solid rgba(168, 197, 171, 0.25); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--veil-deep);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(168, 197, 171, 0.22);
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--white-dim);
  font-size: 0.88rem;
}

.site-footer a { color: var(--white-dim); text-decoration: none; margin: 0 8px; }
.site-footer a:hover { color: var(--sage-soft); }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .card { padding: 30px 24px; }
  .nav { justify-content: center; }
  .brand { width: 100%; text-align: center; }
  .nav .nav-auth { margin-left: auto; }
}

@media (max-width: 400px) {
  .nav { gap: 4px 8px; }
  .nav a { font-size: 0.85rem; padding: 5px 7px; }
}

