:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #2c3e50;
  --color-text-muted: #5a6b7d;
  --color-accent: #8b7355;
  --color-accent-hover: #6d5a44;
  --color-border: #e8e4df;
  --color-highlight: #f5f0eb;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(44, 62, 80, 0.06);
  --transition: 0.25s ease;
  --max-width: 72rem;
  --line-height: 1.65;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0;
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: var(--space-sm);
  background: var(--color-text);
  color: var(--color-surface);
}

.skip-link:focus {
  left: var(--space-sm);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--color-accent);
  color: var(--color-surface) !important;
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .site-nav.is-open { max-height: 400px; }

  .site-nav ul {
    flex-direction: column;
    padding: var(--space-md);
    align-items: flex-start;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-surface);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-surface);
}

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

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-surface);
}

/* Hero variants */
.hero {
  padding: var(--space-xl) 0;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-split .hero-content { max-width: 32rem; }

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

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

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

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

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

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

.section-alt {
  background: var(--color-surface);
}

.section-header {
  max-width: 40rem;
  margin-bottom: var(--space-lg);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

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

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

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

.card-body {
  padding: var(--space-md);
}

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

.card h3 { margin-bottom: var(--space-xs); }

.card p:last-child { margin-bottom: 0; }

.card-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-weight: 500;
  text-decoration: none;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.testimonial {
  padding: var(--space-md);
  background: var(--color-highlight);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}

.testimonial cite {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Page hero */
.page-hero {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.page-hero h1 { margin-bottom: var(--space-sm); }

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

/* Service detail */
.service-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}

.service-sidebar {
  padding: var(--space-md);
  background: var(--color-highlight);
  border-radius: var(--radius);
  height: fit-content;
  position: sticky;
  top: 5rem;
}

.service-sidebar dl {
  margin: 0;
}

.service-sidebar dt {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.service-sidebar dt:first-child { margin-top: 0; }

.service-sidebar dd {
  margin: 0.25rem 0 0;
}

.service-hero-img {
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

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

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

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.field-error {
  color: #c0392b;
  font-size: 0.875rem;
  margin-top: var(--space-xs);
}

.form-status {
  padding: var(--space-sm);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}

.form-status.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.form-status.error {
  background: #ffebee;
  color: #c62828;
}

.form-status[hidden] { display: none; }

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

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

.contact-block {
  padding: var(--space-md);
  background: var(--color-highlight);
  border-radius: var(--radius);
}

/* Pricing */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}

.pricing-table th,
.pricing-table td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table th {
  font-weight: 600;
  background: var(--color-highlight);
}

.pricing-note {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  padding: var(--space-md);
  background: var(--color-highlight);
  border-radius: var(--radius);
  margin-top: var(--space-md);
}

/* Glossary */
.glossary-list {
  display: grid;
  gap: var(--space-md);
}

.glossary-term {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.glossary-term h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.glossary-category {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* Blog */
.post-list {
  display: grid;
  gap: var(--space-lg);
}

.post-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.post-item:last-child { border-bottom: none; }

.post-item img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

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

.post-content img {
  border-radius: var(--radius);
  margin: var(--space-md) 0;
}

.post-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

@media (max-width: 640px) {
  .post-item { grid-template-columns: 1fr; }
}

/* Legal */
.legal-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content h3 {
  margin-top: var(--space-md);
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 0.9375rem;
}

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

.cookies-table th {
  background: var(--color-highlight);
}

/* 404 */
.error-page {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #c5cdd6;
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-surface);
  margin-bottom: var(--space-xs);
}

.footer-tagline {
  font-size: 0.9375rem;
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-surface);
  margin-bottom: var(--space-sm);
}

.site-footer a {
  color: #c5cdd6;
  text-decoration: none;
}

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

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

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

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
}

.footer-disclaimer p {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.footer-copy {
  font-size: 0.8125rem;
  opacity: 0.7;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: var(--space-md);
}

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

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

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

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.6s ease forwards;
}

/* Story block */
.story-block {
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}

.story-block h3 { margin-bottom: var(--space-sm); }

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

.text-link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
}

.text-link:hover { border-color: var(--color-accent-hover); }
