@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 */

:root {
  --bg: #f5f8f6;
  --surface: #ffffff;
  --text: #131e17;
  --muted: #52645a;
  --border: #d9e4de;
  --accent: #2c4436;
  --accent-contrast: #ffffff;
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.9vw + 0.8rem, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

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

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  max-width: 68ch;
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.2s;
}

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

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

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

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(44, 68, 54, 0.2);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.site-logo {
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

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

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

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s;
}
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: transform 0.2s;
}
.hamburger::before {
  top: -7px;
}
.hamburger::after {
  top: 7px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

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

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  }
  .main-nav.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-list a {
    display: block;
    padding: 0.5rem 0;
  }
}

/* Sections */
.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19,30,23,0.7) 0%, rgba(19,30,23,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44,68,54,0.3);
  background: var(--text);
  color: var(--bg);
}

.btn-link {
  background: none;
  color: var(--accent);
  padding: 0.5rem 0;
  border: none;
  border-bottom: 2px solid transparent;
}

.btn-link:hover {
  border-bottom-color: var(--accent);
  transform: translateY(-1px);
}

/* Grid */
.grid-4 {
  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: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px 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.5rem;
}

.service-card p {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
}

.service-card .btn-link {
  margin: 0 1rem 1rem;
  display: inline-block;
}

/* Text-image */
.text-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .text-image {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.text-image .image img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Gallery row */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-row img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-row img:hover {
  transform: scale(1.03);
}

/* Page hero */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--muted);
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.map-note {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* CTA section */
.cta {
  text-align: center;
  background: var(--surface);
}

.cta h2 {
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}

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

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

.footer-contact h3,
.footer-hours h3 {
  margin-bottom: 0.75rem;
}

.footer-contact p,
.footer-hours p {
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* Utility */
@media (max-width: 390px) {
  .container {
    padding: 0 1rem;
  }
  .hero {
    min-height: 60vh;
  }
}