/* ============================================================
   Headnote Studio — Main Stylesheet
   Single shared stylesheet for the whole site.
   Brand system ported from the original Horizons export.
   Cache-busted via ?v= in each page's <link> tag.
   ============================================================ */

/* ── Brand palette ── */
:root {
  --deep-ink:      #10201C;
  --counsel-green: #1F5C4A;
  --muted-brass:   #B89B5E;
  --parchment:     #F6F1E8;
  --sage-mist:     #DDE8E1;
  --charcoal:      #202421;
  --blue-grey:     #7896A3;

  --border:        #cfe0d6; /* slightly darker sage */
  --radius:        0.375rem; /* 6px */
  --maxw:          1280px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--parchment);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--deep-ink);
}

h1 { font-size: 34px; letter-spacing: -0.02em; }
h2 { font-size: 26px; letter-spacing: -0.01em; }
h3 { font-size: 18px; }

p { line-height: 1.6; }

@media (min-width: 768px) {
  body { font-size: 17px; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
}

/* ── Layout helper ── */
.container {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } }

.text-center { text-align: center; }
.measure { max-width: 65ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  border-radius: var(--radius);
  padding: 16px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s, transform 0.1s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--muted-brass); color: var(--deep-ink); }
.btn-primary:hover { background: #ab8e52; }

.btn-outline {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--parchment); background: rgba(255,255,255,0.06); }

.btn-lg { padding: 20px 32px; font-size: 16px; }

/* ── Header / Nav (dark ink, sticky) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--deep-ink);
  color: var(--parchment);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { height: 28px; width: auto; transition: transform 0.3s; }
.nav-logo:hover img { transform: scale(1.05); }
.nav-logo .logo-word {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--parchment);
  line-height: 1;
}
.nav-logo .logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-brass);
  line-height: 1;
  margin-left: 6px;
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--parchment);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--muted-brass); }

.nav-cta { margin-left: 8px; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--parchment);
  cursor: pointer;
  padding: 8px;
}

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--deep-ink);
  color: var(--parchment);
  overflow: hidden;
  text-align: center;
}
.hero-inner { position: relative; z-index: 2; padding: 120px 0 110px; max-width: 880px; }
.hero h1 { color: var(--parchment); line-height: 1.15; margin-bottom: 28px; }
.hero h1 .accent { color: var(--muted-brass); }
.hero .subtitle {
  font-size: 19px;
  color: var(--sage-mist);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-watermark {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.03;
  pointer-events: none;
}
.hero-watermark img { width: 800px; max-width: 120%; transform: rotate(12deg); }

/* ── Page header (interior pages) ── */
.page-header {
  background: var(--sage-mist);
  border-bottom: 1px solid rgba(31,92,74,0.1);
  text-align: center;
  padding: 96px 0;
}
.page-header h1 { color: var(--deep-ink); margin-bottom: 20px; }
.page-header p {
  font-size: 19px;
  color: rgba(31,92,74,0.85);
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 768px) { .page-header { padding: 56px 0; } }

/* ── Section heading block ── */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 14px; color: var(--deep-ink); }
.section-head p { font-size: 18px; color: rgba(31,92,74,0.85); }

/* ── Backgrounds ── */
.bg-sage  { background: var(--sage-mist); }
.bg-ink   { background: var(--deep-ink); color: var(--parchment); }
.bg-parchment { background: var(--parchment); }
.border-y { border-top: 1px solid rgba(31,92,74,0.1); border-bottom: 1px solid rgba(31,92,74,0.1); }

/* ── Cards grid ── */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--parchment);
  border: 1px solid rgba(31,92,74,0.1);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.3s;
  height: 100%;
}
.card:hover { border-color: rgba(31,92,74,0.3); }
.card-row { display: flex; align-items: flex-start; gap: 20px; }
.card h3 { margin-bottom: 10px; color: var(--deep-ink); }
.card p { color: rgba(31,92,74,0.85); }

.icon { flex-shrink: 0; color: var(--counsel-green); }
.icon svg { width: 28px; height: 28px; stroke-width: 1.5; }

