:root {
  color-scheme: dark;
  --bg: #f6f4ef;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #1d1a16;
  --muted: #5b5448;
  --accent: #7a5b3e;
  --accent-soft: #e9d8c7;
  --border: rgba(29, 26, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(29, 26, 22, 0.08);
}

.brand img {
  height: 100px;
  background: transparent;
}

#pageContent {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

#pageContent.fade-out {
  opacity: 0;
  transform: translateY(16px);
}

#pageContent.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  padding: 3rem 2rem;
  background-image: linear-gradient(180deg, rgba(20, 20, 20, 0.48), rgba(20, 20, 20, 0.28)), url('/images/frontbage-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}

.hero-content {
  max-width: 760px;
  text-align: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.18);
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin: 0;
  line-height: 0.95;
}

.hero p {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.page-main,
.intro-section,
.services-section,
.page-section {
  padding: 4rem 2rem;
}

.section-content {
  max-width: 920px;
  margin: 0 auto;
}

.intro-section {
  padding-top: 3rem;
  text-align: center;
}

.intro-section h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 18px 45px rgba(11, 9, 6, 0.04);
}

.card h3,
.contact-card h2 {
  margin-top: 0;
  color: var(--text);
}

.card p,
.contact-card p,
.page-section p {
  color: var(--muted);
  margin: 1rem 0 0;
}

.site-footer {
  padding: 2rem;
  background: #fff;
  border-top: 1px solid rgba(29, 26, 22, 0.08);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.footer-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.map-frame {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
}

.map-frame iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

.team-hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.team-text h1 {
  margin-top: 0;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.team-image img {
  border-radius: 24px;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.team-services .services-content {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.team-services .services-text {
  flex: 1;
}

.team-services .team-image {
  flex: 0 0 auto;
  max-width: 400px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.service-list li {
  padding-left: 1.15rem;
  position: relative;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (min-width: 860px) {
  .hero {
    padding: 5rem 4rem;
  }

  .site-header {
    padding: 1.25rem 3rem;
  }

  .team-hero {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .team-services .services-content {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .site-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.28s ease;
  }

  .site-header.nav-open .site-nav {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    min-height: 70vh;
  }

  .hero-actions {
    flex-direction: column;
  }
}
