/* Everyday Calm Co.
   Palette and type taken from the brand graphics pack. */

:root {
  --navy:   #0f1f33;
  --slate:  #43566f;
  /* Brand gold. Fine as a fill or rule, but only 2.5:1 on light backgrounds,
     so small text uses --gold-text (4.9:1 on paper) instead. */
  --gold:   #c49a5a;
  --gold-text: #8f6629;
  --stone:  #eaeae6;
  --paper:  #fbfaf8;
  --white:  #ffffff;

  --ink:      var(--navy);
  --ink-soft: #4a5a70;

  --wrap: 1080px;
  --gut: clamp(1.25rem, 5vw, 3rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--slate); }
a:focus-visible,
.btn:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.9rem;
}
/* On navy, the lighter brand gold is the readable one. */
.contact .eyebrow { color: var(--gold); }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-name {
  font-weight: 700;
  font-size: clamp(0.8125rem, 0.7rem + 0.5vw, 1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap; /* must stay on one line inside the 68px header */
}
.brand-name-alt { font-weight: 400; color: var(--slate); }

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(120% 90% at 50% -20%, #ffffff 0%, var(--paper) 55%, var(--stone) 100%);
  border-bottom: 1px solid var(--stone);
}

.hero-inner {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  text-align: center;
}

.hero-mark {
  margin: 0 auto clamp(1.5rem, 4vw, 2.25rem);
  width: clamp(84px, 14vw, 120px);
  height: auto;
}

.hero-title {
  font-size: clamp(2rem, 1.15rem + 4.4vw, 4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
/* Wrapping between the two words is fine; wrapping inside "Calm Co." is not. */
.hero-title-alt { font-weight: 400; color: var(--slate); white-space: nowrap; }

.hero-tagline {
  font-size: clamp(0.8rem, 0.72rem + 0.4vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.6rem;
}

.hero-sub {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border-radius: var(--radius);
  transition: background 0.18s, transform 0.18s;
}
.btn:hover { background: var(--slate); transform: translateY(-1px); }

.btn-light {
  background: var(--gold);
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.9375rem;
}
.btn-light:hover { background: #d3ab6d; }

/* ---------- sections ---------- */

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section-alt { background: var(--white); border-block: 1px solid var(--stone); }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem); }

/* about */

.about-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 760px) {
  .about-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
}

.portrait { margin: 0; }
.portrait img {
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--stone);
  box-shadow: 0 18px 40px -24px rgba(15, 31, 51, 0.45);
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  object-fit: cover;
}
@media (max-width: 759px) {
  .portrait img { margin-inline: auto; }
}

.about-copy h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.about-copy p { color: var(--ink-soft); max-width: 60ch; }

.creds {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.creds li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}
.section-alt .creds li { background: var(--paper); }

/* accreditation badge — subtle, sits under the cred pills */
.accred {
  display: block;
  height: auto;
  width: min(100%, 460px);
  margin: 1.75rem 0 0;
  opacity: 0.95;
}

/* sessions */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  /* 200px keeps all four on one row at max wrap width, then folds to 2, then 1. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 1.9rem);
}
.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }

.promises {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.promises li { display: flex; align-items: center; gap: 0.6rem; }
.promises li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* contact */

.contact { background: var(--navy); color: var(--stone); }
.contact-inner { text-align: center; }
.contact h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
}
.contact .lede { color: #b9c3d0; margin-inline: auto; margin-bottom: 2.25rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #93a1b3;
  padding-block: 2.5rem;
}
.footer-inner { text-align: center; }
.footer-mark { margin: 0 auto 1rem; }
.footer-inner p { font-size: 0.8125rem; margin: 0; }
.footer-meta { margin-top: 0.35rem !important; color: #8593a6; }
