/* Liberty Ridge Metal Buildings — brand: logo green + quote-button orange, condensed signage type. */
:root {
  --green: #03443d;
  --green-deep: #022f2a;
  --green-tint: #e8efed;
  --orange: #e67e22;
  --orange-hover: #f08d35;
  --ink: #18201e;
  --muted: #4d5a57;
  --line: #d9dfdd;
  --paper: #ffffff;
  --steel: #f3f5f4;
  --on-dark: #ffffff;
  --on-dark-muted: #c9d6d3;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --radius: 6px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: .005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); padding: 10px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Buttons: dark text on brand orange keeps contrast above 4.5:1. */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: 600 1.05rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--orange); color: #111; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.75); background: rgba(0,0,0,.15); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { color: var(--green); border-color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--on-dark); }
.btn-sm { gap: 0; min-height: 42px; padding: 0 16px; font-size: .98rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { width: 168px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-weight: 600; text-decoration: none; color: var(--ink); font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.phone { display: inline-flex; align-items: center; gap: 8px; font: 700 1.2rem/1 var(--display); letter-spacing: .02em; color: var(--green); text-decoration: none; white-space: nowrap; }
.phone svg { width: 20px; height: 20px; fill: currentColor; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 11px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-toggle i { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; color: var(--on-dark); overflow: hidden; background: var(--green-deep); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,24,21,.88) 0%, rgba(2,24,21,.66) 42%, rgba(2,24,21,.12) 78%); }
.hero-inner { position: relative; z-index: 1; padding-block: 72px; }
.eyebrow { font: 600 .92rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #ffd2a8; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); max-width: 16ch; text-transform: uppercase; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); max-width: 34rem; margin-top: 18px; color: #e9f0ee; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Proof strip */
.proof { background: var(--green); color: var(--on-dark); }
.proof ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof li { padding: 16px 12px 16px 30px; position: relative; font-weight: 600; font-size: .98rem; }
.proof li::before { content: ""; position: absolute; left: 8px; top: 50%; width: 12px; height: 7px; border: solid var(--orange); border-width: 0 0 3px 3px; transform: translateY(-70%) rotate(-45deg); }

/* Sections */
.section { padding-block: 84px; }
.section-alt { background: var(--steel); }
.section-dark { background: var(--green-deep); color: var(--on-dark); }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3rem); text-transform: uppercase; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--orange); margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.center { text-align: center; margin-top: 36px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.55rem; }
.card .size { font-size: .9rem; font-weight: 600; color: var(--green); letter-spacing: .02em; }
.card p:not(.size) { color: var(--muted); }
.card .more { margin-top: auto; padding-top: 10px; font-weight: 600; text-decoration: none; color: var(--green); }
.card .more:hover { text-decoration: underline; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.projects .extra { display: none; }
.projects.show-all .extra { display: block; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.shot img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .3s; }
.shot:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot:hover img { transform: none; } }
.projects h3 { font-size: 1.25rem; margin-top: 12px; }
.projects p { font-size: .92rem; color: var(--muted); margin-top: 4px; }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why li { border-top: 3px solid var(--orange); padding-top: 20px; }
.why svg { width: 40px; height: 40px; color: var(--orange); }
.why h3 { font-size: 1.5rem; margin-top: 14px; }
.why p { color: var(--on-dark-muted); margin-top: 8px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps li { position: relative; }
.num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--on-dark); font: 700 1.5rem/1 var(--display); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 64px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps h3 { font-size: 1.45rem; margin-top: 16px; }
.steps p { color: var(--muted); margin-top: 6px; }

/* Financing band */
.financing { background: var(--green); color: var(--on-dark); padding-block: 56px; }
.financing-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.financing h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); text-transform: uppercase; }
.financing p { margin-top: 10px; max-width: 40rem; color: #dfe9e6; }
.financing-ctas { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* About + form */
.quote-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.about h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); text-transform: uppercase; }
.about h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--orange); margin-top: 14px; }
.about p { margin-top: 16px; color: var(--muted); }
.contact { margin: 28px 0 0; display: grid; gap: 14px; }
.contact div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.contact dt { font-weight: 600; color: var(--ink); }
.contact dd { margin: 0; }
.contact a { font-weight: 600; word-break: break-word; }
.quote-form { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; box-shadow: 0 10px 30px rgba(3,68,61,.08); }
.quote-form h3 { font-size: 1.7rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.quote-form .l em { font-style: normal; color: #b4400c; }
input, select, textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--paper); border: 1px solid #aab5b2; border-radius: var(--radius); padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 0; }
input[aria-invalid="true"] { border-color: #b4400c; }
.consent { display: flex !important; grid-template-columns: none; gap: 10px !important; font-weight: 400 !important; font-size: .82rem !important; color: var(--muted); line-height: 1.5; }
.consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--green); }
.form-error { color: #b4400c; font-weight: 600; }
.form-note { font-size: .88rem; color: var(--muted); text-align: center; }
.form-done { background: var(--green-tint); border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; }
.form-done h3 { font-size: 1.4rem; }
[hidden] { display: none !important; }

/* Inner pages */
.page-hero { background: var(--green-deep); color: var(--on-dark); padding-block: 64px 56px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); text-transform: uppercase; max-width: 18ch; }
.page-hero .lead { color: var(--on-dark-muted); max-width: 44rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col p { color: var(--muted); margin-top: 14px; }
.h-rule { font-size: clamp(1.8rem, 3vw, 2.3rem); text-transform: uppercase; }
.h-rule::after { content: ""; display: block; width: 56px; height: 4px; background: var(--orange); margin-top: 12px; }
.ticks { margin-top: 14px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border: solid var(--orange); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.steps-v { grid-template-columns: 1fr !important; gap: 22px; margin-top: 20px; }
.steps-v li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
.steps-v .num { grid-row: span 2; }
.steps-v h3 { margin-top: 4px !important; }
.steps-v li::after { display: none; }
.two-col .hero-ctas { margin-top: 28px; }
.two-col .sub { font-size: 1.25rem; margin-top: 18px; }
.two-col .photo { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.two-col:has(> .photo) { align-items: center; }
.fine { font-size: .85rem; margin-top: 18px !important; }
.why-light li { border-top-color: var(--orange); }
.why-light p { color: var(--muted); }
.why-light h3 { margin-top: 0; }
.svc-list { display: grid; gap: 28px; }
.svc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc > div { padding: 20px 24px 20px 0; display: grid; gap: 6px; }
.svc h3 { font-size: 1.7rem; }
.svc .size { font-size: .9rem; font-weight: 600; color: var(--green); }
.svc p:not(.size) { color: var(--muted); }
.svc .more { font-weight: 600; color: var(--green); text-decoration: none; margin-top: 6px; }
.svc .more:hover { text-decoration: underline; }

/* Legal pages */
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); text-transform: uppercase; }
.legal h2 { font-size: 1.5rem; margin-top: 32px; }
.legal p, .legal ul { margin-top: 12px; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.4em; }
.legal .meta { font-weight: 600; color: var(--ink); }

/* Footer */
.site-footer { background: var(--green-deep); color: var(--on-dark-muted); padding-top: 56px; }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font: 700 1.05rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 10px; }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--radius); padding: 10px 14px; }
.footer-logo img { width: 170px; }
.muted { margin-top: 10px; font-size: .92rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-block: 20px 28px; font-size: .88rem; }

