@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --rust: #c1502e;
  --rust-dark: #a53f22;
  --orange: #dd8f3f;
  --gold: #e5bf5b;
  --brown: #241914;
  --brown-soft: #3a2b22;
  --cream: #f5eee2;
  --cream-warm: #efe3d1;
  --white: #fffdf9;

  --color-bg: var(--cream);
  --color-surface: var(--white);
  --color-text: var(--brown);
  --color-text-muted: #6b5c50;
  --color-primary: var(--rust);
  --color-primary-on: var(--white);
  --color-border: rgba(36, 25, 20, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --radius: 14px;
  --shadow: 0 8px 30px rgba(36, 25, 20, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section { padding: var(--space-24) 0; }

@media (max-width: 640px) {
  section { padding: var(--space-16) 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--space-3);
}

.section-head { max-width: 640px; margin-bottom: var(--space-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: var(--space-3); }
.section-head p { color: var(--color-text-muted); font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn-primary { background: var(--rust); color: var(--white); box-shadow: 0 6px 20px rgba(193, 80, 46, 0.35); }
.btn-primary:hover { background: var(--rust-dark); }

.btn-ghost { background: transparent; border-color: currentColor; color: var(--brown); }
.btn-ghost:hover { background: var(--brown); color: var(--cream); }

.btn-on-dark { border-color: rgba(245, 238, 226, 0.5); color: var(--cream); }
.btn-on-dark:hover { background: var(--cream); color: var(--brown); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brown);
  border-bottom: 1px solid rgba(245, 238, 226, 0.1);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav-links a {
  color: var(--cream-warm);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: var(--space-4); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--brown); flex-direction: column; align-items: flex-start; padding: var(--space-6); gap: var(--space-4); border-bottom: 1px solid rgba(245,238,226,0.1); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--brown) 0%, var(--brown-soft) 100%);
  color: var(--cream);
  padding: var(--space-24) 0 var(--space-16);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 1100px;
  height: 1100px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--gold) 0%, var(--orange) 42%, var(--rust) 68%, transparent 72%);
  opacity: 0.28;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-6);
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  margin-bottom: var(--space-6);
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lede {
  font-size: 19px;
  color: var(--cream-warm);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-12); }
.hero-stats { display: flex; gap: var(--space-12); flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--gold); }
.hero-stats div span { font-size: 14px; color: var(--cream-warm); }

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--orange), var(--rust));
  box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/10; }
}

/* Value strip */
.value-strip { background: var(--white); border-bottom: 1px solid var(--color-border); }
.value-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.value-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.value-item .icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--rust);
  display: flex; align-items: center; justify-content: center;
}
.value-item h3 { font-size: 17px; margin-bottom: 4px; }
.value-item p { color: var(--color-text-muted); font-size: 15px; }

@media (max-width: 760px) {
  .value-strip .container { grid-template-columns: 1fr; }
}

/* About */
.about .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-16); align-items: center; }
.about-photo {
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--color-text-muted); font-size: 17px; margin-bottom: var(--space-4); }
.about-values { display: flex; gap: var(--space-6); margin-top: var(--space-8); flex-wrap: wrap; }
.about-values span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  color: var(--rust-dark);
}

@media (max-width: 860px) {
  .about .container { grid-template-columns: 1fr; }
}

/* Services */
.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.service-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--rust);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-6);
}
.service-card h3 { font-size: 20px; margin-bottom: var(--space-3); }
.service-card p { color: var(--color-text-muted); font-size: 15px; margin-bottom: var(--space-4); }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.service-card li { font-size: 14px; color: var(--color-text-muted); display: flex; gap: 8px; align-items: baseline; }
.service-card li::before { content: "—"; color: var(--orange); }

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

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); counter-reset: step; }
.step { position: relative; padding-top: var(--space-8); }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--color-text-muted); font-size: 15px; }

.service-area-note {
  margin-top: var(--space-12);
  background: var(--cream-warm);
  border-radius: var(--radius);
  padding: var(--space-8);
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.service-area-note .icon { flex: none; width: 48px; height: 48px; color: var(--rust); }
.service-area-note p { color: var(--color-text-muted); }
.service-area-note strong { color: var(--brown); }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .service-area-note { flex-direction: column; align-items: flex-start; }
}

