/* ============================================================
   COLLINS INTERIORS INC. site styles
   Palette from the brand mark: red + ink black on plaster white.
   Type: Archivo (display) / Public Sans (body) / IBM Plex Mono (annotations)
   ============================================================ */

:root {
  --ink: #1B1714;
  --ink-soft: #4E4740;
  --stone: #6E675F;
  --paper: #F7F5F1;
  --white: #FFFFFF;
  --red: #B7202A;
  --red-dark: #931820;
  --line: #E4DFD8;
  --line-dark: #2E2925;

  --font-display: "Archivo", sans-serif;
  --font-serif: "Marcellus", serif;
  --font-body: "Public Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --wrap: 1140px;
  --head-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

section { scroll-margin-top: calc(var(--head-h) + 12px); }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 6.2vw, 4.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.4rem; }

p + p { margin-top: 1em; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* refined section label: short accent rule + quiet uppercase */
.sec-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}

.sec-label::before {
  content: "";
  width: 30px;
  height: 2px;
  flex: none;
  background: var(--red);
}

.sec-title { margin-bottom: 2.25rem; }

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

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: var(--red-dark); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--paper);
}
.btn-ghost-light:hover { border-color: var(--paper); }

.btn-full { width: 100%; }

/* ---------- accessibility ---------- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 2px;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.site-head.scrolled { box-shadow: 0 6px 24px rgba(27, 23, 20, 0.08); }

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--head-h);
}

.brand {
  text-decoration: none;
  line-height: 1.15;
}

.brand-text {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-text em { font-style: normal; color: var(--red); }

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--red); }

.nav-phone {
  font-family: var(--font-mono);
  font-weight: 500;
  border: 1.5px solid var(--ink);
  padding: 9px 16px;
  color: var(--ink) !important;
}
.nav-phone:hover { border-color: var(--red); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle-bars i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  padding: 140px 0 64px;
}

/* 18% slack above, 12% below: the parallax drift is capped at the top
   slack in JS, so the photo can never run out of coverage. */
.hero-img {
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  z-index: -2;
  will-change: transform;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(20, 16, 13, 0.82) 0%, rgba(20, 16, 13, 0.55) 48%, rgba(20, 16, 13, 0.28) 100%),
    linear-gradient(to top, rgba(20, 16, 13, 0.55), rgba(20, 16, 13, 0) 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 48px;
  align-items: end;
  width: 100%;
}

.hero-copy { color: var(--white); }

.hero-copy .eyebrow { color: rgba(247, 245, 241, 0.72); margin-bottom: 20px; }

.hero-copy h1 { margin-bottom: 20px; }

.lede {
  font-size: 1.1875rem;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* blueprint title block */
.title-block {
  background: var(--white);
  border: 1.5px solid var(--ink);
  box-shadow: 0 24px 48px rgba(20, 16, 13, 0.35);
}

.tb-head {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 2.5px solid var(--red);
}

.tb-rows { display: block; }

.tb-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.tb-row + .tb-row { border-top: 1px solid var(--line); }

.tb-row dt {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--stone);
}

.tb-row dd { font-weight: 500; }

/* ---------- trust strip ---------- */

.dim-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 0;
  padding: 20px 24px;
  background: var(--ink);
}

.dim-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.78);
  padding: 0 28px;
}

.dim-item + .dim-item { border-left: 1px solid rgba(247, 245, 241, 0.18); }

/* ---------- shared split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ---------- logo band ---------- */

.logo-band {
  background: var(--white);
  text-align: center;
  padding: 56px 20px 48px;
  border-top: 1px solid var(--line);
}
.logo-mark {
  height: 82px;
  width: auto;
  margin: 0 auto 16px;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.logo-tagline {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  line-height: 1.9;
}

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

.about { padding: 128px 0; background: var(--white); }

.about-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.about-copy h2 { margin-bottom: 1.1rem; }

.check-list {
  list-style: none;
  margin-top: 1.4rem;
}

.check-list li {
  position: relative;
  padding: 9px 0 9px 32px;
  font-weight: 500;
}
.check-list li + li { border-top: 1px solid var(--line); }

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}

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

.services { padding: 128px 0; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(27, 23, 20, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(27, 23, 20, 0.12);
  border-color: var(--ink);
}

.svc-card figure img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.svc-body { padding: 28px 28px 32px; }

.svc-body h3 { margin-bottom: 10px; }

.svc-body p { font-size: 0.9875rem; color: var(--ink-soft); }

.svc-tags {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone) !important;
}

