/* Web Api Ware — editorial usability theme */
:root {
  --color-ink: #1a3a32;
  --color-ink-soft: #2d5348;
  --color-paper: #f3f6f4;
  --color-paper-deep: #e4ebe7;
  --color-cream: #faf8f5;
  --color-accent: #c4783a;
  --color-accent-hover: #a8622e;
  --color-gold: #e8c07a;
  --color-muted: #5c6f68;
  --color-border: #c5d4ce;
  --color-error: #9b2c2c;
  --color-success: #1e5c45;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius: 4px;
  --shadow-soft: 0 12px 40px rgba(26, 58, 50, 0.08);
  --max: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 192, 122, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(45, 83, 72, 0.1), transparent 45%),
    linear-gradient(180deg, var(--color-paper) 0%, var(--color-cream) 40%, var(--color-paper-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--color-ink-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

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;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 246, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

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

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__brand:hover {
  color: var(--color-accent);
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.25s var(--ease);
}

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

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

.site-nav a:hover {
  color: var(--color-accent);
}

.site-nav__cta {
  background: var(--color-ink);
  color: var(--color-cream) !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.site-nav__cta:hover {
  background: var(--color-accent) !important;
  color: var(--color-cream) !important;
}

@media (max-width: 900px) {
  .site-header__toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

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

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

.btn--ink {
  background: var(--color-ink);
  color: var(--color-cream);
  border-color: var(--color-ink);
}

.btn--ink:hover {
  background: var(--color-ink-soft);
  color: var(--color-cream);
}

/* Hero — full-bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: var(--color-cream);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 58, 50, 0.92) 0%, rgba(26, 58, 50, 0.55) 48%, rgba(26, 58, 50, 0.25) 100%),
    linear-gradient(to top, rgba(26, 58, 50, 0.75), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-xl);
  max-width: 36rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  animation: rise 0.9s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-gold);
  line-height: 1.05;
}

.hero__lead {
  font-size: 1.15rem;
  color: rgba(250, 248, 245, 0.92);
  margin-bottom: var(--space-lg);
  max-width: 28rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

.section--tight {
  padding: var(--space-xl) 0;
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.section__intro {
  max-width: 38rem;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
}

.section__head {
  margin-bottom: var(--space-lg);
}

/* Offer strip */
.offer-strip {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

@media (max-width: 800px) {
  .offer-strip { grid-template-columns: 1fr; }
}

.offer-strip__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  animation: fade-in 1.2s var(--ease) both;
}

.offer-strip__visual img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.offer-strip__list {
  list-style: none;
  margin: var(--space-md) 0;
  padding: 0;
}

.offer-strip__list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border);
  padding-left: 1.25rem;
  position: relative;
}

.offer-strip__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--color-accent);
  border-radius: 1px;
}

/* Service grid — not cards with heavy chrome */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-lg);
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-item__img {
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.92);
  transition: filter 0.35s var(--ease), transform 0.35s var(--ease);
}

.service-item:hover .service-item__img {
  filter: saturate(1.05);
  transform: scale(1.015);
}

.service-item__title {
  margin: 0;
  font-size: 1.3rem;
}

.service-item__title a {
  text-decoration: none;
  color: var(--color-ink);
}

.service-item__meta {
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* Evidence / quotes */
.quote-stack {
  display: grid;
  gap: var(--space-lg);
}

.quote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  max-width: 42rem;
}

.quote--wide {
  max-width: none;
  background: rgba(255, 255, 255, 0.45);
  padding: var(--space-lg);
  border-left-width: 4px;
}

.quote__text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: var(--space-sm);
}

.quote__meta {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* Journal list */
.journal-list {
  display: grid;
  gap: var(--space-lg);
}

.journal-row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: var(--space-md);
  align-items: start;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s var(--ease);
}

.journal-row:hover {
  opacity: 0.85;
  color: inherit;
}

.journal-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}

.journal-row__date {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.journal-row h3 {
  margin: 0 0 0.35rem;
}

@media (max-width: 600px) {
  .journal-row { grid-template-columns: 1fr; }
}

/* Page hero (inner) */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(26, 58, 50, 0.06), transparent 60%);
}

.page-hero__title {
  margin: 0 0 var(--space-sm);
}

.page-hero__lead {
  max-width: 40rem;
  color: var(--color-muted);
  margin: 0;
  font-size: 1.1rem;
}

.page-hero--media {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-cream);
  overflow: hidden;
}

.page-hero--media .page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero--media .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--media .page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 58, 50, 0.88), rgba(26, 58, 50, 0.35));
}

.page-hero--media .wrap {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-xl);
  padding-top: var(--space-2xl);
}

.page-hero--media .page-hero__title,
.page-hero--media .page-hero__lead {
  color: var(--color-cream);
}

/* Detail layout */
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 800px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.detail-aside {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  border-radius: var(--radius);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.detail-aside dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

.detail-aside dd {
  margin: 0.15rem 0 0;
  font-weight: 500;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
}

.checklist li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}

.checklist__mark {
  color: var(--color-accent);
  font-weight: 700;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.rate-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-weight: 600;
}

.rate-note {
  color: var(--color-muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

/* Forms */
.form {
  max-width: 36rem;
  display: grid;
  gap: var(--space-md);
}

.form__field {
  display: grid;
  gap: 0.35rem;
}

.form__field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-ink);
  width: 100%;
}

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

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form__error {
  color: var(--color-error);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form__status {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status--success {
  background: rgba(30, 92, 69, 0.12);
  color: var(--color-success);
  border: 1px solid rgba(30, 92, 69, 0.3);
}

.form__status--error {
  background: rgba(155, 44, 44, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(155, 44, 44, 0.25);
}

.contact-aside {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.contact-aside p {
  margin-bottom: 0.35rem;
}

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

.prose h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose h3 {
  margin-top: var(--space-lg);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: var(--space-md) 0;
}

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

.prose th {
  background: rgba(26, 58, 50, 0.06);
}

/* 404 */
.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--space-xl) 1rem;
}

.not-found__code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-gold);
  margin: 0;
  line-height: 1;
}

/* Footer */
.site-footer {
  margin-top: var(--space-2xl);
  background: var(--color-ink);
  color: rgba(250, 248, 245, 0.88);
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer a {
  color: var(--color-gold);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-lg);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-gold);
  margin: 0 0 0.35rem;
}

.site-footer__tag {
  color: rgba(250, 248, 245, 0.7);
  font-size: 0.92rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__copy {
  width: min(100% - 2rem, var(--max));
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.55);
}

@media (max-width: 700px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-ink);
  color: var(--color-cream);
  padding: var(--space-md);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  animation: rise 0.4s var(--ease);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.95rem;
}

.cookie-banner__text a {
  color: var(--color-gold);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
}

.cookie-banner .btn--ghost {
  color: var(--color-cream);
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-banner .btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Process steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}

.steps li {
  counter-increment: step;
  padding-left: 3rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--color-ink);
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* Team */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-lg);
}

.person img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  width: 100%;
}

.person h3 {
  margin: 0 0 0.25rem;
}

.person__role {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* CTA band */
.cta-band {
  background: var(--color-ink);
  color: var(--color-cream);
  padding: var(--space-xl) 0;
  margin-top: var(--space-lg);
}

.cta-band h2 {
  color: var(--color-gold);
  margin-top: 0;
}

.cta-band p {
  color: rgba(250, 248, 245, 0.85);
  max-width: 32rem;
}

.cta-band .btn--primary {
  margin-top: var(--space-sm);
}
