/* atchisondrywallrepairco.com — CUBE CSS: composition, utilities, blocks, exceptions via data attributes.
   Structural names borrow house parts: frame, beam, hall, ceiling, room, wall, sill, door, footing, threshold. */

:root {
  --hop-ink: #271F26;
  --hop-paper: #FCF8FC;
  --hop-rose: #6F376B;
  --hop-blush: #F4E7F2;
  --hop-moss: #3A684C;
  --hop-on-rose: #FFFFFF;
  --hop-line: rgba(39, 31, 38, 0.14);
  --hop-rule: rgba(111, 55, 107, 0.22);
  --hop-max: 1260px;
  --hop-narrow: 46rem;
  --hop-beam-h: 9.25rem;
  --hop-head: "Cabin", "Trebuchet MS", system-ui, sans-serif;
  --hop-body: "Sarabun", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--hop-paper);
  color: var(--hop-ink);
  font: 400 1.0625rem/1.68 var(--hop-body);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--hop-head); font-weight: 700; line-height: 1.18; margin: 0; }
h1 { font-size: clamp(2rem, 5.2vw, 3.35rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.14rem; font-weight: 600; }
p, ul, ol, dl { margin: 0; }
a { color: var(--hop-rose); text-underline-offset: 0.18em; }
a:hover { color: var(--hop-moss); }
:focus-visible { outline: 3px solid var(--hop-moss); outline-offset: 2px; }

/* ---------- composition ---------- */
.hop-frame { width: min(100% - 2rem, var(--hop-max)); margin-inline: auto; }
.hop-stack > * + * { margin-block-start: var(--hop-space, 1rem); }
.hop-stack[data-space="wide"] { --hop-space: 1.6rem; }
.hop-cluster { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: center; }
.hop-cluster[data-align="center"] { justify-content: center; }
.hop-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.hop-columns { columns: 2 18rem; column-gap: 2.75rem; }
.hop-columns > * { break-inside: avoid; }
.hop-columns[data-variant="three"] { columns: 3 14rem; }

/* ---------- utilities ---------- */
.hop-u-center { text-align: center; }
.hop-u-small { font-size: 0.92rem; }
.hop-u-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- beam (header) ---------- */
.hop-beam { position: absolute; inset: 0 0 auto 0; z-index: 30; background: transparent; transition: background 0.2s, box-shadow 0.2s; }
[data-js] .hop-beam { position: fixed; }
.hop-beam[data-state="scrolled"] { background: var(--hop-paper); box-shadow: 0 1px 0 var(--hop-line); }
.hop-beam__inner { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand call" "hall hall"; gap: 0.35rem 1rem; align-items: center; padding-block: 0.7rem; }
.hop-brand { grid-area: brand; display: inline-flex; gap: 0.5rem; align-items: center; color: var(--hop-ink); text-decoration: none; font: 700 1.02rem/1.15 var(--hop-head); }
.hop-brand .hop-icon { color: var(--hop-rose); flex: none; }
.hop-beam__call { grid-area: call; text-align: right; line-height: 1.25; }
.hop-beam__phone { font: 700 1.02rem var(--hop-head); color: var(--hop-rose); text-decoration: none; white-space: nowrap; }
.hop-beam__hours { display: block; font-size: 0.8rem; color: var(--hop-ink); opacity: 0.8; }
.hop-beam .hop-beam__cta { display: none; }
.hop-hall { grid-area: hall; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hop-hall ul { list-style: none; padding: 0; display: flex; gap: 0.15rem 1.1rem; white-space: nowrap; }
.hop-hall a { display: inline-block; padding: 0.3rem 0; color: var(--hop-ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-bottom: 2px solid transparent; }
.hop-hall a:hover, .hop-hall a[aria-current="page"] { border-bottom-color: var(--hop-rose); }

/* ---------- doors (buttons) ---------- */
.hop-door { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.78rem 1.3rem; border-radius: 6px; font: 700 1rem/1.1 var(--hop-head); text-decoration: none; border: 2px solid var(--hop-rose); cursor: pointer; }
.hop-door[data-variant="primary"] { background: var(--hop-rose); color: var(--hop-on-rose); }
.hop-door[data-variant="primary"]:hover { background: #5a2b57; border-color: #5a2b57; color: var(--hop-on-rose); }
.hop-door[data-variant="quiet"] { background: transparent; color: var(--hop-rose); }
.hop-door[data-variant="moss"] { background: var(--hop-moss); border-color: var(--hop-moss); color: var(--hop-on-rose); }
.hop-door[data-variant="moss"]:hover { background: #2d5139; color: var(--hop-on-rose); }
.hop-door[data-size="big"] { font-size: 1.2rem; padding: 0.95rem 1.5rem; }
.hop-textlink { font-weight: 600; display: inline-flex; gap: 0.35rem; align-items: center; }

/* ---------- ceiling (hero and page tops) ---------- */
.hop-ceiling { background: var(--hop-blush); padding: calc(var(--hop-beam-h) + 1.75rem) 0 3rem; background-image: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 40%); }
.hop-ceiling__grid { display: grid; gap: 2.25rem; grid-template-areas: "pitch" "order" "mat"; }
.hop-ceiling__pitch { grid-area: pitch; }
.hop-ceiling__mat { grid-area: mat; }
.hop-ceiling__order { grid-area: order; }
.hop-ceiling__lede { font-size: 1.16rem; max-width: 38rem; }
.hop-ceiling[data-variant="inner"] { padding-bottom: 2.5rem; text-align: center; }
.hop-ceiling[data-variant="inner"] .hop-ceiling__lede { margin-inline: auto; }
.hop-hours { font-weight: 600; display: inline-flex; gap: 0.4rem; align-items: center; }
.hop-hours .hop-icon { color: var(--hop-moss); }
.hop-micro { font-size: 0.93rem; color: var(--hop-ink); opacity: 0.88; max-width: 34rem; }

/* ---------- work-order card ---------- */
.hop-order { background: #fff; border: 1px solid var(--hop-line); border-top: 6px solid var(--hop-rose); border-radius: 4px; padding: 1.4rem 1.35rem 1.25rem; box-shadow: 0 10px 30px rgba(39, 31, 38, 0.08); }
.hop-order__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 2px solid var(--hop-ink); padding-bottom: 0.45rem; }
.hop-order__label { font: 700 0.78rem/1 var(--hop-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hop-rose); }
.hop-order__title { font: 700 1.2rem/1.2 var(--hop-head); }
.hop-order__list { list-style: none; padding: 0; margin-top: 0.4rem; }
.hop-order__list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; align-items: start; padding: 0.55rem 0; font-size: 0.97rem; border-bottom: 1px solid var(--hop-rule); }
.hop-order__list .hop-icon { color: var(--hop-moss); margin-top: 0.15rem; }
.hop-order__list b { font-family: var(--hop-head); }
.hop-field { display: block; margin-top: 0.85rem; }
.hop-field span { display: block; font: 600 0.74rem/1.2 var(--hop-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hop-rose); }
.hop-field input, .hop-field textarea, .hop-field select { width: 100%; font: inherit; color: var(--hop-ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--hop-ink); padding: 0.45rem 0.1rem; border-radius: 0; }
.hop-field textarea { min-height: 6.5rem; resize: vertical; border: 1.5px solid var(--hop-ink); padding: 0.5rem; margin-top: 0.3rem; background: repeating-linear-gradient(180deg, transparent 0 1.75rem, var(--hop-rule) 1.75rem calc(1.75rem + 1px)); }
.hop-field select { border: 1.5px solid var(--hop-ink); padding: 0.5rem; margin-top: 0.3rem; background: #fff; }
.hop-field input:focus, .hop-field textarea:focus, .hop-field select:focus { outline: none; border-color: var(--hop-moss); box-shadow: 0 2px 0 var(--hop-moss); }
.hop-order .hop-door { margin-top: 1.1rem; width: 100%; justify-content: center; }
.hop-consent { margin-top: 0.75rem; font-size: 0.86rem; }
.hop-order .hop-micro { margin-top: 0.4rem; font-size: 0.88rem; }

/* ---------- mat (matted photo) ---------- */
.hop-mat { margin: 0; background: #fff; padding: 0.7rem 0.7rem 0; border: 1px solid var(--hop-line); box-shadow: 0 6px 18px rgba(39, 31, 38, 0.07); }
.hop-mat img { display: block; width: 100%; height: auto; }
.hop-mat figcaption { padding: 0.7rem 0.2rem 1.05rem; font-size: 0.9rem; text-align: center; font-style: italic; }
.hop-mat[data-variant="inset"] { max-width: 30rem; }

/* ---------- rooms (sections) ---------- */
.hop-room { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.hop-room[data-variant="tinted"] { background: var(--hop-blush); }
.hop-room__narrow { width: min(100% - 2rem, var(--hop-narrow)); margin-inline: auto; }
.hop-room__wide { width: min(100% - 2rem, var(--hop-max)); margin-inline: auto; }
.hop-room h2 { text-align: center; }
.hop-room h2 + * { margin-top: 1.25rem; }
.hop-verdict { font: 600 1.16rem/1.45 var(--hop-head); color: var(--hop-rose); text-align: center; }
.hop-lintel { display: block; text-align: center; font: 700 0.78rem/1 var(--hop-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--hop-moss); margin-bottom: 0.6rem; }
.hop-ticks { list-style: none; padding: 0; }
.hop-ticks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.7rem; }
.hop-ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55rem; width: 0.7rem; height: 0.38rem; border-left: 2.5px solid var(--hop-moss); border-bottom: 2.5px solid var(--hop-moss); transform: rotate(-45deg); }
.hop-ordered { padding-left: 1.4rem; }
.hop-ordered li { margin-bottom: 0.65rem; padding-left: 0.3rem; }
.hop-ordered li::marker { font-family: var(--hop-head); font-weight: 700; color: var(--hop-rose); }
.hop-note { text-align: center; font-size: 0.98rem; }

/* ---------- walls (cards with a bottom bar) ---------- */
.hop-wall { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hop-line); border-radius: 6px; overflow: hidden; text-align: center; }
.hop-wall__body { padding: 1.5rem 1.25rem 1.3rem; flex: 1; }
.hop-wall__body > * + * { margin-top: 0.6rem; }
.hop-wall__body .hop-icon { color: var(--hop-moss); }
.hop-sill { background: var(--hop-rose); padding: 0.75rem 1rem; }
.hop-sill a { color: var(--hop-on-rose); font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.hop-sill a:hover { text-decoration: underline; color: var(--hop-on-rose); }
.hop-wall[data-variant="moss"] .hop-sill { background: var(--hop-moss); }

/* ---------- steps ---------- */
.hop-steps { list-style: none; padding: 0; counter-reset: hop-step; display: grid; gap: 1.1rem; }
.hop-steps li { counter-increment: hop-step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; text-align: left; }
.hop-steps li::before { content: counter(hop-step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--hop-rose); color: var(--hop-on-rose); font: 700 1.1rem var(--hop-head); }
.hop-steps h3 { margin-bottom: 0.2rem; }

/* ---------- definition lists in columns ---------- */
.hop-pairs dt { font: 700 1.05rem/1.3 var(--hop-head); margin-bottom: 0.3rem; }
.hop-pairs dd { margin: 0 0 1.4rem; }
.hop-pairs > div { break-inside: avoid; padding: 1rem 0 0.2rem; border-top: 2px solid var(--hop-rule); }
.hop-pairs[data-variant="myth"] dt::before { content: "Belief: "; color: var(--hop-moss); font-weight: 600; }

/* ---------- joist (table) ---------- */
.hop-joist { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hop-line); border-radius: 6px; background: #fff; }
.hop-joist table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: 0.97rem; }
.hop-joist caption { text-align: left; padding: 0.8rem 1rem; font-weight: 600; }
.hop-joist th, .hop-joist td { padding: 0.75rem 1rem; border-top: 1px solid var(--hop-line); text-align: left; vertical-align: top; }
.hop-joist thead th { background: var(--hop-rose); color: var(--hop-on-rose); font-family: var(--hop-head); }
.hop-joist tbody th { font-family: var(--hop-head); background: var(--hop-blush); width: 11rem; }

/* ---------- figure (code-built visuals) ---------- */
.hop-plan { margin: 0; background: #fff; border: 1px solid var(--hop-line); border-radius: 6px; padding: 1rem; }
.hop-plan svg { display: block; width: 100%; height: auto; }
.hop-plan figcaption { margin-top: 0.6rem; font-size: 0.9rem; text-align: center; }
.hop-plan ol { margin-top: 0.8rem; font-size: 0.95rem; }

/* ---------- closing band ---------- */
.hop-close { background: var(--hop-rose); color: var(--hop-on-rose); text-align: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.hop-close h2 { color: var(--hop-on-rose); }
.hop-close p { max-width: 36rem; margin-inline: auto; }
.hop-close a:not(.hop-door) { color: var(--hop-on-rose); }
.hop-close .hop-door[data-variant="primary"] { background: var(--hop-on-rose); color: var(--hop-rose); border-color: var(--hop-on-rose); }
.hop-close .hop-door[data-variant="quiet"] { color: var(--hop-on-rose); border-color: var(--hop-on-rose); }
.hop-close .hop-micro { color: var(--hop-on-rose); opacity: 0.92; margin-inline: auto; }

/* ---------- contact layout ---------- */
.hop-desk { display: grid; gap: 2rem; align-items: start; }
.hop-desk__side { background: var(--hop-blush); border-radius: 6px; padding: 1.4rem; }
.hop-desk__phone { font: 700 1.5rem var(--hop-head); color: var(--hop-rose); text-decoration: none; }

/* ---------- footing (footer) ---------- */
.hop-footing { background: var(--hop-ink); color: #EFE4EE; text-align: center; padding: 3rem 0 2rem; font-size: 0.9rem; }
.hop-footing a { color: #F7EAF5; }
.hop-footing .hop-brand { color: #fff; justify-content: center; font-size: 1.15rem; }
.hop-footing .hop-brand .hop-icon { color: #E3BFDF; }
.hop-footing__phone { font: 700 1.2rem var(--hop-head); text-decoration: none; }
.hop-footing__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; }
.hop-footing__fine { max-width: 44rem; margin-inline: auto; color: #D9CBD7; }

/* ---------- threshold (mobile call bar) ---------- */
.hop-threshold { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1fr auto; gap: 1px; background: var(--hop-line); box-shadow: 0 -4px 14px rgba(39, 31, 38, 0.15); }
.hop-threshold a { display: flex; justify-content: center; align-items: center; gap: 0.45rem; padding: 0.85rem 0.8rem; font: 700 1rem var(--hop-head); text-decoration: none; }
.hop-threshold a:first-child { background: var(--hop-rose); color: var(--hop-on-rose); }
.hop-threshold a + a { background: var(--hop-paper); color: var(--hop-rose); }
body { padding-bottom: 3.6rem; }

@media (min-width: 768px) {
  :root { --hop-beam-h: 5.25rem; }
  .hop-threshold { display: none; }
  body { padding-bottom: 0; }
  .hop-beam__inner { grid-template-columns: auto 1fr auto auto; grid-template-areas: "brand hall call cta"; gap: 1.2rem; }
  .hop-hall ul { justify-content: center; }
  .hop-beam .hop-beam__cta { display: inline-flex; grid-area: cta; padding: 0.6rem 1rem; }
  .hop-desk { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  :root { --hop-beam-h: 7.75rem; }
  .hop-beam__inner { grid-template-columns: 1fr auto auto; grid-template-areas: "brand call cta" "hall hall hall"; }
  .hop-hall ul { justify-content: flex-start; }
}
@media (min-width: 980px) {
  .hop-ceiling__grid { grid-template-columns: 1.15fr 0.85fr; grid-template-areas: "pitch order" "mat order"; column-gap: 3.5rem; align-items: start; }
  .hop-steps { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
  .hop-steps li { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (prefers-reduced-motion: reduce) { .hop-beam { transition: none; } }
