/* ============================================================
   The Brand.e House — shared styles
   Palette + type reconstructed from the brand's Canva site
   ============================================================ */

:root {
  --green:        #1c3d2e;   /* deep forest green */
  --green-deep:   #142d22;   /* darker panel green */
  --coral:        #e8735a;   /* signature coral */
  --coral-soft:   #ef8a74;
  --cream:        #f4f1ea;   /* page background */
  --cream-2:      #eae5da;   /* card / alt background */
  --ink:          #1c3d2e;   /* body text on cream */
  --ink-soft:     #4a5a50;
  --on-green:     #f4f1ea;   /* text on green */
  --on-green-dim: #c3cec6;

  --serif: "The Seasons", "Cormorant Garamond", Georgia, serif;
  --sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

.display {
  font-size: clamp(2.9rem, 8.5vw, 6rem);
  line-height: 0.98;
}
h2.head {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
}
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

.accent { font-style: italic; color: var(--coral); }
.coral  { color: var(--coral); }
/* slight breathing space before the ".e" mark in headings */
.dot-e-space { margin-left: 0.12em; }
.dot-e-inner { margin-left: 0.08em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--coral);
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.center { text-align: center; }
.center .lead { margin-inline: auto; }
/* a centered lead paragraph should also center its own max-width block */
.lead.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--coral-soft); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232,115,90,.28); }
.btn--ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn--ghost:hover { background: var(--green); color: var(--cream); box-shadow: none; }
.btn--on-green { background: var(--coral); color:#fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244,241,234,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28,61,46,.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--green);
  white-space: nowrap;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}
.brand .dot-e { font-style: italic; color: var(--coral); }
.brand-img {
  height: 30px;
  width: auto;
  display: block;
}
@media (max-width: 480px) { .brand-img { height: 26px; } }
.footer-brand-img { height: 30px; width: auto; margin-bottom: 4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
}
.nav-links a::after {
  content:"";
  position:absolute; left:0; right:0; bottom:-2px;
  height:2px; background:var(--coral);
  transform: scaleX(0); transform-origin:left;
  transition: transform .2s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--coral); }
/* keep the CTA button text white even when it's the current page */
.nav-links .nav-cta a.btn[aria-current="page"] { color: #fff; }
.nav-links a.btn::after { display: none; }

.nav-cta { }

.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--green);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--cream);
    padding: 18px var(--gutter) 30px;
    border-bottom: 1px solid rgba(28,61,46,.1);
    box-shadow: 0 20px 40px rgba(20,45,34,.12);
    transform: translateY(-140%);
    transition: transform .32s cubic-bezier(.5,0,.2,1);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.1rem; padding: 12px 0; width: 100%; }
  .nav-links .nav-cta { margin-top: 10px; }
  .nav-links .nav-cta a { display:inline-flex; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  color: var(--on-green-dim);
  padding-block: 40px 30px;
  font-size: 0.86rem;
}
.footer-brand-img { opacity: .96; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
}
.footer-contact { display:flex; flex-wrap:wrap; gap: 8px 26px; align-items:center; }
.footer-contact a { color: var(--on-green); text-decoration: none; }
.footer-contact a:hover { color: var(--coral); }
.footer-social { display:flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display:grid; place-items:center;
  background: rgba(244,241,234,.08);
  color: var(--on-green);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--coral); color:#fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-nav { display:flex; flex-wrap:wrap; gap: 6px 20px; }
.footer-nav a { color: var(--on-green-dim); text-decoration:none; }
.footer-nav a:hover { color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(244,241,234,.12);
  padding-top: 18px;
  display:flex; flex-wrap:wrap; gap: 8px 20px;
  justify-content: space-between;
}
.footer-bottom a { color: var(--on-green-dim); text-decoration:none; }
.footer-bottom a:hover { color: var(--coral); }

/* ---------- Cards ---------- */
.card {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.card--green { background: var(--green); color: var(--on-green); }
.card--green .card-body { color: var(--on-green-dim); }
.card-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--coral);
  font-size: 1.15rem;
  display:block;
  margin-bottom: 10px;
}
.card h3 { margin-bottom: 8px; }
.card-body { color: var(--ink-soft); font-size: 0.96rem; }

/* fade-up on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Scroll progress bar (blog posts) ===== */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--coral); z-index: 100;
  transition: width .1s linear;
}

/* ===== Back to top button ===== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  border: none; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  box-shadow: 0 8px 22px rgba(20,45,34,.28);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--coral); }
.to-top svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s; } }

/* ===== Card hover lift (dictionary + service/step cards) ===== */
.term { transition: transform .18s ease, box-shadow .18s ease; }
.term:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,45,34,.12); }
.card, .step-card { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover, .step-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,45,34,.12); }
@media (prefers-reduced-motion: reduce) {
  .term, .card, .step-card { transition: none; }
  .term:hover, .card:hover, .step-card:hover { transform: none; box-shadow: none; }
}
