/* =========================================================================
   Leonis Publishing, design system
   One stylesheet for the whole site. Sibling of the Goldenridge Publishing
   site: same layout vocabulary + type pairing, restyled for Leonis with
   warm charcoal + a muted tan-gold accent on a soft cream background.
   ========================================================================= */

:root {
  /* Brand */
  --gold:       #B9AC84;   /* brand accent: mark, CTAs, kickers */
  --gold-dark:  #9C8F63;   /* hover / active */
  --gold-soft:  #EDE8D8;   /* tint backgrounds */
  --gold-wash:  #F7F4EC;   /* section wash */
  --char:       #23211C;   /* warm charcoal: footer, CTAs, badges */
  --char-2:     #33302A;   /* charcoal gradient partner */

  /* Neutrals */
  --ink:        #23211C;   /* body text (warm near-black) */
  --ink-soft:   #45413A;   /* secondary text */
  --muted:      #7A7565;   /* meta / captions */
  --line:       #E7E2D6;   /* hairline borders (warm) */
  --bg:         #FBFAF5;   /* page background (soft cream) */
  --card:       #FFFFFF;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1080px;
  --measure: 720px;        /* readable prose width */
  --radius: 14px;
  --shadow: 0 6px 24px rgba(35, 33, 28, 0.07);
  --shadow-lg: 0 14px 40px rgba(35, 33, 28, 0.13);
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 1.8em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.5em 0 .4em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Anchor offset so the sticky header doesn't cover section tops on jump */
section[id] { scroll-margin-top: 84px; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 245, 0.92);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: block; flex: none; border-radius: 10px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name .word { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; color: var(--ink); }
.brand-name .sub { font-family: var(--sans); font-weight: 700; font-size: .58rem; letter-spacing: .28em; color: var(--gold-dark); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink-soft); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; padding: 6px 2px; position: relative; white-space: nowrap;
}
.nav a:hover { color: var(--gold-dark); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold-dark); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.nav .nav-cta {
  color: #fff; background: var(--char); padding: 8px 16px; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--char-2); color: #fff; }
.nav .nav-cta::after { display: none; }

/* Mobile nav (CSS-only toggle) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ---- Hero (split: text + image) ---------------------------------------- */
.hero-split {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--gold-wash) 0%, var(--bg) 100%);
}
.hero-split .container {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px;
  padding-top: 68px; padding-bottom: 68px;
}
.hero-split .copy { max-width: 520px; }
.hero-split h1 { margin: .1em 0 .35em; }
.hero-split p { color: var(--ink-soft); font-size: 1.12rem; margin: 0 0 1.6em; }
.hero-split .art {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
}
.hero-split .art img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-size: .75rem; font-weight: 700; color: var(--gold-dark);
  background: var(--gold-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; background: var(--gold); color: var(--char); font-weight: 700;
  padding: 12px 24px; border-radius: 999px;
}
.btn:hover { background: var(--gold-dark); color: #fff; text-decoration: none; }
.btn-ghost {
  display: inline-block; background: transparent; color: var(--char); font-weight: 700;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid var(--char);
}
.btn-ghost:hover { background: var(--char); color: #fff; text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Section shell ------------------------------------------------------ */
.section { padding: 64px 0; }
.section.wash { background: var(--gold-wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-title h2 { margin: 0 0 .3em; }
.section-title p { color: var(--muted); margin: 0; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--gold-dark); }

/* ---- About -------------------------------------------------------------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-grid .art {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3;
}
.about-grid .art img { width: 100%; height: 100%; object-fit: cover; }
.about-grid h2 { margin-top: 0; }
.about-grid p { color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; }
.ticks li { position: relative; padding-left: 1.9em; margin: .5em 0; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 1.1em; height: 1.1em;
  background: var(--gold-soft); border-radius: 50%;
}
.ticks li::after {
  content: ""; position: absolute; left: .32em; top: .72em; width: .42em; height: .22em;
  border-left: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark);
  transform: rotate(-45deg);
}

/* ---- Services ----------------------------------------------------------- */
.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-dark); margin-bottom: 16px;
}
.service .icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.service h3 { margin: 0 0 .35em; font-size: 1.15rem; }
.service p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---- Stats band --------------------------------------------------------- */
.stats {
  background: linear-gradient(135deg, var(--char) 0%, var(--char-2) 100%);
  color: #fff;
}
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-top: 52px; padding-bottom: 52px; text-align: center;
}
.stat .num { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 700; color: #fff; line-height: 1; }
.stat .num .suffix { color: var(--gold); }
.stat .label { margin-top: 10px; color: #D8D2C1; font-size: .92rem; letter-spacing: .02em; }

/* ---- Approach steps ----------------------------------------------------- */
.steps {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
}
.step .n {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--char); color: var(--gold); font-family: var(--serif);
  font-weight: 700; font-size: 1.15rem; margin-bottom: 16px;
}
.step h3 { margin: 0 0 .35em; font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---- Portfolio copy ----------------------------------------------------- */
.portfolio-copy { max-width: 680px; margin: 0 auto; text-align: center; }
.portfolio-copy p { color: var(--ink-soft); margin: 0 0 1em; }
.portfolio-copy p:last-child { margin-bottom: 0; }

/* ---- Page title block (interior / legal pages) -------------------------- */
.page-head { border-bottom: 1px solid var(--line); background: var(--gold-wash); }
.page-head .container { padding-top: 48px; padding-bottom: 40px; }
.page-head h1 { margin: 0; }
.page-head .subtitle { color: var(--muted); margin: .5em 0 0; font-size: 1rem; }

/* ---- Contact card ------------------------------------------------------- */
.contact-card {
  max-width: var(--measure); margin: 0 auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px;
}
.contact-card .row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .label { min-width: 120px; font-weight: 700; color: var(--ink); }
.contact-card address { font-style: normal; color: var(--ink-soft); line-height: 1.6; }

/* ---- Prose (legal pages) ------------------------------------------------ */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose p, .prose li { color: var(--ink); }
.prose h2 { color: var(--ink); }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { padding-left: 1.25em; }
.prose li { margin: .3em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; }
.prose .lede { font-size: 1.15rem; color: var(--ink); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: 0; background: var(--char); color: #E4DED0;
  padding: 52px 0 32px; font-size: .92rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.site-footer .brand-block { max-width: 340px; }
.site-footer .brand-block strong { color: #fff; display: block; font-family: var(--serif); font-size: 1.15rem; }
.site-footer .brand-block p { color: #C5BEAB; margin: 8px 0 0; line-height: 1.5; }
.site-footer address { font-style: normal; color: #C5BEAB; line-height: 1.7; margin-top: 14px; font-size: .88rem; }
.site-footer address a { color: #E4DED0; }
.site-footer address a:hover { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.footer-nav a { color: #E4DED0; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px;
  color: #A69F8B; font-size: .82rem; text-align: center;
}
.footer-bottom a { color: #E4DED0; }

/* ---- Back-to-top -------------------------------------------------------- */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--char); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--gold); color: var(--char); }
.scroll-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* ---- Utilities ---------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-grid .art { order: -1; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { gap: 16px 20px; }
  .nav a { font-size: .9rem; }
  .hero-split .container { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 44px; }
  .hero-split .copy { max-width: none; }
  .hero-split .art { order: -1; }
  .site-footer .container { flex-direction: column; gap: 22px; }
  .contact-card { padding: 24px; }
  .contact-card .row { flex-direction: column; gap: 4px; }
}
@media (max-width: 600px) {
  /* Header stacks: brand on top, nav wraps onto its own row (no JS menu). */
  .site-header .container { flex-wrap: wrap; gap: 10px 16px; }
  .nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 10px 18px; }
}
