:root {
  --bg: #f5f3ef;
  --bg-muted: #ebe7e0;
  --surface: #fffcf8;
  --text: #2a2824;
  --muted: #6a645c;
  --accent: #3d5a4c;
  --accent-deep: #2f453a;
  --line: #d9d3c8;
  --error: #8b3a2f;
  --success: #2f453a;
  --shadow: 0 18px 40px rgba(42, 40, 36, 0.08);
  --radius: 4px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::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(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(61, 90, 76, 0.08), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(42, 40, 36, 0.05), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(245, 243, 239, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(42, 40, 36, 0.04);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

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

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

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

.nav-cta {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero-home {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slow-zoom 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 28, 24, 0.2) 0%, rgba(24, 28, 24, 0.72) 70%, rgba(24, 28, 24, 0.88) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  max-width: 42rem;
  margin-left: max(calc((100% - var(--shell)) / 2), 1.25rem);
  margin-right: auto;
  width: min(42rem, calc(100% - 2.5rem));
  animation: rise 0.8s ease both;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

.lede {
  font-size: 1.12rem;
  color: inherit;
  opacity: 0.92;
  max-width: 38rem;
}

.hero-home .lede {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 1rem;
  animation: rise 0.6s ease both;
}

.page-hero .lede,
.section .lede {
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

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

.section-muted {
  background: color-mix(in srgb, var(--bg-muted) 80%, white);
}

.section-accent {
  background: var(--accent);
  color: #fff;
}

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

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

.section-head p,
.section-accent p {
  color: inherit;
  opacity: 0.9;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

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

.fact-list li {
  padding: 0.95rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

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

.offer-item {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0 0 1.25rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.offer-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
}

.offer-item h2,
.offer-item h3,
.offer-item p,
.offer-item .meta,
.offer-item .meta-list,
.offer-item .text-link {
  padding-inline: 1.15rem;
}

.meta,
.meta-list {
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-list {
  list-style: none;
  padding-left: 1.15rem;
  margin: 0 0 1rem;
}

.meta-list li {
  margin-bottom: 0.25rem;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.section-cta {
  margin-top: 2rem;
}

.narrow {
  max-width: 720px;
}

.pull-quote {
  margin: 0;
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.35;
}

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

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.prose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.steps {
  padding-left: 1.2rem;
}

.steps li {
  margin-bottom: 0.6rem;
}

.rate-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

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

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

.rate-table th {
  background: var(--bg-muted);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.story-quote {
  margin: 0;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.story-quote footer {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.case-item {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.contact-form,
.contact-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

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

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, white);
  border-color: var(--accent);
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.form-status {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}

.form-status.is-success {
  background: color-mix(in srgb, var(--success) 12%, white);
  color: var(--success);
}

.form-status.is-error {
  background: color-mix(in srgb, var(--error) 12%, white);
  color: var(--error);
}

.footer-address {
  font-style: normal;
  display: grid;
  gap: 0.2rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: #efebe4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.7fr;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.footer-tag,
.footer-base {
  color: var(--muted);
}

.footer-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.legal h2 {
  margin-top: 2rem;
}

.article-figure {
  margin: 1.5rem 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.center-copy {
  text-align: center;
  padding-block: 4rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(42, 40, 36, 0.96);
  color: #fff;
  padding: 1rem 0;
  animation: rise 0.35s ease both;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner a {
  color: #fff;
}

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

.cookie-banner .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-banner .btn-primary {
  background: #fff;
  color: var(--text);
}

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

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
    animation: rise 0.25s ease both;
  }

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

  .split,
  .offer-grid,
  .hero-split,
  .prose-grid,
  .case-grid,
  .contact-grid,
  .footer-grid,
  .cta-band,
  .cookie-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    display: grid;
  }

  .cta-band,
  .cookie-inner {
    display: flex;
  }

  .hero-copy {
    margin-left: 1.25rem;
  }

  .btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
  }
}

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