/* TrueLevel Floors — "TrueLevel Floors.html" design, as a static stylesheet.
   Every rule here started life as an inline style, style-hover, style-focus or
   style-before/after attribute on the .dc source. */

/* ------------------------------------------------------------- tokens --- */

:root {
  --accent: #C0603A;      /* the .dc `accent` prop; main.js overrides from data-accent */
  --bg:     #FAF9F8;
  --ink:    #1D1B18;
  --grey:   #8B857C;      /* eyebrows, captions */
  --body:   #5C564E;      /* body copy */
  --line:   #E7E2DB;
  --card:   #FFFFFF;
  --shell:  1240px;
}

/* --------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

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

input, select, textarea { font-family: inherit; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #A9A299; }

/* The design leans on Instrument Serif italic for accent words. */
.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: 20px; }
.section { padding-top: clamp(70px, 10vw, 130px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: var(--bg); }

/* Inputs drop their outline for the design's border-colour focus ring, so put
   a visible one back for anything keyboard-reachable. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ------------------------------------------------------------ eyebrow --- */
/* Was a dot <span> + label <span>; the dot is a pseudo-element here. */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.eyebrow--lg    { margin-bottom: 24px; }
.eyebrow--tight { margin-bottom: 16px; }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent); color: var(--bg); }

.btn--accent {
  gap: 10px;
  padding: 16px 26px;
  background: var(--accent);
  color: #FFF8F3;
  font-size: 15px;
}
.btn--accent:hover { background: var(--ink); color: var(--bg); }

.btn--outline {
  padding: 11px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--bg); }

/* -------------------------------------------------------------- notch --- */
/* The inverted corner where a pill sits over the bottom-right of an image.
   Two radial gradients fake the outward curve above and to the left of it. */

.notch {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 12px 0 0 12px;
  background: var(--bg);
  border-top-left-radius: 26px;
}
.notch::before,
.notch::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  background: radial-gradient(circle 26px at 0 0, transparent 25px, var(--bg) 26px);
}
.notch::before { right: 0; top: -26px; }
.notch::after  { left: -26px; bottom: 0; }

.notch--sm { padding: 10px 0 0 10px; border-top-left-radius: 20px; }
.notch--sm::before,
.notch--sm::after {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle 20px at 0 0, transparent 19px, var(--bg) 20px);
}
.notch--sm::before { top: -20px; }
.notch--sm::after  { left: -20px; }

/* ------------------------------------------------------------- header --- */

