/* Boyd Remodeling & Construction — page-specific styles */

/* ── Header shrink on scroll ── */
.header { transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; }
.header--scrolled {
  padding: 9px 0;
  background: rgba(244, 239, 230, 0.94);
  box-shadow: 0 1px 24px rgba(14, 20, 27, 0.07);
}

/* ── Mobile nav burger → X ── */
.nav-toggle span { transition: transform 0.3s ease, opacity 0.2s ease; }
.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Real-photo gallery (masonry-ish grid) ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery__item {
  overflow: hidden;
  position: relative;
  background: var(--walnut);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px 14px;
  background: linear-gradient(to top, rgba(14,20,27,0.82), transparent);
  color: var(--card);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gallery__item:hover figcaption { opacity: 1; transform: translateY(0); }
.g-tall  { grid-row: span 2; }
.g-wide  { grid-column: span 6; }
.g-mid   { grid-column: span 4; }
.g-sm    { grid-column: span 3; }
.g-half  { grid-column: span 6; }
.g-third { grid-column: span 4; }

/* ── Before / After slider ── */
.ba {
  position: relative;
  overflow: hidden;
  user-select: none;
  background: var(--walnut);
  aspect-ratio: 3 / 2;
  cursor: ew-resize;
}
.ba img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba__after {
  position: absolute; inset: 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid var(--card);
}
.ba__after img {
  width: 100vw; max-width: none;
  height: 100%;
}
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 44px;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  cursor: ew-resize;
  z-index: 3;
}
.ba__handle::before {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 2px; background: var(--card);
  box-shadow: 0 0 0 1px rgba(14,20,27,0.15);
}
.ba__grip {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(14,20,27,0.3);
  font-family: var(--mono); font-size: 14px; color: var(--walnut);
  position: relative; z-index: 2;
}
.ba__tag {
  position: absolute; top: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--card);
  background: rgba(14,20,27,0.6); padding: 6px 12px;
  z-index: 2; pointer-events: none;
}
.ba__tag--before { left: 16px; }
.ba__tag--after  { right: 16px; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14,20,27,0.94);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox--open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute; top: 24px; right: 32px;
  font-size: 38px; line-height: 1; color: var(--card);
  background: none; border: none; cursor: pointer; opacity: 0.8;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 48px; color: var(--card); background: none; border: none;
  cursor: pointer; opacity: 0.7; padding: 20px;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__cap {
  position: absolute; bottom: 28px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(244,239,230,0.85);
}

/* slot selected state */
.slot--sel { background: var(--brass) !important; color: var(--card) !important; border-color: var(--brass) !important; }

@media (max-width: 1024px) {
  .gallery { grid-auto-rows: 180px; }
  .g-wide { grid-column: span 6; }
  .g-mid, .g-third { grid-column: span 6; }
  .g-sm { grid-column: span 6; }
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery__item figcaption { opacity: 1; transform: none; }
  .lightbox__nav { font-size: 32px; padding: 8px; }
  .ba__tag { font-size: 9px; }
}


/* ── Awards trust strip ─────────────────────────────────────── */
.awards {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.awards__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: center;
}
.award-badge {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.award-badge img {
  max-width: 100%;
  height: clamp(72px, 8vw, 96px);
  width: auto;
  object-fit: contain;
}
.award-badge--feature img {
  height: clamp(96px, 11vw, 132px);
}
.award-badge__cap {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  line-height: 1.45;
}
.award-badge__cap span {
  color: var(--brass);
  font-weight: 500;
}

/* svc-card media thumbnail */
.svc-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: -32px -28px 22px;
  width: calc(100% + 56px);
  background: var(--walnut);
}
.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.svc-card:hover .svc-card__media img { transform: scale(1.05); }
.svc-card::after { top: 50%; }
.svc-card .svc-card__num { margin-top: 0; }

