/* Jacinto City Drywall Repairs: SMACSS order. 1 base, 2 layout (qvl-l-), 3 modules (qvl-m-), 4 state (qvl-is-) */

/* qvl sheet one: element defaults, tokens and type */
:root {
  --ink: #27201A;
  --paper: #FCF9F6;
  --umber: #53483D;
  --tint: #F4E9DF;
  --teal: #1A6D70;
  --white: #FFFFFF;
  --rule: #DCCFC1;
  --head: "Merriweather Sans", "Segoe UI", Arial, sans-serif;
  --body: "Red Hat Text", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-wrap: break-word;
}
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--umber); }
img, svg { max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* qvl sheet two: page grids, folds, spreads (qvl-l-) */
.qvl-l-sheet { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.qvl-l-narrow { max-width: 780px; }
.qvl-l-fold { padding: clamp(48px, 8vw, 88px) 0; }
.qvl-l-fold--tint { background: var(--tint); }

.qvl-l-masthead { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.qvl-l-masthead__bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 28px;
  min-height: 68px; padding-top: 8px; padding-bottom: 8px;
}

.qvl-l-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 80px); }
.qvl-l-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }

.qvl-l-recto, .qvl-l-verso { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.qvl-l-recto__figure { order: 0; }
.qvl-l-verso__figure { order: 2; }

.qvl-l-leaves { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 24px; margin-top: 28px; }
.qvl-l-leaves--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.qvl-l-titlefold { background: var(--tint); padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 44px); border-bottom: 4px solid var(--umber); }

.qvl-l-spread { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 48px; padding-bottom: 56px; }
.qvl-l-spread--left { grid-template-columns: 280px minmax(0, 1fr); }
.qvl-l-spread--left .qvl-l-spread__margin { order: -1; }
.qvl-l-spread__margin { align-self: start; position: sticky; top: 20px; }

