:root {
  --salt-white: #f4f7f5;
  --atlantic-blue: #0b3a5c;
  --atlantic-deep: #072a43;
  --sea-glass: #7eb8b0;
  --sea-glass-deep: #4a8f88;
  --coral: #e07a6a;
  --coral-soft: #f0a99c;
  --brass: #d4a574;
  --brass-soft: #e6c49a;
  --ink: #1a2a32;
  --muted: #5a6b74;
  --paper: #fbfcfb;
  --shadow: 0 18px 40px rgba(7, 42, 67, 0.08);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1180px;
  --narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(126, 184, 176, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(224, 122, 106, 0.1), transparent 55%),
    linear-gradient(180deg, #eef3f1 0%, var(--salt-white) 35%, #e8f0ee 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--atlantic-deep);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0.2em 0 0.4em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 0.5em;
}

h3 {
  font-size: 1.45rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1rem;
}

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

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

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

.eyebrow,
.footer-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea-glass-deep);
  margin: 0 0 0.75rem;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary {
  background: var(--atlantic-blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--coral);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--atlantic-blue);
  border: 1px solid var(--brass);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(224, 122, 106, 0.12);
  color: var(--atlantic-deep);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.1rem;
}

.text-link:hover {
  border-color: var(--coral);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(244, 247, 245, 0.72);
  border-bottom: 1px solid rgba(212, 165, 116, 0.35);
}

.site-header__inner {
  position: relative;
  padding: 0.85rem 0;
}

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.site-header__wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--atlantic-deep);
  text-decoration: none;
  text-align: center;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

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

.site-nav__list--left {
  justify-content: flex-start;
}

.site-nav__list--right {
  justify-content: flex-end;
}

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

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--atlantic-blue);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: end;
}

.hero__figure {
  margin: 0;
  position: relative;
}

.hero__figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 165, 116, 0.55);
  box-shadow: var(--shadow);
  object-fit: cover;
  min-height: 520px;
}

.hero__figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-display);
}

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

.section {
  padding: 4.5rem 0;
}

.section--salt {
  background: rgba(255, 255, 255, 0.45);
}

.section--teal-wash {
  background: linear-gradient(120deg, rgba(126, 184, 176, 0.18), rgba(244, 247, 245, 0.4));
}

.section--closing {
  padding-bottom: 5rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

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

.paper-card {
  background: var(--paper);
  border: 1px solid rgba(212, 165, 116, 0.55);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.paper-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(7, 42, 67, 0.12);
}

.paper-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.paper-card--featured {
  background: linear-gradient(160deg, #fff, #f3f8f7);
}

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

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

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

.card-grid--people img {
  aspect-ratio: 4 / 5;
}

.check-list,
.process-list {
  padding-left: 1.1rem;
}

.check-list li,
.process-list li {
  margin-bottom: 0.65rem;
}

.magazine-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.magazine-row--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.magazine-row--reverse .magazine-row__media {
  order: 2;
}

.magazine-row__media {
  margin: 0;
}

.magazine-row__media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 165, 116, 0.45);
  box-shadow: var(--shadow);
  object-fit: cover;
  min-height: 360px;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.quote-card {
  margin: 0;
  background: var(--paper);
  border-left: 3px solid var(--sea-glass);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.quote-card p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--atlantic-deep);
}

.quote-card cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

.center-link {
  text-align: center;
  margin-top: 2rem;
}

.closing-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 165, 116, 0.5);
  background: linear-gradient(120deg, rgba(11, 58, 92, 0.06), rgba(126, 184, 176, 0.18));
}

.page-intro {
  padding: 3.5rem 0 1rem;
}

.page-header {
  margin-bottom: 2rem;
}

.prose-page,
.prose-block {
  padding-bottom: 4rem;
}

.prose-page h2,
.prose-block h2,
.detail-block h2 {
  margin-top: 2rem;
}

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

.fee-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 165, 116, 0.5);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.fee-table th,
.fee-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(126, 184, 176, 0.25);
  vertical-align: top;
}

.fee-table th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  background: rgba(126, 184, 176, 0.12);
  color: var(--atlantic-deep);
}

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

.contact-card address {
  font-style: normal;
  margin-bottom: 1rem;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea,
.newsletter-form input {
  width: 100%;
  border: 1px solid rgba(11, 58, 92, 0.2);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.newsletter-form input:focus {
  outline: 2px solid var(--sea-glass);
  outline-offset: 1px;
}

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

.field-error {
  color: #a13b2d;
}

.form-status.is-success {
  color: var(--sea-glass-deep);
}

.form-status.is-error {
  color: #a13b2d;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--coral);
}

.service-hero,
.post-detail .page-intro {
  padding-top: 3rem;
}

.service-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.service-hero figure {
  margin: 0;
}

.service-hero img,
.post-cover img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 165, 116, 0.45);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.post-cover {
  margin: 0 auto 2rem;
}

.detail-block {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 165, 116, 0.35);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.process-step h2 {
  font-size: 1.6rem;
}

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

/* Footer */
.site-footer {
  background: var(--atlantic-deep);
  color: rgba(244, 247, 245, 0.88);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

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

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

.site-footer .footer-label {
  color: var(--sea-glass);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(126, 184, 176, 0.25);
}

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

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

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

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

.newsletter-form {
  display: grid;
  gap: 0.65rem;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(244, 247, 245, 0.65);
}

.site-footer__legal ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

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

.cookie-banner__inner {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 252, 251, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 165, 116, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}

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

/* Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

[data-reveal].is-visible:nth-child(2) {
  transition-delay: 0.08s;
}

[data-reveal].is-visible:nth-child(3) {
  transition-delay: 0.16s;
}

[data-parallax] {
  will-change: transform;
}

@media (max-width: 960px) {
  .site-nav {
    grid-template-columns: auto 1fr;
  }

  .nav-toggle {
    display: inline-block;
    grid-column: 1;
    grid-row: 1;
  }

  .site-header__wordmark {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }

  .site-nav__list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0 0.25rem;
  }

  .site-nav.is-open .site-nav__list {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .hero__grid,
  .split-band,
  .magazine-row,
  .magazine-row--reverse,
  .card-grid,
  .card-grid--services,
  .card-grid--people,
  .quote-grid,
  .contact-grid,
  .service-hero__grid,
  .process-timeline,
  .site-footer__grid,
  .closing-band,
  .section-head--row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .magazine-row--reverse .magazine-row__media {
    order: 0;
  }

  .hero__figure img {
    min-height: 320px;
  }

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

  .site-footer__legal {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .paper-card,
  .btn {
    transition: none;
  }

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