/* Reeves Remodeling homepage concept.
   Design direction: Hearth, interpreted (see PROJECT_RULES.md).
   Palette is Reeves' own: the logo mark red and gold, their black wordmark
   deepened to a warm ink, and a stone ground pulled from the acrylic and
   onyx wall panels in their own job photography.
   Display: Trirong. Body: Tajawal. No em dashes in this file. */

:root {
  /* Reeves brand */
  --brick:      #B61817;  /* exact pixel of the logo mark circle */
  --brick-deep: #8C1010;
  --ember:      #E0574A;  /* brick lightened within its hue for text on ink */
  --gold:       #FECF16;  /* exact pixel of the logo R */
  --gold-line:  #C79A00;  /* gold darkened, rules and hairlines only */

  /* grounds */
  --ink:        #17100F;
  --ink-2:      #241715;
  --stone:      #EDE9E4;
  --stone-2:    #E1DBD3;
  --paper:      #F8F6F3;

  /* ink on light */
  --text-dark:  #1C1512;
  --text-body:  #554C47;
  --text-muted: #7C7168;

  /* ink on dark */
  --text-light:       rgba(255, 255, 255, 0.92);
  --text-light-muted: rgba(255, 255, 255, 0.66);

  --font-display: 'Trirong', Georgia, 'Times New Roman', serif;
  --font-body: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: min(90%, 1100px);
  --wrap-wide: min(94%, 1440px);
  --pad-y: clamp(4rem, 9vw, 8.5rem);
  --nav-h: 5.25rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
  --shadow: 0 2px 5px rgba(23, 16, 15, 0.14), 0 30px 60px -22px rgba(23, 16, 15, 0.42);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--gold); color: var(--ink); }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-body);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { width: var(--wrap); margin-inline: auto; }
.wrap-wide { width: var(--wrap-wide); margin-inline: auto; }

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

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.06;
  color: var(--text-dark);
  text-wrap: balance;
}
h1.display { font-size: clamp(2.6rem, 6.1vw, 5rem); max-width: 15ch; }
h2.display { font-size: clamp(2rem, 4.1vw, 3.4rem); max-width: 19ch; }
h3.display { font-size: clamp(1.35rem, 2.1vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.18; }

.on-ink .display, .on-ink h2.display, .on-ink h3.display { color: #FFFFFF; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--brick);
}
.kicker::before {
  content: ""; flex: none; width: 2.1rem; height: 2px;
  background: var(--gold-line);
}
.on-ink .kicker, .hero .kicker { color: var(--gold); }
.on-ink .kicker::before, .hero .kicker::before { background: var(--gold); opacity: 0.85; }

.lede {
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  line-height: 1.75;
  max-width: 44ch;
  color: var(--text-body);
}
.on-ink .lede { color: var(--text-light-muted); }

p { max-width: 68ch; }

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

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 3rem;
  padding: 0.85rem 1.9rem;
  border: 0; border-radius: 100px; cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: currentColor; flex: none;
  transition: transform 0.45s var(--ease);
}
.btn:hover .btn__dot { transform: scale(1.55); }

