:root {
  --green-800: #1b4332;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --brown-700: #5c4033;
  --brown-500: #8b6914;
  --slate-900: #1a1f2e;
  --slate-700: #3d4f5f;
  --slate-500: #64748b;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --cream: #faf7f2;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--slate-700);
  line-height: 1.7;
  background: var(--white);
}

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

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-800);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid #e8ecef;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.logo-link {
  flex-shrink: 0;
}

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

.main-nav {
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--green-700);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-700);
  color: var(--white) !important;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.btn-call:hover {
  background: var(--green-800);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.btn-call-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 10px;
}

.btn-call-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white) !important;
}

.btn-call-outline:hover {
  background: var(--white);
  color: var(--green-800) !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--slate-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero-fence.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 31, 46, 0.88) 0%,
    rgba(26, 31, 46, 0.72) 45%,
    rgba(26, 31, 46, 0.45) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2.5rem;
  align-items: start;
  padding: 3.5rem 0 4rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
  text-transform: capitalize;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-content .btn-call {
  margin-top: 0.5rem;
}

.quote-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.quote-form-header {
  background: var(--green-700);
  color: var(--white);
  padding: 1rem 1.25rem;
  text-align: center;
}

.quote-form-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.quote-form-body {
  padding: 0.5rem 0.75rem 1rem;
}

.quote-form-body iframe {
  min-height: 480px;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-label {
  display: inline-block;
  color: var(--green-600);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--slate-900);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-intro {
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 2rem;
}

.bg-cream {
  background: var(--cream);
}

.bg-off-white {
  background: var(--off-white);
}

/* Intro columns */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.content-block p {
  margin-bottom: 1rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.benefit-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green-600);
}

.benefit-card h3 {
  color: var(--slate-900);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

/* Fence types */
.fence-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.fence-type-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fence-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.fence-type-card h3 {
  padding: 1.25rem 1rem 0.5rem;
  color: var(--slate-900);
  font-size: 1.1rem;
}

.fence-type-card p {
  padding: 0 1rem 1.25rem;
  font-size: 0.95rem;
}

/* Fence Designs gallery */
.designs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.design-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: default;
}

.design-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.design-item:hover img {
  transform: scale(1.05);
}

.design-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 31, 46, 0.85) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.design-item:hover .design-overlay {
  opacity: 1;
}

.design-overlay p {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brown-500);
}

.testimonial-card .stars {
  color: var(--brown-500);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--slate-700);
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--slate-900);
  font-size: 0.9rem;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid #dde3ea;
  padding: 1.25rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--slate-900);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green-600);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.75rem;
  padding-right: 2rem;
}

/* SEO block */
.seo-block {
  background: var(--green-800);
  color: rgba(255, 255, 255, 0.92);
  padding: 3rem 0;
}

.seo-block p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 900px;
}

/* Final CTA */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white);
  padding: 4rem 0;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.final-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  opacity: 0.92;
}

.final-cta .btn-call {
  background: var(--white);
  color: var(--green-800) !important;
  font-size: 1.15rem;
}

.final-cta .btn-call:hover {
  background: var(--cream);
}

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--white);
  font-weight: 600;
}

/* Mobile nav toggle - hidden on desktop */
.nav-toggle {
  display: none;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col,
  .benefits-grid,
  .fence-types-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .designs-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--slate-700);
  }

  .header-inner.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 4%;
    box-shadow: var(--shadow);
    gap: 1rem;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .btn-call-header {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .fence-types-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 0;
  }
}
