/* Colonial Fence Co. site styles.
   Palette: Workshop Earth, anchored to the logo taupe.
   Typography: Fraunces (display) and Manrope (UI/body). */

:root {
  --espresso: #3C2E1F;
  --taupe: #A89677;
  --taupe-deep: #8E7B5C;
  --olive: #8C9456;
  --cream: #F2EBDD;
  --cream-warm: #EDE3D2;
  --paper: #FFFFFF;
  --ink: #1A1410;
  --ink-soft: #5C4F40;
  --hairline: rgba(60, 46, 31, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* sample-site banner */
.demo-banner {
  background: #FFE680;
  color: #4A3700;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* header */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 10;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.nav .logo img { display: block; height: 56px; width: auto; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 32px; align-items: center;
}
.nav ul a {
  font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 8px 0; border-bottom: 2px solid transparent;
  transition: border-color .18s ease;
}
.nav ul a:hover,
.nav ul a[aria-current="page"] { border-color: var(--taupe); }
.nav .phone {
  font-size: 15px; font-weight: 700; color: var(--espresso);
  padding: 10px 18px; border: 1px solid var(--espresso);
  border-radius: 4px;
  transition: background .18s ease, color .18s ease;
}
.nav .phone:hover { background: var(--espresso); color: var(--paper); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--hairline);
  border-radius: 4px; padding: 8px 12px;
  font-size: 18px; cursor: pointer; color: var(--ink);
}

/* hero (home) */
.hero {
  position: relative;
  min-height: 580px;
  display: flex; align-items: flex-end;
  background-image:
    linear-gradient(180deg, rgba(26,20,16,0.15) 0%, rgba(26,20,16,0.65) 100%),
    url('photos/hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--paper);
}
.hero .container { padding-top: 80px; padding-bottom: 60px; }
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 20px;
  max-width: 920px;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--taupe); }
.hero p {
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 680px;
  margin: 0 0 32px;
  color: rgba(255,255,255,0.92);
}

/* page hero (interior pages) */
.page-hero {
  background: var(--cream);
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--hairline);
}
.page-hero .kicker {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--taupe-deep);
  margin-bottom: 10px;
}
.page-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 16px;
  max-width: 820px;
}
.page-hero p {
  font-size: 18px; color: var(--ink-soft);
  max-width: 680px; margin: 0;
}

/* buttons */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary {
  background: var(--taupe);
  color: var(--ink);
  border: 1px solid var(--taupe);
}
.btn-primary:hover { background: var(--taupe-deep); border-color: var(--taupe-deep); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--paper); }
.btn-dark {
  background: var(--espresso);
  color: var(--paper);
  border: 1px solid var(--espresso);
}
.btn-dark:hover { background: var(--ink); border-color: var(--ink); }

/* intro band */
.intro {
  background: var(--cream);
  padding: 64px 0;
}
.intro p {
  max-width: 720px; margin: 0 auto;
  text-align: center;
  font-size: 19px; line-height: 1.65;
  color: var(--ink-soft);
}
.intro .accent-line {
  display: block; width: 48px; height: 2px;
  background: var(--taupe); margin: 0 auto 28px;
}

/* section base */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .kicker {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--taupe-deep);
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  line-height: 1.15;
}
.section-head p {
  max-width: 620px; margin: 0 auto;
  color: var(--ink-soft); font-size: 17px;
}
.section-head.left { text-align: left; }
.section-head.left p, .section-head.left h2 { margin-left: 0; margin-right: 0; }

/* services strip (home) */
.services-strip { background: var(--paper); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--taupe);
}
.service-card .img {
  aspect-ratio: 1 / 1;
  background-size: cover; background-position: center;
}
.service-card .body { padding: 22px 22px 26px; }
.service-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-variation-settings: "opsz" 48;
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.service-card p {
  margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55;
}

/* projects */
.projects { background: var(--cream); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.project-tile {
  aspect-ratio: 3 / 2;
  background-size: cover; background-position: center;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.project-tile::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(60,46,31,0); transition: background .2s ease;
}
.project-tile:hover::after { background: rgba(60,46,31,0.15); }
.project-tile .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(60,46,31,0) 0%, rgba(60,46,31,0.78) 100%);
  color: var(--paper);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  z-index: 1;
}
.see-all {
  display: block; text-align: center; margin-top: 36px;
  font-size: 15px; font-weight: 700; color: var(--espresso);
  border-bottom: 2px solid var(--taupe);
  padding-bottom: 4px;
  width: max-content; margin-left: auto; margin-right: auto;
}