.btn--brick { background: var(--brick); color: #FFFFFF; }
.btn--brick:hover { background: var(--brick-deep); }
.btn--ink { background: var(--ink); color: #FFFFFF; }
.btn--ink:hover { background: var(--ink-2); }
.btn--line {
  background: transparent; color: var(--text-dark);
  box-shadow: inset 0 0 0 1px rgba(28, 21, 18, 0.28);
}
.btn--line:hover { background: var(--text-dark); color: var(--stone); }
.btn--onink {
  background: transparent; color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.btn--onink:hover { background: #FFFFFF; color: var(--ink); }

/* ---------------- nav ---------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  isolation: isolate;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: -1;
  height: 200%;
  background: linear-gradient(to bottom, rgba(15, 9, 8, 0.82) 0%, rgba(15, 9, 8, 0) 100%);
  transition: opacity 0.5s var(--ease);
}
.nav.is-solid::before { opacity: 0; }
.nav__inner {
  width: var(--wrap-wide); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand img { width: auto; height: 2.5rem; max-width: 3rem; object-fit: contain; }
.brand__name {
  display: grid;
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.94rem;
  letter-spacing: 0.17em; text-transform: uppercase;
  line-height: 1.15; color: #FFFFFF;
  transition: color 0.5s var(--ease);
}
.brand__name small {
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.3em; opacity: 0.72;
}
.nav__links { display: flex; align-items: center; gap: clamp(1.1rem, 2.1vw, 2rem); }
.nav__links a:not(.btn) {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  padding-block: 0.6rem;
  transition: color 0.4s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--gold); }
.nav__tel {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: #FFFFFF;
}

.nav.is-solid { background: var(--stone); box-shadow: 0 1px 0 rgba(28, 21, 18, 0.1), 0 12px 34px -22px rgba(23, 16, 15, 0.5); }
.nav.is-solid .brand__name { color: var(--text-dark); }
.nav.is-solid .nav__links a:not(.btn) { color: var(--text-body); }
.nav.is-solid .nav__links a:not(.btn):hover { color: var(--brick); }
.nav.is-solid .nav__tel { color: var(--text-dark); }

.burger {
  display: none;
  position: relative; z-index: 2;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 1.4rem; height: 2px; background: #FFFFFF;
  position: relative; transition: background 0.4s var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 1.4rem; height: 2px; background: inherit;
  transition: transform 0.4s var(--ease);
}
.burger span::before { top: -0.45rem; }
.burger span::after { top: 0.45rem; }
.nav.is-solid .burger span, .nav.is-solid .burger span::before, .nav.is-solid .burger span::after { background: var(--text-dark); }

/* Drawer owns its own stacking context and its close control lives inside it,
   so the control can never be painted over by the panel. */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: grid; align-content: center; justify-items: center;
  gap: 0.35rem;
  padding: 5rem 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.5rem); font-weight: 400;
  letter-spacing: -0.02em; color: #FFFFFF;
  padding-block: 0.4rem; min-height: 2.75rem;
}
.drawer a:hover { color: var(--gold); }
.drawer__tel {
  margin-top: 1.6rem;
  font-family: var(--font-body) !important;
  font-size: 1rem !important; font-weight: 700 !important;
  letter-spacing: 0.16em !important; text-transform: uppercase;
  color: var(--gold) !important;
}
.drawer__close {
  position: absolute; top: 1.1rem; right: 1.1rem; z-index: 3;
  width: 2.9rem; height: 2.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  color: #FFFFFF; font-size: 1.7rem; line-height: 1;
  font-family: var(--font-body);
  transition: color 0.35s var(--ease);
}
.drawer__close:hover { color: var(--gold); }

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

.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 34rem;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% center;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(15, 9, 8, 0.92) 0%, rgba(15, 9, 8, 0.74) 26%, rgba(15, 9, 8, 0) 56%),
    linear-gradient(to top, rgba(15, 9, 8, 0.78) 0%, rgba(15, 9, 8, 0) 42%);
}
.hero__body {
  position: relative; z-index: 2;
  width: var(--wrap-wide); margin-inline: auto;
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  padding-top: calc(var(--nav-h) + 2rem);
}
.hero h1 { color: #FFFFFF; margin-top: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__sub {
  margin-top: 1.6rem;
  max-width: 48ch;
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  color: var(--text-light-muted);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.3rem; }

/* ---------------- band shells ---------------- */

.band { padding-block: var(--pad-y); }
.band--stone { background: var(--stone); }
.band--paper { background: var(--paper); }
.band--ink { background: var(--ink); color: var(--text-light-muted); }
.band--brick { background: var(--brick); color: rgba(255, 255, 255, 0.88); }
.band--ink p, .band--brick p { color: inherit; }

.band__head { display: grid; gap: 1.15rem; }
.band__head .lede { margin-top: 0.35rem; }

/* ---------------- statement ---------------- */

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.statement__copy > * + * { margin-top: 1.35rem; }
.statement__copy h2 { margin-bottom: 0.5rem; }
.statement__figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.statement__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.statement__figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.6rem 1.4rem 1.15rem;
  background: linear-gradient(to top, rgba(15, 9, 8, 0.82), rgba(15, 9, 8, 0));
  font-size: 0.82rem; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.9);
}

/* ---------------- services as rows ---------------- */

.svc { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgba(28, 21, 18, 0.16); }
.svc__row {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) minmax(0, 17rem);
  gap: clamp(1.4rem, 3.2vw, 3rem);
  align-items: center;
  padding-block: clamp(1.5rem, 3vw, 2.3rem);
  border-bottom: 1px solid rgba(28, 21, 18, 0.16);
}
.svc__name { display: grid; gap: 0.5rem; align-content: start; }
.svc__row p { font-size: 0.99rem; max-width: 52ch; }
.svc__shot {
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(23, 16, 15, 0.16), 0 18px 34px -20px rgba(23, 16, 15, 0.45);
}
.svc__shot img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .svc__row:hover .svc__shot img { transform: scale(1.05); }
}

/* ---------------- materials ledger (signature band) ---------------- */

.band--materials { position: relative; overflow: hidden; }
.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.ledger__head > * + * { margin-top: 1.2rem; }
.ledger__list {
  margin-top: clamp(2rem, 4vw, 3rem);
  columns: 2; column-gap: clamp(1.5rem, 3vw, 2.6rem);
}
.ledger__list li {
  break-inside: avoid;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(254, 207, 22, 0.24);
  font-size: 0.97rem;
  color: var(--text-light);
  display: flex; align-items: baseline; gap: 0.7rem;
}
.ledger__list li::before {
  content: ""; flex: none;
  width: 0.42rem; height: 0.42rem; border-radius: 50%;
  background: var(--gold);
  transform: translateY(-0.15rem);
}
.ledger__figure {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 40px 70px -26px rgba(0, 0, 0, 0.7);
}
.ledger__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; }
.ledger__note {
  margin-top: 1.35rem;
  font-size: 0.9rem; color: var(--text-light-muted); max-width: 34ch;
}

/* ---------------- work gallery ---------------- */
/* Columns, not a fixed grid: their job photos come in three different shapes,
   so a masonry flow always fills instead of leaving a hole in the last row. */
