/* ============================================
   Bloomie — Shared Stylesheet
   Fraunces (headlines) / Manrope (body + UI)
   ============================================ */

:root {
  /* Color tokens */
  --cream: #faf6ef;
  --cream-deep: #f2ead9;
  --band-tan: #eee0c4;
  --tan: #cfae82;
  --tan-soft: #e6d9bf;
  --espresso: #3a2a1d;
  --espresso-soft: #6b5847;
  --blush: #e3b3ac;
  --blush-deep: #d69a92;
  --blush-line: #d9a49b;
  --blush-ink: #4a2c26;

  /* Type */
  --font-head: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 4px;
}

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--espresso);
  letter-spacing: -0.01em;
}

h1 { font-weight: 400; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 1.05rem 2.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-blush {
  background: var(--blush);
  color: var(--blush-ink);
}
.btn-blush:hover { background: var(--blush-deep); }

.btn-espresso {
  background: var(--espresso);
  color: var(--cream);
}
.btn-espresso:hover { background: #2b1e14; }

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

.btn-nav {
  padding: 0.7rem 1.6rem;
  font-size: 0.92rem;
  background: var(--blush);
  color: var(--blush-ink);
  border-radius: var(--radius);
}
.btn-nav:hover { background: var(--blush-deep); }

/* ============================================
   Header / Nav
   ============================================ */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--tan-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.7rem;
  padding-bottom: 1.7rem;
}

.logo img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.96rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a.active {
  color: var(--espresso);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--tan);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--espresso);
  display: block;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--cream-deep);
  border-top: 2px solid var(--blush-line);
  margin-top: clamp(5rem, 11vw, 9rem);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 3.6rem;
  padding-bottom: 2.6rem;
}

.footer-logo img {
  height: 26px;
  width: auto;
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-nav a { transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--tan); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.6rem;
  padding-bottom: 2.8rem;
  border-top: 1px solid var(--tan-soft);
}

.footer-meta {
  font-size: 0.82rem;
  color: var(--espresso-soft);
  letter-spacing: 0.01em;
}

.footer-legal {
  display: flex;
  gap: 1.6rem;
  font-size: 0.82rem;
}

.footer-legal a {
  color: var(--espresso-soft);
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--tan); }

/* ============================================
   Legal pages (Privacy / Terms)
   ============================================ */

section.legal {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}

.legal-container {
  max-width: 720px;
}

.legal-container h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-top: 0.2rem;
}

.legal-meta {
  color: var(--espresso-soft);
  font-size: 0.92rem;
  margin-bottom: 2.6rem;
}

.legal-body h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 2.4rem;
  margin-bottom: 0.7rem;
}

.legal-body p {
  color: var(--espresso-soft);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.2em;
}

.legal-body ul {
  margin: 0 0 1.2em;
  padding-left: 1.4rem;
  color: var(--espresso-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-body li { margin-bottom: 0.4em; }

.legal-rule {
  border: none;
  border-top: 1px solid var(--tan-soft);
  margin: 2.8rem 0 1.6rem;
}

.legal-disclaimer {
  font-size: 0.88rem;
  color: var(--espresso-soft);
  font-style: italic;
}

.ph {
  display: inline-block;
  background: rgba(227, 179, 172, 0.35);
  color: var(--blush-ink);
  padding: 0.05em 0.45em;
  border-radius: 3px;
  font-weight: 600;
  font-style: normal;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(4rem, 9vw, 7rem);
}

.hero-inner {
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 0.5em;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--espresso-soft);
  max-width: 620px;
  margin-bottom: 2.4rem;
}

/* Hero with a photography placeholder alongside the copy */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
}

.hero-split .hero-inner { max-width: none; }

/* ============================================
   Media frames (editorial photography)
   ============================================ */

.media {
  background: var(--cream-deep);
  border: 1px solid var(--tan-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--portrait {
  aspect-ratio: 4 / 5;
}

.media--wide {
  aspect-ratio: 16 / 7;
}

.hero .media--wide {
  margin-top: clamp(2rem, 5vw, 3rem);
}

/* ============================================
   Sections
   ============================================ */

section.block {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.block-border-top {
  border-top: 1px solid var(--tan-soft);
}

.block-deep {
  background: var(--band-tan);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.4rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.18;
}

.lede {
  font-size: 1.1rem;
  color: var(--espresso-soft);
}

.prose {
  max-width: 680px;
  font-size: 1.03rem;
  color: var(--espresso-soft);
}

/* Small blush rule used as a section accent/divider */
.rule-blush {
  width: 48px;
  height: 2px;
  background: var(--blush);
  border: none;
  margin: 0 auto 1.6rem;
}

.prose em {
  color: var(--espresso);
  font-style: italic;
}

/* Two-column editorial split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

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

/* Pull quote / trust signal card */
.pull-block {
  border-left: 2px solid var(--tan);
  padding-left: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 760px;
}

.pull-block p {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--espresso);
}

/* Closing CTA band */
.cta-band {
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.cta-band h2 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ============================================
   How It Works — steps
   ============================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
  counter-reset: step;
}

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

.step {
  padding-top: 1.6rem;
  border-top: 1px solid var(--tan-soft);
}

.step-num {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--tan);
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  display: block;
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5em;
}

.step p {
  color: var(--espresso-soft);
}

/* ============================================
   Apply page — form
   ============================================ */

.apply-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .apply-layout { grid-template-columns: 1fr; }
}

.apply-intro h1 {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
}

.form-card {
  background: var(--cream-deep);
  border: 1px solid var(--tan-soft);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}

.field {
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  color: var(--espresso);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--espresso);
  background: var(--cream);
  border: 1px solid var(--tan-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--tan);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--espresso-soft);
  margin-top: 0.4rem;
}

.form-submit {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

.form-note {
  font-size: 0.85rem;
  color: var(--espresso-soft);
  margin-top: 1rem;
  text-align: center;
}

.form-error {
  display: none;
  margin-top: 1.4rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--blush-line);
  border-radius: var(--radius);
  background: rgba(227, 179, 172, 0.16);
  color: var(--espresso);
  font-size: 0.9rem;
  text-align: center;
}

.form-error.visible {
  display: block;
}

.confirm-message {
  display: none;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.confirm-message.visible {
  display: block;
}

.confirm-message h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.confirm-message p {
  color: var(--espresso-soft);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   Mobile nav
   ============================================ */

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--tan-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links li {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--tan-soft);
  }

  .nav-right {
    gap: 1rem;
  }
}
