:root {
  --bg: #f3eee4;
  --bg-deep: #e8e0d2;
  --surface: #fbf8f1;
  --ink: #1c1915;
  --ink-soft: #5a5248;
  --line: #d4cbb8;
  --gold: #8f7348;
  --gold-bright: #c4a574;
  --gold-deep: #6f5634;
  --espresso: #1c1915;
  --cream: #f7f3ea;
  --danger: #8a3b32;
  --ok: #2f5d45;
  --shadow: 0 18px 50px rgba(28, 25, 21, 0.08);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-main {
  flex: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(28, 25, 21, 0.96);
  color: var(--cream);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 165, 116, 0.22);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(196, 165, 116, 0.45);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: 500 0.85rem var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  align-items: center;
}

.site-nav a {
  color: rgba(247, 243, 234, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.include-error,
.script-error {
  margin: 0;
  padding: 0.75rem 1.25rem;
  background: #f3e4df;
  color: var(--danger);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  background: var(--espresso);
  color: rgba(247, 243, 234, 0.78);
  margin-top: 4rem;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer h2 {
  font-size: 1.05rem;
  color: var(--gold-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 500;
  margin-bottom: 1rem;
}

.site-footer p,
.site-footer address {
  font-style: normal;
  color: rgba(247, 243, 234, 0.78);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  color: rgba(247, 243, 234, 0.78);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(196, 165, 116, 0.18);
  font-size: 0.85rem;
  color: rgba(247, 243, 234, 0.55);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font: 500 0.95rem var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-gold:hover {
  background: var(--gold-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(196, 165, 116, 0.55);
}

.btn-light:hover {
  background: rgba(196, 165, 116, 0.12);
  color: var(--gold-bright);
}

/* Eyebrow / kicker */
.kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

/* Hero variants */
.hero-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
}

.hero-editorial h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.lede {
  font-size: 1.12rem;
  max-width: 38rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.float-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  max-width: 14rem;
}

.float-chip strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}

.float-chip span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.chip-a { left: -1rem; bottom: 2rem; }
.chip-b { right: 0.5rem; top: 1.25rem; }

/* Trust strip */
.trust-strip {
  background: var(--espresso);
  color: var(--cream);
  padding: 1.6rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.trust-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold-bright);
}

.trust-item span {
  font-size: 0.88rem;
  color: rgba(247, 243, 234, 0.7);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--bg-deep);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.45rem;
  margin: 0;
}

.card-body p {
  margin: 0;
  flex: 1;
}

.meta {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Quote / testimonials */
.quote-stack {
  display: grid;
  gap: 1.25rem;
}

.quote {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: 1.3rem 1.4rem;
  border-radius: 0 14px 14px 0;
}

.quote p {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 0.7rem;
}

.quote footer {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: normal;
}

.quote.compact p {
  font-size: 1.05rem;
  font-family: var(--sans);
  font-style: normal;
}

/* Page heroes */
.page-hero {
  padding: 3.8rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  max-width: 18ch;
}

.page-hero.with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: end;
  padding-bottom: 0;
}

.page-hero.with-image img {
  height: 320px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.8rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--gold);
}

.price-card.featured h2,
.price-card.featured p,
.price-card.featured li {
  color: rgba(247, 243, 234, 0.86);
}

.price-card.featured h2 {
  color: var(--gold-bright);
}

.price-card .amount {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--ink);
  margin: 0.3rem 0 1rem;
}

.price-card.featured .amount {
  color: var(--cream);
}

.price-card ul {
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}

.price-note {
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
}

input,
select,
textarea {
  font: 400 1rem var(--sans);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 400;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  display: none;
}

.form-status.ok {
  display: block;
  background: #e5f0e9;
  color: var(--ok);
}

.form-status.err {
  display: block;
  background: #f3e4df;
  color: var(--danger);
}

/* Legal / prose */
.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.7rem;
  margin-top: 2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.2rem 0 1.6rem;
  background: var(--surface);
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-deep);
  font-weight: 500;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}

.faq details p {
  margin: 0.7rem 0 0.2rem;
}

/* Blog */
.article {
  max-width: 42rem;
}

.article header {
  margin-bottom: 1.8rem;
}

.article header img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  margin: 1.2rem 0 0.4rem;
}

.article h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

/* 404 */
.not-found {
  text-align: center;
  padding: 6rem 0 5rem;
}

.not-found h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 0.2rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(28, 25, 21, 0.12);
  padding: 1.1rem 0;
}

.cookie-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 46rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Misc */
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.person {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.modules {
  counter-reset: mod;
  list-style: none;
  padding: 0;
  margin: 0;
}

.modules li {
  counter-increment: mod;
  padding: 1.1rem 0 1.1rem 3.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.modules li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.2rem;
}

.rating-row {
  letter-spacing: 0.08em;
  color: var(--gold);
  font-size: 0.9rem;
}

.case-study {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  margin-bottom: 1.4rem;
}

.case-study img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.contact-aside address {
  font-style: normal;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

@media (max-width: 960px) {
  .hero-editorial,
  .page-hero.with-image,
  .split,
  .footer-grid,
  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .price-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .chip-a,
  .chip-b {
    position: static;
    margin-top: 0.75rem;
    max-width: none;
  }

  .hero-visual img,
  .page-hero.with-image img {
    height: 260px;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #141210;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.2rem;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(196, 165, 116, 0.15);
  }

  .cookie-inner,
  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .header-inner {
    position: relative;
  }
}