/* Gallery */
.gallery { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  background: var(--cream);
  border: 1px solid var(--color-border);
}
.gallery-item .split { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.gallery-item .split img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .split .before { object-position: right center; }
.gallery-item .split .mid { object-position: center; }
.gallery-item .split .after { object-position: left center; }
.gallery-item .split.split-3 img { object-position: center; }
.gallery-item .cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-item .tag {
  position: absolute; top: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(36,25,20,0.65); color: var(--cream);
}
.gallery-item .tag.before-tag { left: 12px; }
.gallery-item .tag.mid-tag { left: 50%; transform: translateX(-50%); }
.gallery-item .tag.after-tag { right: 12px; }
.gallery-item .split.split-centered img { object-position: center; }
.gallery-item.fence { aspect-ratio: 16/11; }
.gallery-slider .slider-container { position: relative; }
.gallery-slider .split .before { object-position: center; }
.gallery-slider .split-overlay .after { object-position: 50% 58%; }
.gallery-slider .split-overlay { position: absolute; inset: 0; }
.gallery-slider .split-overlay img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slider .slider-line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: rgba(255,255,255,0.85); box-shadow: 0 0 6px rgba(0,0,0,0.4);
  transform: translateX(-50%); pointer-events: none; z-index: 9;
}
.gallery-slider .slider-handle {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(222, 126, 68, 0.95); box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center;
  gap: 4px; color: var(--white); pointer-events: none; z-index: 10;
}
.gallery-slider .slider-thumb { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 11; appearance: none; -webkit-appearance: none; background: none; border: none; cursor: ew-resize; padding: 0; opacity: 0; }
.gallery-slider .slider-thumb::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 44px; height: 44px; }
.gallery-slider .slider-thumb::-moz-range-thumb { width: 44px; height: 44px; border: none; }
.gallery-item .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-4);
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  color: var(--white); font-size: 14px; font-weight: 500;
}
.gallery-note { text-align: center; color: var(--color-text-muted); font-size: 14px; margin-top: var(--space-6); }

.gallery-more { padding-top: 0; background: var(--white); }
.gallery-more .gallery-item { aspect-ratio: 4/3; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Testimonials */
.testimonials .container { }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
}
.stars { color: var(--gold); font-size: 15px; margin-bottom: var(--space-4); letter-spacing: 2px; }
.testi-card p.testi-quote { font-style: italic; color: var(--brown-soft); margin-bottom: var(--space-6); }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream-warm); color: var(--rust);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.testi-person span { font-size: 14px; color: var(--color-text-muted); }
.testi-person strong { display: block; font-size: 15px; }

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

/* Quote form */
.quote {
  background: var(--brown);
  color: var(--cream);
}
.quote .section-head p { color: var(--cream-warm); }
.quote .eyebrow { color: var(--gold); }
.quote-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-16);
  align-items: start;
}
.quote-info h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: var(--space-4); }
.quote-info p { color: var(--cream-warm); margin-bottom: var(--space-6); }
.quote-info ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
.quote-info li { display: flex; gap: 10px; align-items: flex-start; color: var(--cream-warm); font-size: 15px; }
.quote-info li svg { flex: none; color: var(--gold); margin-top: 2px; }

.quote-form {
  background: var(--brown-soft);
  border-radius: 20px;
  padding: var(--space-8);
  border: 1px solid rgba(245,238,226,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { margin-bottom: var(--space-6); }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream-warm);
  margin-bottom: 6px;
}
.field .required { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(245,238,226,0.18);
  background: rgba(245,238,226,0.06);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(245,238,226,0.4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field-help { font-size: 13px; color: rgba(245,238,226,0.55); margin-top: 6px; }
.field-error {
  font-size: 13px;
  color: #f4a58a;
  margin-top: 6px;
  display: none;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #e07a56; }
.field.invalid .field-error { display: block; }

.quote-form .btn-primary { width: 100%; justify-content: center; }
.form-status {
  margin-top: var(--space-4);
  font-size: 14px;
  text-align: center;
  display: none;
}
.form-status.success { display: block; color: #b7e4c7; }
.form-status.error { display: block; color: #f4a58a; }

@media (max-width: 900px) {
  .quote-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  background: var(--brown);
  color: var(--cream-warm);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 4px solid var(--rust);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(245,238,226,0.12);
}
.footer-brand img { height: 40px; margin-bottom: var(--space-4); }
.footer-brand p { font-size: 14px; max-width: 32ch; color: rgba(245,238,226,0.65); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; color: rgba(245,238,226,0.75); font-size: 14px; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 13px;
  color: rgba(245,238,226,0.5);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--brown);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }
