:root {
  --ink: #17201b;
  --muted: #5d6a62;
  --line: #d9e1dc;
  --paper: #f7f5ef;
  --white: #ffffff;
  --pine: #244434;
  --moss: #6d8b61;
  --steel: #51606a;
  --gold: #c98d37;
  --danger: #8c3c2f;
  --shadow: 0 18px 45px rgba(23, 32, 27, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

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

.topbar {
  background: var(--pine);
  color: var(--white);
  font-size: 14px;
}

.topbar-inner,
.nav-inner,
.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  flex-wrap: wrap;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 239, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  width: 58px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

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

.brand strong {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--steel);
  font-size: 15px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 30;
  display: none;
  width: 250px;
  transform: translateX(-50%);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: #edf2ee;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: var(--gold);
  color: #1d160b;
}

.button-secondary {
  background: var(--pine);
  color: var(--white);
}

.button-outline {
  border-color: rgba(255, 255, 255, .66);
  color: var(--white);
}

.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: none;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #1d160b;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.hero {
  min-height: calc(100vh - 116px);
  display: flex;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 32, 27, .82), rgba(23, 32, 27, .38)),
    url("assets/hero-wood-fence.jpg") center / cover;
}

.hero-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 46px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f2d5a2;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand strong,
.button,
.nav-links {
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}

h1 {
  max-width: 770px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

h2,
h3 {
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 670px;
  font-size: 19px;
  color: rgba(255, 255, 255, .9);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 1px;
  max-width: 850px;
  margin-top: 52px;
  background: rgba(255, 255, 255, .28);
}

.proof-item {
  padding: 18px;
  background: rgba(23, 32, 27, .72);
}

.proof-item strong {
  display: block;
  font-size: 18px;
}

.proof-item span {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

section {
  padding: 76px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 28px;
}

.section-head h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.section-head p {
  max-width: 420px;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(23, 32, 27, .07);
}

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

.service-body {
  padding: 18px;
}

.service-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.service-body p {
  color: var(--muted);
  font-size: 15px;
}

.materials-section {
  background: #eef1eb;
  border-block: 1px solid var(--line);
}

.materials-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.material-card,
.faq-grid details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.material-card ul {
  margin: 16px 0 0;
  padding-left: 19px;
  color: var(--muted);
}

.material-card h3,
.faq-grid summary {
  font-size: 19px;
  font-weight: 800;
}

.faq-grid summary {
  cursor: pointer;
}

.faq-grid p {
  color: var(--muted);
  margin: 14px 0 0;
}

.reviews-section {
  background: #edf2ee;
  border-block: 1px solid var(--line);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(23, 32, 27, .07);
}

.review-source-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-source-head h3 {
  margin-bottom: 0;
}

.review-card p {
  color: var(--muted);
}

.review-card .button {
  width: fit-content;
  margin-top: auto;
}

.stars {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0;
}

.review-label {
  margin-bottom: 0;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.review-author {
  margin-top: auto;
  font-weight: 800;
}

.quote-band {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 34px;
  align-items: start;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  background: #edf2ee;
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--steel);
  font-weight: 700;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c5d0ca;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.estimate {
  padding: 26px;
  background: var(--pine);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.estimate h3 {
  font-size: 24px;
}

.price {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1;
  margin: 18px 0;
}

.estimate-details {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  color: rgba(255, 255, 255, .86);
}

.note {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  background: var(--paper);
  padding: 24px;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.split img {
  height: 470px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.contact {
  background: #e6ebe5;
}

.contact-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
}

.contact-info {
  padding: 28px;
  background: var(--pine);
  color: var(--white);
  border-radius: 8px;
}

.contact-info p {
  color: rgba(255, 255, 255, .8);
}

.platform-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-links {
  margin-top: 22px;
}

.platform-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.platform-links a {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .26);
}

.platform-links a:hover,
.platform-links a:focus {
  background: rgba(255, 255, 255, .2);
}

.footer-links a {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .86);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

.google-icon {
  background: #4285f4;
}

.yelp-icon {
  background: #d32323;
}

.facebook-icon {
  background: #1877f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
}

.instagram-icon {
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #515bd4);
  font-size: 16px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

footer {
  background: #121a16;
  color: rgba(255, 255, 255, .78);
  padding: 34px 0;
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.city-hero {
  padding: 82px 0;
  background:
    linear-gradient(90deg, rgba(23, 32, 27, .86), rgba(23, 32, 27, .45)),
    url("assets/city-gate-hero.jpg") center / cover;
  color: var(--white);
}

.city-content {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 36px;
}

.city-content article,
.sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.sidebar ul {
  padding-left: 20px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

@media (max-width: 920px) {
  .nav-inner,
  .section-head,
  .topbar-inner,
  .contact-panel,
  .split {
    align-items: stretch;
  }

  .nav-inner,
  .section-head {
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-proof,
  .services-grid,
  .materials-grid,
  .reviews-grid,
  .faq-grid,
  .process,
  .quote-layout,
  .contact-panel,
  .split,
  .city-content {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    display: none;
  }

  .nav {
    position: static;
  }

  .nav-links {
    font-size: 14px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    transform: none;
    margin-top: 10px;
    box-shadow: none;
  }

  .hero-inner {
    padding-top: 58px;
  }

  section {
    padding: 54px 0;
  }

  .quote-form,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .split img {
    height: 330px;
  }

  .floating-call {
    display: inline-flex;
  }
}
