/* Sample Painting Co. A sample site made by Pocket Sites. */
:root {
  --ink: #1B2430;
  --paper: #FFFFFF;
  --soft: #F2F5F7;
  --fog: #DDE3E8;
  --harbour: #34568B;
  --brick: #B5392B;
  --butter: #F3D36B;
  --rule: #CBD3DC;
  --muted: #4B5767;
  --display: "Chivo", "Arial Black", Arial, sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", Verdana, sans-serif;
  --pad: clamp(1rem, 4vw, 2rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  padding-bottom: 4.6rem;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--harbour); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; max-width: 62ch; }

/* the notice that this is a sample */
.samplebar {
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.55rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  justify-content: space-between;
}
.samplebar p { margin: 0; max-width: none; }
.samplebar a { color: var(--butter); font-weight: 700; text-underline-offset: 3px; }

/* header */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.chipmark { display: flex; height: 34px; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.chipmark i { width: 9px; }
.chipmark i:nth-child(1) { background: var(--butter); }
.chipmark i:nth-child(2) { background: var(--brick); }
.chipmark i:nth-child(3) { background: var(--harbour); }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; }

.menu-btn { display: none; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); cursor: pointer; padding: 0; place-items: center; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.bars::before { position: absolute; top: -6px; }
.bars::after { position: absolute; top: 6px; }

#site-nav { display: flex; align-items: center; gap: 1.6rem; }
#site-nav a { text-decoration: none; font-weight: 700; font-size: 1rem; }
#site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
#site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--butter); }
#site-nav .call-link { background: var(--butter); border: 2px solid var(--ink); border-radius: 6px; padding: 0.45rem 0.9rem; font-family: var(--display); font-weight: 800; }

/* buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.05rem; padding: 0.85rem 1.35rem; border: 2px solid var(--ink); border-radius: 6px; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.btn-main { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn-main:hover { background: #9c2f23; border-color: #9c2f23; }
.btn-line { background: var(--paper); color: var(--ink); }
.btn-line:hover { background: var(--soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c394b; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad);
  max-width: 1180px;
  margin-inline: auto;
}
.lede { font-size: 1.25rem; line-height: 1.5; margin-top: 1.2rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 0; }

.try { border: 2px solid var(--ink); border-radius: 8px; padding: 0.85rem; background: var(--soft); }
.room { width: 100%; height: auto; border-radius: 4px; }
.room-wall, .room-sofa { transition: fill 0.35s; }
.try-label { margin: 0.8rem 0 0.5rem; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 700 0.95rem var(--text);
  padding: 0.35rem 0.8rem 0.35rem 0.4rem;
  border: 2px solid var(--ink); border-radius: 6px;
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.chip i { width: 22px; height: 22px; border-radius: 3px; border: 1.5px solid var(--ink); display: block; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip[aria-pressed="true"] i { border-color: #fff; }

/* sections */
.block { padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad); max-width: 1180px; margin-inline: auto; }
.block-soft { max-width: none; background: var(--soft); border-block: 1px solid var(--rule); }
.block-soft > * { max-width: 1180px; margin-inline: auto; }
.block h2 { margin-bottom: 1.2rem; }

.rows { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.rows li { border-top: 2px solid var(--ink); }
.rows a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 2rem; padding: 1.2rem 0.25rem; text-decoration: none; }
.rows a:hover { background: var(--soft); }
.rows b { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.01em; }
.rows span { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }
.steps li { border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps .n { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; background: var(--butter); border: 2px solid var(--ink); border-radius: 4px; font: 900 1.05rem var(--display); margin-bottom: 0.7rem; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0; font-size: 1rem; color: var(--muted); }

.where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.areas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.areas span { background: var(--fog); border-radius: 4px; padding: 0.3rem 0.8rem; font-weight: 700; font-size: 0.95rem; }
.map {
  height: 230px; border: 2px solid var(--ink); border-radius: 8px; position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 47%, #fff 47% 53%, transparent 53%) 0 0 / 90px 90px,
    linear-gradient(0deg, transparent 46%, #fff 46% 54%, transparent 54%) 0 0 / 90px 70px,
    #CFDDE8;
}
.map::after { content: ""; position: absolute; left: 52%; top: 44%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brick); border: 4px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.18); }

