/* Quality Coat - Professional Painting & Restoration
   Clean white theme: white background, black lettering, red accents.
   Headings: Cormorant Garamond Italic (fallback Bodoni Moda Italic).
   Body: Jost. Mobile first. */

:root {
  --white: #ffffff;
  --ink: #111111;
  --ink-soft: #1a1a1a;
  --gray: #5a5a5a;
  --gray-pale: #f7f7f7;
  --line: #e6e6e6;
  --red: #c8102e;
  --red-dark: #a30c24;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Jost", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1rem; }

a { color: var(--red); }
a:hover { color: var(--red-dark); }

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text { line-height: 1.2; }

.brand-text strong {
  display: block;
  font-family: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
}

.brand-text > span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 0.65rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 1rem;
}

.main-nav a:hover { color: var(--red); }
.main-nav a.active { color: var(--red); }

.nav-call {
  background: var(--red);
  color: #fff !important;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-call:hover { background: var(--red-dark); color: #fff !important; }

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

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-dark);
  color: #fff;
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn-row .btn { width: 100%; }

.text-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--ink);
}

.text-link:hover { color: var(--red); }

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

.hero {
  padding: 3.5rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero-logo {
  width: min(400px, 82vw);
  margin: 0 auto 2rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
}

.hero .sub {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 34rem;
  margin: 0 auto;
}

.hero .btn-row {
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

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

.section { padding: 4rem 0; }

.section + .section { border-top: 1px solid var(--line); }

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--gray);
}

.section-split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.service-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.service-points li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}

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

.cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem 1.6rem;
}

.card h3 { margin-bottom: 0.6rem; }

.card p { color: var(--gray); }

.card p:last-child { margin-bottom: 0; }

.more {
  font-weight: 600;
  text-decoration: none;
  color: var(--red);
}

.more:hover { color: var(--red-dark); text-decoration: underline; }

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

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}

.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-item h3 { margin-bottom: 0.45rem; }

.faq-item p { color: var(--gray); margin-bottom: 0; }

/* ---------- Our Work ---------- */

.flyer-frame {
  max-width: 460px;
  margin: 0 auto 2.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.photo-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.photo-tile {
  aspect-ratio: 4 / 3;
  background: var(--gray-pale);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ---------- Why list ---------- */

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.why-list li {
  border-left: 3px solid var(--red);
  padding-left: 1.25rem;
}

.why-list h3 { margin-bottom: 0.4rem; }
.why-list p { color: var(--gray); margin-bottom: 0; }

/* ---------- Areas ---------- */

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
}

.area-list li {
  font-family: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink-soft);
}

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

.cta-band {
  border-top: 1px solid var(--line);
  padding: 4rem 1.25rem;
  text-align: center;
}

.cta-band .wrap { max-width: 640px; }

.phone-big {
  display: inline-block;
  font-family: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  color: var(--ink);
  text-decoration: none;
  margin: 0.75rem 0 0.5rem;
}

.phone-big:hover { color: var(--red); }

.cta-band .btn-row { max-width: 26rem; margin-left: auto; margin-right: auto; }

/* ---------- Form ---------- */

.form-card {
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  background: var(--white);
}

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 0.8rem 0.9rem;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.12);
}

.form-status {
  margin-top: 1rem;
  font-weight: 500;
  min-height: 1.5em;
}

.form-status.ok { color: #1a7a3a; }
.form-status.error { color: var(--red); }

.contact-alt {
  text-align: center;
  margin-top: 3rem;
}

.contact-alt .btn-row { max-width: 26rem; margin-left: auto; margin-right: auto; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
}

.foot-brand {
  font-family: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.site-footer nav {
  margin: 1.25rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.site-footer nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.site-footer nav a:hover { color: var(--red); }

.site-footer a[href^="tel:"] { color: var(--red); font-weight: 600; }

/* ---------- Mobile nav ---------- */

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav li { border-top: 1px solid var(--line); }

  .main-nav a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-call { text-align: center; margin-top: 0.75rem; }
}

/* ---------- Desktop ---------- */

@media (min-width: 761px) {
  .nav-toggle { display: none; }

  .section { padding: 5rem 0; }
  .hero { padding: 5rem 0 4.5rem; }

  .btn-row {
    flex-direction: row;
    justify-content: center;
  }

  .btn-row .btn { width: auto; }

  .cards { grid-template-columns: repeat(2, 1fr); }

  .photo-grid { grid-template-columns: repeat(3, 1fr); }

  .section-split { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }

  .why-list { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 2.5rem; }

  .form-card { padding: 2.75rem 2.5rem; }
}

/* ---------- Before / After slider ---------- */

.ba-slider {
  --ba-pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--gray-pale);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba-before {
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 2px;
  background: var(--white);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-grip {
  position: absolute;
  top: 50%;
  left: var(--ba-pos);
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.ba-tag {
  position: absolute;
  top: 0.75rem;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(17, 17, 17, 0.68);
  color: #fff;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  pointer-events: none;
}

.ba-tag.before { left: 0.75rem; }
.ba-tag.after { right: 0.75rem; }

.ba-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

/* ---------- Work gallery page ---------- */

.page-hero {
  padding: 4rem 1.25rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-hero .wrap { max-width: 720px; }

.work-list {
  padding: 3.5rem 0 1rem;
}

.work-project {
  margin-bottom: 4rem;
}

.work-project:last-child { margin-bottom: 0; }

.work-project h3 {
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.work-project .project-desc {
  color: var(--gray);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.ba-pair { margin-bottom: 1.5rem; }

.ba-duo {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

.work-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.work-grid figure,
.ba-duo figure,
.prep-note {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.work-grid figure img,
.ba-duo figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-grid figcaption,
.ba-duo figcaption,
.prep-note figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  color: var(--gray);
  border-top: 1px solid var(--line);
}

.work-video {
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.work-video video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.work-video figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  color: var(--gray);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.prep-note {
  max-width: 340px;
  margin: 2rem auto 0;
}

.prep-note figcaption strong {
  display: block;
  color: var(--ink);
}

.work-cta { margin-top: 1rem; }

@media (min-width: 720px) {
  .ba-duo { grid-template-columns: 1fr 1fr; }
}

/* ---- Image lightbox (click to zoom) ---- */
.zoomable { cursor: zoom-in; }
.qc-lightbox[hidden] { display: none !important; }
.qc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.qc-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.qc-lightbox .qc-lb-img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}
.qc-lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.qc-lb-btn:hover { background: rgba(255, 255, 255, 0.28); }
.qc-lb-close { top: 14px; right: 14px; }
.qc-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.qc-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.qc-lb-cap {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}
.qc-lb-count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}
body.lb-lock { overflow: hidden; }