.site-header {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { flex: none; }
.brand__name { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand__serif { font-size: 18px; }

.site-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; flex-wrap: wrap; }
/* display:flex + min-height, not padding-block: padding would grow the
   invisible gap between links (the 22px gap already spaces them), while a
   taller flex box keeps that spacing and just centers the same-looking
   text inside a 48px WCAG 2.5.5 tap target. */
.site-nav a { display: flex; align-items: center; min-height: 48px; color: var(--body); }
.site-nav a:hover { color: var(--accent); }

/* --------------------------------------------------------------- hero --- */

.hero { padding-top: 36px; }

.hero__title {
  margin: 0 0 22px;
  font-weight: 750;
  font-size: clamp(44px, 8.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__em { letter-spacing: -0.01em; }

.hero__lede {
  margin: 0 0 34px;
  max-width: 520px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  color: var(--body);
}

.hero__media {
  position: relative;
  height: clamp(320px, 55vw, 620px);
  border-radius: 26px;
  overflow: hidden;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------- about --- */

.about__grid {
  border-top: 1px solid var(--line);
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 34px;
}
.about__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.about__copy { max-width: 520px; font-size: 16px; line-height: 1.65; color: var(--body); }
.about__copy p { margin: 0 0 16px; }
.about__copy p:last-child { margin: 0; }

/* ------------------------------------------------- section head + grid --- */

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.sec-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 42px);
  letter-spacing: -0.02em;
}
.sec-note { margin: 0; max-width: 360px; font-size: 15px; line-height: 1.6; color: var(--body); }

.grid {
  border-top: 1px solid var(--line);
  padding-top: 34px;
  display: grid;
  gap: 22px;
}
.grid--services { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }

/* ----------------------------------------------------------- services --- */

.svc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.svc__media { height: 200px; border-radius: 14px; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__body { padding: 0 8px 10px; }
.svc__num {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.svc__title { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.svc__text  { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); }

/* ------------------------------------------------------------- gallery --- */

.gallery {
  border-top: 1px solid var(--line);
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #DEDAD3;
}
.gallery__item picture,
.gallery__item img,
.gallery__item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29, 27, 24, 0);
  transition: background-color .2s ease;
}
.gallery__item:hover::after,
.gallery__item:focus-visible::after { background: rgba(29, 27, 24, 0.12); }

.gallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: flex;
}

/* -------------------------------------------------------------- lightbox --- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease, visibility 0s linear 0s;
}

.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox__stage img,
.lightbox__stage video {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(250, 249, 248, 0.75);
}
.lightbox__count {
  position: absolute;
  top: 18px;
  left: 20px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(250, 249, 248, 0.6);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background-color .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }

.lightbox__close { top: 18px; right: 20px; width: 42px; height: 42px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__close { top: 10px; right: 10px; }
}

/* -------------------------------------------------------------- quote --- */

.quote__panel {
  padding: clamp(24px, 5vw, 56px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 5vw, 64px);
}
.quote__title {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.quote__lede { margin: 0 0 28px; max-width: 400px; font-size: 15px; line-height: 1.6; color: var(--body); }
.quote__contact { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.quote__contact a { font-weight: 600; }
.quote__contact span { font-size: 14px; color: var(--grey); }

.qform { display: flex; flex-direction: column; gap: 14px; }
.qform[hidden] { display: none; }
.qform__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px; }

.qform input,
.qform select,
.qform textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease;
}
.qform textarea { resize: vertical; }
.qform input:focus,
.qform select:focus,
.qform textarea:focus { border-color: var(--accent); }
.qform select option { background: var(--card); }

/* Honeypot — off-screen, not display:none, so bots still fill it in. */
.qform__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.qform__error {
  margin: -4px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #C0442F;
}
.qform__error[hidden] { display: none; }

.btn--submit {
  align-self: flex-start;
  gap: 10px;
  padding: 15px 28px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}
.btn--submit:disabled { opacity: .6; cursor: default; }
.btn--submit:disabled:hover { background: var(--ink); }

.qsent { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.qsent[hidden] { display: none; }
.qsent__title { font-size: 40px; color: var(--accent); }
.qsent__body { margin: 0; max-width: 380px; font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------------------------------------------------------------- faq --- */
/* Dark panel, same shape as .quote__panel and .site-footer__inner, with a
   scoped amber accent — one of the four brand palette options in README
   (#D9932C) — kept local so it doesn't touch the sitewide --accent. */

/* A deliberately small bottom gap — .section's top padding already spaces
   FAQ from Quote above; without this, FAQ's dark panel touches the
   footer's dark panel directly with no breathing room between them. */
.faq { --faq-accent: #D9932C; padding-bottom: clamp(28px, 4vw, 44px); }

.faq__panel {
  padding: clamp(28px, 5vw, 56px);
  background: var(--ink);
  color: var(--bg);
  border-radius: 26px;
}

.faq .eyebrow::before { background: var(--faq-accent); }
.faq .eyebrow span { color: rgba(250, 249, 248, 0.6); }
.faq .sec-title { color: var(--bg); }
.faq .sec-note { color: rgba(250, 249, 248, 0.7); }

.faq__list { border-top: 1px solid rgba(250, 249, 248, 0.15); margin-top: 8px; }

.faq__item { border-bottom: 1px solid rgba(250, 249, 248, 0.15); }

.faq__q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--faq-accent); }

/* Two bars forming a "+"; rotating the whole icon 45deg turns it into a "x". */
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; transition: transform .3s ease; }
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--faq-accent);
  border-radius: 2px;
  transition: background-color .2s ease;
}
.faq__icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq__icon::after   { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }

/* Grid-rows trick animates height on an element that has no intrinsic one.
   Both rules need to out-specificity the UA default that hides collapsed
   <details> content outright, hence the two-class selectors. */
.faq__item > .faq__a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq__item[open] > .faq__a-wrap { grid-template-rows: 1fr; }
.faq__item > .faq__a-wrap > .faq__a { overflow: hidden; }

.faq__a p {
  margin: 0;
  padding: 0 4px 22px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(250, 249, 248, 0.72);
}

/* ------------------------------------------------------------- footer --- */

.site-footer { max-width: var(--shell); margin: 0 auto; padding: 0 20px 24px; }

.site-footer__inner {
  padding: clamp(28px, 5vw, 52px);
  background: var(--ink);
  color: var(--bg);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .brand,
.site-footer .brand:hover { color: var(--bg); }

.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid rgba(250, 249, 248, 0.3);
  border-radius: 999px;
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  transition: background-color .2s ease, border-color .2s ease;
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.social__icon { flex: none; }

.site-footer__bottom {
  border-top: 1px solid rgba(250, 249, 248, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(250, 249, 248, 0.7);
}
.site-footer__contact { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__contact a { color: var(--bg); font-weight: 600; }
.site-footer__contact a:hover { color: var(--accent); }

/* ----------------------------------------------------------- a11y/prm --- */

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
