/* Sacred Space Co. — proposed site concept. Palette derived from the brand's
   existing type (Sedan SC + Open Sans) extended with a calm sage/linen/brass system. */

:root {
  --linen: #f6f2ea;
  --linen-deep: #efe9dd;
  --cream: #fcfaf5;
  --ink: #2b2925;
  --stone: #7b7466;
  --sage: #7e8e77;
  --sage-deep: #5a6a54;
  --sage-wash: #e9ede4;
  --brass: #a98d5f;
  --line: #e3ddd0;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(43, 41, 37, 0.06);
  --shadow-lift: 0 10px 30px -12px rgba(43, 41, 37, 0.22);
  --font-display: "Sedan SC", Georgia, serif;
  --font-accent: "Sedan", Georgia, serif;
  --font-body: "Open Sans", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--linen); padding: 8px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

/* ---------- proposal ribbon ---------- */
.ribbon {
  background: var(--ink);
  color: rgba(246, 242, 234, 0.85);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.ribbon a { color: var(--linen); text-decoration: underline; text-underline-offset: 3px; }
.ribbon a:hover { color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 234, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 32px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.nav-links a:hover { border-bottom-color: var(--brass); }
.nav .btn { margin-left: 8px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}
.btn-primary { background: var(--sage-deep); color: var(--cream); }
.btn-primary:hover { background: #4d5c48; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--stone); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- shared section chrome ---------- */
section { padding: 104px 24px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 18px;
}
h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15;
  margin-bottom: 18px;
}
.section-lede { max-width: 620px; color: var(--stone); font-size: 18px; margin-bottom: 56px; }

/* ---------- hero ---------- */
.hero {
  padding-top: 72px; padding-bottom: 88px;
  overflow: hidden;
}
.hero-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center;
}
.hero-headline {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.08; margin-bottom: 24px;
}
.hero-headline .w { display: inline-block; }
.hero-sub {
  font-size: 19px; color: var(--stone); max-width: 480px; margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { font-size: 14px; color: var(--stone); letter-spacing: 0.02em; }
.hero-trust .dot { color: var(--brass); }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; display: block; }
.js #shelfScene { opacity: 0; }
#shelfScene .item { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .js #shelfScene { opacity: 1; } }
.replay {
  position: absolute; right: 6px; bottom: -6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  color: var(--stone); padding: 8px 10px; border-radius: var(--radius);
  transition: color 0.2s ease;
}
.replay:hover { color: var(--sage-deep); }

@media (max-width: 900px) {
  .hero { padding-top: 48px; padding-bottom: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
}

/* ---------- gallery ---------- */
.gallery { padding-top: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-grid figure { margin: 0; }
.g-wide { grid-column: 1 / -1; }
.g-wide img { aspect-ratio: 21 / 9; object-fit: cover; }
.gallery-grid img {
  width: 100%; border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4; object-fit: cover;
  box-shadow: var(--shadow);
}
.gallery-grid figcaption {
  font-family: var(--font-accent); font-style: italic;
  font-size: 15px; color: var(--stone); padding: 12px 4px 0;
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g-wide img { aspect-ratio: 16 / 9; }
}

/* ---------- feel band ---------- */
.feel { background: var(--sage-wash); }
.feel-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.breath { width: 108px; height: 108px; margin: 0 auto 34px; }
.breath circle { transform-origin: 50% 50%; }
.feel h2 { margin-bottom: 20px; }
.feel p { color: var(--stone); font-size: 18px; max-width: 620px; margin: 0 auto 14px; }
.feel .science {
  font-size: 14.5px; margin-top: 26px; color: var(--stone);
}
.feel .science a { color: var(--sage-deep); }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.svc svg { width: 30px; height: 30px; margin-bottom: 18px; stroke: var(--brass); }
.svc h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin-bottom: 8px; }
.svc p { font-size: 15.5px; color: var(--stone); }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.process { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-track { position: relative; margin-top: 64px; }
.process-line {
  position: absolute; top: 27px; left: 6%; width: 88%; height: 2px;
  overflow: visible;
}
.process-line path { stroke: var(--brass); stroke-width: 2; fill: none; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--linen); border: 1.5px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; color: var(--sage-deep);
  margin-bottom: 20px; position: relative; z-index: 1;
}
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--stone); }
.process-cta {
  margin-top: 64px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.process-cta p { font-family: var(--font-accent); font-style: italic; font-size: 19px; color: var(--stone); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .process-line { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.badge {
  display: inline-block; background: var(--sage-wash); color: var(--sage-deep);
  border: 1px solid var(--sage); border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 16px; margin-bottom: 22px;
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow); position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.price-card.featured { border-color: var(--sage-deep); border-width: 2px; }
.pill {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--sage-deep); color: var(--cream); border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; white-space: nowrap;
}
.price-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; margin-bottom: 4px; }
.price-card .tagline { font-size: 14.5px; color: var(--stone); margin-bottom: 20px; }
.price {
  font-family: var(--font-display); font-size: 40px; line-height: 1; margin-bottom: 4px;
}
.price .from { font-size: 16px; color: var(--stone); font-family: var(--font-body); font-weight: 500; }
.price-was { font-size: 14px; color: var(--stone); margin-bottom: 20px; }
.price-was s { opacity: 0.75; }
.price-card ul { list-style: none; margin: 0 0 26px; flex: 1; }
.price-card li {
  font-size: 15px; color: var(--ink); padding: 7px 0 7px 26px; position: relative;
}
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
}
.pricing-notes {
  margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 15px; color: var(--stone);
}
.pricing-notes strong { color: var(--ink); }
.pricing-foot { margin-top: 26px; font-size: 13.5px; color: var(--stone); }
.pricing-foot a { color: var(--sage-deep); }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- about ---------- */
.about { background: var(--linen-deep); }
.about-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.avatars { display: flex; gap: 18px; justify-content: center; margin-bottom: 30px; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--sage-wash); border: 1.5px solid var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 30px; color: var(--sage-deep);
}
.about p { color: var(--stone); font-size: 17.5px; margin-bottom: 14px; }
.about .draft-note { font-size: 13.5px; font-style: italic; font-family: var(--font-accent); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start;
}
.contact-copy .detail-img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 30px;
}
.reassure {
  font-family: var(--font-accent); font-style: italic;
  font-size: 18px; color: var(--sage-deep); margin-bottom: 22px;
}
.reach-cards { display: grid; gap: 12px; margin-top: 26px; }
.reach {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; font-size: 15px;
}
.reach .who { font-weight: 600; }
.reach .links { display: flex; gap: 14px; }
.reach a { color: var(--sage-deep); font-weight: 600; text-decoration: none; }
.reach a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.field { display: block; margin-bottom: 18px; }
.field span {
  display: block; font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 7px; color: var(--ink);
}
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15.5px; color: var(--ink);
  background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(126, 142, 119, 0.18);
}
.field textarea { min-height: 110px; resize: vertical; }
.chips-label { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label {
  display: inline-block; cursor: pointer;
  font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  background: var(--linen); border: 1px solid var(--line);
  transition: all 0.18s ease;
}
.chip input:checked + label {
  background: var(--sage-deep); border-color: var(--sage-deep); color: var(--cream);
}
.chip input:focus-visible + label { box-shadow: 0 0 0 3px rgba(126, 142, 119, 0.35); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 13.5px; color: var(--stone); }
.form-status { margin-top: 14px; font-size: 14.5px; color: #a4533d; min-height: 1.4em; }

.form-success { text-align: center; padding: 28px 8px; }
.form-success svg { width: 74px; height: 74px; margin: 0 auto 20px; display: block; }
.form-success h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin-bottom: 10px; }
.form-success p { color: var(--stone); font-size: 16px; }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
footer {
  background: var(--ink); color: rgba(246, 242, 234, 0.72);
  padding: 56px 24px 40px; font-size: 14.5px;
}
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.footer-wordmark { font-family: var(--font-display); font-size: 20px; color: var(--linen); }
.footer-area { margin-top: 8px; max-width: 380px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--linen); text-decoration: none; border-bottom: 1px solid rgba(246,242,234,0.3); padding-bottom: 1px; }
.footer-links a:hover { border-bottom-color: var(--linen); }
.footer-legal {
  border-top: 1px solid rgba(246, 242, 234, 0.14); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- animation states ---------- */
/* Reveal targets start visible; the .js class (set inline in <head>) hides them
   so a JS failure never blanks the page. */
.js .reveal, .js .reveal-item { opacity: 0; }
.js .hero-headline .w, .js .hero-sub, .js .hero-ctas, .js .hero-trust, .js .hero .eyebrow { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-item,
  .js .hero-headline .w, .js .hero-sub, .js .hero-ctas, .js .hero-trust, .js .hero .eyebrow { opacity: 1; }
  .btn, .svc, .price-card { transition: none; }
}