@media (max-width: 1024px) {
  .awards { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .awards__row { grid-template-columns: repeat(5, 1fr); gap: 14px; }
}
@media (max-width: 720px) {
  .awards__row { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .award-badge--feature { grid-column: span 2; }
  .award-badge img { height: 70px; }
  .award-badge--feature img { height: 110px; }
}


/* ── Services strip grid (home + services) ──────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.svc-card {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: background 0.25s;
  position: relative;
}
.svc-card:hover { background: var(--bone); }
.svc-card__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.svc-card__title {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--walnut);
  font-weight: 400;
  margin-top: 12px;
  letter-spacing: -0.01em;
}
.svc-card__from {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 8px;
}
.svc-card__note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--graphite);
}
.svc-card::after {
  content: "→";
  position: absolute;
  top: 28px;
  right: 24px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--brass);
  opacity: 0.55;
  transition: transform 0.25s, opacity 0.25s;
}
.svc-card:hover::after { opacity: 1; transform: translateX(4px); }

/* ── Calendly-style booking widget ──────────────────────────── */
.book {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
}
.book__list {
  margin-top: 28px;
  list-style: none;
}
.book__list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.book__list .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--brass-2);
  min-width: 28px;
}
.book__list .t {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--card);
  font-weight: 350;
}
.calbox {
  background: var(--card);
  color: var(--walnut);
  padding: 28px 28px 32px;
  border: 1px solid rgba(177, 120, 80, 0.4);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.calbox__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.calbox__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--walnut);
}
.calbox__sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  max-width: 200px;
  text-align: right;
}
.calbox__week {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 22px;
}
.calbox__day {
  text-align: center;
  padding: 12px 4px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.calbox__day:hover { border-color: var(--brass); }
.calbox__day .d {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
}
.calbox__day .n {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--walnut);
  margin-top: 4px;
  font-weight: 400;
}
.calbox__day--sel {
  background: var(--walnut);
  border-color: var(--walnut);
}
.calbox__day--sel .d, .calbox__day--sel .n { color: var(--card); }

.calbox__slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.slot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 12px 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--walnut);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.slot:hover { background: var(--walnut); color: var(--card); border-color: var(--walnut); }
.slot--gone {
  color: rgba(28, 39, 51, 0.3);
  background: rgba(28, 39, 51, 0.04);
  text-decoration: line-through;
  cursor: not-allowed;
}
.slot--gone:hover { background: rgba(28, 39, 51, 0.04); color: rgba(28, 39, 51, 0.3); border-color: var(--line); }
.calbox__foot {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.calbox__note {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 12px;
  text-align: center;
}

/* ── Process light variant (on cream sections) ──────────────── */
.process--light {
  border-color: var(--line);
}
.process--light .step {
  border-color: var(--line);
}
.process--light .step__num { color: var(--brass); }
.process--light .step__title { color: var(--walnut); }
.process--light .step__dur { color: var(--brass); }
.process--light .step__sum { color: var(--walnut-2); }
.process--light .step__detail { color: var(--graphite); }

/* ── Responsive — booking widget ────────────────────────────── */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .book { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .svc-grid { grid-template-columns: 1fr; }
  .calbox__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .calbox__sub { text-align: left; }
  .calbox__week { grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .calbox__day { padding: 8px 2px; }
  .calbox__day .n { font-size: 16px; }
  .calbox__slots { grid-template-columns: repeat(2, 1fr); }
}

/* ── Contact grid blocks ────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}
.contact-block h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
  font-weight: 500;
}
.contact-block p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--walnut);
  line-height: 1.5;
  font-weight: 400;
}
.contact-block a:hover { color: var(--brass); }
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ── ORIGINAL PAGE STYLES BELOW ─────────────────────────────── */


/* ── Page hero ──────────────────────────────────────────────── */
.page-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--line);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.page-hero__title {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
}
.page-hero__intro {
  font-family: var(--serif);
  font-size: clamp(17px, 1.35vw, 21px);
  color: var(--graphite);
  font-weight: 300;
  line-height: 1.55;
  max-width: 480px;
}

/* ── Story page: timeline ───────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--line);
  margin-top: 64px;
}
.tl-row {
  padding: 24px 0 32px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  position: relative;
}
.tl-row::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 32px;
  width: 12px;
  height: 12px;
  background: var(--brass);
  transform: rotate(45deg);
}
.tl-year {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--brass);
  font-weight: 350;
  font-style: italic;
  line-height: 1;
  padding-top: 24px;
}
.tl-body h4 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--walnut);
  font-weight: 400;
}
.tl-body p {
  font-size: 15px;
  color: var(--graphite);
  margin-top: 10px;
  line-height: 1.7;
  max-width: 540px;
}

/* the three rules — story page */
.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.rule-cell {
  padding: 48px 32px 56px;
  border-right: 1px solid var(--line);
}
.rule-cell:last-child { border-right: none; }
.rule-cell .n {
  font-family: var(--serif);
  font-size: 42px;
  font-style: italic;
  color: var(--brass);
  font-weight: 350;
  line-height: 1;
}
.rule-cell h4 {
  font-family: var(--serif);
  font-size: 26px;
  margin-top: 20px;
  color: var(--walnut);
  font-weight: 400;
}
.rule-cell p {
  margin-top: 14px;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.7;
}

/* ── Portfolio page filter ──────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filter-bar button {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--walnut);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-bar button:hover, .filter-bar button.is-active {
  background: var(--walnut);
  color: var(--card);
  border-color: var(--walnut);
}

/* ── Process page: extended detail ──────────────────────────── */
.process-deep .step-deep {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.process-deep .step-deep:last-child { border-bottom: none; }
.step-deep .marker {
  font-family: var(--serif);
  font-size: 96px;
  font-style: italic;
  font-weight: 300;
  color: var(--brass);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.step-deep .marker .lbl {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
  font-style: normal;
  margin-top: 16px;
}
.step-deep h3 {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--walnut);
  font-weight: 400;
}
.step-deep .sum {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--brass);
  margin-top: 12px;
  line-height: 1.5;
}
.step-deep .body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite);
  margin-bottom: 12px;
}

