:root {
  --bg: #F5F2EB;
  --bg-alt: #EDE9E0;
  --text: #2A2A2A;
  --text-muted: #5C5C5C;
  --pine: #2D4A3E;
  --pine-dark: #1E3329;
  --copper: #C17F59;
  --copper-light: #D4A088;
  --border: #D4CFC4;
  --grid-line: rgba(45, 74, 62, 0.12);
  --shadow: 0 2px 8px rgba(42, 42, 42, 0.06);
  --shadow-hover: 0 4px 16px rgba(42, 42, 42, 0.1);
  --radius: 4px;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --max-width: 72rem;
  --section-gap: 5rem;
}

*, *::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(--text);
  background: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--pine-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

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

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

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

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

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--pine);
  border-radius: var(--radius);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 5px;
  right: 5px;
  height: 2px;
  background: var(--copper);
  transform: skewY(-8deg);
}

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

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-color: var(--copper);
}

.nav-cta {
  background: var(--pine) !important;
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--pine-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

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

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

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

.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-copper {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}

.btn-copper:hover {
  background: #A86B4A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: var(--section-gap);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--pine);
}

.footer-contact address {
  font-style: normal;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

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

.footer-links li,
.footer-legal li {
  margin-bottom: 0.375rem;
}

.footer-links a,
.footer-legal a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-links a:hover,
.footer-legal a:hover { color: var(--pine); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-top: 2px solid var(--copper);
  padding: 1.25rem;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(42, 42, 42, 0.08);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.9375rem;
}

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

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

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

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.1875rem;
  color: var(--text-muted);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--copper);
  z-index: 1;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Sections */
.section {
  padding: var(--section-gap) 0;
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--copper);
  margin-top: 0.5rem;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card-body h3 {
  margin: 0 0 0.5rem;
}

.card-body h3 a {
  text-decoration: none;
  color: var(--text);
}

.card-body h3 a:hover { color: var(--pine); }

.card-link {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

/* Page header */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 1.0625rem;
}

/* Prose */
.prose {
  max-width: 42rem;
}

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

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--copper);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-style: italic;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.testimonial-extended {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Pricing */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.price-table th,
.price-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  font-family: var(--font-heading);
  background: var(--bg-alt);
}

.price-table td:last-child {
  font-weight: 600;
  color: var(--pine);
}

.pricing-note {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.form-error {
  color: #8B3A3A;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.invalid .form-error { display: block; }
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #8B3A3A;
}

.form-success {
  background: #E8F0EC;
  border: 1px solid var(--pine);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
}

.form-success.visible { display: block; }

.form-error-global {
  background: #F5E8E8;
  border: 1px solid #8B3A3A;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
}

.form-error-global.visible { display: block; }

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

.contact-details address {
  font-style: normal;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Schedule table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

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

.schedule-table th {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pine);
  background: var(--bg-alt);
}

.schedule-table .status-open {
  color: var(--pine);
  font-weight: 600;
}

.schedule-table .status-limited {
  color: var(--copper);
  font-weight: 600;
}

/* Service detail */
.service-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--border);
  margin-bottom: 2rem;
}

.service-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.service-meta dd {
  margin: 0;
  font-weight: 600;
  font-family: var(--font-heading);
}

.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: var(--copper);
  border-radius: 1px;
}

/* Blog */
.post-header {
  margin-bottom: 2rem;
}

.post-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.post-cover {
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-cover img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--pine);
  margin-bottom: 0.5rem;
}

/* Legal */
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 1.5rem 0;
}

.cookies-table th,
.cookies-table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.cookies-table th {
  background: var(--bg-alt);
  font-family: var(--font-heading);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.process-steps li {
  counter-increment: step;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  background: var(--pine);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: none;
  }

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

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
  }

  .hero-split,
  .service-hero,
  .contact-grid,
  .testimonial-extended {
    grid-template-columns: 1fr;
  }

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

  .cookie-actions {
    justify-content: flex-end;
  }
}
