:root {
  --color-chalk: #f7f4ef;
  --color-white: #fffcf8;
  --color-teal: #7ba8a0;
  --color-teal-deep: #5f8f87;
  --color-coral: #c47a6a;
  --color-coral-soft: #e8c4bb;
  --color-beige: #e6dccf;
  --color-dune: #d4c4b0;
  --color-navy: #1a2744;
  --color-ink: #121a2e;
  --color-text: #2a3348;
  --color-muted: #5c6578;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow-paper: 0 10px 30px rgba(26, 39, 68, 0.08);
  --header-h: 4.25rem;
  --max: 72rem;
  --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.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(123, 168, 160, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 122, 106, 0.12), transparent 50%),
    linear-gradient(180deg, var(--color-chalk) 0%, var(--color-white) 40%, var(--color-beige) 100%);
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
h3 { font-size: 1.45rem; }

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 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin: 0 0 0.75rem;
}

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

.price-note {
  font-weight: 600;
  color: var(--color-navy);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 244, 239, 0.78);
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

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

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

.site-header__list a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-navy);
}

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

.site-header__cta {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--color-navy);
  color: var(--color-white) !important;
  border-radius: var(--radius-pill);
  transition: background 0.3s var(--ease);
}

.site-header__cta:hover {
  background: var(--color-teal-deep);
}

.site-header__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.site-header__toggle-bar {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--color-navy);
  margin: 4px 0;
}

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.25s var(--ease);
}

.btn--navy {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--navy:hover {
  background: var(--color-teal-deep);
  color: var(--color-white);
}

.btn--teal {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--teal:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid rgba(26, 39, 68, 0.25);
}

.btn--ghost:hover {
  background: var(--color-beige);
}

.text-link {
  position: relative;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-navy);
}

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

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

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero--asymmetric {
  grid-template-columns: 1fr 1.15fr;
}

.hero__brand {
  margin-bottom: 0.4rem;
}

.hero__lede {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 30rem;
}

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

.hero__media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 39, 68, 0.12);
  box-shadow: var(--shadow-paper);
  min-height: 22rem;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section--tint {
  background: rgba(123, 168, 160, 0.12);
  max-width: none;
  padding-left: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
}

.section--beige {
  background: rgba(230, 220, 207, 0.55);
  max-width: none;
  padding-left: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
}

.section--coral-tint {
  background: rgba(196, 122, 106, 0.1);
  max-width: none;
  padding-left: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
}

.section__narrow {
  max-width: 40rem;
}

.section__header {
  margin-bottom: 2rem;
}

.section__header--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

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

.feature-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.feature-band__img {
  border-radius: var(--radius);
  border: 1px solid rgba(26, 39, 68, 0.12);
  box-shadow: var(--shadow-paper);
  width: 100%;
  object-fit: cover;
  max-height: 28rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-teal);
}

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

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

.card {
  background: var(--color-white);
  border: 1px solid rgba(26, 39, 68, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 39, 68, 0.12);
}

.card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.card__img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.card--featured .card__img {
  height: 100%;
  min-height: 16rem;
}

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

.card__body h2,
.card__body h3 {
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}

.card__body a {
  text-decoration: none;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-coral);
  margin-bottom: 0.5rem;
}

.quote-block {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.quote-block blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.35;
}

.quote-block footer {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.section--wide-image {
  position: relative;
  max-width: none;
  padding: 0;
  overflow: hidden;
}

.section--wide-image > img {
  width: 100%;
  height: min(70vh, 32rem);
  object-fit: cover;
}

.section__overlay-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  background: linear-gradient(transparent, rgba(18, 26, 46, 0.85));
  color: var(--color-white);
}

.section__overlay-copy h2 {
  color: var(--color-white);
}

.section__overlay-copy p {
  color: rgba(255, 252, 248, 0.9);
  max-width: 32rem;
}

.cta-band {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

/* Page layouts */
.page-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}

.page-intro--404 {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.page-hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(26, 39, 68, 0.12);
  box-shadow: var(--shadow-paper);
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 18rem;
}

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

