/* ============================================================
   Balance Collective — styles
   Palette: sage / cream / tan / brown
   Type: Cormorant Garamond (display) + Jost (body)
   ============================================================ */

:root {
  --sage:        #A8BFA0;
  --sage-deep:   #8FAA89;
  --cream:       #F4F0E7;
  --cream-soft:  #ECE6D8;
  --tan:         #C4A57B;
  --brown:       #6E5238;
  --brown-soft:  #8C7459;
  --ink:         #3E2F22;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --maxw-narrow: 760px;
  --gap: clamp(1rem, 2vw, 1.75rem);
  --section-py: clamp(4.5rem, 9vw, 8rem);

  --radius: 2px;
  --shadow-soft: 0 8px 30px rgba(110, 82, 56, 0.07);
}

/* --- reset --- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--brown); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sage-deep); }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}
.container.narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; }

/* --- header / nav --- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1rem 0;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.is-scrolled {
  background: rgba(244, 240, 231, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  padding: 0.6rem 0;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  transition: color .3s ease;
}
.site-header.is-scrolled .brand { color: var(--brown); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Hide the brand mark for now — text-only nav */
.brand-logo {
  display: none;
}

.logo-mark {
  width: 42px;
  height: 19px;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: center;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color .3s ease, opacity .2s ease;
}
.site-header.is-scrolled .nav-links a { color: var(--brown); }
.nav-links a:hover { opacity: 0.7; }
.nav-cta {
  border: 1px solid currentColor;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--cream);
  transition: background .3s ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--brown); }

/* --- hero --- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--sage);
  color: var(--cream);
  padding: clamp(7rem, 12vw, 10rem) 1.25rem 6rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(110, 82, 56, 0.08) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 720px;
}
.hero-mark {
  color: var(--cream);
  display: inline-block;
  margin-bottom: 1.75rem;
}
.hero-mark .logo-mark { width: 78px; height: 36px; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 0.4rem;
}
.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--cream);
  letter-spacing: 0.04em;
  margin: 0 0 2rem;
  opacity: 0.95;
}
.hero-sub {
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: var(--cream);
  opacity: 0.92;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: rgba(244, 240, 231, 0.4);
  overflow: hidden;
}
.hero-scroll span {
  display: block;
  width: 100%;
  height: 50%;
  background: var(--cream);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* --- buttons --- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  transition: background .25s ease, color .25s ease, transform .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn-light {
  background: var(--cream);
  color: var(--brown);
  border-color: var(--cream);
}
.btn-light:hover { background: transparent; color: var(--cream); border-color: var(--cream); }

.btn-cream {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-cream:hover { background: var(--cream); color: var(--sage-deep); }

/* --- sections --- */

.section {
  padding: var(--section-py) 0;
}
.section-cream { background: var(--cream); }
.section-soft  { background: var(--cream-soft); }
.section-sage  { background: var(--sage); color: var(--cream); }

.section-head {
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-head.center { text-align: center; }
.section-head:not(.center) { text-align: left; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--tan);
  margin: 0 0 1rem;
}
.eyebrow-light { color: rgba(244, 240, 231, 0.85); }

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}
.section-title-light { color: var(--cream); }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--brown-soft);
  max-width: 640px;
}
.lede-light { color: rgba(244, 240, 231, 0.92); margin-left: auto; margin-right: auto; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* --- pillars --- */

.pillars {
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(110, 82, 56, 0.15);
  border-bottom: 1px solid rgba(110, 82, 56, 0.15);
}
.pillars li {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  color: var(--brown);
}

/* --- offerings grid (locked 3x2 on desktop, even cards) --- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.offer-card {
  background: var(--cream);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(110, 82, 56, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.offer-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--brown);
}
.offer-card p {
  color: var(--brown-soft);
  font-size: 0.98rem;
  margin: 0;
}
.offer-card-quiet {
  display: grid;
  place-items: center;
  text-align: center;
}
.offer-quiet-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--brown);
  margin: 0;
  line-height: 1.4;
}

/* --- about --- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-photo {
  max-width: 260px;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.about-copy p { color: var(--brown-soft); }
.about-copy p + p { margin-top: 0.75rem; }
.about-sign {
  margin-top: 1.5rem !important;
  font-family: var(--serif);
  font-style: italic;
  color: var(--brown);
}

/* --- gallery carousel --- */

.gallery-carousel {
  position: relative;
  margin-bottom: 2.5rem;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--cream-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide img {
  width: 75%;
  height: 75%;
  object-fit: cover;
  display: block;

  
}
.carousel-placeholder {
  width: 100%;
  height: 100%;
  background: var(--tan);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}
.carousel-slide:nth-child(2) .carousel-placeholder { background: var(--sage-deep); }
.carousel-slide:nth-child(3) .carousel-placeholder { background: var(--brown-soft); }
.carousel-slide:nth-child(4) .carousel-placeholder { background: var(--sage); }
.carousel-slide:nth-child(5) .carousel-placeholder { background: var(--tan); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(244, 240, 231, 0.9);
  color: var(--brown);
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
  z-index: 2;
  box-shadow: var(--shadow-soft);
}
.carousel-arrow:hover {
  background: var(--cream);
  transform: translateY(-50%) scale(1.06);
}
.carousel-arrow[disabled] { opacity: 0.3; cursor: default; }
.carousel-arrow[disabled]:hover { transform: translateY(-50%) scale(1); background: rgba(244, 240, 231, 0.9); }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(110, 82, 56, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.carousel-dot.is-active {
  background: var(--brown);
  transform: scale(1.35);
}
.carousel-dot:hover { background: rgba(110, 82, 56, 0.5); }

.community-coda {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--brown);
  max-width: 720px;
  margin: 0 auto;
}

/* --- contact form --- */

.contact-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 240, 231, 0.85);
}
.field label .optional {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-left: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 240, 231, 0.5);
  padding: 0.7rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--cream);
  outline: none;
  transition: border-color .2s ease;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(244, 240, 231, 0.55);
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--cream); }
.field textarea { resize: vertical; min-height: 100px; }
.field-error {
  margin: 0;
  font-size: 0.85rem;
  color: #f5d0c2;
}
.hp { position: absolute; left: -9999px; opacity: 0; }

.contact-form .btn { justify-self: start; margin-top: 0.5rem; }

/* --- flashes --- */

.flash-stack {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  z-index: 60;
  display: grid;
  gap: 0.5rem;
  max-width: 360px;
}
.flash {
  background: var(--cream);
  color: var(--brown);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--sage-deep);
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem;
}
.flash-error   { border-left-color: #c47b6e; }
.flash-warning { border-left-color: var(--tan); }
.flash-success { border-left-color: var(--sage-deep); }

/* --- footer --- */

.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 4rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer-mark {
  color: var(--cream);
  margin-bottom: 0.75rem;
  display: inline-block;
}
.footer-mark .logo-mark {
  width: 56px;
  height: auto;
}
.footer-name {
  font-family: var(--serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  opacity: 0.8;
  margin: 0;
}
.footer-links {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.footer-links a {
  color: var(--cream);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.footer-links a:hover { opacity: 1; color: var(--sage); }
.footer-meta { font-size: 0.82rem; opacity: 0.7; }

/* --- responsive --- */

@media (max-width: 900px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78%, 320px);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-soft);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { color: var(--brown) !important; font-size: 0.95rem; }

  .about-grid { grid-template-columns: 1fr; }

  .carousel-arrow { display: none; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: 0.16em; }
  .pillars { gap: 1rem 1.5rem; padding: 1rem 0; }
  .btn { padding: 0.9rem 1.8rem; }
}