:root {
  --primary: #4a3c2a;
  --primary-dark: #2e2620;
  --accent: #f3efe8;
  --text: #2c2420;
  --muted: #5e5650;
  --bg: #faf8f5;
  --white: #ffffff;
  --border: #dcdcdc;
  --light-brown: #6b5740;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: white;
}

.brand-logo {
  height: 2.5rem;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: white;
}

.hero,
.page-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--light-brown) 100%);
  color: white;
}

.hero,
.page-hero h1,
.hero,
.page-hero h2,
.hero,
.page-hero p {
  color: white;
}

.hero-grid,
.split-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr 0.9fr;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 0.2rem;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

.hero-copy,
.section-heading p,
.page-hero p,
.card p,
.split-grid p,
.feature-item,
.contact-grid p,
.site-footer p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

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

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

.hero-highlights {
  padding-left: 1.1rem;
  color: rgba(255,255,255,0.85);
}

.hero-card,
.card,
.feature-list,
.gallery-item,
.hero-card,
.card,
.feature-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(74,60,42,0.06);
}

.hero-card {
  padding: 2rem;
}

.hero-card p,
.hero-card li {
  color: var(--muted);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.hero-card li {
  margin-bottom: 0.4rem;
}

.feature-list {
  padding: 1.5rem;
  display: grid;
  gap: 0.8rem;
}

.feature-list .feature-item {
  color: var(--text);
  font-weight: 500;
}

.section {
  padding: 4rem 0;
}

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

.section-heading {
  margin-bottom: 2rem;
}

.section-heading p {
  margin: 0;
}

.eyebrow-dark {
  color: var(--primary);
  border-color: var(--border);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(74,60,42,0.1);
}

.card h3 {
  font-weight: 700;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
}

.text-link:hover {
  color: var(--primary-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  padding: 2rem;
  min-height: 180px;
  background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-item.large {
  grid-column: span 2;
  min-height: 260px;
  background: linear-gradient(135deg, #e8ddd0 0%, #f3efe8 100%);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item h3 {
  font-weight: 700;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
}

input,
textarea {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.8rem 0.95rem;
  font: inherit;
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.site-footer {
  background: var(--primary);
  color: white;
  padding: 2.5rem 0 1.5rem;
}

.footer-wrap {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-wrap h3 {
  color: white;
  font-weight: 700;
}

.footer-wrap p {
  color: rgba(255,255,255,0.75);
  margin: 0.2rem 0;
}

.footer-credit {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}

.footer-credit p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.footer-credit a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

.footer-credit a:hover {
  color: white;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.section-dark {
  background: var(--primary);
  color: white;
}

.section-dark h2,
.section-dark p {
  color: white;
}

.project-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(74,60,42,0.06);
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-card-content {
  padding: 1.25rem;
}

.project-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

@media (max-width: 850px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .card-grid,
  .card-grid.two-up,
  .footer-wrap,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 1;
  }
}

.hero,
.page-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--light-brown) 100%);
  color: white;
}

.banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--primary);
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.banner-slide.active {
  opacity: 1;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,60,42,0.82), rgba(30,26,22,0.78));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.banner-inner {
  max-width: 800px;
}

.banner h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: white;
}

.banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.banner-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 2;
}

.banner-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

.banner-dot.active {
  background: white;
  width: 1.6rem;
}

@media (max-width: 640px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .hero,
  .page-hero {
    padding-top: 3.5rem;
  }

  .banner {
    height: 300px;
  }
}
