/* ═══════════════════════════════════════════════════════
   BEAUTY BY RACHEAL — In Bloom shared design system
   Editorial · botanical · Logan, UT
═══════════════════════════════════════════════════════ */

:root {
  --moss: #2E3228;
  --moss-deep: #1F231B;
  --moss-soft: #3C4137;
  --sage: #6B6859;        /* WCAG AA: 4.85:1 on --linen (was #8A8578 — 3.16:1, failed for body text) */
  --sage-light: #8A8578;  /* Decorative-only — legacy lighter tone, kept for reference */
  --herb: #B5BAA4;
  --linen: #F3EDE4;
  --linen-warm: #ECE3D4;
  --linen-cool: #EFEAE0;
  --sand: #D6C9B6;
  --sand-deep: #C7B89F;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Outfit', 'Helvetica Neue', sans-serif;

  --track-wide: 0.35em;
  --track-mid: 0.22em;
  --track-tight: 0.08em;

  --arch: 50% 50% 0 0 / 50% 50% 0 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--moss);
  background: var(--linen);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--moss); color: var(--linen); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 52px);
}
.container-wide {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 52px);
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 52px);
}

/* ═══ TOP BANNER ═══ */
.banner-top {
  background: var(--moss-deep);
  color: var(--sand);
  border-bottom: 1px solid rgba(214,201,182,0.18);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  z-index: 50;
}
.banner-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  animation: bannerSlide 38s linear infinite;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--sand);
}
.banner-track span { display: inline-block; }
.banner-track .dot {
  color: var(--herb);
  opacity: 0.55;
  font-size: 8px;
  align-self: center;
}
@keyframes bannerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .banner-track { animation: none; }
}

/* ═══ NAV ═══ */
nav.site {
  padding: 14px 0;
  background: var(--moss);
  border-bottom: 1px solid rgba(243,237,228,0.12);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--linen);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--moss-deep);
  border: 1px solid rgba(214,201,182,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--sand);
  line-height: 1;
  padding-bottom: 1px;
}
.nav-brand .name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--linen);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--linen);
  padding: 8px 0;
  position: relative;
  transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%; height: 1px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.nav-links a:hover { color: var(--sand); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.cta {
  border: 1px solid var(--sand);
  padding: 9px 18px;
  color: var(--sand);
}
.nav-links a.cta::after { display: none; }
.nav-links a.cta:hover { background: var(--sand); color: var(--moss); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--linen);
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--linen);
  position: relative;
  transition: transform .3s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content:'';
  position: absolute;
  left: 0; width: 22px; height: 1px;
  background: var(--linen);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; right: 0; left: 0;
    background: var(--moss);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 20px;
    border-bottom: 1px solid rgba(243,237,228,0.12);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(243,237,228,0.08);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.cta {
    margin-top: 10px;
    text-align: center;
  }
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  padding: 17px 32px;
  border: 1px solid var(--moss);
  color: var(--moss);
  background: transparent;
  transition: all .5s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--moss);
  transform: translateY(101%);
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--linen); }
.btn .arrow { transition: transform .5s; display: inline-block; }
.btn:hover .arrow { transform: translateX(5px); }
.btn.filled { background: var(--moss); color: var(--linen); }
.btn.filled::before { background: var(--sand); }
.btn.filled:hover { color: var(--moss); }
.btn.full { width: 100%; }
.btn.sm { padding: 13px 22px; font-size: 10.5px; }

/* On dark moss backgrounds */
.on-dark .btn {
  border-color: var(--sand);
  color: var(--linen);
}
.on-dark .btn::before { background: var(--sand); }
.on-dark .btn:hover { color: var(--moss); }
.on-dark .btn.filled {
  background: var(--sand);
  color: var(--moss);
}
.on-dark .btn.filled::before { background: var(--linen); }

