:root {
  --bg: #F5F3EF;
  --text: #2A2A2A;
  --text-muted: #5C5C5C;
  --pine: #2D4A3E;
  --pine-dark: #1E3329;
  --copper: #B87333;
  --copper-light: #D4956A;
  --border: #D8D4CC;
  --grid: rgba(42, 42, 42, 0.08);
  --white: #FFFFFF;
  --error: #8B3A3A;
  --success: #2D4A3E;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --max-width: 72rem;
  --section-gap: 5rem;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(42, 42, 42, 0.06);
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

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 + p { margin-top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--white);
  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 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  border-radius: var(--radius);
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
  position: relative;
}

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

.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--copper);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

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

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

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Main */
main {
  flex: 1;
}

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

.btn-primary {
  background: var(--pine);
  color: var(--white);
}

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

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

.btn-secondary:hover {
  background: var(--text);
  color: var(--white);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

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

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

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
}

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

.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;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-image { order: -1; }
}

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

.section-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

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

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--copper);
}

.section-intro {
  margin-top: 0.75rem;
  color: var(--text-muted);
  max-width: 40rem;
}

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

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

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

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

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

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

.card h3 {
  margin-bottom: 0.5rem;
}

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

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

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

.card-price {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--copper);
}

/* Feature strip */
.feature-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
}

.feature-list li {
  padding-left: 1rem;
  border-left: 2px solid var(--copper);
}

.feature-list strong {
  display: block;
  font-family: var(--font-heading);
  margin-bottom: 0.35rem;
}

.feature-list span {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .feature-list { grid-template-columns: 1fr; }
}

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

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.testimonial blockquote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
}

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

.testimonial cite strong {
  display: block;
  color: var(--text);
  font-weight: 500;
}

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

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header .lead {
  color: var(--text-muted);
  max-width: 42rem;
}

/* Content 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;
}

.prose ul, .prose ol {
  margin: 1rem 0 1rem 1.5rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

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

.service-hero img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.service-meta-item dd {
  font-weight: 500;
}

.included-list {
  list-style: none;
  margin: 1rem 0;
}

.included-list li {
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.included-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--copper);
}

@media (max-width: 768px) {
  .service-hero { grid-template-columns: 1fr; }
}

/* Pricing */
.pricing-block {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--copper);
}

.pricing-block h3 {
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--pine);
  margin: 0.75rem 0;
}

.pricing-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Schedule table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
}

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

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

.schedule-table tr:last-child td {
  border-bottom: none;
}

.status-open {
  color: var(--pine);
  font-weight: 500;
}

.status-limited {
  color: var(--copper);
  font-weight: 500;
}

.status-full {
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

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

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

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--error);
}

.form-success {
  background: var(--white);
  border: 1px solid var(--pine);
  padding: 1.25rem;
  border-radius: var(--radius);
  color: var(--pine);
  margin-bottom: 1.5rem;
  display: none;
}

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

.form-failure {
  background: var(--white);
  border: 1px solid var(--error);
  padding: 1.25rem;
  border-radius: var(--radius);
  color: var(--error);
  margin-bottom: 1.5rem;
  display: none;
}

.form-failure.is-visible {
  display: block;
}

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

.contact-info {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-info h2 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.contact-detail {
  margin-bottom: 1.25rem;
}

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

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

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

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

.post-cover {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

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

.legal-content h3 {
  font-size: 1.0625rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

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

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

.cookie-table th {
  background: var(--white);
  font-family: var(--font-heading);
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.footer-col h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.5rem;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--text);
}

.footer-col a:hover {
  color: var(--pine);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 2px solid var(--copper);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(42, 42, 42, 0.1);
  z-index: 1000;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.9375rem;
}

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

.cookie-actions .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

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

.error-code {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 1rem;
}

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

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

/* Case study */
.case-study {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.case-study h3 {
  margin-bottom: 0.75rem;
}

.case-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin-bottom: 0.5rem;
}
