/* =========================================================
   The Perfect Look Painting — Warm & Artisanal stylesheet
   Palette: cream background, charcoal ink, terracotta + sage
   Fonts: Fraunces (headings) + Inter (body)
   --------------------------------------------------------
   EDIT TIP: Most colors live in the :root block right below.
   Change a value once here and it updates the whole site.
   ========================================================= */

:root {
  --cream:        #FAF6EF;
  --cream-deep:   #F1E9DB;
  --paper-line:   #E6DBC8;
  --ink:          #2C2A26;
  --ink-soft:     #5A534B;
  --terracotta:   #BF6A4A;
  --terracotta-d: #A4553A;
  --sage:         #7E8B6C;
  --sage-d:       #5F6A50;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(44, 42, 38, 0.45);
  --shadow-sm: 0 8px 20px -14px rgba(44, 42, 38, 0.4);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--terracotta-d); text-decoration: none; }
a:hover { color: var(--terracotta); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }
.section--cream-deep { background: var(--cream-deep); }
.section--ink { background: var(--ink); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--cream); }
.section--ink p { color: #D9D1C4; }

.center { text-align: center; }
.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-d);
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: #E8A98E; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 60ch;
}
.center .lede { margin-inline: auto; }

/* ---------- Hand-drawn flourishes ---------- */
/* Wavy sketch underline that sits beneath a highlighted word */
.ink-word { position: relative; white-space: nowrap; color: var(--terracotta-d); }
.ink-word svg {
  position: absolute;
  left: -2%;
  bottom: -0.42em;
  width: 104%;
  height: 0.5em;
  overflow: visible;
  pointer-events: none;
}
.ink-word svg path {
  stroke: var(--terracotta);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
}

/* Hand-drawn circle that loops around a word */
.ink-circle { position: relative; white-space: nowrap; }
.ink-circle svg {
  position: absolute;
  left: -10%;
  top: -22%;
  width: 120%;
  height: 150%;
  overflow: visible;
  pointer-events: none;
}
.ink-circle svg path {
  stroke: var(--sage-d);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
}

/* Sketchy section divider */
.sketch-divider {
  display: block;
  width: min(260px, 70%);
  margin: 6px auto 0;
  color: var(--terracotta);
}
.sketch-divider path { stroke: currentColor; stroke-width: 3.5; fill: none; stroke-linecap: round; }
.sketch-divider.is-sage { color: var(--sage); }

/* Small hand-drawn marker used in lists / cards */
.sketch-mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--terracotta);
}
.sketch-mark path { stroke: currentColor; stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sketch-mark.is-sage { color: var(--sage-d); }

/* Hand-drawn frame around a block (used on hero + portrait) */
.sketch-frame { position: relative; }
.sketch-frame > svg.frame-lines {
  position: absolute;
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  overflow: visible;
  pointer-events: none;
  color: var(--terracotta);
}
.sketch-frame > svg.frame-lines path { stroke: currentColor; stroke-width: 3; fill: none; stroke-linecap: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--terracotta-d); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand a { color: var(--ink); }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand__name em { color: var(--terracotta-d); font-style: italic; }
.brand__tag { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 4px 0;
}
.nav__links a:hover { color: var(--terracotta-d); }
.nav__links a.is-active { color: var(--terracotta-d); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}
.nav__cta { margin-left: 6px; }

.nav__toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero__title { margin-bottom: 0.4em; }
.hero__art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--cream-deep), #E9DcC6 60%, #Dfae98);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__art .swatches { display: flex; gap: 14px; }
.hero__art .swatch {
  width: 54px; height: 120px; border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-4deg);
}
.hero__art .swatch:nth-child(2) { transform: rotate(2deg) translateY(10px); }
.hero__art .swatch:nth-child(3) { transform: rotate(6deg); }
.hero__art .art-caption {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  font-family: var(--font-head);
  font-style: italic;
  color: var(--ink);
  background: rgba(250,246,239,0.82);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--cream);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: 14px; }
.card p:last-child { margin-bottom: 0; }
.section--cream-deep .card { background: #fff; }

/* Feature list with hand-drawn marks */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li > div { color: var(--ink-soft); }
.checklist li strong { color: var(--ink); display: block; }

/* Split content (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  aspect-ratio: 5 / 6;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--sage), var(--sage-d));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--cream);
  font-family: var(--font-head);
  font-style: italic;
  text-align: center;
  padding: 24px;
}
.split__media.is-terra { background: linear-gradient(150deg, #D38A6E, var(--terracotta-d)); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--terracotta-d); line-height: 1; }
.section--ink .stat__num { color: #E8A98E; }
.stat__label { font-size: 0.95rem; color: var(--ink-soft); margin-top: 6px; }
.section--ink .stat__label { color: #D9D1C4; }

/* ---------- Steps (methods) ---------- */
.steps { display: grid; gap: 26px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px 28px;
  background: var(--cream);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step__num {
  counter-increment: step;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream-deep);
  border: 2px solid var(--terracotta);
  color: var(--terracotta-d);
  font-family: var(--font-head);
  font-size: 1.4rem;
}
.step__num::before { content: counter(step); }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--cream);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-sm);
}
.quote p { font-family: var(--font-head); font-style: italic; font-size: 1.18rem; color: var(--ink); }
.quote__by { font-family: var(--font-body); font-style: normal; font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .container { position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 600; }

.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--paper-line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(191, 106, 74, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.form__success {
  display: none;
  background: rgba(126, 139, 108, 0.16);
  border: 1.5px solid var(--sage);
  color: var(--sage-d);
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.form__success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9D1C4; padding: 56px 0 28px; }
.site-footer a { color: #E8A98E; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer .brand__name { color: var(--cream); }
.site-footer .brand__name em { color: #E8A98E; }
.site-footer .brand__tag { color: #B7AE9F; }
.footer-col h4 { color: var(--cream); font-size: 1.05rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.85rem; color: #A89E8E; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

/* ---------- Service area note pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(126, 139, 108, 0.16);
  color: var(--sage-d);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 7px 16px;
  border-radius: 999px;
}

/* ---------- Gallery (Neighbors' Homes) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(150deg, var(--cream-deep), #E5D4BD);
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--paper-line);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__placeholder {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--ink-soft);
  padding: 18px;
}
.photo__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(44,42,38,0.78), rgba(44,42,38,0));
  color: var(--cream);
  font-size: 0.9rem;
  padding: 26px 16px 12px;
  text-align: left;
}
.banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(126, 139, 108, 0.14);
  border: 1.5px solid var(--sage);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 44px;
}
.banner p { margin: 0; color: var(--sage-d); }
.banner strong { color: var(--ink); }
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.consent input { margin-top: 4px; }

@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(30px, 4vw, 50px); text-align: center; }
.page-hero .lede { margin-inline: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 420px; margin-inline: auto; order: -1; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--paper-line);
    box-shadow: var(--shadow);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links li { padding: 6px 0; }
  .nav__links .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: block; }
  .grid--3, .grid--2, .stats, .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
}
