/* Markenfeld Report — late-summer editorial theme */
:root {
  --chalk: #f7f4ef;
  --apricot: #f3e3d0;
  --terracotta: #c45c3e;
  --olive: #6b7a4e;
  --coral: #d9897a;
  --espresso: #2a211c;
  --ink: #3a2f28;
  --muted: #7a6b5f;
  --paper: #fffaf4;
  --hairline: rgba(42, 33, 28, 0.14);
  --shadow: 0 12px 30px rgba(42, 33, 28, 0.08);
  --radius: 14px;
  --radius-sm: 999px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --wide: min(1120px, calc(100% - 3rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 137, 122, 0.18), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(107, 122, 78, 0.12), transparent 28%),
    linear-gradient(180deg, var(--chalk) 0%, var(--apricot) 48%, var(--chalk) 100%);
  min-height: 100vh;
  line-height: 1.65;
}

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

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

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

h1,
h2,
h3,
.site-logo {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--espresso);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font: 600 0.95rem/1 var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn--primary {
  background: var(--terracotta);
  color: var(--espresso);
}

.btn--primary:hover {
  background: transparent;
  border-color: var(--terracotta);
  color: var(--espresso);
  text-decoration: underline;
}

.btn--olive {
  background: var(--olive);
  color: var(--chalk);
}

.btn--olive:hover {
  background: transparent;
  border-color: var(--olive);
  color: var(--espresso);
  text-decoration: underline;
}

.btn--ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--espresso);
}

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

.btn--nav {
  background: var(--terracotta);
  color: var(--espresso);
  padding: 0.55rem 1.1rem;
  min-height: auto;
}

.btn--nav:hover {
  background: var(--espresso);
  color: var(--chalk);
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(247, 244, 239, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-solid {
  background: rgba(247, 244, 239, 0.96);
  border-bottom-color: var(--hairline);
  box-shadow: 0 8px 24px rgba(42, 33, 28, 0.05);
}

.site-header__inner {
  width: var(--wide);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--espresso);
  letter-spacing: -0.02em;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:not(.btn):hover {
  color: var(--terracotta);
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--paper);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--espresso);
}

/* Hero home — asymmetrical magazine */
.home-hero {
  width: var(--wide);
  margin: 1.5rem auto 3rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  min-height: calc(100vh - var(--header-h) - 4rem);
}

.home-hero__media {
  margin: 0;
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
}

.home-hero__media img {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  transform: scale(1.04);
  will-change: transform;
}

.home-hero__kicker {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--olive);
  margin-bottom: 0.5rem;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.home-hero__note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 28rem;
  border-left: 2px solid var(--coral);
  padding-left: 1rem;
}

/* Sections */
.section {
  width: var(--wide);
  margin: 0 auto 4.5rem;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.section__head p {
  max-width: 28rem;
  color: var(--muted);
  margin: 0;
}

.feature-band {
  width: min(1280px, 100%);
  margin: 0 auto 4.5rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.92), rgba(243, 227, 208, 0.85));
  border-block: 1px solid var(--hairline);
}

.feature-band__inner {
  width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.feature-band__inner img {
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

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

.card {
  background: linear-gradient(180deg, var(--paper), rgba(243, 227, 208, 0.45));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(42, 33, 28, 0.12);
}

.card__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card__body h3 {
  margin-bottom: 0.4rem;
}

.card__body h3 a {
  color: var(--espresso);
  text-decoration: none;
}

.card__body h3 a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Split / asymmetrical blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split--offset > :first-child {
  transform: translateY(1.5rem);
}

.quote-stack {
  display: grid;
  gap: 1rem;
}

.quote {
  margin: 0;
  padding: 1.35rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--espresso);
}

.quote footer {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Page heroes */
.page-hero {
  width: var(--wide);
  margin: 2rem auto 3rem;
}

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

.page-hero__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}

.page-hero__media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.page-hero--plain {
  max-width: 44rem;
}

/* Service detail */
.service-detail__grid {
  width: var(--wide);
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.4fr 0.75fr;
  gap: 2rem;
  align-items: start;
}

.aside-card {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--paper), var(--apricot));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.spec-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1rem;
  margin: 0 0 1.25rem;
}

.spec-list dt {
  font-weight: 600;
  color: var(--olive);
}

.spec-list dd {
  margin: 0;
}

/* Prose */
.prose {
  max-width: 42rem;
}

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

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.article {
  width: min(760px, calc(100% - 3rem));
  margin: 2rem auto 4rem;
}

.article__hero {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.article__hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.article__meta {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

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

.form__row {
  display: grid;
  gap: 0.4rem;
}

.form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--paper);
  padding: 0.8rem 0.95rem;
  font: inherit;
  color: var(--espresso);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(196, 92, 62, 0.35);
  border-color: var(--terracotta);
}

.field-error {
  color: #9b2f1e;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form-status {
  margin: 0.5rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 500;
}

.form-status.is-success {
  background: rgba(107, 122, 78, 0.15);
  color: #3d4a2c;
}

.form-status.is-error {
  background: rgba(196, 92, 62, 0.15);
  color: #7a2f1f;
}

.contact-layout {
  width: var(--wide);
  margin: 2rem auto 4rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.contact-card {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card address {
  font-style: normal;
  line-height: 1.8;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--hairline);
}

.rate-table th {
  background: rgba(243, 227, 208, 0.7);
  font-family: var(--font-display);
}

.rate-note {
  margin-top: 1.5rem;
  color: var(--muted);
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.review-grid .quote:nth-child(3) {
  grid-column: 1 / -1;
}

.story {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--paper), rgba(217, 137, 122, 0.12));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

/* Briefings custom page */
.briefing-rail {
  display: grid;
  gap: 1.5rem;
}

.briefing-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.briefing-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

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

.site-footer a {
  color: rgba(247, 244, 239, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--apricot);
  text-decoration: underline;
}

.site-footer__inner {
  width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 2.5rem;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--chalk);
  margin-bottom: 0.75rem;
}

.site-footer__tag {
  max-width: 26rem;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.site-footer__heading {
  font-size: 1rem;
  color: var(--apricot);
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer__address {
  font-style: normal;
  line-height: 1.7;
}

.newsletter__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--chalk);
}

.newsletter__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1;
  min-width: 180px;
  border: 1px solid rgba(247, 244, 239, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--chalk);
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.site-footer__bottom {
  width: var(--wide);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 244, 239, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.legal-links,
.social-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
}

.cookie-banner__inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(42, 33, 28, 0.18);
}

.cookie-banner h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Legal */
.legal {
  width: min(760px, calc(100% - 3rem));
  margin: 2rem auto 4rem;
}

.legal h2 {
  margin-top: 2rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--hairline);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
  background: var(--paper);
}

/* 404 */
.error-page {
  width: var(--wide);
  margin: 4rem auto;
  text-align: left;
  max-width: 36rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.team-card {
  text-align: left;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.team-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.85rem;
}

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 0.9rem 0;
}

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

/* Responsive */
@media (max-width: 960px) {
  .home-hero,
  .page-hero--split,
  .feature-band__inner,
  .split,
  .service-detail__grid,
  .contact-layout,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero__media img,
  .page-hero__media img {
    height: 320px;
  }

  .card-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  .split--offset > :first-child {
    transform: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--chalk);
    border-bottom: 1px solid var(--hairline);
    padding: 1rem 1.5rem 1.25rem;
    display: none;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
  }

  .briefing-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .team-grid,
  .review-grid,
  .site-footer__cols {
    grid-template-columns: 1fr;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .section__head {
    flex-direction: column;
    align-items: start;
  }
}