.cta { background: var(--butter); border-top: 2px solid var(--ink); padding: clamp(2.5rem, 6vw, 4rem) var(--pad); }
.cta > * { max-width: 1180px; margin-inline: auto; }
.cta h2 { margin-bottom: 0.6rem; }
.cta p { margin-bottom: 1.2rem; }

/* inner pages */
.page-head { padding: clamp(2.2rem, 6vw, 4rem) var(--pad) 0; max-width: 1180px; margin-inline: auto; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 5vw, 4rem); }
.service { border-top: 2px solid var(--ink); margin-top: clamp(2rem, 5vw, 3rem); }
.service h2 { margin-bottom: 1rem; }
.facts { margin: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.25rem 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--display); font-weight: 800; }
.facts dd { margin: 0; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.gallery figure { margin: 0; }
.gallery .room { border: 2px solid var(--ink); border-radius: 6px; }
.gallery figcaption { margin-top: 0.7rem; }
.gallery figcaption b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.gallery figcaption span { color: var(--muted); font-size: 1rem; }

.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.note { border: 2px solid var(--ink); border-radius: 8px; background: var(--soft); padding: 1.25rem; }
.note h2 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.note p:last-child { margin-bottom: 0; }
.placeholder { border: 2px dashed var(--muted); border-radius: 6px; padding: 1.1rem; color: var(--muted); background: var(--paper); }

.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.field { margin-bottom: 1.1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; padding: 0.65rem 0.8rem; min-height: 2.9rem; }
textarea { resize: vertical; }
input:user-invalid, select:user-invalid { border-color: var(--brick); }
.form-note { margin-top: 1rem; font-weight: 700; }
.contact-side h2 { font-size: 1.4rem; margin: 0 0 0.6rem; }
.contact-side h2 + * + * + h2, .contact-side .areas { margin-bottom: 1rem; }
.contact-side h2:not(:first-child) { margin-top: 1.5rem; }
.phone-big { font-family: var(--display); font-weight: 900; font-size: 1.9rem; text-decoration: none; }

/* footer */
.site-foot { background: var(--ink); color: #D9DFE7; padding: 2.5rem var(--pad) 1.5rem; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem 2rem; max-width: 1180px; margin-inline: auto; }
.site-foot p { margin: 0 0 0.4rem; font-size: 1rem; }
.site-foot a { color: var(--butter); }
.foot-brand { font-family: var(--display); font-weight: 900; font-size: 1.25rem; color: #fff; }
.foot-h { font-family: var(--display); font-weight: 800; color: #fff; }
.legal { max-width: 1180px; margin: 1.8rem auto 0 !important; padding-top: 1rem; border-top: 1px solid #3a4658; font-size: 0.9rem !important; }

/* mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 0.6rem; padding: 0.6rem var(--pad); background: var(--paper); border-top: 2px solid var(--ink); }
.callbar a { flex: 1; text-align: center; text-decoration: none; font-family: var(--display); font-weight: 800; padding: 0.7rem 0; border-radius: 6px; border: 2px solid var(--ink); }
.cb-call { background: var(--ink); color: #fff; }
.cb-quote { background: var(--butter); }

@media (min-width: 761px) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 900px) {
  .hero, .where, .svc-grid, .about, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .menu-btn { display: grid; }
  #site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 15;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    box-shadow: 0 18px 24px -16px rgba(27, 36, 48, 0.4);
  }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 0.95rem var(--pad); border-top: 1px solid var(--rule); font-size: 1.1rem; }
  #site-nav a[aria-current="page"] { box-shadow: inset 5px 0 0 var(--butter); }
  #site-nav .call-link { margin: 0.75rem var(--pad); text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .steps, .gallery, .foot-grid, .row { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .room-wall, .room-sofa, .btn { transition: none; }
}