.qvl-l-colophon { background: var(--umber); color: #EDE3D8; text-align: center; padding: 48px 0 40px; }
.qvl-l-colophon__stack { display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* qvl sheet three: reusable pieces (qvl-m-) */
/* masthead */
.qvl-m-dial { display: flex; flex-direction: column; line-height: 1.25; }
.qvl-m-dial__num { font: 800 1.15rem var(--head); color: var(--umber); text-decoration: none; }
.qvl-m-dial__hours { font-size: .82rem; color: #5E5247; }
.qvl-m-wordmark { font: 800 1.02rem var(--head); color: var(--ink); text-decoration: none; justify-self: center; }
.qvl-m-wordmark--foot { color: var(--white); font-size: 1.2rem; }
.qvl-m-linkrow { display: flex; gap: 22px; }
.qvl-m-linkrow__item { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.qvl-m-linkrow__item:hover { border-bottom-color: var(--teal); color: var(--ink); }
.qvl-m-ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* hero band: a diagonal strip of the primary color running behind the headline column */
.qvl-m-band { position: relative; color: var(--white); padding: 8px 0 28px; }
.qvl-m-band::before {
  content: ""; position: absolute; z-index: -1; top: -120px; bottom: -40px; left: -100vw; right: -60px;
  background: var(--umber);
  clip-path: polygon(0 0, 100% 0, calc(100% - 140px) 100%, 0 100%);
}
.qvl-l-hero { isolation: isolate; }
.qvl-l-hero::after {
  content: ""; position: absolute; z-index: -2; inset: 0;
  background: linear-gradient(115deg, transparent 0 62%, var(--tint) 62% 100%);
}
.qvl-m-band h1 { color: var(--white); max-width: 15ch; }
.qvl-m-band__lede { font-size: 1.15rem; max-width: 46ch; color: #F3ECE4; }
.qvl-m-band__call { margin: 22px 0 14px; }
.qvl-m-band__more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 16px; }
.qvl-m-band__guide { color: var(--white); font-weight: 700; }
.qvl-m-band__guide:hover { color: var(--tint); }
.qvl-m-band__hours { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 500; color: #F3ECE4; }

.qvl-m-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 22px;
  font: 700 1rem var(--body); text-decoration: none; border: 2px solid transparent; border-radius: 3px; cursor: pointer;
}
.qvl-m-btn--solid { background: var(--umber); color: var(--white); }
.qvl-m-btn--solid:hover { background: var(--ink); color: var(--white); }
.qvl-m-btn--onband { background: var(--white); color: var(--umber); font: 800 1.35rem var(--head); padding: 14px 26px; }
.qvl-m-btn--onband:hover { background: var(--tint); color: var(--ink); }
.qvl-m-btn--ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.qvl-m-btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.qvl-m-btn--line { color: var(--teal); border-color: var(--teal); background: transparent; }
.qvl-m-btn--line:hover { background: var(--teal); color: var(--white); }

.qvl-m-micro { font-size: .92rem; margin: 8px 0 0; color: #4A4037; }
.qvl-m-micro--onband { color: #F3ECE4; max-width: 44ch; }
.qvl-m-consent { font-size: .86rem; margin: 12px 0 0; color: #4A4037; }

/* quote slip (form) */
.qvl-m-sleeve { background: var(--white); border: 1px solid var(--rule); border-top: 5px solid var(--teal); padding: 26px clamp(18px, 3vw, 30px) 24px; }
.qvl-m-sleeve--flat { border-top-width: 5px; }
.qvl-m-sleeve__head { font-size: 1.3rem; }
.qvl-m-slip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.qvl-m-slip__row { display: flex; flex-direction: column; gap: 4px; }
.qvl-m-slip__row--wide, .qvl-m-slip__send { grid-column: 1 / -1; }
.qvl-m-slip label { font-weight: 700; font-size: .92rem; }
.qvl-m-slip__opt { font-weight: 400; color: #6A5E52; }
.qvl-m-slip input, .qvl-m-slip select, .qvl-m-slip textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #A89888; border-radius: 3px; background: var(--paper); color: var(--ink);
}
.qvl-m-slip input:focus, .qvl-m-slip select:focus, .qvl-m-slip textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 0; }
.qvl-m-slip__send { justify-content: center; }

/* matted photos and diagrams */
.qvl-m-mat { margin: 0; background: var(--white); padding: 12px 12px 0; border: 1px solid var(--rule); }
.qvl-m-mat img { display: block; width: 100%; height: auto; }
.qvl-m-mat figcaption { padding: 12px 4px 18px; font-size: .9rem; color: #5A4E43; }
.qvl-m-mat--diagram { margin: 8px 0 28px; }
.qvl-m-diagram { display: block; width: 100%; height: auto; }
.qvl-m-legend { margin: 0 0 16px; padding-left: 1.6em; font-size: .92rem; }

.qvl-m-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.qvl-m-swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; text-align: center; }
.qvl-m-swatch svg { width: 100%; border: 1px solid var(--rule); }

/* notes, cards, tabs */
.qvl-m-tabnote { border-left: 4px solid var(--teal); padding: 2px 0 2px 16px; margin-top: 20px; }
.qvl-m-tabnote h3, .qvl-m-tabnote h2 { margin-bottom: .3em; font-size: 1.1rem; }
.qvl-m-tabnote p { margin: 0; }
.qvl-m-intro { font-size: 1.1rem; max-width: 62ch; }

.qvl-m-leaf {
  display: grid; grid-row: span 4; grid-template-rows: subgrid; gap: 10px;
  background: var(--paper); border-top: 4px solid var(--teal); padding: 20px 18px 22px; margin-bottom: 24px;
}
.qvl-l-fold--tint .qvl-m-leaf { background: var(--white); }
.qvl-m-leaf--plain { grid-row: span 2; background: var(--tint); }
.qvl-m-leaf h3, .qvl-m-leaf__title { margin: 0; font-size: 1.12rem; }
.qvl-m-leaf p { margin: 0; }
.qvl-m-leaf__ico { color: var(--teal); }
.qvl-m-leaf__ico .qvl-m-ico { width: 34px; height: 34px; }
.qvl-m-leaf__go { font-weight: 700; align-self: end; }

.qvl-m-facttab { background: var(--white); border-top: 5px solid var(--umber); padding: 22px 24px; }
.qvl-m-facttab--accent { border-top-color: var(--teal); }
.qvl-m-facttab__head { font: 800 1.05rem var(--head); }
.qvl-m-facttab ul { list-style: none; margin: 0; padding: 0; }
.qvl-m-facttab li { display: grid; grid-template-columns: 28px 86px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--rule); }
.qvl-m-facttab li .qvl-m-ico { color: var(--teal); margin-top: 2px; }
.qvl-m-facttab__num { font: 800 1rem var(--head); color: var(--umber); }
.qvl-m-facttab__src { font-size: .82rem; color: #5E5247; margin: 10px 0 0; }

.qvl-m-townlist ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 28px; }
.qvl-m-townlist li { border-top: 1px solid var(--rule); padding-top: 10px; }

.qvl-m-teaser { display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: start; }
.qvl-m-teaser__ico { color: var(--teal); }
.qvl-m-teaser__ico .qvl-m-ico { width: 64px; height: 64px; }

.qvl-m-qa { border-top: 1px solid var(--rule); max-width: 820px; }
.qvl-m-qa__item { border-bottom: 1px solid var(--rule); padding: 4px 0; }
.qvl-m-qa__item summary { cursor: pointer; font: 700 1.05rem var(--head); padding: 12px 28px 12px 0; position: relative; list-style: none; }
.qvl-m-qa__item summary::-webkit-details-marker { display: none; }
.qvl-m-qa__item summary::after { content: "+"; position: absolute; right: 4px; top: 10px; color: var(--teal); font-size: 1.3rem; }
.qvl-m-qa__item[open] summary::after { content: "\2212"; }
.qvl-m-qa__item p { margin: 0 0 14px; }

.qvl-m-ledger { overflow-x: auto; margin-top: 20px; border: 1px solid var(--rule); background: var(--white); }
.qvl-m-ledger table { min-width: 640px; font-size: .95rem; }
.qvl-m-ledger th, .qvl-m-ledger td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.qvl-m-ledger thead th { background: var(--umber); color: var(--white); font-family: var(--head); }
.qvl-m-ledger tbody th { background: var(--tint); width: 22%; }

.qvl-m-steps { padding-left: 1.4em; }
.qvl-m-steps li { margin-bottom: .55em; }
.qvl-m-steps--row { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: qvlstep; margin: 0 0 28px; }
.qvl-m-steps--row li { counter-increment: qvlstep; border-top: 4px solid var(--teal); padding-top: 12px; background: transparent; }
.qvl-m-steps--row li::before { content: counter(qvlstep); display: block; font: 800 1.6rem var(--head); color: var(--umber); }
.qvl-m-ticks { padding-left: 1.2em; }
.qvl-m-ticks li { margin-bottom: .6em; }

.qvl-m-checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.qvl-m-checklist li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--rule); }
.qvl-m-checklist__ico { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--teal); color: var(--teal); border-radius: 3px; }

.qvl-m-prose { max-width: 72ch; }
.qvl-m-prose h2 { margin-top: 1.6em; }
.qvl-m-prose h3 { margin-top: 1.2em; }
.qvl-m-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--teal); margin-bottom: .5em; }

