/* Zenith Array — Layer C minimalist theme */
:root {
  --bg: #F7F5F0;
  --bg-alt: #EFEAE0;
  --surface: #FFFFFF;
  --ink: #14171A;
  --ink-soft: #4A4E54;
  --ink-faint: #8A8E94;
  --line: #D9D3C7;
  --accent: #B8743D;
  --accent-deep: #8E5526;
  --accent-soft: #E8D4BC;
  --forest: #1F3A2E;
  --danger: #A23B2C;
  --success: #2F6B4F;
  --radius: 4px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 500; line-height: 1.1;
  letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.2em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-deep); font-weight: 600;
  display: inline-block; margin-bottom: 1.2em;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(64px, 9vw, 120px) 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif);
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .95rem; color: var(--ink-soft); font-weight: 500; position: relative; padding: 4px 0; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 10px 18px;
  border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1px solid var(--accent);
  transition: background .25s var(--ease), transform .25s var(--ease); }
.nav-cta:hover { background: var(--accent-deep); color: #fff !important; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 0; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; position: absolute; left: 8px; right: 8px;
  height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 880px) {
  .nav { position: fixed; inset: 64px 0 auto 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0;
    pointer-events: none; transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a.active::after { display: none; }
  .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }
  .nav-toggle { display: block; }
}

/* Footer */
.site-footer { background: var(--ink); color: #D9D3C7; padding: 64px 0 28px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: 12px; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #C7C2B6; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact { font-size: .92rem; line-height: 1.7; color: #C7C2B6; }
.footer-contact a { color: #C7C2B6; }
.footer-legal { max-width: var(--maxw); margin: 40px auto 0; padding: 22px var(--gutter) 0;
  border-top: 1px solid #2A2E33; display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; font-size: .82rem; color: #8A8E94; }
.footer-legal a { color: #8A8E94; }
.footer-legal a:hover { color: #fff; }
.footer-requisites { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter) 0;
  font-size: .8rem; color: #6F7378; line-height: 1.7; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px;
  border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
  text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn-soft { background: transparent; color: var(--accent-deep); border-color: var(--accent-soft); }
.btn-soft:hover { background: var(--accent-soft); color: var(--accent-deep); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  color: var(--accent-deep); font-size: .95rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(70px, 12vw, 140px) 0 clamp(50px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 38ch; margin-bottom: 2em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 6px; background: var(--bg-alt); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure-caption { position: absolute; left: 18px; bottom: 18px; right: 18px;
  background: rgba(20,23,26,.78); color: #fff; padding: 12px 16px; border-radius: 4px;
  font-size: .82rem; backdrop-filter: blur(6px); }

/* Section helpers */
.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Grids */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(20,23,26,.18); border-color: var(--accent-soft); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .6em; }
.card-body p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1.4em; flex: 1; }
.card-meta { font-size: .82rem; color: var(--ink-faint); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 14px; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px);
  align-items: center; padding: clamp(40px, 6vw, 70px) 0; border-top: 1px solid var(--line); }
.feature-row:first-of-type { border-top: 0; }
.feature-row.reverse > .feature-media { order: 2; }
@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse > .feature-media { order: 0; }
}
.feature-media { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 12px; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; gap: 24px; } }
.stat-num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--accent-deep); line-height: 1; }
.stat-label { color: var(--ink-soft); font-size: .95rem; margin-top: 8px; }

/* Quote */
.quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.4; color: var(--ink); font-style: italic;
  border-left: 2px solid var(--accent); padding-left: 24px; }
.quote-attr { margin-top: 18px; font-family: var(--sans); font-style: normal;
  font-size: .92rem; color: var(--ink-soft); }

/* Pricing */
.price-row { display: grid; grid-template-columns: 1.4fr 2fr auto; gap: 28px;
  padding: 28px 0; border-top: 1px solid var(--line); align-items: start; }
.price-row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .price-row { grid-template-columns: 1fr; gap: 10px; } }
.price-name { font-family: var(--serif); font-size: 1.3rem; }
.price-desc { color: var(--ink-soft); font-size: .98rem; }
.price-amount { font-family: var(--serif); font-size: 1.4rem; color: var(--ink);
  white-space: nowrap; text-align: right; }
.price-amount small { display: block; font-family: var(--sans); font-size: .8rem;
  color: var(--ink-faint); margin-top: 4px; font-weight: 400; }

/* Article / prose */
.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.prose h2 { margin-top: 1.8em; margin-bottom: .6em; }
.prose h3 { margin-top: 1.6em; margin-bottom: .5em; }
.prose p { margin-bottom: 1.3em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px;
  border-left: 2px solid var(--accent); font-family: var(--serif);
  font-style: italic; font-size: 1.15rem; color: var(--ink); }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.article-meta { color: var(--ink-faint); font-size: .9rem; letter-spacing: .04em;
  margin-bottom: 2em; padding-bottom: 1.2em; border-bottom: 1px solid var(--line); }
.article-hero { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); margin-bottom: 2em; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Forms */
.form { display: grid; gap: 20px; max-width: 640px; }
.form-row { display: grid; gap: 6px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
label { font-size: .88rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
label .req { color: var(--accent-deep); }
input, textarea, select {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; width: 100%; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 140px; resize: vertical; }
.field-error { color: var(--danger); font-size: .82rem; margin-top: 2px; min-height: 1em; }
input.invalid, textarea.invalid, select.invalid { border-color: var(--danger); }
.form-feedback { padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; display: none; }
.form-feedback.success { display: block; background: #E8F0EA; color: var(--success); border: 1px solid #BFD8C6; }
.form-feedback.error { display: block; background: #F4E3DF; color: var(--danger); border: 1px solid #E6C3BA; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent-check input { width: auto; margin-top: 3px; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 520px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 24px 60px -30px rgba(20,23,26,.4);
  padding: 22px 24px; display: none; }
.cookie-banner.show { display: block; animation: rise .4s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner h4 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 8px; }
.cookie-banner p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 16px; }
.cookie-banner p a { color: var(--accent-deep); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 9px 18px; font-size: .88rem; }

/* Contact blocks */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 70px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-block:first-of-type { border-top: 0; padding-top: 0; }
.contact-block h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; font-weight: 600; }
.contact-block p, .contact-block a { font-size: 1.05rem; }

/* Tag chips */
.chip { display: inline-block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
  background: var(--surface); margin-right: 8px; margin-bottom: 8px; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 28px 0;
  border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; }
.step-num { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1; }
.step h3 { margin-bottom: .4em; }
.step p { color: var(--ink-soft); margin-bottom: 0; }

/* Page hero (sub pages) */
.page-hero { padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 5vw, 60px); }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lead { max-width: 56ch; }
.breadcrumb { font-size: .85rem; color: var(--ink-faint); margin-bottom: 1.4em; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb span { margin: 0 8px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* 404 */
.err-wrap { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.err-code { font-family: var(--serif); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--accent); }

/* Legal prose */
.legal { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.legal h2 { margin-top: 2em; margin-bottom: .5em; font-size: 1.5rem; }
.legal h3 { margin-top: 1.6em; margin-bottom: .4em; font-size: 1.2rem; }
.legal ul, .legal ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.legal th { background: var(--bg-alt); font-weight: 600; }
.legal .updated { color: var(--ink-faint); font-size: .85rem; margin-bottom: 2em; }
