:root {
  --bg: #f3f1ec;
  --bg-elevated: #fffcf7;
  --ink: #1b2a33;
  --ink-soft: #4a5963;
  --line: #d5cfc4;
  --accent: #c4783a;
  --accent-deep: #9a5a28;
  --accent-soft: #f0e0d0;
  --sea: #2f5d6b;
  --sea-soft: #d9e6ea;
  --success: #2f6b4f;
  --error: #9b3a32;
  --shadow: 0 18px 40px rgba(27, 42, 51, 0.08);
  --radius: 4px;
  --radius-lg: 18px;
  --header-h: 76px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
  --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);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 120, 58, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(47, 93, 107, 0.1), transparent 50%),
    linear-gradient(180deg, #efece5 0%, var(--bg) 28%, #ece8e1 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: var(--radius);
}

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

.inline-error {
  background: #f8e4e2;
  color: var(--error);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 241, 236, 0.82);
  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(255, 252, 247, 0.92);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 55%, var(--sea) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  transition: transform 0.25s var(--ease);
}

.nav-toggle-bar::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.site-nav .nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}

.site-nav a.nav-cta::after {
  display: none;
}

.site-nav a.nav-cta:hover {
  background: var(--accent-deep);
}

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

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

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

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

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.hero {
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

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

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 12ch;
  margin-bottom: 0.8rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

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

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: rise-in 0.9s var(--ease) both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(27, 42, 51, 0.35));
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  color: #fff;
  font-size: 0.85rem;
  max-width: 22ch;
  line-height: 1.4;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy {
  animation: fade-up 0.8s var(--ease) both;
}

.section {
  padding: 4.5rem 0;
}

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

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.band {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.offer-list {
  display: grid;
  gap: 1.5rem;
}

.offer-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.offer-row:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.offer-row img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.offer-row h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.offer-row p {
  margin: 0;
  color: var(--ink-soft);
}

.story-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.quote-block {
  padding: 2rem;
  background: var(--ink);
  color: #f5f1ea;
  border-radius: var(--radius-lg);
  position: relative;
}

.quote-block::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.quote-block p {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.quote-meta {
  color: rgba(245, 241, 234, 0.7);
  font-size: 0.9rem;
}

.aside-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background:
    linear-gradient(160deg, var(--sea-soft), transparent 60%),
    var(--bg-elevated);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.aside-panel h3 {
  font-size: 1.4rem;
}

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

.media-split img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 360px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

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

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
}

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

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

.guide-tile {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-bottom: 2px solid var(--line);
  padding-bottom: 1.25rem;
  transition: border-color 0.3s var(--ease);
}

.guide-tile:hover {
  border-color: var(--accent);
}

.guide-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.guide-tile h3 {
  font-size: 1.15rem;
  color: var(--ink);
}

.guide-tile p {
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 18ch;
}

.page-hero p {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.page-hero-full {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: 0;
}

.page-hero-full img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-full .container {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2.5rem;
  color: #fff;
}

.page-hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 42, 51, 0.82), rgba(27, 42, 51, 0.35));
}

.page-hero-full p {
  color: rgba(255, 255, 255, 0.85);
}

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

.service-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.service-item h2,
.service-item h3 {
  font-size: 1.35rem;
  margin: 0;
}

.service-item p {
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-layout .sticky-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--bg-elevated);
}

.sticky-panel dl {
  margin: 0 0 1.25rem;
}

.sticky-panel dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 0.85rem;
}

.sticky-panel dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.rate-table th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

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

.rate-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.review-list {
  display: grid;
  gap: 1.5rem;
}

.review-item {
  padding: 1.75rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.review-item blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.review-item footer {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: center;
}

.case-study img {
  border-radius: var(--radius-lg);
  height: 300px;
  width: 100%;
  object-fit: cover;
}

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

.contact-card {
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

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

.field {
  margin-bottom: 1.1rem;
}

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

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

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

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

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

.form-status.is-success {
  background: #e4f2ea;
  color: var(--success);
}

.form-status.is-error {
  background: #f8e4e2;
  color: var(--error);
}

.legal-content {
  max-width: 46rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--accent-soft);
}

.curriculum-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.curriculum-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.curriculum-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
}

.article-body {
  max-width: 42rem;
  margin-inline: auto;
}

.article-body .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.article-hero {
  margin: 0 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 420px;
}

.article-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.article-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 0.4rem;
}

.site-footer {
  margin-top: 4rem;
  background: var(--ink);
  color: rgba(255, 252, 247, 0.82);
  padding: 3.5rem 0 0;
}

.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-heading {
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

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

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

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

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

.site-footer address {
  font-style: normal;
  margin-bottom: 0.75rem;
}

.footer-base {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 0;
  text-align: center;
  font-size: 0.88rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  animation: rise-in 0.45s var(--ease);
}

.cookie-banner-inner {
  max-width: 720px;
  margin-inline: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner-inner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

.muted {
  color: var(--ink-soft);
}

.cta-band {
  padding: 3rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(196, 120, 58, 0.16), rgba(47, 93, 107, 0.14)),
    var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

.cta-band p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36ch;
}

@media (max-width: 960px) {
  .hero-grid,
  .story-strip,
  .media-split,
  .detail-layout,
  .contact-grid,
  .case-study,
  .footer-inner,
  .two-col,
  .service-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .offer-row {
    grid-template-columns: 1fr;
  }

  .offer-row img {
    width: 100%;
    height: 180px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(243, 241, 236, 0.98);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: none;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a.nav-cta {
    margin: 0.75rem 0 0;
    text-align: center;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .footer-inner {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero {
    padding-top: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .cta-band {
    padding: 1.5rem;
  }
}