/* ── Materials page extras ──────────────────────────────────── */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.hardware-cell {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hardware-cell .name {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--walnut);
}
.hardware-cell .kind {
  font-size: 13px;
  color: var(--graphite);
  margin-top: 8px;
  line-height: 1.5;
}
.hardware-cell .made {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 14px;
}

.construction {
  list-style: none;
  margin-top: 32px;
}
.construction li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--walnut);
  font-weight: 400;
}
.construction li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--brass);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Visit page ─────────────────────────────────────────────── */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.info-block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.info-block:first-child { border-top: none; padding-top: 0; }
.info-block .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
}
.info-block .val {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--walnut);
  margin-top: 12px;
  font-weight: 400;
  line-height: 1.2;
}
.info-block .val a:hover { color: var(--brass); }
.info-block .sub {
  font-size: 14px;
  color: var(--graphite);
  margin-top: 6px;
}

/* ── Contact page map ───────────────────────────────────────── */
.map-wrap {
  height: 460px;
  overflow: hidden;
  background: var(--walnut);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) sepia(0.15); }

/* ── Inner-page footer-band shared ──────────────────────────── */
.inner-cta {
  text-align: center;
  padding: clamp(72px, 9vw, 120px) var(--pad-x);
  border-top: 1px solid var(--line);
}
.inner-cta h3 {
  font-size: clamp(28px, 4vw, 52px);
  max-width: 700px;
  margin: 0 auto 24px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .page-hero { padding: 130px 0 56px; }
  .page-hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .rules { grid-template-columns: 1fr; }
  .rule-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .rule-cell:last-child { border-bottom: none; }
  .process-deep .step-deep { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .hardware-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: 1fr; gap: 48px; }
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .tl-year { padding-top: 0; font-size: 24px; }
}
@media (max-width: 720px) {
  .filter-bar button { padding: 8px 14px; font-size: 9px; }
  .hardware-grid { grid-template-columns: 1fr; }
  .step-deep .marker { font-size: 64px; }
  .timeline { padding-left: 20px; }
}
