/* ============================================
   BLOOM BY EKEUH & CO — DESIGN SYSTEM
   Navy #213A57 / Sage #6BA39D / Cream #F6F1E9
   Display: EB Garamond · Body: Jost
   ============================================ */

:root {
  --navy: #213a57;
  --navy-soft: #4d6076;
  --navy-deep: #172a3f;
  --sage: #6ba39d;
  --sage-soft: #a9c7c2;
  --sage-deep: #4f8079;
  --cream: #f6f1e9;
  --cream-dim: #ede6d8;
  --paper: #fffdf9;
  --line: #d9d0bd;
  --line-on-navy: rgba(246, 241, 233, 0.18);

  --display: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --body: "Jost", "Avenir Next", "Century Gothic", sans-serif;

  --container: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--navy-soft);
  max-width: 42em;
  line-height: 1.55;
}

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.85em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
}

.on-dark .eyebrow { color: var(--sage-soft); }
.on-dark .eyebrow::before { background: var(--sage-soft); }

.italic-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

/* ---------- Sections ---------- */

section { position: relative; }

.section-pad { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.on-dark {
  background: var(--navy);
  color: var(--cream);
}
.on-dark .navy-soft-text,
.on-dark p:not(.italic-quote) { color: rgba(246, 241, 233, 0.78); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--cream); }

.on-sage { background: var(--sage); color: var(--navy-deep); }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}
.on-dark .divider { border-top: 1px solid var(--line-on-navy); }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--pad);
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
}
.brand img { width: 38px; height: 38px; }
.brand-label { white-space: nowrap; }
.brand .by { font-family: var(--body); font-weight: 400; font-size: 0.72em; color: var(--sage-deep); letter-spacing: 0.02em; }

.nav-links {
  display: flex;
  gap: 2.1rem;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--navy-soft);
  position: relative;
  padding: 0.2rem 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--sage);
}

.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--sage-deep); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.mobile-panel.open { max-height: 400px; }
.mobile-panel ul {
  list-style: none; margin: 0; padding: 1rem var(--pad) 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.mobile-panel a { font-size: 1.05rem; color: var(--navy); }

@media (max-width: 820px) {
  .nav-links, .nav-cta.desktop-only { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  font-family: var(--body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

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

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

.on-dark .btn-outline { border-color: var(--line-on-navy); color: var(--cream); }
.on-dark .btn-outline:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- Chips ---------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.chip {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--navy-soft);
}
.on-dark .chip { border-color: var(--line-on-navy); color: rgba(246,241,233,0.75); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero-petal-bg {
  position: absolute;
  top: -10%;
  right: -12%;
  width: min(60vw, 640px);
  opacity: 0.08;
  pointer-events: none;
  animation: slow-spin 90s linear infinite;
  transform-origin: center;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }

.hero-inner { position: relative; max-width: 46em; }

.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-text { max-width: 40em; }

.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mark img {
  width: min(100%, 320px);
  animation: slow-spin 120s linear infinite;
  transform-origin: center;
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark img { width: min(45%, 180px); margin: 0 auto; }
  .hero-text { max-width: none; }
}

.hero-tag {
  font-family: var(--display);
  font-style: italic;
  color: var(--sage-deep);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* ---------- Stat scorecard ---------- */

.scorecard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-on-navy);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.stat-cell {
  padding: 1.6rem 1.4rem;
  border-right: 1px solid var(--line-on-navy);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--sage-soft);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(246,241,233,0.7);
}

@media (max-width: 720px) {
  .scorecard { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell { border-bottom: 1px solid var(--line-on-navy); }
}

/* ---------- Growth line (signature element) ---------- */

.growth-line-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}
.growth-line-wrap svg { width: 100%; max-width: 220px; height: 40px; }
.growth-line-path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.1s ease;
}
.growth-line-wrap.in-view .growth-line-path { stroke-dashoffset: 0; }
.growth-line-node { fill: var(--sage); }

/* ---------- Card grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.service-card .node {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.service-card .node span { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--navy-soft); margin-bottom: 0; font-size: 0.97rem; }

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

/* ---------- Case study ---------- */

.case-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  margin-top: 2.5rem;
}
.case-card .role-label {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--sage-soft);
  margin-bottom: 0.75rem;
  display: block;
}
.case-card h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.case-card p { color: rgba(246,241,233,0.82); }
.case-card .status-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--sage-soft);
  border-top: 1px solid var(--line-on-navy);
  padding-top: 1.1rem;
  margin-top: 1.5rem;
}

.engagement-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: var(--paper);
}
.engagement-card .meta {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--sage-deep);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.engagement-card p { color: var(--navy-soft); font-size: 0.96rem; margin-bottom: 0; }
.engagement-card strong { color: var(--navy); }

/* ---------- Quote card ---------- */

.quote-card {
  border-left: 3px solid var(--sage);
  background: var(--paper);
  padding: 1.8rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-card cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--navy-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(246,241,233,0.7);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-on-navy);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand span {
  font-family: var(--display); font-weight: 700; color: var(--cream); font-size: 1.15rem;
}
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--body); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; color: rgba(246,241,233,0.5); font-weight: 500; margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a:hover { color: var(--sage-soft); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem; font-size: 0.8rem;
}

/* ---------- Contact ---------- */

.contact-block {
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 0;
}
.contact-email {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--cream);
  border-bottom: 1px solid var(--line-on-navy);
  padding-bottom: 0.2em;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-email:hover { color: var(--sage-soft); border-color: var(--sage-soft); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Page header (for interior pages) ---------- */

.page-header {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-w { max-width: 46em; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Headshot ---------- */

.headshot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.headshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
