/*
Theme Name: The Fence People
Description: Faithful WordPress implementation of the approved The Fence People website.
Version: 1.0.0
Author: The Fence People
Text Domain: the-fence-people
*/

@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/SourceSans3-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/SourceSans3-Semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("assets/fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --charcoal: #1c1e1f;
  --charcoal-hover: #141516;
  --ivory: #f2ede4;
  --warm-white: #faf8f4;
  --stone: #d8d2c6;
  --bronze: #9c7a4c;
  --bronze-text: #7a5c33;
  --error-bg: #f5e6e4;
  --error-border: #a8483c;
  --error-text: #8a392f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--warm-white); color: var(--charcoal); font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
.shell { width: min(100% - 80px, 1360px); margin-inline: auto; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); letter-spacing: -0.025em; }
h3 { font-size: 1.45rem; }
.eyebrow { margin-bottom: 18px; color: var(--bronze-text); font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #d4b88d; }

.site-header { position: relative; z-index: 20; height: 88px; background: var(--warm-white); border-bottom: 1px solid rgba(28,30,31,.12); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: 235px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 30px); font-size: .93rem; font-weight: 600; }
.desktop-nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.desktop-nav a:hover { border-bottom-color: var(--charcoal); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { width: 42px; height: 42px; cursor: pointer; list-style: none; display: grid; align-content: center; gap: 5px; padding: 9px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { height: 2px; background: var(--charcoal); display: block; }
.mobile-menu nav { position: absolute; top: 54px; right: 0; width: min(310px, calc(100vw - 40px)); padding: 18px; background: var(--warm-white); border: 1px solid var(--stone); box-shadow: 0 18px 45px rgba(28,30,31,.13); }
.mobile-menu nav a { display: block; padding: 11px 8px; font-weight: 600; border-bottom: 1px solid rgba(28,30,31,.09); }

.home-hero { position: relative; height: 500px; color: var(--ivory); background-image: url("assets/images/acreage-home.png"); background-size: cover; background-position: center 54%; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,16,17,.82) 0%, rgba(15,16,17,.6) 34%, rgba(15,16,17,.08) 66%, rgba(15,16,17,.03) 100%); }
.hero-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-inner h1 { width: min(700px, 60vw); margin-bottom: 18px; font-size: clamp(2.55rem, 4.2vw, 4.1rem); }
.hero-copy { width: min(625px, 56vw); margin-bottom: 30px; font-size: 1.16rem; line-height: 1.55; }
.disclosure { margin-top: 0; padding-top: 10px; padding-bottom: 10px; color: #625b52; font-size: .72rem; line-height: 1.35; }
.interior-media > .disclosure, .segment-figure > .disclosure, .gallery-card > .disclosure { width: 100%; padding-inline: 0; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button-row.centered { justify-content: center; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 28px; border: 2px solid transparent; border-radius: 3px; font-size: .9rem; font-weight: 600; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; cursor: pointer; }
.button-dark { background: var(--charcoal); color: var(--ivory); }
.button-dark:hover { background: var(--charcoal-hover); }
.button-outline { border-color: var(--charcoal); color: var(--charcoal); }
.button-outline:hover { background: var(--ivory); border-color: var(--ivory); }
.button-ivory { background: var(--ivory); color: var(--charcoal); }
.button-ivory:hover { background: var(--warm-white); }
.button-outline-light { border-color: var(--ivory); color: var(--ivory); }
.button-outline-light:hover { background: var(--ivory); color: var(--charcoal); }

.section { padding-top: 104px; padding-bottom: 112px; }
.section-intro { margin-bottom: 45px; }
.section-intro h2 { margin-bottom: 0; }
.project-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.project-card { min-height: 310px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; background: var(--warm-white); border: 1px solid var(--stone); border-radius: 3px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.project-card:hover { border-color: var(--bronze); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(28,30,31,.07); }
.card-number { font-family: "Barlow Semi Condensed", sans-serif; color: var(--bronze-text); font-size: .88rem; letter-spacing: .1em; }
.project-card h3 { margin-bottom: 12px; }
.project-card p { color: #55514c; line-height: 1.55; }
.text-link { color: var(--bronze-text); font-size: .9rem; font-weight: 600; }

.steel-section { padding: 105px 0; background: var(--charcoal); color: var(--ivory); }
.steel-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.steel-grid h2 { margin-bottom: 22px; }
.steel-lead { max-width: 460px; color: #cbc4b9; font-size: 1.12rem; }
.benefit-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.benefit-list li { min-height: 94px; display: flex; align-items: center; gap: 18px; padding: 22px 20px; border-top: 1px solid rgba(242,237,228,.18); }
.benefit-list li span { color: #d4b88d; font-family: "Barlow Semi Condensed", sans-serif; font-size: .8rem; letter-spacing: .08em; }
.cta-section { text-align: center; }
.cta-section h2 { margin-bottom: 12px; }
.cta-section p:not(.eyebrow) { color: #5f5a54; font-size: 1.08rem; }

.site-footer { padding-top: 72px; background: var(--charcoal); color: var(--ivory); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.15fr; gap: 70px; padding-bottom: 58px; }
.footer-brand img { width: 290px; margin-bottom: 22px; }
.footer-brand p { max-width: 440px; color: #c9c2b8; }
.footer-brand .veteran-owned { margin-top: 14px; color: #d4b88d; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-footer h2 { margin-bottom: 18px; color: #d4b88d; font-family: "Source Sans 3", sans-serif; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.site-footer a { display: block; width: fit-content; margin: 8px 0; }
.site-footer a:hover { text-decoration: underline; }
.footer-link { padding: 0; min-height: 0; border: 0; }
.legal { padding-top: 20px; padding-bottom: 22px; color: #a9a297; border-top: 1px solid rgba(242,237,228,.13); font-size: .76rem; }

.interior-heading { padding-top: 88px; padding-bottom: 58px; border-bottom: 1px solid var(--stone); }
.interior-heading h1 { max-width: 1000px; margin-bottom: 20px; font-size: clamp(2.7rem, 5vw, 4.8rem); }
.interior-heading > p:last-child { max-width: 800px; margin-bottom: 0; color: #5f5a54; font-size: 1.2rem; }
.compact-heading { padding-bottom: 52px; }
.interior-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 68px; padding-top: 74px; padding-bottom: 110px; }
.interior-copy h2 { margin-top: 10px; margin-bottom: 28px; font-size: clamp(2rem, 3vw, 2.7rem); }
.interior-copy > p { max-width: 700px; color: #4d4944; font-size: 1.06rem; }
.note { margin-bottom: 42px; padding: 20px 22px; display: flex; flex-direction: column; background: var(--ivory); border-left: 4px solid var(--bronze-text); }
.note strong { margin-bottom: 4px; }
.note span { color: #554f48; }
.check-list { margin: 0 0 34px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 9px; height: 5px; border-left: 2px solid var(--bronze-text); border-bottom: 2px solid var(--bronze-text); transform: rotate(-45deg); }
.interior-media { position: sticky; top: 30px; align-self: start; }
.segment-figure { margin: 0 0 34px; }
.segment-figure figcaption { padding: 11px 0 3px; color: var(--bronze-text); font-size: .8rem; font-weight: 600; }
.segment-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.image-placeholder { min-height: 420px; padding: 35px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--ivory); border: 1px solid var(--stone); border-radius: 3px; }
.image-placeholder p { margin: 22px 0 3px; font-size: 1.15rem; font-weight: 600; }
.image-placeholder small { color: #716a61; }
.placeholder-mark { width: 95px; height: 70px; display: flex; align-items: end; gap: 9px; }
.placeholder-mark span { width: 14px; height: 54px; display: block; background: var(--stone); clip-path: polygon(50% 0, 100% 13%, 100% 100%, 0 100%, 0 13%); }
.placeholder-mark span:nth-child(2), .placeholder-mark span:nth-child(4) { height: 70px; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; padding-top: 70px; padding-bottom: 80px; }
.gallery-card { min-width: 0; }
.gallery-card > img, .gallery-card > .image-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; min-height: 0; border-radius: 3px; }
.gallery-wide { grid-column: span 2; }
.gallery-wide > img { aspect-ratio: 2.4 / 1; }
.product-photo img { object-position: center 62%; }
.gallery-featured > img { object-position: center 58%; }
.gallery-caption { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0 10px; border-bottom: 1px solid var(--stone); }
.gallery-caption strong { font-size: 1.05rem; }
.gallery-caption span { color: var(--bronze-text); font-size: .8rem; font-weight: 600; text-align: right; }
.product-note { margin: 10px 0 0; color: #625b52; font-size: .85rem; }
.representative-gallery { padding-top: 76px; background: var(--ivory); }
.gallery-section-heading { max-width: 860px; text-align: center; }
.gallery-section-heading h2 { margin: 0 0 18px; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.gallery-section-heading p:last-child { margin-inline: auto; max-width: 760px; }
.representative-grid { padding-top: 48px; padding-bottom: 86px; }
.gallery-cta { margin-bottom: 100px; padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--ivory); }
.gallery-cta h2 { margin: 0; font-size: 2rem; }

.measure-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; padding-top: 70px; padding-bottom: 110px; }
.measure-steps article { display: grid; grid-template-columns: 68px 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid var(--stone); }
.measure-steps article > span { color: var(--bronze-text); font-family: "Barlow Semi Condensed", sans-serif; font-size: 1.2rem; }
.measure-steps h2 { margin-bottom: 8px; font-size: 1.55rem; }
.measure-steps p { margin-bottom: 0; color: #5f5a54; }
.measure-note { align-self: start; padding: 38px; background: var(--charcoal); color: var(--ivory); }
.measure-note h2 { font-size: 2.1rem; }
.measure-note > p:not(.eyebrow) { color: #cbc4b9; }
.measure-note .button-dark { background: var(--ivory); color: var(--charcoal); }
.measure-note .button-outline { border-color: var(--ivory); color: var(--ivory); }

.contact-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; padding-top: 65px; padding-bottom: 110px; }
.contact-form { max-width: 630px; }
.contact-form h2, .contact-aside h2 { margin-bottom: 30px; font-size: 2rem; }
.field { margin-bottom: 22px; }
.field label, .field legend { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 600; }
.field label span { color: var(--error-text); }
.field input:not([type="radio"]), .field textarea { width: 100%; padding: 12px 13px; background: var(--warm-white); border: 1px solid var(--stone); border-radius: 3px; color: var(--charcoal); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--charcoal); box-shadow: 0 0 0 2px rgba(28,30,31,.1); outline: 0; }
.field.has-error input { background: var(--error-bg); border: 2px solid var(--error-border); }
.field small { display: block; margin-top: 5px; color: var(--error-text); }
fieldset.field { margin-inline: 0; padding: 0; border: 0; }
.radio { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.radio input { accent-color: var(--charcoal); }
.form-submit { width: 100%; }
.form-caveat { margin-top: 12px; color: #716a61; font-size: .75rem; }
.form-success { padding: 28px; background: var(--ivory); border-left: 4px solid var(--bronze-text); }
.form-success strong { font-size: 1.3rem; }
.form-success p { margin: 8px 0 18px; }
.text-button { padding: 0; background: transparent; border: 0; color: var(--bronze-text); font-weight: 600; text-decoration: underline; cursor: pointer; }
.contact-aside { align-self: start; padding: 48px; background: var(--charcoal); color: var(--ivory); }
.contact-aside > p:not(.eyebrow) { color: #d0c9be; }
.contact-aside .button { margin-top: 12px; }
.aside-divider { height: 1px; margin: 48px 0; background: rgba(242,237,228,.2); }
.contact-aside h3 { margin-bottom: 12px; }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .steel-grid { grid-template-columns: 1fr; gap: 50px; }
  .interior-layout, .contact-layout, .measure-layout { gap: 45px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 40px, 1360px); }
  .site-header { height: 72px; }
  .brand img { width: 190px; }
  .home-hero { height: 610px; background-position: 67% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(15,16,17,.84), rgba(15,16,17,.55)), linear-gradient(0deg, rgba(15,16,17,.58), transparent 60%); }
  .hero-inner { justify-content: flex-end; padding-bottom: 42px; }
  .hero-inner h1, .hero-copy { width: 100%; }
  .hero-inner h1 { font-size: clamp(2.4rem, 11vw, 3.25rem); }
  .hero-copy { font-size: 1rem; }
  .hero-buttons { width: 100%; }
  .hero-buttons .button { flex: 1 1 100%; }
  .section { padding-top: 76px; padding-bottom: 82px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 235px; }
  .steel-section { padding: 78px 0; }
  .benefit-list { grid-template-columns: 1fr; }
  .benefit-list li { min-height: 76px; }
  .button-row .button { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand img { width: 240px; }
  .interior-heading { padding-top: 58px; padding-bottom: 42px; }
  .interior-heading h1 { font-size: 2.7rem; }
  .interior-heading > p:last-child { font-size: 1.05rem; }
  .interior-layout, .contact-layout, .measure-layout { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 80px; }
  .interior-media { position: static; order: -1; }
  .segment-image { aspect-ratio: 16 / 10; }
  .check-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; padding-top: 48px; }
  .gallery-wide { grid-column: auto; }
  .gallery-wide > img { aspect-ratio: 4 / 3; object-fit: cover; }
  .gallery-caption { align-items: baseline; }
  .gallery-cta { margin-bottom: 70px; padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .measure-note { padding: 28px; }
  .contact-aside { padding: 30px 25px; }
}

/* WordPress navigation and staging-form integration */
.desktop-nav .menu { display:flex; align-items:center; gap:clamp(16px,1.8vw,30px); margin:0; padding:0; list-style:none; }
.desktop-nav .menu a { padding:8px 0; border-bottom:1px solid transparent; }
.desktop-nav .menu a:hover { border-bottom-color:var(--charcoal); }
.menu-toggle { display:none; width:42px; height:42px; padding:9px; border:0; background:transparent; cursor:pointer; }
.menu-toggle > span:not(.screen-reader-text) { display:block; height:2px; margin:5px 0; background:var(--charcoal); }
.mobile-nav { display:none; position:absolute; top:72px; right:20px; width:min(310px,calc(100vw - 40px)); padding:18px; background:var(--warm-white); border:1px solid var(--stone); box-shadow:0 18px 45px rgba(28,30,31,.13); }
.mobile-nav ul { margin:0; padding:0; list-style:none; }
.mobile-nav a { display:block; padding:11px 8px; font-weight:600; border-bottom:1px solid rgba(28,30,31,.09); }
.mobile-nav.is-open { display:block; }
.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.form-placeholder { padding:28px; background:var(--ivory); border-left:4px solid var(--bronze-text); }
.form-placeholder p:last-child { margin-bottom:0; }
.forminator-ui input:not([type=submit]), .forminator-ui textarea, .forminator-ui select { border:1px solid var(--stone)!important; border-radius:3px!important; }
.forminator-ui .forminator-button-submit { min-height:50px!important; padding:13px 28px!important; background:var(--charcoal)!important; color:var(--ivory)!important; border-radius:3px!important; }
@media (max-width:1100px) { .desktop-nav { display:none; } .menu-toggle { display:block; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
