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

:root {
  --color-dark: #270908;
  --color-accent: #3a9a83;
  --color-accent-hover: #2e7d6a;
  --color-cream: #faf8f5;
  --color-white: #ffffff;
  --color-text-muted: #595959;
  --color-border: #e8e4e0;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --focus-ring: 0 0 0 3px rgba(58, 154, 131, 0.5);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.7;
  font-size: 16px;
  background: var(--color-white);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Focus styles ────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ── Skip link ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 4px 4px;
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  color: var(--color-white);
}

/* ── Screen reader only ──────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ── Header ──────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(39, 9, 8, 0.1);
}

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

.logo img {
  height: 48px;
  width: auto;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header nav a {
  color: var(--color-dark);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

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

.btn-nav {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
}

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

.btn-nav:focus-visible {
  outline-color: var(--color-dark);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("/assets/hero.jpg") center/cover no-repeat;
  color: var(--color-cream);
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(39, 9, 8, 0.7);
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(250, 248, 245, 0.88);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
}

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

.btn:focus-visible {
  outline-color: var(--color-white);
}

/* ── Services ────────────────────────────────────────────── */
.services {
  padding: 5rem 0;
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(39, 9, 8, 0.08);
  transform: translateY(-3px);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(58, 154, 131, 0.1);
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── About ───────────────────────────────────────────────── */
.about {
  padding: 5rem 0;
  background: var(--color-cream);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1.75rem;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

.about p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

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

/* ── Contact ─────────────────────────────────────────────── */
.contact {
  padding: 5rem 0;
  background: var(--color-white);
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.contact-intro {
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  padding: 2rem 1.5rem;
  border-radius: 8px;
  background: var(--color-cream);
}

.contact-card svg {
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.contact-card a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

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

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--color-dark);
  color: rgba(250, 248, 245, 0.78);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  opacity: 0.8;
}

.footer p {
  font-size: 0.85rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    min-height: 80vh;
    padding: 5rem 1.5rem 3rem;
  }

  .header nav {
    gap: 1rem;
  }

  .logo img {
    height: 36px;
  }
}
