/* SRQ Door Refinishing — site styles
   Brand: warm amber/red on near-black, echoing the logo and mahogany doorwork. */

:root {
  --bg:        #0c0a09;
  --bg-raised: #16120f;
  --bg-sunk:   #080706;
  --line:      #2b231d;
  --line-soft: #1e1815;

  --text:      #f6f1ea;
  --text-mid:  #c4b5a5;
  --text-dim:  #8d7c6c;

  --amber:     #f2a423;
  --amber-dk:  #c47f10;
  --red:       #d92b1f;
  --mahogany:  #7a3419;

  --wrap: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 4px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .55);

  --ff: "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffc45e; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; }
p  { margin: 0 0 1.15em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: #000; padding: .7rem 1.2rem; font-weight: 700;
}
.skip:focus { left: .5rem; top: .5rem; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 7, 6, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem 0;
}

.logo { display: block; flex-shrink: 0; }
.logo img { width: 260px; max-width: 46vw; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); padding: .55rem .8rem; border-radius: var(--radius);
  font: inherit; font-size: .9rem; cursor: pointer; align-items: center; gap: .55rem;
}
.nav-toggle .bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  color: var(--text-mid); text-decoration: none; font-size: .93rem; font-weight: 600;
  padding: .55rem .7rem; border-radius: var(--radius); white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--bg-raised); }
.nav a[aria-current="page"] { color: var(--amber); }

.nav .btn-call {
  background: var(--amber); color: #100c07; margin-left: .4rem;
  padding: .6rem 1rem; font-weight: 800;
}
.nav .btn-call:hover { background: #ffc45e; color: #100c07; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-sunk); border-bottom: 1px solid var(--line);
    padding: .5rem; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 1rem; font-size: 1rem; }
  .nav .btn-call { margin: .5rem 0 .25rem; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-size: 1rem; border: 1px solid transparent;
  cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--amber); color: #100c07; }
.btn-primary:hover { background: #ffc45e; color: #100c07; }
.btn-ghost { border-color: #6b5a4a; color: var(--text); background: rgba(12, 10, 9, .35); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); background: var(--bg-raised); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,7,6,.96) 0%, rgba(8,7,6,.86) 42%, rgba(8,7,6,.42) 100%);
}
.hero-body { position: relative; padding: clamp(3.5rem, 11vw, 8rem) 0; max-width: 640px; }
.hero .eyebrow {
  color: var(--amber); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  font-size: .78rem; margin-bottom: .9rem;
}
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-mid); margin-bottom: 1.8rem; }

/* ---------- Page header (interior pages) ---------- */

.page-head {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-head .eyebrow {
  color: var(--amber); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: .7rem;
}
.page-head p { color: var(--text-mid); max-width: 62ch; margin-bottom: 0; }

/* ---------- Sections ---------- */

section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
section.tight { padding-block: clamp(2rem, 5vw, 3.25rem); }
.section-alt { background: var(--bg-raised); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { color: var(--text-mid); margin-bottom: 0; }

.prose { max-width: 68ch; }
.prose p { color: var(--text-mid); }
.prose strong { color: var(--text); }

/* ---------- Cards / grids ---------- */

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-mid); margin-bottom: 0; font-size: .97rem; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: rgba(242, 164, 35, .13); color: var(--amber);
  font-weight: 800; font-size: .95rem; margin-bottom: .9rem;
}

/* ---------- Split (text + image) ---------- */

.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip .split-media { order: -1; }
}
.split-media img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow);
}

/* ---------- Feature list ---------- */