/* ── Icon tile (centred features) ── */
.feature { text-align: center; }
.feature .icon-tile {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: var(--parchment);
  border: 1px solid rgba(31,92,74,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  transition: border-color 0.3s;
}
.feature:hover .icon-tile { border-color: rgba(31,92,74,0.5); }
.feature .icon-tile svg { width: 28px; height: 28px; color: var(--counsel-green); stroke-width: 1.5; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: rgba(31,92,74,0.85); }

/* ── Two-column split ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-media {
  aspect-ratio: 16 / 9;
  background: rgba(221,232,225,0.5);
  border: 1px solid rgba(31,92,74,0.1);
  border-radius: 16px;
  overflow: hidden;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { margin-bottom: 24px; }
.split-body p { font-size: 18px; line-height: 1.7; color: rgba(32,36,33,0.9); margin-bottom: 18px; }
.split-body .emphasis { font-weight: 600; color: var(--counsel-green); }

/* ── Services detail blocks ── */
.svc {
  background: var(--parchment);
  border: 1px solid rgba(31,92,74,0.1);
  border-radius: 16px;
  padding: 48px;
  transition: border-color 0.3s;
}
.svc:hover { border-color: rgba(31,92,74,0.3); }
.svc + .svc { margin-top: 40px; }
.svc-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
@media (max-width: 900px) { .svc { padding: 32px; } .svc-grid { grid-template-columns: 1fr; gap: 24px; } }
.svc-tile {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--sage-mist);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.svc-tile svg { width: 24px; height: 24px; color: var(--counsel-green); stroke-width: 1.5; }
.svc h2 { font-size: 24px; margin-bottom: 16px; }
.svc-intro { color: rgba(32,36,33,0.8); line-height: 1.7; }
.svc-included-label {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--deep-ink); margin-bottom: 22px;
  font-family: 'Inter', sans-serif;
}
.svc-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
@media (max-width: 640px) { .svc-list { grid-template-columns: 1fr; } }
.svc-list li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.6; color: rgba(32,36,33,0.9); }
.svc-list svg { width: 20px; height: 20px; color: var(--muted-brass); flex-shrink: 0; margin-top: 2px; }
@media (min-width: 901px) { .svc-included { border-left: 1px solid rgba(31,92,74,0.1); padding-left: 40px; } }

/* ── About story blocks ── */
.story-block { margin-bottom: 64px; }
.story-block:last-child { margin-bottom: 0; }
.story-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.story-head svg { width: 24px; height: 24px; color: var(--muted-brass); flex-shrink: 0; }
.story-head h2 { margin: 0; }
.story-block p { font-size: 18px; line-height: 1.7; color: rgba(32,36,33,0.9); margin-bottom: 16px; }
.story-block .emphasis { font-weight: 600; color: var(--counsel-green); }

/* ── Contact details ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
.contact-item svg { width: 20px; height: 20px; color: var(--muted-brass); flex-shrink: 0; margin-top: 3px; }
.contact-item .label {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--deep-ink); margin-bottom: 4px;
}
.contact-item a { color: var(--counsel-green); }
.contact-item a:hover { text-decoration: underline; }
.contact-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(31,92,74,0.1);
  border-radius: 16px;
  padding: 40px;
}
.contact-card h2 { font-size: 22px; margin-bottom: 12px; }
.contact-card p { color: rgba(32,36,33,0.8); line-height: 1.7; margin-bottom: 24px; }

/* ── CTA band ── */
.cta-band {
  background: var(--deep-ink);
  color: var(--parchment);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--parchment); margin-bottom: 20px; max-width: 720px; margin-left: auto; margin-right: auto; }
.cta-band p { font-size: 18px; color: var(--sage-mist); max-width: 620px; margin: 0 auto 36px; line-height: 1.7; }

/* ── Footer ── */
.site-footer { background: var(--deep-ink); color: var(--parchment); border-top: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding: 64px 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.footer-brand img { height: 32px; width: auto; opacity: 0.9; }
.footer-brand .logo-word { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600; color: var(--parchment); line-height: 1; }
.footer-brand .logo-sub { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-brass); margin-left: 6px; }
.footer-about { font-size: 14px; color: rgba(221,232,225,0.9); line-height: 1.7; max-width: 360px; margin-bottom: 24px; }
.footer-disclaimer { font-size: 14px; color: rgba(221,232,225,0.65); line-height: 1.7; max-width: 360px; font-style: italic; }
.footer-col-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-brass); margin-bottom: 24px; display: block;
}
.footer-col a, .footer-contact a, .footer-contact span {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--sage-mist); margin-bottom: 16px; transition: color 0.2s;
}
.footer-col a:hover, .footer-contact a:hover { color: var(--muted-brass); }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 28px 0; }
.footer-bottom p { font-size: 14px; color: rgba(221,232,225,0.6); }

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .nav-logo .logo-word, .nav-logo .logo-sub { display: none; }
  .mobile-menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--deep-ink);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; font-size: 16px; }
  .nav-cta { margin: 12px 24px 0; justify-content: center; }
}

/* ── 404 ── */
.error-page { text-align: center; padding: 140px 0; }
.error-page .code { font-family: 'Fraunces', serif; font-size: 96px; color: var(--muted-brass); line-height: 1; margin-bottom: 16px; }
.error-page h1 { margin-bottom: 20px; }
.error-page p { font-size: 18px; color: rgba(32,36,33,0.8); max-width: 520px; margin: 0 auto 36px; }

/* ── Legal / prose pages ── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; }
.prose p { margin-bottom: 16px; color: rgba(32,36,33,0.9); line-height: 1.7; }
.prose .updated { color: rgba(32,36,33,0.6); font-size: 15px; margin-bottom: 32px; }