/* projects page */
.projects-page { background: var(--paper); padding-top: 56px; }
.filter-pills {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.pill {
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}
.pill:hover { border-color: var(--taupe); color: var(--ink); }
.pill.active {
  background: var(--espresso); color: var(--paper);
  border-color: var(--espresso);
}
.project-grid.full {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-grid.full .project-tile { aspect-ratio: 4 / 3; }

/* about teaser */
.about-teaser { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-img {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  border-radius: 4px;
}
.about-copy h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(30px, 3.2vw, 40px);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  line-height: 1.18;
}
.about-copy p {
  color: var(--ink-soft);
  font-size: 17px; line-height: 1.7;
  margin: 0 0 16px;
}
.about-copy .read-more {
  display: inline-block; margin-top: 12px;
  font-size: 15px; font-weight: 700; color: var(--espresso);
  border-bottom: 2px solid var(--taupe);
  padding-bottom: 3px;
}

/* about page */
.story {
  background: var(--paper);
  padding: 72px 0;
}
.story-body {
  max-width: 65ch; margin: 0 auto;
  font-size: 18px; line-height: 1.78;
  color: var(--ink-soft);
}
.story-body p { margin: 0 0 22px; }
.story-figure {
  max-width: 920px; margin: 56px auto 0;
}
.story-figure .ph {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  border-radius: 4px;
}
.story-figure figcaption {
  margin-top: 14px;
  font-size: 14px; color: var(--ink-soft);
  text-align: center; font-style: italic;
}

/* testimonials */
.testimonials { background: var(--espresso); color: var(--cream); }
.testimonials .section-head h2 { color: var(--cream); }
.testimonials .section-head .kicker { color: var(--taupe); }
.testimonials .section-head p { color: rgba(242, 235, 221, 0.78); }
.quote-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
.quote {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(168, 150, 119, 0.25);
  padding: 32px;
  border-radius: 4px;
  position: relative;
}
.quote .mark {
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
  color: var(--taupe);
  opacity: 0.6;
  position: absolute; top: 16px; left: 24px;
}
.quote p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(242,235,221, 0.92);
  padding-left: 28px;
}
.quote .attr {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  padding-left: 28px;
}

/* service area */
.service-area { background: var(--cream-warm); }
.city-list {
  max-width: 760px; margin: 0 auto;
  text-align: center;
  font-size: 19px;
  line-height: 2;
  color: var(--ink-soft);
}
.city-list strong { color: var(--ink); font-weight: 700; }

/* CTA banner */
.cta-banner {
  background: var(--espresso);
  color: var(--paper);
  padding: 64px 0;
}
.cta-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-banner h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(26px, 2.9vw, 34px);
  font-weight: 600;
  font-variation-settings: "opsz" 96;
  margin: 0;
  letter-spacing: -0.01em;
  max-width: 660px;
  line-height: 1.22;
}
.cta-banner .right {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.cta-banner .phone-large {
  font-size: 22px; font-weight: 800; color: var(--paper);
  letter-spacing: -0.005em;
}

/* services page sections */
.svc-block { padding: 72px 0; }
.svc-block:nth-child(even) { background: var(--cream); }
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.svc-grid.reverse .svc-img { order: 2; }
.svc-img {
  aspect-ratio: 3 / 2;
  background-size: cover; background-position: center;
  border-radius: 4px;
}
.svc-copy h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(28px, 3.2vw, 36px);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  line-height: 1.18;
}
.svc-copy .kicker {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--taupe-deep);
  margin-bottom: 8px;
}
.svc-copy p {
  color: var(--ink-soft);
  font-size: 17px; line-height: 1.7;
  margin: 0 0 14px;
}
.svc-intro {
  background: var(--paper);
  padding: 64px 0 24px;
  text-align: center;
}
.svc-intro p {
  max-width: 720px; margin: 0 auto;
  font-size: 18px; color: var(--ink-soft);
}

/* contact page */
.contact-page { background: var(--paper); padding: 72px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
.contact-info h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 22px; margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.contact-info .info-block { margin-bottom: 28px; }
.contact-info p {
  margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7;
}
.contact-info a { color: var(--espresso); font-weight: 600; }
.contact-info a:hover { color: var(--taupe-deep); }

form.quote-form {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color .18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--taupe);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-success {
  display: none;
  background: rgba(140, 148, 86, 0.12);
  color: var(--ink);
  border: 1px solid var(--olive);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 15px;
  margin-bottom: 18px;
}
.form-success.shown { display: block; }

.map-wrap {
  margin-top: 56px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.map-wrap iframe {
  display: block; width: 100%; height: 360px; border: 0;
}

/* footer */
footer.site {
  background: var(--ink);
  color: rgba(242, 235, 221, 0.7);
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--taupe); }
.footer-brand img {
  height: 48px; width: auto; filter: brightness(0) invert(1) opacity(0.85);
  margin-bottom: 16px;
}
.footer-brand p { margin: 0; line-height: 1.65; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px;
  color: rgba(242, 235, 221, 0.5);
}
.footer-bottom .credit a { color: var(--taupe); font-weight: 600; }
.footer-bottom .credit a:hover { color: var(--paper); }

/* responsive */
@media (max-width: 880px) {
  .nav ul {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    flex-direction: column; gap: 0; padding: 12px 24px;
  }
  .nav ul.open { display: flex; }
  .nav ul li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
  .nav ul li:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-block; }
  header.site { position: relative; }

  .service-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid.full { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
  .svc-grid { grid-template-columns: 1fr; gap: 28px; }
  .svc-grid.reverse .svc-img { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-grid.full { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav .phone { padding: 8px 12px; font-size: 14px; }
  section { padding: 56px 0; }
}
