:root {
  --bg: #f2efe9;
  --bg-alt: #fbf8f2;
  --text: #1f1f1f;
  --muted: #6a645c;
  --border: #dfd7cc;
  --accent: #f57c22; /* orange */
  --accent-soft: rgba(245, 124, 34, 0.12);
  --dark: #2c2a27;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --max-width: 1120px;
}

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

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

/* Layout helpers */

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

.section {
  padding: 4rem 0;
}

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

.section-title {
  font-size: clamp(2rem, 2.6vw, 2.4rem);
  margin: 0 0 0.75rem;
  color: var(--dark);
}

.section-intro {
  max-width: 640px;
  margin: 0 0 2.5rem;
  color: var(--muted);
}

.section-intro.small {
  font-size: 0.95rem;
}

/* Header / Nav */

.site-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo {
  height: 40px;
  width: auto;
}

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

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--dark);
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

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

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-link.active {
  background: var(--accent);
  color: #fff;
}

/* Hero */

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: stretch;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Adjust this if the fence is cropped. Try: center 30% (more sky) or center 70% (more ground). */
  object-position: center 45%;
  filter: grayscale(0.7) brightness(0.78) contrast(1.05);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 10%, rgba(245,124,34,0.55), transparent 55%),
              linear-gradient(120deg, rgba(0,0,0,0.75), rgba(0,0,0,0.75));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 60vh;
}

.hero-text {
  max-width: 560px;
  padding: 3.5rem 0 3rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  margin: 0 0 1.2rem;
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 1.2rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(245,124,34,0.35);
}

.btn.ghost {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.16);
}

.btn.full {
  width: 100%;
}

/* Cards & grids */

.grid {
  display: grid;
  gap: 1.5rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.45rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card.outline {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Chips */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.chip {
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  font-size: 0.85rem;
  color: var(--dark);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  font: inherit;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.form-note {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* About page */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 2.25rem;
  align-items: center;
}

.about-text p {
  color: var(--muted);
}

.subheading {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--dark);
}

.bullet-list {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.bullet-list li + li {
  margin-top: 0.4rem;
}

.about-photo-wrap {
  display: flex;
  justify-content: center;
}

.about-photo {
  max-width: 260px; /* smaller on page */
  width: 100%;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  filter: grayscale(0.2);
}

/* Gallery */

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

.gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mt-lg {
  margin-top: 2.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(0,0,0,0.04);
  background: #f0f0f0;
  padding: 1.3rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-photo-wrap {
    order: -1;
  }

  .nav-container {
    gap: 0.75rem;
  }

  .brand-text {
    display: none; /* simplify on small screens */
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3rem 0;
  }

  .cards-3,
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 70vh;
  }

  .hero-text {
    padding-top: 4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    font-size: 0.85rem;
    gap: 0.3rem;
  }

  .nav-link {
    padding-inline: 0.55rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile hero framing */
@media (max-width: 640px) {
  .hero-bg { object-position: center 35%; }
}



/* Gallery sizing fix (keeps grid style, normalizes mixed photo dimensions) */
.gallery-item {
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Slightly taller feel on mobile without weird stretching */
@media (max-width: 640px) {
  .gallery-item {
    aspect-ratio: 1 / 1;
  }
}



/* Woodgrain / earth-tone background (subtle, keeps layout identical) */
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.0) 40%),
    repeating-linear-gradient(
      90deg,
      rgba(80, 72, 60, 0.04) 0px,
      rgba(80, 72, 60, 0.04) 2px,
      rgba(255, 255, 255, 0.00) 2px,
      rgba(255, 255, 255, 0.00) 9px
    ),
    radial-gradient(circle at 10% 20%, rgba(140, 110, 80, 0.06), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(120, 90, 60, 0.05), transparent 55%),
    radial-gradient(circle at 35% 85%, rgba(110, 85, 60, 0.04), transparent 50%);
}

/* Slightly more "wood" feel on cards/sections without changing spacing */
.card,
.section.alt,
.site-header,
.site-footer {
  backdrop-filter: saturate(1.05);
}