/* ═══ SECTION PRIMITIVES ═══ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--sage);
}
.eyebrow.center {
  justify-content: center;
}
.eyebrow.center::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--sage);
}
.on-dark .eyebrow {
  color: var(--sand);
}
.on-dark .eyebrow::before, .on-dark .eyebrow::after {
  background: var(--sand);
  opacity: 0.6;
}

h1.display, h2.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.012em;
  color: var(--moss);
}
h1.display .italic, h2.display .italic {
  font-style: italic;
  color: var(--sage);
}
.on-dark h1.display, .on-dark h2.display { color: var(--linen); }
.on-dark h1.display .italic, .on-dark h2.display .italic { color: var(--sand); }

h3.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.008em;
  color: var(--moss);
  margin-bottom: 14px;
}
h3.section-title .italic { font-style: italic; color: var(--sage); }

.section-head {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}
.section-head .tag {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-head .tag::before, .section-head .tag::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--sage);
  opacity: 0.5;
}
.section-head h2.display { max-width: 18ch; margin: 0 auto; }
.section-sub {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--sage);
  max-width: 54ch;
  margin: 22px auto 0;
}

/* ═══ MARQUEE ═══ */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(46,50,40,0.12);
  border-bottom: 1px solid rgba(46,50,40,0.12);
  padding: 20px 0;
  background: var(--linen-warm);
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: slide 48s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 34px);
  color: var(--moss);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.marquee-track .star {
  color: var(--sand-deep);
  font-size: 0.7em;
  align-self: center;
  font-style: normal;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══ FULL-BLEED IMAGE BREAK ═══ */
.break {
  position: relative;
  height: clamp(340px, 42vh, 520px);
  overflow: hidden;
  background: var(--sand);
}
.break img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9);
}
.break .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,35,27,0.55) 0%, rgba(31,35,27,0.72) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.break .pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.2;
  color: var(--linen);
  text-align: center;
  max-width: 22ch;
  letter-spacing: -0.008em;
  text-shadow: 0 4px 30px rgba(46,50,40,0.4);
}
.break .pull small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 20px;
}

/* ═══ FOOTER ═══ */
footer.site {
  background: var(--moss-deep);
  color: var(--herb);
  padding: 60px 0 30px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(243,237,228,0.12);
  margin-bottom: 24px;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }

.foot-word {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  color: var(--linen);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.foot-word .small {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--sand-deep);
  font-weight: 400;
}
.foot-word .r {
  font-style: italic;
  font-weight: 500;
}
footer.site h2,
footer.site h4 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 18px;
}
footer.site p { line-height: 1.8; color: var(--herb); margin-bottom: 4px; }
footer.site a { transition: color .3s; }
footer.site a:hover { color: var(--linen); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 10.5px;
  color: var(--sand-deep);
  letter-spacing: 0.06em;
}
@media (max-width: 600px) {
  .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══ REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(.2,0,.1,1), transform 1.1s cubic-bezier(.2,0,.1,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══ ARCH FRAME (reusable arched image container) ═══ */
.arch {
  position: relative;
  background: var(--sand);
  border-radius: var(--arch);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(46,50,40,0.35);
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease;
  filter: saturate(0.95) contrast(1.02);
}
.arch:hover img { transform: scale(1.06); }

/* ═══ PAGE HEAD (sub-page hero, smaller than home) ═══ */
.page-head {
  position: relative;
  background: var(--linen);
  padding: clamp(60px, 8vh, 110px) 0 clamp(50px, 7vh, 90px);
  text-align: center;
  border-bottom: 1px solid rgba(46,50,40,0.08);
}
.page-head .eyebrow { justify-content: center; margin-left: auto; margin-right: auto; }
.page-head .eyebrow::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--sage);
}
.page-head h1.display {
  font-size: clamp(44px, 6vw, 88px);
  margin: 0 auto;
  max-width: 18ch;
}
.page-head .lede {
  font-family: var(--sans);
  font-size: clamp(14.5px, 1.05vw, 16.5px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--moss);
  max-width: 56ch;
  margin: 22px auto 0;
}

/* ═══════════════════════════════════════════════════════════════
   Accessibility utilities (added 2026-05-21)
   ═══════════════════════════════════════════════════════════════ */

/* Screen-reader-only — visible only to assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-main-content link — appears on Tab, hidden otherwise */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--moss);
  color: var(--linen);
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  z-index: 10000;
  transition: top 0.2s ease;
}
.skip-to-content:focus,
.skip-to-content:focus-visible {
  top: 8px;
  outline: 2px solid var(--herb);
  outline-offset: 2px;
}

/* Visible focus indicators sitewide — WCAG 2.4.7 Focus Visible */
:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Buttons + cta — use the moss outline against light backgrounds */
a.cta:focus-visible,
button.nav-toggle:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

/* Footer legal links row */
.foot-legal {
  display: inline-block;
  font-size: 13px;
  color: var(--sage);
  letter-spacing: 0.01em;
}
.foot-legal a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.15s ease;
}
.foot-legal a:hover,
.foot-legal a:focus-visible {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-bottom {
  flex-wrap: wrap;
  row-gap: 8px;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
