/* gaffneydrywallrepairco.com — CUBE CSS: composition, utilities, blocks (tool names), exceptions via data attributes */

:root {
  --sep-ink: #1D222A;
  --sep-paper: #F7FAFD;
  --sep-slate: #34383F;
  --sep-mist: #E2ECFA;
  --sep-ochre: #A86904;
  --sep-white: #FFFFFF;
  --sep-line: #C7CFDA;
  --sep-rail: 260px;
  --sep-max: 1200px;
  --sep-gap: clamp(1rem, 2.5vw, 1.6rem);
  --sep-pad: clamp(1rem, 4vw, 3rem);
  --sep-head: "Roboto Slab", Georgia, serif;
  --sep-body: "Sarabun", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--sep-paper); color: var(--sep-ink);
  font: 400 1.075rem/1.65 var(--sep-body); overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--sep-head); line-height: 1.2; margin: 0; color: var(--sep-ink); }
h1 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-weight: 600; font-size: 1.15rem; }
p, ul, ol, dl { margin: 0; }
a { color: var(--sep-slate); text-decoration-color: var(--sep-ochre); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--sep-ochre); }
:focus-visible { outline: 3px solid var(--sep-ochre); outline-offset: 2px; }

/* ---------- composition ---------- */
.sep-stack > * + * { margin-block-start: var(--sep-flow, 1rem); }
.sep-cluster { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.sep-grid { display: grid; gap: var(--sep-gap); container-type: inline-size; }
@container (min-width: 520px) { .sep-grid > * { min-width: 0; } }
.sep-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---------- utilities ---------- */
.sep-micro { font-size: .93rem; color: #4A515C; max-width: 46ch; }
.sep-micro[data-tone="light"] { color: #DCE3EC; }
.sep-icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; vertical-align: -.25em; }
.sep-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- sander: header, top bar on small screens, left rail on desktop ---------- */
.sep-sander { background: var(--sep-slate); color: var(--sep-white); position: sticky; top: 0; z-index: 20; }
.sep-sander a { color: var(--sep-white); }
.sep-sander__bar { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; }
.sep-sander__brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font: 800 .95rem/1.15 var(--sep-head); margin-inline-end: auto; }
.sep-sander__brand img { border-radius: 8px; }
.sep-sander__phone { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; white-space: nowrap; font-size: .98rem; }
.sep-sander__toggle {
  display: inline-flex; align-items: center; gap: .3rem; background: transparent; color: var(--sep-white);
  border: 1px solid rgba(255,255,255,.45); border-radius: 6px; padding: .35rem .55rem; font: 600 .9rem var(--sep-body); cursor: pointer;
}
.sep-sander__menu { display: none; padding: .5rem 1rem 1.2rem; border-top: 1px solid rgba(255,255,255,.15); }
.sep-sander__menu[data-state="open"] { display: block; }
.sep-sander__links { list-style: none; padding: 0; display: grid; gap: .1rem; }
.sep-sander__links a { display: block; padding: .45rem 0; text-decoration: none; font-weight: 600; }
.sep-sander__links a[aria-current="page"] { color: #F0C27A; }
.sep-sander__hours { display: flex; gap: .4rem; align-items: center; margin: .9rem 0; font-size: .92rem; color: #DCE3EC; }
@media (max-width: 400px) {
  .sep-sander__brand span { display: none; }
  .sep-sander__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 1100px) {
  .sep-sander {
    position: fixed; inset: 0 auto 0 0; width: var(--sep-rail); display: flex; flex-direction: column;
    padding: 1.6rem 1.3rem; overflow-y: auto;
  }
  .sep-sander__bar { flex-direction: column; align-items: flex-start; padding: 0; gap: 1.2rem; }
  .sep-sander__brand { font-size: 1.08rem; }
  .sep-sander__phone { font-size: 1.12rem; }
  .sep-sander__toggle { display: none; }
  .sep-sander__menu, .sep-sander__menu[data-state="closed"] { display: block; padding: 1.2rem 0 0; margin-top: 1.2rem; }
  .sep-main, .sep-pan { margin-left: var(--sep-rail); }
  html { scroll-padding-top: 1rem; }
}

/* ---------- knife: buttons ---------- */
.sep-knife {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px;
  padding: .7rem 1.25rem; border-radius: 6px; border: 2px solid var(--sep-slate);
  background: var(--sep-slate); color: var(--sep-white); font: 600 1.02rem/1.2 var(--sep-body);
  text-decoration: none; cursor: pointer;
}
.sep-knife:hover { background: #22252A; color: var(--sep-white); }
.sep-knife[data-variant="accent"] { background: var(--sep-ochre); border-color: var(--sep-ochre); color: var(--sep-white); }
.sep-knife[data-variant="accent"]:hover { background: #8C5703; }
.sep-knife[data-variant="light"] { background: var(--sep-white); border-color: var(--sep-white); color: var(--sep-slate); font-size: 1.15rem; }
.sep-knife[data-variant="light"]:hover { background: var(--sep-mist); color: var(--sep-ink); }
.sep-knife[data-variant="ghost"] { background: transparent; color: var(--sep-slate); }
.sep-knife[data-variant="ghost"]:hover { background: var(--sep-slate); color: var(--sep-white); }
.sep-sander .sep-knife { background: var(--sep-ochre); border-color: var(--sep-ochre); width: 100%; }

/* ---------- trowel: hero with the angled photo edge ---------- */
.sep-trowel {
  background: var(--sep-slate); color: var(--sep-white); display: grid; container-type: inline-size;
  grid-template-areas: "copy" "photo" "form";
}
.sep-trowel h1, .sep-trowel h2 { color: var(--sep-white); }
.sep-trowel__copy { grid-area: copy; padding: 2.2rem var(--sep-pad) 1.6rem; --sep-flow: 1.1rem; }
.sep-trowel__kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: #F0C27A; }
.sep-trowel__lede { font-size: 1.15rem; max-width: 42ch; color: #E8EDF3; }
.sep-trowel__hours { display: flex; align-items: center; gap: .4rem; font-size: .95rem; color: #DCE3EC; }
.sep-trowel__hours[data-tone="dark"] { color: var(--sep-ink); }
.sep-trowel__jump { color: var(--sep-white); font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; }
.sep-trowel__photo { grid-area: photo; margin: 0; }
.sep-trowel__photo img { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: cover; clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%); }
.sep-trowel__form { grid-area: form; background: var(--sep-mist); color: var(--sep-ink); padding: 1.6rem var(--sep-pad) 2rem; }
.sep-trowel__form h2.sep-trowel__formhead { color: var(--sep-ink); font-size: 1.35rem; margin-bottom: 1rem; }
@media (min-width: 820px) {
  .sep-trowel { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "copy photo" "form form"; }
  .sep-trowel__copy { padding: 3.5rem var(--sep-pad) 3rem; align-self: center; }
  .sep-trowel__photo { position: relative; }
  .sep-trowel__photo img { max-height: none; height: auto; aspect-ratio: 4 / 5; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
}

/* photos: greyscale with an accent rule */
.sep-photo { margin: 0; }
.sep-photo img { filter: grayscale(1) contrast(1.05); display: block; }
.sep-photo::after { content: ""; display: block; width: 72px; height: 5px; background: var(--sep-ochre); margin-top: .6rem; }
.sep-trowel__photo::after { margin-left: auto; margin-right: var(--sep-pad); }
.sep-photo figcaption { font-size: .92rem; color: #4A515C; margin-top: .5rem; }
.sep-photo--wide img { width: 100%; border-radius: 4px; }

/* ---------- hawk: the quote form ---------- */
.sep-hawk { max-width: var(--sep-max); }
.sep-hawk__form { display: grid; gap: .9rem 1rem; container-type: inline-size; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sep-hawk__form { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .sep-trowel .sep-hawk__form { grid-template-columns: repeat(4, 1fr); } .sep-trowel [data-span="full"] { grid-column: span 2; } }
.sep-hawk [data-span="full"] { grid-column: 1 / -1; }
.sep-hawk__field { display: grid; gap: .3rem; }
.sep-hawk__field label { font-weight: 600; font-size: .95rem; }
.sep-hawk__field label span { font-weight: 400; color: #4A515C; }
.sep-hawk input, .sep-hawk select, .sep-hawk textarea {
  width: 100%; font: 400 1rem var(--sep-body); padding: .65rem .7rem; border: 1.5px solid #9BA5B3; border-radius: 5px;
  background: var(--sep-white); color: var(--sep-ink);
}
.sep-hawk textarea { resize: vertical; min-height: 6rem; }
.sep-hawk .sep-knife { width: 100%; }
.sep-hawk__consent { font-size: .9rem; margin-top: .9rem; }
.sep-hawk .sep-micro { margin-top: .35rem; }

/* ---------- plate: inner page title band ---------- */
.sep-plate { background: var(--sep-mist); border-bottom: 4px solid var(--sep-slate); }
.sep-plate__inner { max-width: var(--sep-max); padding: 2.6rem var(--sep-pad) 2.2rem; --sep-flow: 1rem; }
.sep-plate__inner p { max-width: 68ch; font-size: 1.1rem; }
.sep-plate__icon { width: 44px; height: 44px; fill: var(--sep-ochre); }

/* ---------- level: sticky-heading sections ---------- */
.sep-level { container-type: inline-size; padding: clamp(2.2rem, 5vw, 3.6rem) var(--sep-pad); border-bottom: 1px solid var(--sep-line); }
.sep-level:nth-of-type(even) { background: var(--sep-white); }
.sep-level__grid { max-width: var(--sep-max); display: grid; gap: 1.2rem; }
.sep-level__head h2 { border-left: 5px solid var(--sep-ochre); padding-left: .8rem; }
.sep-level__body { min-width: 0; max-width: 72ch; }
@container (min-width: 760px) {
  .sep-level__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; }
  .sep-level__head { position: sticky; top: 5.5rem; align-self: start; }
}
@media (min-width: 1100px) { .sep-level__head { top: 2rem; } }
.sep-level[data-variant="close"] { background: var(--sep-slate); color: var(--sep-white); }
.sep-level[data-variant="close"] h2 { color: var(--sep-white); }
.sep-level[data-variant="close"] a:not(.sep-knife) { color: var(--sep-white); }
.sep-level[data-variant="close"] .sep-micro { color: #DCE3EC; }
.sep-level[data-variant="close"] .sep-knife[data-variant="ghost"] { color: var(--sep-white); border-color: var(--sep-white); }
.sep-level[data-variant="close"] .sep-knife:not([data-variant]) { background: var(--sep-white); color: var(--sep-slate); border-color: var(--sep-white); }
.sep-level[data-variant="alert"] { background: #FFF6E6; }
.sep-level[data-variant="alert"] .sep-level__head h2 { border-color: #B3541E; }
.sep-level[data-variant="form"] .sep-contact { max-width: var(--sep-max); display: grid; gap: 2rem; container-type: inline-size; }
@media (min-width: 900px) { .sep-level[data-variant="form"] .sep-contact { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.sep-level[data-variant="prose"] .sep-prose { max-width: 72ch; }
.sep-prose h2 { font-size: 1.3rem; margin-top: 1.6rem; }

.sep-level__table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .97rem; background: var(--sep-white); }
.sep-level__table caption { text-align: left; font-weight: 600; padding-bottom: .5rem; }
.sep-level__table th, .sep-level__table td { border: 1px solid var(--sep-line); padding: .6rem .7rem; vertical-align: top; text-align: left; }
.sep-level__table thead th { background: var(--sep-slate); color: var(--sep-white); font-family: var(--sep-head); font-weight: 600; }
.sep-level__table tbody th { background: var(--sep-mist); font-weight: 600; }

.sep-qa { border-top: 1px solid var(--sep-line); padding-top: 1rem; }
.sep-qa h3 { margin-bottom: .35rem; }
.sep-note h3 { margin-bottom: .3rem; }
.sep-note + .sep-note { border-top: 1px dashed var(--sep-line); padding-top: 1rem; }
.sep-checklist { padding-left: 1.2rem; display: grid; gap: .6rem; }
.sep-checklist li::marker { color: var(--sep-ochre); }
.sep-steps { list-style: none; padding: 0; counter-reset: sep-step; display: grid; gap: .8rem; }
.sep-steps > li { counter-increment: sep-step; position: relative; padding-left: 2.8rem; }
.sep-steps > li::before {
  content: counter(sep-step); position: absolute; left: 0; top: .05rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--sep-slate); color: var(--sep-white); display: grid; place-items: center; font: 600 .95rem var(--sep-head);
}
.sep-steps__label { font-weight: 600; color: var(--sep-ochre); margin-right: .25rem; }
.sep-steps__label::after { content: ":"; }
.sep-defs { display: grid; gap: .3rem 1rem; }
.sep-defs dt { font-weight: 600; font-family: var(--sep-head); margin-top: .6rem; }
.sep-defs dd { margin: 0; }
.sep-towns { list-style: none; padding: 0; display: grid; gap: .6rem; }
.sep-towns strong { display: block; }

/* ---------- square: outlined card with corner tab ---------- */
.sep-square {
  position: relative; border: 1.5px solid var(--sep-slate); border-radius: 6px; padding: 2.4rem 1.2rem 1.3rem;
  background: var(--sep-paper); display: grid; gap: .55rem; align-content: start;
}
.sep-screw {
  position: absolute; top: -1px; left: -1px; background: var(--sep-ochre); color: var(--sep-white);
  font: 600 .78rem/1 var(--sep-body); letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem .7rem; border-radius: 6px 0 6px 0;
}
.sep-square__icon { width: 30px; height: 30px; fill: var(--sep-slate); }
.sep-square a { font-weight: 600; }

/* ---------- box: call panel ---------- */
.sep-box { border: 2px solid var(--sep-slate); border-radius: 6px; padding: 1.3rem; --sep-flow: .8rem; }
.sep-level[data-variant="close"] .sep-box { border-color: rgba(255,255,255,.4); }
.sep-contact .sep-box h2 { font-size: 1.3rem; }

/* ---------- texture swatches ---------- */
.sep-swatch { margin: 0; }
.sep-swatch__svg { display: block; width: 100%; height: auto; }
.sep-swatch figcaption { font-size: .92rem; color: #4A515C; margin-top: .4rem; }

/* ---------- pan: footer in three ruled rows ---------- */
.sep-pan { background: #23262B; color: #D5DBE3; font-size: .93rem; }
.sep-pan a { color: #F2F4F7; }
.sep-pan__row { padding: 1.3rem var(--sep-pad); border-top: 1px solid #454A52; }
.sep-pan__row[data-row="brand"] { border-top: 0; justify-content: space-between; }
.sep-pan__name { font: 800 1.1rem var(--sep-head); color: var(--sep-white); }
.sep-pan__links { list-style: none; padding: 0; gap: .5rem 1.4rem; }
.sep-pan__row[data-row="legal"] { --sep-flow: .7rem; }
.sep-pan__disclosure { max-width: 90ch; }

/* ---------- pole: sticky mobile call bar ---------- */
.sep-pole { display: none; }
@media (max-width: 767px) {
  .sep-pole {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--sep-slate);
    border-top: 3px solid var(--sep-ochre);
  }
  .sep-pole__link {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 54px;
    color: var(--sep-white); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .4rem;
  }
  .sep-pole__link[data-variant="accent"] { background: var(--sep-ochre); }
  body { padding-bottom: 60px; }
}