/* Sticky call bar: phones only */
.call-bar { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(5,15,13,.86); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); background: #000; }
.lb-caption { color: #fff; padding: 12px 4px; }
.lb-caption h3 { font-size: 1.5rem; }
.lb-caption p { color: #cfdad7; margin-top: 4px; }
.lb-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .projects { grid-template-columns: repeat(3, 1fr); }
  .why, .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .menu-toggle { display: flex; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: 0 12px 20px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .header-actions { margin-left: auto; gap: 10px; }
  .phone span { display: none; }
  .phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .proof ul { grid-template-columns: repeat(2, 1fr); }
  .financing-inner { flex-direction: column; align-items: flex-start; }
  .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .svc { grid-template-columns: 1fr; gap: 0; }
  .svc > div { padding: 18px 20px 22px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: 60px; }
  .brand img { width: 132px; }
  .btn-sm { padding: 0 12px; }
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(2,24,21,.55) 0%, rgba(2,24,21,.82) 60%, rgba(2,24,21,.9) 100%); }
  .hero-inner { padding-block: 56px 48px; }
  .hero-ctas .btn { width: 100%; }
  .section { padding-block: 60px; }
  .section-head { margin-bottom: 28px; }
  .cards { grid-template-columns: 1fr; }
  .projects { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .projects h3 { font-size: 1.08rem; }
  .projects p { display: none; }
  .hide-sm { display: none; }
  .card { flex-direction: row; }
  .card img { width: 38%; aspect-ratio: auto; height: auto; min-height: 100%; object-fit: cover; }
  .card-body { padding: 14px 14px 14px 16px; gap: 3px; }
  .card h3 { font-size: 1.3rem; }
  .card p:not(.size) { font-size: .93rem; line-height: 1.45; }
  .card .more { padding-top: 6px; }
  .why, .steps { grid-template-columns: 1fr; }
  .proof li { font-size: .9rem; padding-block: 12px; }
  .row { grid-template-columns: 1fr; }
  .quote-form { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; min-height: 56px; padding-bottom: env(safe-area-inset-bottom, 0px); align-items: center; justify-content: center; background: var(--orange); color: #111; font: 700 1.15rem/1 var(--body); text-decoration: none; box-shadow: 0 -4px 14px rgba(0,0,0,.15); }
}