.prose {
  max-width: 44rem;
}

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

.aside-panel {
  background: var(--color-white);
  border: 1px solid rgba(26, 39, 68, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-paper);
  height: fit-content;
}

.aside-panel--team img {
  border-radius: calc(var(--radius) - 4px);
  margin: 0 0 0.75rem;
  width: 100%;
  max-height: 16rem;
  object-fit: cover;
}

.aside-panel--team h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.aside-panel--team h2 + p {
  margin-bottom: 1.5rem;
}

.detail-list {
  margin: 0 0 1.25rem;
}

.detail-list dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-coral);
  margin-top: 0.85rem;
}

.detail-list dd {
  margin: 0.25rem 0 0;
}

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

.process-list--large {
  gap: 1.75rem;
}

.process-list li {
  background: var(--color-white);
  border: 1px solid rgba(26, 39, 68, 0.12);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-paper);
}

.fee-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 39, 68, 0.14);
  background: var(--color-white);
  box-shadow: var(--shadow-paper);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.fee-table th,
.fee-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(26, 39, 68, 0.1);
}

.fee-table th {
  background: rgba(123, 168, 160, 0.15);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.reviews-list {
  display: grid;
  gap: 1.25rem;
}

.review {
  margin: 0;
  padding: 1.5rem 1.6rem;
  background: var(--color-white);
  border: 1px solid rgba(26, 39, 68, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
}

.review p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.4;
}

.review--short p {
  font-size: 1.15rem;
}

.review footer {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.case-story {
  max-width: 44rem;
  margin: 0 auto 2rem;
}

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

.contact-details address {
  font-style: normal;
  margin-bottom: 1.25rem;
}

.contact-note {
  color: var(--color-muted);
  font-size: 0.95rem;
}

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

.contact-form {
  background: var(--color-white);
  border: 1px solid rgba(26, 39, 68, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-paper);
}

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

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

input,
select,
textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(26, 39, 68, 0.22);
  border-radius: 10px;
  background: var(--color-chalk);
  color: var(--color-text);
}

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

.field-error,
.form-message {
  font-size: 0.9rem;
  margin: 0;
}

.field-error {
  color: #9b3b2e;
}

.form-message.is-success {
  color: var(--color-teal-deep);
  font-weight: 600;
}

.form-message.is-error {
  color: #9b3b2e;
  font-weight: 600;
}

.newsletter-form__row {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form__row input {
  flex: 1;
  min-width: 0;
}

/* Post */
.post {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.post__cover {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(26, 39, 68, 0.12);
}

.post__cover img {
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
}

.post__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 39, 68, 0.12);
}

.post__body time,
.card__body time {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 252, 248, 0.88);
  margin-top: 3rem;
  padding: 3.5rem 1.5rem 1.5rem;
}

.site-footer a {
  color: rgba(255, 252, 248, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-teal);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.site-footer__tagline,
.site-footer__note {
  color: rgba(255, 252, 248, 0.7);
  font-size: 0.95rem;
}

.site-footer__address {
  font-style: normal;
  margin-top: 1.25rem;
  line-height: 1.7;
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 1rem;
}

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

.site-footer__links li {
  margin-bottom: 0.55rem;
}

.site-footer__strip {
  border-top: 1px solid rgba(255, 252, 248, 0.12);
  padding-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.site-footer__social,
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__copy {
  font-size: 0.85rem;
  color: rgba(255, 252, 248, 0.55);
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 40rem;
  margin: 0 auto;
}

.cookie-banner__inner {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 16px 40px rgba(18, 26, 46, 0.35);
  display: grid;
  gap: 1rem;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

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

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

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Responsive */
@media (max-width: 960px) {
  .hero--asymmetric,
  .feature-band,
  .page-hero,
  .prose-grid,
  .contact-layout,
  .card--featured,
  .section__header--split {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid--services,
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-header__toggle {
    display: block;
  }

  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 244, 239, 0.98);
    border-bottom: 1px solid rgba(26, 39, 68, 0.1);
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }

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

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

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

  .newsletter-form__row {
    flex-direction: column;
  }
}