.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li {
  position: relative; padding-left: 1.9rem; margin-bottom: .75rem; color: var(--text-mid);
}
.ticks li::before {
  content: ""; position: absolute; left: .2rem; top: .5em;
  width: .5rem; height: .9rem; border: solid var(--amber);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ticks strong { color: var(--text); }

/* ---------- Gallery ---------- */

.gallery {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.gallery figure { margin: 0; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: var(--bg-sunk);
  cursor: pointer; position: relative;
}
.gallery img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform .35s ease;
}
.gallery button:hover img { transform: scale(1.045); }
.gallery figcaption {
  font-size: .82rem; color: var(--text-dim); padding: .5rem .2rem 0; line-height: 1.35;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(4, 3, 3, .95); padding: 2rem 1rem;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(100%, 900px); max-height: 80vh; width: auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--text-mid); text-align: center; padding-top: .9rem; font-size: .95rem; }
.lightbox figure { margin: 0; }
.lb-btn {
  position: absolute; background: rgba(22, 18, 15, .92); border: 1px solid var(--line);
  color: var(--text); width: 3rem; height: 3rem; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  font-family: inherit;
}
.lb-btn:hover { border-color: var(--amber); color: var(--amber); }
.lb-close { top: 1.1rem; right: 1.1rem; }
.lb-prev  { left: 1.1rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.1rem; top: 50%; transform: translateY(-50%); }

/* ---------- FAQ ---------- */

.faq { max-width: 68ch; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-raised); margin-bottom: .7rem;
}
.faq summary {
  cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--amber); font-size: 1.5rem; line-height: 1; flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--amber); }
.faq .answer { padding: 0 1.3rem 1.15rem; color: var(--text-mid); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: clamp(1.75rem, 5vw, 3.5rem); }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1.05fr; } }

.contact-lines { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.contact-lines li { margin-bottom: 1.15rem; }
.contact-lines .label {
  display: block; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 800; margin-bottom: .2rem;
}
.contact-lines .value { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.contact-lines a.value { color: var(--amber); text-decoration: none; }
.contact-lines a.value:hover { text-decoration: underline; }

form .field { margin-bottom: 1.1rem; }
form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
form .req { color: var(--amber); }
form input, form select, form textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: 1rem;
  background: var(--bg-sunk); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--amber);
}
form textarea { min-height: 140px; resize: vertical; }
form .hint { font-size: .85rem; color: var(--text-dim); margin: .4rem 0 0; }
.hp { position: absolute; left: -9999px; }

.form-note {
  border: 1px solid var(--line); border-left: 3px solid var(--amber);
  background: var(--bg-raised); padding: 1rem 1.2rem; border-radius: var(--radius);
  color: var(--text-mid); font-size: .93rem; margin-bottom: 1.5rem;
}
.form-note p:last-child { margin-bottom: 0; }

/* ---------- Service areas ---------- */

.areas { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.areas li {
  border: 1px solid var(--line); border-radius: 999px; padding: .4rem .95rem;
  font-size: .9rem; color: var(--text-mid); background: var(--bg-raised);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--mahogany), #4a1e0d 70%);
  border-block: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { color: #ecdccd; max-width: 55ch; margin-inline: auto; margin-bottom: 1.6rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Stats ---------- */

.stats { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat .n { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; color: var(--amber); line-height: 1; }
.stat .l { color: var(--text-mid); font-size: .95rem; margin-top: .4rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-sunk); border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.5rem; font-size: .93rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 {
  font-size: .76rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 .8rem; font-weight: 800;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--text-mid); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer .footer-logo { width: 220px; margin-bottom: 1rem; }
.site-footer .blurb { color: var(--text-dim); max-width: 34ch; margin: 0; }
.footer-bottom {
  border-top: 1px solid var(--line-soft); margin-top: 2.25rem; padding-top: 1.25rem;
  color: var(--text-dim); font-size: .87rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}
.footer-bottom a { color: var(--text-dim); }

/* ---------- Sticky mobile call bar ---------- */

.callbar { display: none; }
@media (max-width: 640px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--line); border-top: 1px solid var(--line);
  }
  .callbar a {
    background: var(--bg-sunk); color: var(--text); text-decoration: none;
    text-align: center; padding: .85rem .5rem; font-weight: 700; font-size: .95rem;
  }
  .callbar a.primary { background: var(--amber); color: #100c07; }
  body { padding-bottom: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
