/* Framework Design — mineral editorial theme */
:root {
  --chalk: #f7f5f1;
  --sand: #e8dfd2;
  --sand-deep: #d9cbb8;
  --copper: #b87333;
  --copper-deep: #8f5624;
  --slate: #2c3540;
  --slate-soft: #3d4854;
  --blue: #3a7ca5;
  --off-white: #fffcf7;
  --text: #243038;
  --text-muted: #5c6670;
  --line: rgba(44, 53, 64, 0.18);
  --shadow: 0 12px 40px rgba(44, 53, 64, 0.08);
  --shadow-soft: 0 4px 18px rgba(44, 53, 64, 0.06);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
  --radius: 2px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(58, 124, 165, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(184, 115, 51, 0.1), transparent 50%),
    linear-gradient(180deg, var(--chalk), #f3eee6 40%, var(--chalk));
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--copper-deep);
}

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

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

p { margin: 0 0 1rem; }

.shell {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.shell--narrow {
  width: min(760px, calc(100% - 2.5rem));
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.eyebrow--light { color: #d7b089; }

.section-title {
  margin-bottom: 1rem;
}

.section-title--light { color: var(--chalk); }

.section-head {
  margin-bottom: 2.5rem;
  max-width: 38rem;
}

.lede,
.page-hero__lede,
.hero__lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.band {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.band--sand {
  background: linear-gradient(180deg, rgba(232, 223, 210, 0.55), rgba(232, 223, 210, 0.25));
}

.band--slate {
  background: linear-gradient(160deg, var(--slate), #1f262e 70%);
  color: #d7dde3;
}

.band--slate p,
.band--slate .quote-block footer {
  color: #c2cad2;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--reverse > :first-child { order: 2; }
.split--reverse > :last-child { order: 1; }

@media (max-width: 880px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }
  .split--reverse > :first-child,
  .split--reverse > :last-child { order: initial; }
}

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--compact {
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
}

.btn--copper {
  background: var(--copper);
  color: #fffaf4;
}

.btn--copper:hover {
  background: transparent;
  color: var(--copper-deep);
  border-color: var(--copper);
}

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

.btn--slate:hover {
  background: transparent;
  color: var(--slate);
  border-color: var(--slate);
}

.text-link {
  position: relative;
  display: inline-block;
  color: var(--slate);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 0.15rem;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.text-link:hover {
  color: var(--copper-deep);
}

.text-link:hover::after {
  transform: scaleX(1);
}

.text-link--on-dark {
  color: var(--chalk);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.75rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
}

.cta-band p {
  margin: 0;
  max-width: 36rem;
  font-size: 1.15rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 245, 241, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 241, 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2.5rem));
}

.site-header__brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header__list {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__list a {
  color: var(--slate-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-header__list a:hover {
  color: var(--copper);
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  margin: 0.28rem auto;
  background: var(--slate);
}

@media (max-width: 980px) {
  .site-header__toggle { display: inline-block; }
  .site-header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    background: rgba(247, 245, 241, 0.97);
    border-bottom: 1px solid var(--line);
    gap: 1rem;
  }
  .site-header__nav.is-open { display: flex; }
  .site-header__list {
    flex-direction: column;
    gap: 0.85rem;
  }
}

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

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 38, 46, 0.78) 0%, rgba(31, 38, 46, 0.45) 48%, rgba(31, 38, 46, 0.2) 100%),
    linear-gradient(0deg, rgba(31, 38, 46, 0.55), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vh, 7rem) 0;
}

.hero__brand {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 0.35rem;
  color: var(--chalk);
  letter-spacing: -0.02em;
}

.hero__title {
  color: var(--chalk);
  max-width: 14ch;
  margin-bottom: 0.85rem;
}

.hero__lede {
  color: #dce3ea;
}

/* Page hero */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 1rem;
}

.page-hero__title {
  max-width: 16ch;
}

.page-hero--error {
  min-height: 60vh;
  display: grid;
  align-content: center;
}

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

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

@media (max-width: 980px) {
  .card-grid,
  .card-grid--services { grid-template-columns: 1fr; }
}

.offer-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.offer-card__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.offer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.offer-card:hover .offer-card__media img {
  transform: scale(1.04);
}

.offer-card__body {
  padding: 1.35rem 1.4rem 1.6rem;
}

.offer-card__meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.offer-card h2,
.offer-card h3 {
  margin-bottom: 0.5rem;
}

.offer-card h2 a,
.offer-card h3 a {
  color: inherit;
  text-decoration: none;
}

.offer-card--listed {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

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

.cropped-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--off-white);
  box-shadow: var(--shadow-soft);
}

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

.cropped-figure figcaption,
.service-detail__figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

/* Quotes */
.quote-stack {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.quote-stack--page {
  grid-template-columns: repeat(2, 1fr);
}

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

.quote-block {
  margin: 0;
  max-width: 42rem;
}

.quote-block p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  color: inherit;
}

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

.quote-block--card {
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.story-long {
  max-width: 42rem;
}

.story-long + .story-long {
  margin-top: 1rem;
}

/* Service detail */
.service-detail__hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}

.service-detail__hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
  align-items: end;
}

