:root {
  --color-bg: #e6ebe8;
  --color-bg-elevated: #f3f6f4;
  --color-ink: #1c2820;
  --color-ink-muted: #4a5a50;
  --color-accent: #b85c38;
  --color-accent-hover: #9a4a2c;
  --color-teal: #2a4a52;
  --color-teal-soft: #3d636c;
  --color-line: #c5d0c9;
  --color-success: #2f6b4f;
  --color-error: #9b2c2c;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Helvetica Neue", sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius: 4px;
  --shadow-soft: 0 12px 40px rgba(28, 40, 32, 0.08);
  --header-h: 4.25rem;
  --max: 70rem;
  --measure: 38rem;
}

*,
*::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-ink);
  background:
    radial-gradient(ellipse 90% 50% at 10% -10%, rgba(184, 92, 56, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(42, 74, 82, 0.1), transparent 45%),
    linear-gradient(180deg, #dfe6e2 0%, var(--color-bg) 28%, #e9efeb 100%);
  min-height: 100vh;
}

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

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

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

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

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 var(--space-md);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: 0 0 var(--space-md);
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-md);
}

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

.l-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

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

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

.l-prose {
  max-width: var(--measure);
}

.l-prose > *:last-child {
  margin-bottom: 0;
}

.l-grid {
  display: grid;
  gap: var(--space-lg);
}

.l-grid--2 {
  grid-template-columns: 1fr;
}

.l-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .l-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .l-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .l-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Header */
.c-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(230, 235, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.c-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-md);
}

.c-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.c-logo:hover {
  color: var(--color-accent);
}

.c-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-line);
  background: var(--color-bg-elevated);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--color-ink);
}

.c-nav-toggle__bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.c-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-line);
  padding: var(--space-md) 1rem var(--space-lg);
}

.c-nav.is-open {
  display: block;
  animation: fade-slide 0.28s ease;
}

.c-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.c-nav__link {
  display: block;
  padding: 0.55rem 0.4rem;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 550;
}

.c-nav__link:hover,
.c-nav__link[aria-current="page"] {
  color: var(--color-accent);
}

@media (min-width: 980px) {
  .c-nav-toggle {
    display: none;
  }

  .c-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .c-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .c-nav__link {
    padding: 0.4rem 0.65rem;
    font-size: 0.95rem;
  }
}

/* Buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

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

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

.c-btn--ghost {
  background: transparent;
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.c-btn--ghost:hover {
  background: var(--color-teal);
  color: #f4ede4;
}

.c-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Hero variants */
.c-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

.c-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-teal);
  margin: 0 0 var(--space-lg);
  max-width: 12ch;
  animation: rise-in 0.7s ease both;
}

.c-hero__layout {
  display: grid;
  gap: var(--space-lg);
  align-items: end;
}

@media (min-width: 900px) {
  .c-hero__layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--space-xl);
  }
}

.c-hero__media {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  animation: fade-in 0.9s ease 0.15s both;
}

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

.c-hero__copy h1 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 520;
  max-width: 22ch;
  animation: rise-in 0.65s ease 0.1s both;
}

.c-hero__copy p {
  color: var(--color-ink-muted);
  max-width: 36ch;
  animation: rise-in 0.65s ease 0.2s both;
}

.c-hero--page {
  padding-bottom: var(--space-md);
}

.c-hero--page h1 {
  max-width: 18ch;
}

.c-hero--page p {
  color: var(--color-ink-muted);
  max-width: 42ch;
}

.c-hero--split-media {
  margin-top: var(--space-md);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 22rem;
}

.c-hero--split-media img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
}

/* Offer / list blocks */
.c-offer {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.c-offer:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.c-offer__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.c-offer__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.c-offer:hover .c-offer__media img {
  transform: scale(1.04);
}

.c-offer__body {
  padding: var(--space-md);
}

.c-offer__body h3 {
  margin-bottom: 0.4rem;
}

.c-offer__body h3 a {
  color: inherit;
  text-decoration: none;
}

.c-offer__body h3 a:hover {
  color: var(--color-accent);
}

.c-offer__meta {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-sm);
}

/* Quote / review */
.c-quote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
  background: rgba(243, 246, 244, 0.7);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.c-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 480;
  line-height: 1.45;
}

.c-quote__author {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-ink-muted);
  margin: 0;
}

/* Forms */
.c-form {
  display: grid;
  gap: var(--space-md);
  max-width: 36rem;
}

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

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

.c-field textarea {
  min-height: 8rem;
  resize: vertical;
}

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

.c-field__error {
  display: none;
  color: var(--color-error);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.c-field.is-invalid .c-field__error {
  display: block;
}

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

.c-form__status {
  display: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-weight: 550;
}

.c-form__status.is-visible {
  display: block;
}

.c-form__status--success {
  background: #d9ebe1;
  color: var(--color-success);
}

.c-form__status--error {
  background: #f3d9d9;
  color: var(--color-error);
}

/* Tables */
.c-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg-elevated);
}

.c-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

.c-table th {
  background: rgba(42, 74, 82, 0.08);
  font-weight: 650;
}

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

/* Pricing rows */
.c-rate {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-line);
}

.c-rate:last-child {
  border-bottom: 0;
}

.c-rate__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  align-items: baseline;
}

.c-rate__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-teal);
  white-space: nowrap;
}

/* Contact strip */
.c-contact-block {
  background: var(--color-teal);
  color: #f4ede4;
  padding: var(--space-lg);
  border-radius: var(--radius);
}

.c-contact-block a {
  color: #f4ede4;
}

.c-contact-block h2 {
  color: #f4ede4;
}

.c-contact-block__item {
  margin-bottom: var(--space-sm);
  word-break: break-word;
}

/* Footer */
.c-footer {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--color-line);
  background: rgba(42, 74, 82, 0.06);
}

.c-footer__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 800px) {
  .c-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.c-footer h2 {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

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

.c-footer__list a {
  color: var(--color-ink-muted);
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0;
}

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

.c-footer__meta {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-line);
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

/* Cookie banner */
.c-cookie {
  position: fixed;
  z-index: 60;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 32rem;
  margin-inline: auto;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: var(--space-md);
  display: none;
}

.c-cookie.is-visible {
  display: block;
  animation: rise-in 0.35s ease;
}

.c-cookie p {
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.c-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Misc content helpers */
.c-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.c-panel {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.c-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.c-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
}

.c-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-accent);
}

.c-media-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.c-media-block img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.c-post-meta {
  color: var(--color-ink-muted);
  font-size: 0.92rem;
  margin-bottom: var(--space-md);
}

.c-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--color-teal);
  border: 1px solid var(--color-line);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius);
  background: rgba(243, 246, 244, 0.8);
}

.c-404 {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.c-404 h1 {
  font-size: clamp(3rem, 12vw, 6rem);
  color: var(--color-teal);
}

.legal-list {
  padding-left: 1.2rem;
}

.legal-list li {
  margin-bottom: 0.45rem;
}

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

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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