/* RAM Development LLC - site styles. Charcoal and construction amber, Impact headlines (the brand's existing look). */
:root {
  --ink: #12110f;
  --ink-2: #3a3833;
  --muted: #6b675f;
  --line: #e2ddd3;
  --paper: #f6f3ee;
  --card: #ffffff;
  --amber: #ffb703;
  --amber-hover: #ffc633;
  --amber-soft: #fff4d6;
  --on-dark: #f3efe8;
  --on-dark-muted: #bdb7ac;
  --danger: #a4161a;
  --ok: #1d6b35;
  --radius: 4px;
  --display: Impact, "Haettenschweiler", "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--ink); color: var(--on-dark); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: var(--radius); background: #fff; }
.brand span { font-family: var(--display); font-size: 22px; letter-spacing: .04em; color: var(--amber); white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--on-dark); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: var(--radius); }
.nav a:hover { background: #2a2824; }
.nav a[aria-current="page"] { color: var(--amber); }
.header-phone { text-decoration: none; font-weight: 700; color: var(--ink); background: var(--amber); padding: 8px 14px; border-radius: var(--radius); white-space: nowrap; }
.header-phone:hover { background: var(--amber-hover); }
.nav-toggle { display: none; background: none; border: 1px solid #4a4741; color: var(--on-dark); border-radius: var(--radius); padding: 8px 10px; font: 600 14px var(--body); cursor: pointer; }

/* Type */
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.02; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6.5vw, 64px); }
h2 { font-size: clamp(28px, 4.5vw, 44px); }
h3 { font-size: 19px; margin: 0 0 6px; }
.lede { font-size: 18px; color: var(--ink-2); margin: 0; max-width: 640px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 13px 22px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--amber); color: var(--ink); font: 700 16px var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--amber-hover); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--amber-soft); }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }
.text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--amber); }

/* Sections */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head { padding: 48px 0 24px; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .eyebrow { color: var(--amber); }
.dark .lede, .dark .muted { color: var(--on-dark-muted); }

/* Home hero */
.hero { position: relative; color: #fff; background: var(--ink) center/cover no-repeat; min-height: min(78vh, 680px); display: flex; align-items: end; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,15,.25) 0%, rgba(18,17,15,.55) 45%, rgba(18,17,15,.92) 100%); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 56px; width: 100%; }
.hero .eyebrow { color: var(--amber); }
.hero .lede { color: #e9e4da; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 4px solid var(--amber); }
.facts div { padding: 22px 16px; border-right: 1px solid #2c2a26; }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--amber); letter-spacing: .02em; }
.facts span { color: var(--on-dark-muted); font-size: 14px; }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.service { overflow: hidden; display: flex; flex-direction: column; }
.service img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service div { padding: 16px 18px 20px; }
.service p { margin: 0; color: var(--ink-2); font-size: 15px; }
.project-card { display: block; text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.project-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(18,17,15,.12); }
.project-card .ph { aspect-ratio: 4 / 3; background: #d9d3c7; position: relative; }
.card-pill { position: absolute; left: 10px; top: 10px; margin: 0; }
.project-card img { width: 100%; height: 100%; object-fit: cover; }
.project-card .body { padding: 14px 16px 18px; }
.project-card h3 { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .02em; margin: 0 0 4px; }
.project-card p { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.skeleton { background: linear-gradient(90deg, #e8e3da 25%, #f1ede6 50%, #e8e3da 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed #c9c3b8; border-radius: var(--radius); }

/* Estimator promo band */
.band { background: var(--amber); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 36px; padding-bottom: 36px; flex-wrap: wrap; }
.band h2 { margin: 0 0 4px; }
.band p { margin: 0; color: var(--ink-2); }
.band .btn { background: var(--ink); color: var(--amber); }
.band .btn:hover { background: #2a2824; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Contact block */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.contact-list svg { width: 22px; height: 22px; stroke: var(--amber); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

/* Filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { border: 1px solid #c9c3b8; background: #fff; border-radius: 999px; padding: 7px 14px; font: 600 14px var(--body); cursor: pointer; text-decoration: none; color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--amber); }

.hero-credit { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: 12px; color: rgba(255,255,255,.75); }

/* Project detail */
.status-pill { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.crumbs { font-size: 14px; margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.details { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 0; padding: 0; list-style: none; }
.details dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 0; font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery figure { margin: 0; background: #d9d3c7; border-radius: var(--radius); overflow: hidden; }
.gallery button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.gallery button:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.gallery img, .gallery video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 8px 10px; font-size: 13px; background: #fff; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
.gallery .wide img, .gallery .wide video { height: 100%; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,10,9,.92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 64px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox p { color: #e9e4da; text-align: center; margin: 10px 0 0; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); width: 44px; height: 44px; font: 700 22px var(--body); cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Forms */
fieldset.card { padding: 20px; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 18px; padding: 0; display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 16px; }
legend + * { clear: both; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--amber); font-size: 14px; flex: none; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > span { font-weight: 600; font-size: 14px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field small, .field .help { color: var(--muted); font-size: 13px; margin: 0; }
.field .err { color: var(--danger); font-size: 13px; margin: 0; }
.span-2 { grid-column: 1 / -1; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9c3b8; border-radius: var(--radius); padding: 10px 12px; width: 100%; min-width: 0; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--danger); }
.form-error { margin-top: 16px; padding: 12px 14px; border-left: 4px solid var(--danger); background: #fbeaea; color: var(--danger); border-radius: var(--radius); }
.form-error ul { margin: 0; padding-left: 18px; }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.thanks { padding: 20px; border-left: 4px solid var(--ok); background: #eaf5ee; border-radius: var(--radius); }

/* Estimator */
.estimator { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-bottom: 64px; }
.steps { display: grid; gap: 16px; min-width: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice-body { display: grid; gap: 4px; height: 100%; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.choice-body svg { width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.choice-body small { color: var(--muted); }
.choice input:checked + .choice-body { border-color: var(--ink); background: var(--amber-soft); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--amber); outline-offset: 2px; }
.summary { position: sticky; top: 84px; border-top: 6px solid var(--amber); padding: 20px; }
.big { font-family: var(--display); font-size: 40px; line-height: 1.05; margin: 4px 0 8px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 14px; }
.checklist li { padding-left: 22px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.sent { font-size: 14px; margin: 0 0 12px; }
.sent.ok { color: var(--ok); }
.sent.warn { color: var(--danger); }
.lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.lines td, .lines th { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.lines td:last-child, .lines tfoot td { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.lines tfoot th, .lines tfoot td { font-weight: 700; border-top: 2px solid var(--ink); }
.notes { padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.summary .btn { margin-top: 12px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 14px; padding: 40px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer h3 { color: var(--on-dark); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-brand { font-family: var(--display); color: var(--amber); font-size: 24px; letter-spacing: .04em; }
.copyright { border-top: 1px solid #2c2a26; margin-top: 28px; padding-top: 16px; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .estimator { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--ink); flex-direction: column; padding: 8px 16px 16px; border-top: 1px solid #2c2a26; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .header-phone { display: none; }
  .grid-3, .split, .footer-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid #2c2a26; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
}
@media (max-width: 600px) {
  .grid-4, .choice-grid, .field-grid { grid-template-columns: 1fr; }
  .choice-body { grid-template-columns: 36px 1fr; column-gap: 12px; }
  .choice-body svg { grid-row: span 2; margin: 0; }
  .brand span { font-size: 18px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: auto; grid-row: auto; }
  .lightbox-inner { padding: 56px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}