/* Sharpline Painting Co. — sharplinepainting.co
   Pure static, no build step. Brand red #e8503a on a warm light canvas
   (the logo is black-on-transparent — light backgrounds only). */

:root {
  /* #ff5040 sampled from the logo PNG itself — the single dominant red. */
  --red: #ff5040;
  --red-dark: #e03a2c;
  --red-text: #c9301c; /* darker sibling for small inline links (AA contrast) */
  --ink: #191714;
  --ink-soft: #4c463f;
  --muted: #8a8178;
  --paper: #faf8f5;
  --paper-alt: #f1ede7;
  --line: #e2dcd3;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--red-text); }

/* ---- Topbar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 5vw, 48px);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand-logo { height: 34px; display: block; }
.footer-logo { height: 28px; opacity: 0.85; margin: 0 auto 12px; display: block; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 17px; }
/* Dark text on the coral red — echoes the logo's black + coral and keeps
   AA contrast (white text on #ff5040 doesn't). */
.btn-primary { background: var(--red); color: var(--ink); font-weight: 700; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.topbar-call { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Hero ---- */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 110px) 20px 40px;
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 6.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.accent { color: var(--red); }
.hero-sub {
  max-width: 620px;
  margin: 22px auto 30px;
  font-size: clamp(16px, 2.3vw, 19px);
  color: var(--ink-soft);
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ---- Trust bar ---- */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: 30px;
}
.trust-item {
  background: var(--paper-alt);
  padding: 18px 20px;
  text-align: center;
}
.trust-item strong { display: block; font-size: 15px; }
.trust-item span { font-size: 13px; color: var(--muted); }

/* ---- Sections ---- */
.section, .section-alt {
  /* keep anchor targets clear of the sticky topbar */
  scroll-margin-top: 72px;
}
.section {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) 20px;
}
.section-alt {
  max-width: none;
  background: var(--paper-alt);
  border-block: 1px solid var(--line);
}
.section-alt > * { max-width: 880px; margin-left: auto; margin-right: auto; }
.section h2 {
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.prose { max-width: 640px; color: var(--ink-soft); font-size: 16.5px; }
.muted { color: var(--muted); }

/* ---- Service cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-soft); }
.card-featured { border-top: 3px solid var(--red); grid-column: 1 / -1; }
.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-text);
  background: rgba(255, 80, 64, 0.12);
  border-radius: 99px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---- Steps ---- */
.steps {
  list-style: none;
  display: grid;
  gap: 22px;
  padding: 8px 20px;
}
.steps li { display: flex; gap: 16px; align-items: flex-start; max-width: 640px; }
.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: var(--ink);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { font-size: 16.5px; }
.steps div { color: var(--ink-soft); font-size: 15px; }

/* ---- Split ---- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  padding-inline: 20px;
}

/* ---- Form ---- */
.estimate-form { margin-top: 24px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.form-grid .wide { grid-column: 1 / -1; }
.form-grid input,
.form-grid textarea {
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid var(--red-dark);
  outline-offset: 1px;
  border-color: var(--red-dark);
}
.hp { position: absolute; left: -9999px; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  text-align: center;
  padding: 36px 20px 44px;
  font-size: 14.5px;
}
.footer p { margin-top: 4px; }
.footer .muted { font-size: 13px; }
