@font-face {
  font-family: "Source Serif 4";
  src: url('/fonts/source-serif-4-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url('/fonts/work-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Art direction: Forest ink / Source Serif 4 headings with Work Sans body / classic */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,600&family=Work+Sans:wght@400;500;600&display=swap');

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f8f6;
  --surface: #ffffff;
  --text: #131e17;
  --muted: #52645a;
  --border: #d9e4de;
  --accent: #2c4436;
  --accent-contrast: #ffffff;
  --font-heading: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Work Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --bg: #0d1310;
  --surface: #151d18;
  --text: #eaf2ed;
  --muted: #9db4a6;
  --border: #21302a;
  --accent: #7fa88f;
  --accent-contrast: #0a130d;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.5rem 1rem;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.6em;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 0.4em;
}

p, li {
  max-width: 68ch;
  line-height: 1.6;
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--text);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
  color: var(--text);
  border-bottom-color: var(--accent);
}
nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

[data-theme-toggle] {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s;
}
[data-theme-toggle]:hover {
  background: var(--border);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface);
    z-index: 99;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 5rem 2rem;
  }
  nav.open {
    transform: translateX(0);
  }
  nav ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  nav a {
    font-size: 1.2rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 800px;
}

.hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover, .btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Page hero (interior) */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  text-align: center;
}
.page-hero h1 {
  margin-bottom: 0.3em;
}
.page-sub {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Sections */
section {
  padding-block: clamp(4rem, 9vw, 7rem);
  padding-inline: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.service-card h3 {
  padding: 1rem 1rem 0.25rem;
}
.service-card p {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.btn-link {
  display: inline-block;
  margin: 0 1rem 1rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.btn-link:hover, .btn-link:focus {
  border-bottom-color: var(--accent);
}

/* About section */
.about {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}
.about-content {
  flex: 1 1 300px;
}
.about img {
  flex: 1 1 300px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* CTA */
.cta {
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta a {
  font-weight: 600;
}

/* Content pages */
.content {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.content-text {
  flex: 1 1 300px;
}
.content-images {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.content-images img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 300px;
}

/* Contact page */
.contact-details {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.contact-info {
  flex: 1 1 300px;
}
.contact-image {
  flex: 1 1 300px;
}
.contact-image img {
  width: 100%;
  border-radius: 8px;
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-contact h3 {
  margin-bottom: 0.5rem;
}
.footer-contact p {
  margin-bottom: 0.3rem;
  color: var(--muted);
}
.footer-social a {
  font-weight: 600;
}

/* List styling */
ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
li {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .hero {
    min-height: 60vh;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .about, .content, .contact-details {
    flex-direction: column;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Ornamental divider */
section + section::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 auto 2rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .hero-content h1,
[data-theme="dark"] .hero-sub {
  color: #fff;
}
[data-theme="dark"] .service-card {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .btn {
  background: var(--accent);
  color: var(--accent-contrast);
}
[data-theme="dark"] .btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}