/* Pure Painting LLC — Great Bend, KS
   Fresh-coat aesthetic: warm paper white, marine blue accent,
   Fraunces display + Karla body. */

:root {
  --ink: #1e2a36;
  --ink-soft: #46586a;
  --paper: #fbfaf7;
  --paper-deep: #f2efe8;
  --blue: #d9731a;
  --blue-deep: #a85410;
  --blue-wash: #f9ecdc;
  --gold: #e9a13b;
  --line: #e3ded3;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(30, 42, 54, 0.10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

.container { width: min(1120px, 92%); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section { padding: 88px 0; }
.section-sub { color: var(--ink-soft); max-width: 560px; margin-top: 12px; }

/* Paint-stripe accent used at page top and section dividers */
.paint-stripes {
  height: 6px;
  background: linear-gradient(90deg,
    var(--blue) 0 25%,
    var(--gold) 25% 50%,
    var(--ink) 50% 75%,
    var(--blue-deep) 75% 100%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }

.nav-phone { font-weight: 700; color: var(--ink); white-space: nowrap; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  text-align: center;
}
.btn:hover { background: var(--blue-deep); color: var(--white); transform: translateY(-1px); }
.btn.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn.btn-small { padding: 10px 18px; font-size: 15px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--blue-wash) 0%, transparent 60%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 62px);
  margin-bottom: 20px;
}

.hero h1 .swash {
  position: relative;
  white-space: nowrap;
}
.hero h1 .swash::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 0.34em;
  background: var(--gold);
  opacity: 0.35;
  z-index: -1;
  border-radius: 3px;
  transform: skewX(-8deg);
}

.hero-lede { font-size: 19px; color: var(--ink-soft); max-width: 520px; margin-bottom: 32px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 10px 28px;
  list-style: none;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row svg { width: 17px; height: 17px; flex: none; }

/* Hero visual: real project photo with before-shot inset */
.hero-visual { position: relative; }
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.hero-before {
  position: absolute;
  left: -18px;
  bottom: -22px;
  width: 38%;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
  background: var(--white);
}
.hero-before img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hero-before figcaption {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ---------- Quote form ---------- */
.quote-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.quote-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14.5px; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-wash);
}
.field .error-msg { color: #b3261e; font-size: 13.5px; display: none; }
.field.invalid input, .field.invalid select { border-color: #b3261e; }
.field.invalid .error-msg { display: block; }

.form-success {
  grid-column: 1 / -1;
  display: none;
  background: #e8f5ec;
  border: 1px solid #bfe3ca;
  color: #1d5c33;
  padding: 16px;
  border-radius: 8px;
  font-weight: 700;
}
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--ink-soft); }

/* ---------- Services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .swatch { height: 8px; width: 56px; border-radius: 4px; }
.card h3 { font-size: 23px; }
.card p { color: var(--ink-soft); flex: 1; }
.card .learn { font-weight: 700; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  color: var(--blue-wash);
  -webkit-text-stroke: 1.5px var(--blue);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.tile {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.tile .ph {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}
img.ph { object-fit: cover; width: 100%; }
.tile.pair { position: relative; }
.tile .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.tile .tag.after { background: var(--blue); }
.tile figcaption { padding: 14px 16px; font-size: 15px; font-weight: 700; }
.tile figcaption small { display: block; font-weight: 400; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.quote-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.tcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.tcard .stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; margin-bottom: 12px; }
.tcard blockquote { font-size: 16.5px; color: var(--ink); margin-bottom: 16px; }
.tcard cite { font-style: normal; font-weight: 700; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 44px; max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 17.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--blue);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 0 20px; color: var(--ink-soft); max-width: 640px; }

/* ---------- Final CTA ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--blue-deep), var(--blue));
  color: var(--white);
  text-align: center;
  padding: 88px 0;
}
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 32px; }
.cta-band .btn { background: var(--white); color: var(--blue-deep); }
.cta-band .btn:hover { background: var(--paper-deep); }
.cta-band .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c4cf; padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b9c4cf; }
.site-footer a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-brand .mark { width: 30px; height: 30px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 72px 0 56px; background: radial-gradient(900px 400px at 80% -20%, var(--blue-wash) 0%, transparent 60%), var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 50px); margin-bottom: 14px; }
.page-hero p { color: var(--ink-soft); max-width: 620px; font-size: 18px; }

.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin: 40px 0 14px; }
.prose ul { margin: 14px 0 14px 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; }

.checklist { list-style: none !important; margin-left: 0 !important; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: 4px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { position: relative; }
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav .btn { margin-left: 0; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: -4.4%;
    right: -4.4%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 4.4%;
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { display: block; padding: 12px 0; border-bottom: 0; font-size: 17px; }
}

@media (max-width: 960px) {
  .hero-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
  .card-grid, .quote-cards, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .card-grid, .quote-cards, .gallery-grid, .process-grid { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
}