.work {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  columns: 4;
  column-gap: clamp(0.75rem, 1.5vw, 1.2rem);
}
.work figure {
  break-inside: avoid;
  margin-bottom: clamp(0.75rem, 1.5vw, 1.2rem);
  border-radius: 10px; overflow: hidden; background: var(--stone-2);
}
.work img { width: 100%; height: auto; transition: transform 1.3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .work figure:hover img { transform: scale(1.05); }
}

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

.about { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.about__crew { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__crew img { width: 100%; aspect-ratio: 950 / 443; object-fit: cover; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.about__copy > * + * { margin-top: 1.3rem; }
.about__copy h2 { margin-bottom: 0.4rem; }
.about__badge {
  margin-top: 2rem;
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1.3rem;
  border-radius: 100px;
  background: rgba(182, 24, 23, 0.08);
  box-shadow: inset 0 0 0 1px rgba(182, 24, 23, 0.24);
  font-size: 0.83rem; font-weight: 500; color: var(--brick-deep);
}
.about__badge span {
  width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--brick); flex: none;
}
.about__family { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__family img { width: 100%; aspect-ratio: 555 / 659; object-fit: cover; }
.about__family figcaption {
  padding: 1rem 1.2rem;
  background: var(--stone);
  font-size: 0.85rem; color: var(--text-body);
}

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

.contact { display: grid; gap: clamp(1.6rem, 3vw, 2.2rem); justify-items: start; }
.contact h2.display { color: #FFFFFF; max-width: 17ch; }
.contact .lede { color: rgba(255, 255, 255, 0.93); }
.contact__rows { display: grid; gap: 1.05rem; }
.contact__row {
  display: inline-flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 400; letter-spacing: -0.02em;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  padding-bottom: 0.4rem;
  transition: border-color 0.4s var(--ease);
}
.contact__row small {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.contact__row:hover { border-color: #FFFFFF; }
.contact__hours { font-size: 0.92rem; color: rgba(255, 255, 255, 0.9); }

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

.foot { background: var(--ink); padding-block: clamp(3rem, 6vw, 4.5rem); }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.foot__brand { display: inline-flex; align-items: center; gap: 0.8rem; }
.foot__brand img { width: auto; height: 3rem; max-width: 3.5rem; object-fit: contain; }
.foot__brand span {
  display: grid;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.17em; text-transform: uppercase; line-height: 1.15; color: #FFFFFF;
}
.foot__brand small { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.3em; opacity: 0.7; }
.foot h4 {
  font-family: var(--font-body); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}
.foot p, .foot li, .foot a { font-size: 0.92rem; color: var(--text-light-muted); }
.foot li + li { margin-top: 0.35rem; }
.foot li a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem; padding-block: 0.3rem;
}
.foot a:hover { color: var(--gold); }
.foot__note { max-width: 34ch; margin-top: 1.2rem; }
.foot__base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.5);
}

/* ---------------- 404 ---------------- */

.err {
  min-height: 100vh; min-height: 100svh;
  background: var(--ink);
  display: grid; align-items: center;
  padding-block: calc(var(--nav-h) + 4rem) 5rem;
}
.err__code {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(6rem, 22vw, 15rem); line-height: 0.85;
  letter-spacing: -0.05em;
  color: rgba(254, 207, 22, 0.45);
}
.err h1.display { color: #FFFFFF; margin-top: 1rem; }
.err p { margin-top: 1.3rem; color: var(--text-light-muted); max-width: 46ch; }
.err .btn { margin-top: 2.2rem; }

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

html.js .rise { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rise { opacity: 1; transform: none; }
}

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

@media (max-width: 1080px) {
  .svc__row { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) minmax(0, 13rem); }
  .work { columns: 3; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: inline-flex; }
  .statement, .ledger, .about__grid, .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .ledger__figure { order: -1; }
  .ledger__figure img { aspect-ratio: 16 / 10; }
  .statement__figure img { aspect-ratio: 16 / 11; }
  .about__family { max-width: 26rem; }
}

@media (max-width: 760px) {
  .hero {
    height: auto; min-height: 100svh;
    padding-top: var(--nav-h);
    align-items: flex-end;
  }
  .hero__body { padding-top: clamp(9rem, 34vw, 14rem); }
  /* Narrow viewports cover-crop the hero photo, so re-centre on the subject
     and carry the scrim vertically, where the copy actually sits. */
  .hero__img { object-position: 44% center; }
  .hero__scrim {
    background:
      linear-gradient(to top, rgba(15, 9, 8, 0.95) 0%, rgba(15, 9, 8, 0.9) 42%, rgba(15, 9, 8, 0.55) 66%, rgba(15, 9, 8, 0.2) 100%);
  }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .svc__row { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .svc__shot { max-width: 22rem; }
  .ledger__list { columns: 1; }
  .work { columns: 2; }
  .contact__row { font-size: 1.2rem; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 0.8rem; letter-spacing: 0.13em; }
  .brand__name small { font-size: 0.55rem; letter-spacing: 0.24em; }
}