.qvl-m-margin-note { display: grid; grid-template-columns: 28px 1fr; gap: 12px; background: var(--tint); border-left: 4px solid var(--umber); padding: 16px 18px; margin: 1.4em 0; }
.qvl-m-margin-note p { margin: 0; }
.qvl-m-margin-note .qvl-m-ico { color: var(--umber); width: 26px; height: 26px; }

.qvl-m-tabcard { background: var(--white); border-top: 4px solid var(--teal); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px; margin-top: 22px; }
.qvl-m-tabcard__head { font: 800 1rem var(--head); margin-bottom: .5em; }
.qvl-m-tabcard ul { margin: 0; padding-left: 1.1em; }
.qvl-m-tabcard li { margin-bottom: .5em; }
.qvl-m-tabcard__phone { font: 800 1.3rem var(--head); color: var(--umber); text-decoration: none; }
.qvl-m-tabcard p { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.qvl-m-tailband { background: var(--tint); border-top: 4px solid var(--umber); }
.qvl-m-tailband--home { background: var(--tint); }
.qvl-m-tailband__inner h2 { max-width: 24ch; }
.qvl-m-tailband__acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 28px; }
.qvl-m-tailband__acts .qvl-m-micro { max-width: 40ch; }

/* colophon */
.qvl-m-colophon__tag { margin: 0; font-style: italic; color: #E4D8CB; }
.qvl-m-colophon__phone { font: 800 1.35rem var(--head); color: var(--white); text-decoration: none; }
.qvl-m-colophon__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 8px 0; }
.qvl-m-colophon__links a { color: var(--white); }
.qvl-m-colophon__fine { font-size: .86rem; margin: 0; max-width: 70ch; color: #E4D8CB; }

/* mobile dock */
.qvl-m-dock { display: none; }

/* qvl sheet four: toggled conditions (qvl-is-) */
.qvl-is-current { border-bottom-color: var(--umber); }
.qvl-is-open { display: flex !important; }

/* qvl breakpoints: tablet at 900, phone below 768 */
@media (max-width: 900px) {
  .qvl-l-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .qvl-m-band::before { right: -100vw; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%); }
  .qvl-l-hero::after { display: none; }
  .qvl-l-recto, .qvl-l-verso { grid-template-columns: minmax(0, 1fr); }
  .qvl-l-recto__figure, .qvl-l-verso__figure { order: 0; }
  .qvl-l-spread, .qvl-l-spread--left { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .qvl-l-spread--left .qvl-l-spread__margin { order: 2; }
  .qvl-l-spread__margin { position: static; }
}
@media (max-width: 767px) {
  body { padding-bottom: 72px; }
  .qvl-l-masthead__bar { grid-template-columns: 1fr auto; }
  .qvl-m-wordmark { justify-self: end; text-align: right; font-size: .9rem; max-width: 14ch; }
  .qvl-m-linkrow {
    display: none; position: fixed; z-index: 40; left: 0; right: 0; bottom: 64px; flex-direction: column; gap: 0;
    background: var(--paper); border-top: 4px solid var(--umber); padding: 8px var(--gutter) 12px;
  }
  .qvl-m-linkrow__item { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .qvl-m-dock {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    height: 64px; background: var(--umber); border-top: 3px solid var(--teal);
  }
  .qvl-m-dock__key { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--white); text-decoration: none; font-weight: 700; font-size: .85rem; }
  .qvl-m-dock__key--call { background: var(--teal); }
  .qvl-m-slip { grid-template-columns: minmax(0, 1fr); }
  .qvl-l-leaves--two { grid-template-columns: minmax(0, 1fr); }
  .qvl-m-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qvl-m-steps--row { grid-template-columns: minmax(0, 1fr); }
  .qvl-m-teaser { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .qvl-m-facttab li { grid-template-columns: 26px 72px 1fr; }
  .qvl-m-btn--onband { font-size: 1.2rem; }
}