/* ---------- gallery (on ink) ---------- */

.gallery { padding: 120px 0 108px; background: var(--ink); color: var(--paper); }

.gallery .sec-title { color: var(--paper); }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gal-tile { overflow: hidden; }

.gal-tile img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line-dark);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gal-tile:hover img { transform: scale(1.035); opacity: 0.92; }

.gal-tile figcaption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.55);
  padding: 12px 2px 0;
}

.gal-more {
  margin-top: 36px;
  color: rgba(247, 245, 241, 0.7);
}
.gal-more a { color: #E8B4B7; font-weight: 600; }

.gal-tile img { cursor: zoom-in; }

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

body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6vh 5vw;
  background: rgba(20, 16, 13, 0.92);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.lightbox.open { display: flex; opacity: 1; }

.lightbox-figure {
  position: static;
  margin: 0;
  max-width: 1120px;
  text-align: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.lightbox-figure figcaption {
  color: rgba(247, 245, 241, 0.72);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 16px;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lightbox-nav:hover { background: rgba(0, 0, 0, 0.7); border-color: #fff; }
.lightbox-nav.prev { left: 26px; }
.lightbox-nav.next { right: 26px; }

@media (max-width: 640px) {
  .lightbox-nav { width: 46px; height: 46px; font-size: 1.6rem; }
  .lightbox-nav.prev { left: 12px; }
  .lightbox-nav.next { right: 12px; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
  border-top: 1px solid var(--line-dark);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- contact ---------- */

.contact { padding: 128px 0; }

.contact .split { align-items: start; }

.contact-info h2 { margin-bottom: 1rem; }

.contact-rows {
  list-style: none;
  margin-top: 1.75rem;
}

.contact-rows li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 13px 0;
  align-items: baseline;
}
.contact-rows li + li { border-top: 1px solid var(--line); }

.ct-key {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.contact-rows a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.contact-rows a:hover { color: var(--red); }

.socials { display: flex; gap: 22px; margin-top: 1.75rem; }

.socials a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 3px;
}
.socials a:hover { color: var(--red); border-color: var(--red); }

/* form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 32px;
}

.field { margin-bottom: 18px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.field textarea { resize: vertical; }

.form-note {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--stone);
  text-align: center;
}
.form-note a { color: var(--red); font-weight: 600; }

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

.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 0;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.foot-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.foot-brand em { font-style: normal; color: var(--red); }

.foot-tag {
  margin-top: 10px;
  color: rgba(247, 245, 241, 0.6);
  font-size: 0.9375rem;
  max-width: 28em;
}

.foot-head {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.5);
  margin-bottom: 14px;
}

.foot-col { display: flex; flex-direction: column; align-items: flex-start; }

.foot-col a {
  text-decoration: none;
  color: var(--paper);
  padding: 4px 0;
  font-size: 0.9375rem;
}
.foot-col a:hover { color: #E8B4B7; }

.foot-legal {
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  padding-bottom: 22px;
}

.foot-legal p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(247, 245, 241, 0.5);
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; align-items: end; }
  .title-block { max-width: 420px; }

  .split { grid-template-columns: 1fr; gap: 40px; }

  .svc-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; }

  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: var(--head-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }

  .nav-open .site-nav { display: flex; }

  .site-nav a {
    width: 100%;
    padding: 13px 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-of-type { border-bottom: none; }

  .nav-phone { margin-top: 10px; text-align: center; }
}

@media (max-width: 640px) {
  .hero { padding-top: 110px; }

  .svc-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  .dim-item { width: 100%; text-align: center; padding: 6px 0; }
  .dim-item + .dim-item { border-left: none; border-top: 1.5px solid var(--red); padding-top: 12px; }

  .about, .services, .gallery, .contact { padding: 72px 0; }

  .cta-row { flex-direction: column; align-items: flex-start; }

  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}

/* ---------- contact form status + honeypot ---------- */

/* Honeypot. Off-screen rather than display:none so bots still fill it. */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
  background: var(--white);
}

.form-status.is-pending { border-left-color: var(--stone); color: var(--ink-soft); }
.form-status.is-ok      { border-left-color: #1E7A4B; color: var(--ink); }
.form-status.is-error   { border-left-color: var(--red); color: var(--ink); }
