:root {
  --salt: #f7f5f1;
  --salt-deep: #ece8e1;
  --atlantic: #0b3a5c;
  --atlantic-mid: #145078;
  --sea-glass: #7ec8c3;
  --sea-glass-deep: #4fa8a2;
  --coral: #e8a598;
  --coral-hot: #d97b68;
  --brass: #c4a574;
  --brass-soft: rgba(196, 165, 116, 0.45);
  --ink: #1a2a33;
  --muted: #5c6b74;
  --paper: #fffcf8;
  --shadow: 0 12px 40px rgba(11, 58, 92, 0.08);
  --radius: 18px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --max: 1180px;
  --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(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(126, 200, 195, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 165, 152, 0.12), transparent 45%),
    linear-gradient(180deg, var(--salt) 0%, var(--salt-deep) 100%);
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
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;
}

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

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

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

.btn--primary {
  background: var(--atlantic);
  color: var(--salt);
}

.btn--primary:hover {
  background: var(--coral-hot);
  color: var(--salt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 123, 104, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.btn--ghost:hover {
  background: rgba(232, 165, 152, 0.15);
  color: var(--coral-hot);
  transform: translateY(-2px);
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--brass-soft);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-header__brand {
  grid-column: 2;
  justify-self: center;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--atlantic);
  text-decoration: none;
  letter-spacing: -0.01em;
  text-align: center;
}

.site-header__toggle {
  grid-column: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: var(--paper);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.site-header__toggle-bar {
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--atlantic);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.9rem;
}

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

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

.site-nav__cta {
  background: var(--atlantic);
  color: var(--salt) !important;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.site-nav__cta:hover {
  background: var(--coral-hot) !important;
}

main {
  overflow-x: hidden;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section__header {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section__intro--narrow {
  max-width: 34rem;
  margin-bottom: 2rem;
}

.page-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 1rem;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

.hero--asymmetric {
  grid-template-columns: 1.05fr 0.95fr;
}

.hero__title {
  margin: 0 0 1.25rem;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.hero__media {
  position: relative;
}

.hero__media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--brass-soft);
  box-shadow: var(--shadow);
  object-fit: cover;
  min-height: 420px;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 12% -8% -8% 18%;
  border: 1px solid var(--sea-glass);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.55;
}

.flagship-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.flagship-panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.flagship-panel__body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

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

.check-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.65rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sea-glass);
}

.price-note {
  font-family: var(--font-display);
  color: var(--atlantic);
  font-size: 1.05rem;
}

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

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

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

.card {
  background: var(--paper);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(11, 58, 92, 0.12);
}

.card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card--team .card__image {
  aspect-ratio: 1;
}

.card__body {
  padding: 1.5rem 1.6rem 1.75rem;
  flex: 1;
}

.card__title {
  margin: 0.35rem 0 0.65rem;
  font-size: 1.2rem;
}

.card__title a {
  text-decoration: none;
  color: inherit;
}

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

.card__meta {
  font-size: 0.9rem;
  color: var(--sea-glass-deep);
  font-weight: 600;
}

.section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.pull-quote {
  margin: 1.5rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 3px solid var(--brass);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--atlantic);
}

.pull-quote footer {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
}

.layered-image {
  position: relative;
}

.layered-image img {
  border-radius: var(--radius);
  border: 1px solid var(--brass-soft);
  box-shadow: var(--shadow);
}

.layered-image::before {
  content: "";
  position: absolute;
  width: 40%;
  height: 40%;
  left: -8%;
  bottom: -8%;
  background: linear-gradient(135deg, var(--sea-glass), transparent);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.5;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.notes-list__item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--brass-soft);
}

.notes-list__item time {
  font-size: 0.85rem;
  color: var(--muted);
}

.notes-list__item h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.35rem;
}

.notes-list__item h3 a {
  text-decoration: none;
  color: inherit;
}

.paper-panel {
  background: var(--paper);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.fee-table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.fee-table th,
.fee-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--brass-soft);
  vertical-align: top;
}

.fee-table th {
  font-family: var(--font-display);
  color: var(--atlantic);
  background: rgba(126, 200, 195, 0.12);
}

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

.review-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
}

.review-card--wide {
  grid-column: 1 / -1;
}

.review-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--atlantic);
}

.review-card footer {
  font-size: 0.92rem;
  color: var(--muted);
}

.review-card__service {
  display: block;
  margin-top: 0.35rem;
  color: var(--sea-glass-deep);
  font-weight: 600;
}

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

.page-hero__image {
  border-radius: var(--radius);
  border: 1px solid var(--brass-soft);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  max-height: 380px;
}

.prose-section {
  max-width: 42rem;
}

.prose-section.section,
section.prose-section {
  max-width: var(--max);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

.process-list {
  padding-left: 1.25rem;
}

.process-list li {
  margin-bottom: 0.75rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--atlantic);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--brass-soft);
  border-radius: 12px;
  font: inherit;
  background: var(--salt);
  color: var(--ink);
}

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

.form-field__error {
  color: var(--coral-hot);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(126, 200, 195, 0.2);
  color: var(--atlantic);
  font-weight: 600;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
}

.timeline__step:hover {
  transform: translateY(-3px);
}

.timeline__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--coral);
  line-height: 1;
}

.timeline__step h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.post__cover {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--brass-soft);
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow);
}

.post__meta {
  color: var(--muted);
}

.legal {
  max-width: 760px;
}

.case-block .section--split {
  margin-top: 1rem;
}

.error-page {
  text-align: center;
  padding-bottom: 5rem;
}

.error-page .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--atlantic);
  color: rgba(247, 245, 241, 0.88);
  padding: 3.5rem 1.5rem 1.5rem;
}

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

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

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(196, 165, 116, 0.35);
}

.site-footer__label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.85rem;
}

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

.site-footer__tag,
.site-footer__text {
  color: rgba(247, 245, 241, 0.75);
  font-size: 0.95rem;
}

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

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

.site-footer__newsletter .btn {
  margin-top: 0.75rem;
}

.site-footer__legal {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: rgba(247, 245, 241, 0.55);
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  max-width: 520px;
}

.cookie-banner__inner {
  background: var(--paper);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 16px 48px rgba(11, 58, 92, 0.18);
}

.cookie-banner__text {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

.cookie-banner__error {
  color: var(--coral-hot);
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

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

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

.hero__copy .hero__title,
.hero__copy .hero__lead,
.hero__copy .btn {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.hero.is-visible .hero__title {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}

.hero.is-visible .hero__lead {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}

.hero.is-visible .btn {
  opacity: 1;
  transform: none;
  transition-delay: 0.4s;
}

[data-parallax] img {
  will-change: transform;
  transition: transform 0.2s linear;
}

@media (max-width: 960px) {
  .hero--asymmetric,
  .flagship-panel,
  .section--split,
  .page-hero--service,
  .contact-layout,
  .card-grid,
  .card-grid--team,
  .site-footer__inner,
  .two-col {
    grid-template-columns: 1fr;
  }

  .notes-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .site-header__toggle {
    display: flex;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 1rem;
  }

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

  .site-header__brand {
    grid-column: 2;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .hero__copy .hero__title,
  .hero__copy .hero__lead,
  .hero__copy .btn {
    opacity: 1;
    transform: none;
  }
}