@media (max-width: 880px) {
  .service-detail__hero-grid { grid-template-columns: 1fr; }
}

.service-detail__figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--off-white);
}

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

.check-list,
.plain-list {
  padding-left: 1.1rem;
  margin: 0 0 1.5rem;
}

.check-list li,
.plain-list li {
  margin-bottom: 0.55rem;
}

.h3-soft {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.process__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.4rem;
  background: var(--off-white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.process__num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--copper);
  line-height: 1;
}

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

@media (max-width: 900px) {
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
}

.meta-block {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--off-white);
}

.meta-block h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.meta-block p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Intakes */
.intake-list {
  display: grid;
  gap: 1.25rem;
}

.intake-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-soft);
}

.intake-card__status {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.intake-card__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.35rem;
}

.intake-card__meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.intake-card__meta dd {
  margin: 0.2rem 0 0;
}

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

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

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

.team-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

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

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

/* Pricing */
.rate-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--off-white);
  box-shadow: var(--shadow-soft);
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

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

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

.rate-table tr:last-child td { border-bottom: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

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

.contact-panel {
  padding: 1.75rem;
  background: var(--slate);
  color: #d7dde3;
}

.contact-panel h2 { color: var(--chalk); }
.contact-panel a { color: #d7b089; }
.contact-panel__note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: #aeb7c0;
}

.contact-form,
.newsletter {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label,
.newsletter__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--off-white);
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--text);
  border-radius: var(--radius);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(58, 124, 165, 0.35);
  border-color: var(--blue);
}

.field-error,
.form-msg {
  font-size: 0.88rem;
  margin: 0;
}

.field-error { color: #9b3b2e; }
.form-msg.is-success { color: #2f6b4f; }
.form-msg.is-error { color: #9b3b2e; }

.input-invalid {
  border-color: #9b3b2e;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--off-white);
  padding: 1rem 1.2rem;
}

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

.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
}

/* Blog / legal */
.post__hero {
  position: relative;
  margin-bottom: 2.5rem;
}

.post__hero-media {
  height: clamp(240px, 42vw, 420px);
  overflow: hidden;
}

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

.post__meta {
  margin-top: -4rem;
  position: relative;
  background: rgba(247, 245, 241, 0.94);
  border: 1px solid var(--line);
  padding: 1.75rem;
  max-width: 46rem;
  box-shadow: var(--shadow);
}

.post__byline {
  color: var(--text-muted);
  margin: 0;
}

.post__body {
  padding: 2.5rem 0 1rem;
}

.post__back { margin: 2rem 0 4rem; }

.prose h2 { margin-top: 2rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal {
  padding: 3rem 0 5rem;
}

.legal__updated {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.prose-wide {
  max-width: 46rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(165deg, #1f262e, var(--slate) 55%, #24303a);
  color: #c7d0d8;
  padding: 4.5rem 0 2rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #d7b089;
  text-decoration: none;
}

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

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 0.9fr;
  gap: 2rem;
}

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

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

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

.site-footer__tag {
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.site-footer__heading {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa5b0;
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

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

.newsletter input {
  background: rgba(255, 252, 247, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--chalk);
}

.newsletter__label { color: #d7dde3; }

.site-footer__base {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

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

.cookie-banner__inner {
  width: min(920px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1.15rem 1.35rem;
  background: var(--off-white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cookie-banner__inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__media img { transform: none; }
}
