/* ==========================================================================
   Second Coat — website renovation for local businesses
   Plaster, ink, and one good coat of paint.
   ========================================================================== */

:root {
  --plaster:    #F7F3EA;
  --card:       #FFFDF7;
  --ink:        #26221C;
  --ink-soft:   #6B6459;
  --paint:      #C8472B;
  --paint-deep: #A33518;
  --dab-blue:   #3D6B8E;
  --dab-green:  #557A4E;
  --line:       rgba(38, 34, 28, 0.14);
  --shadow:     0 12px 34px rgba(38, 34, 28, 0.10);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; transform: none !important; opacity: 1 !important; }
}

body {
  background: var(--plaster);
  color: var(--ink);
  font-family: "Figtree", "Avenir Next", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Young Serif", Georgia, serif; font-weight: 400; }

::selection { background: var(--paint); color: var(--plaster); }

a { color: var(--paint-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--paint); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 99;
  background: var(--ink); color: var(--plaster); padding: 0.5rem 1rem;
  border-radius: 8px; text-decoration: none;
}
.skip:focus { left: 8px; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.65s ease, transform 0.65s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink); color: var(--plaster);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 0.9rem 1.7rem; border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--paint-deep); color: var(--plaster); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-small { padding: 0.6rem 1.15rem; font-size: 0.92rem; }
.btn-big { font-size: clamp(1.05rem, 2.6vw, 1.35rem); padding: 1.1rem 2rem; background: var(--paint); }
.btn-big:hover { background: var(--paint-deep); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--plaster) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.8rem clamp(1.25rem, 4vw, 2.5rem);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: "Young Serif", Georgia, serif; font-size: 1.25rem;
  color: var(--ink); text-decoration: none;
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem;
  border-bottom: 2px solid transparent; padding: 0.2rem 0;
}
.nav-links a:hover { color: var(--paint-deep); border-bottom-color: var(--paint); }

/* ---------- Hero ---------- */
.hero {
  max-width: 880px; margin: 0 auto; text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem 4.5rem;
}
.eyebrow {
  font-weight: 700; font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paint-deep); margin-bottom: 1.3rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.3rem);
  line-height: 1.12; letter-spacing: -0.01em;
}
.stroke { position: relative; white-space: nowrap; }
.stroke::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.02em; height: 0.16em;
  background: var(--paint); border-radius: 3px 6px 4px 7px;
  transform: rotate(-1deg); opacity: 0.9; z-index: -1;
}
.lede {
  max-width: 56ch; margin: 1.7rem auto 0;
  font-size: 1.18rem; color: var(--ink-soft);
}
.lede em { font-style: italic; color: var(--ink); }
.hero-actions { margin-top: 2.4rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 4.5rem 1.5rem; }
.section-title {
  text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 3rem;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 2.1rem;
}
.step-dab {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 1.2rem;
  font-family: "Young Serif", Georgia, serif; font-size: 1.4rem; color: var(--plaster);
  background: var(--paint);
  border-radius: 46% 54% 55% 45% / 55% 46% 54% 45%;
}
.dab-2 { background: var(--dab-blue); border-radius: 54% 46% 47% 53% / 46% 55% 45% 54%; }
.dab-3 { background: var(--dab-green); border-radius: 47% 53% 54% 46% / 54% 45% 55% 46%; }
.step h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.step p { color: var(--ink-soft); font-size: 1rem; }
.step strong { color: var(--ink); }

/* ---------- Creed ---------- */
.creed {
  max-width: 760px; margin: 0 auto; padding: 1rem 1.5rem 1.5rem;
  text-align: center;
}
.creed p {
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.5;
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact {
  max-width: 780px; margin: 2rem auto 0; padding: 4rem 1.5rem 5.5rem;
  text-align: center;
}
.contact h2 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }
.contact p { max-width: 46ch; margin: 1.2rem auto 2rem; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 1.6rem clamp(1.25rem, 4vw, 2.5rem);
  font-size: 0.92rem; color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
