/* ============================================================
   Renew Builders Ltd — sleek, minimal, premium-restrained
   ============================================================ */

:root {
  --ink: #191816;
  --ink-soft: #4c4842;
  --paper: #f7f5f0;      /* warm off-white base */
  --paper-deep: #efece4; /* visibly tinted section */
  --line: #dcd7cc;
  --bronze: #9a7448;
  --bronze-deep: #7e5c36;
  --bronze-light: #dcbc8e;
  --white: #ffffff;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;

  --container: 1160px;
  --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
h1 em, h2 em { font-style: italic; color: var(--bronze); }

h1 { font-size: clamp(3rem, 7.5vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }
.btn--lg { padding: 17px 34px; font-size: 0.9rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s ease;
}
/* Frosted background lives on a pseudo-element, NOT on .nav itself:
   backdrop-filter/filter/transform on .nav would make it the containing
   block for the position:fixed mobile menu inside it, which then clips to
   the header height and leaks its overflow (bottom links) onto the page. */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 245, 240, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav--scrolled { padding: 12px 0; }
.nav--scrolled::before {
  background: rgba(247, 245, 240, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.nav--scrolled .nav__brand { color: var(--ink); }
.nav__mark { width: 34px; height: 34px; }
.nav__wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav__wordmark small {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--white); }
.nav--scrolled .nav__links a { color: var(--ink-soft); }
.nav--scrolled .nav__links a:hover { color: var(--ink); }
.nav__cta { border-color: var(--paper); background: var(--paper); color: var(--ink); padding: 11px 20px; }
.nav__cta:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); color: var(--paper); }
.nav--scrolled .nav__cta { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.nav--scrolled .nav__cta:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); }
.nav__burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__media { background: #2b2824; }
.hero__media, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 12, 0.6);
}
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 90px 0 40px;
}
.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-top: 18px;
  color: rgba(255,255,255,0.95);
}
.hero__tagline em { font-style: italic; color: var(--bronze-light); }
.hero__sub {
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin: 22px 0 38px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- statement / stats ---------- */
.statement { padding: 130px 0 110px; }
.statement__text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 820px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 70px;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--bronze);
}
.stat__label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- section heads ---------- */
.section-head { margin-bottom: 60px; }
.section-head__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 16px;
}

/* ---------- work ---------- */
.work { padding: 40px 0 130px; }
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-deep); }
.work__item--tall { grid-row: span 2; }
.work__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.6s ease;
}
.work__item--tall img { aspect-ratio: auto; min-height: 100%; }
.work__item:hover img { transform: scale(1.03); }
.work__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 26px 22px;
  background: linear-gradient(to top, rgba(15,14,12,0.75), transparent);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.work__item figcaption span {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ---------- services ---------- */
.services { background: var(--paper-deep); padding: 130px 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  border-color: var(--bronze);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(25, 24, 22, 0.06);
}
.service-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--bronze);
  margin-bottom: 24px;
}
.service-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.service-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 26px; }
.service-card__link {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
}
.service-card:hover .service-card__link { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- why us ---------- */
.why { padding: 130px 0; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.why__item { padding: 40px 32px 8px 0; }
.why__item + .why__item { border-left: 1px solid var(--line); padding-left: 32px; }
.why__item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.why__item p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- about ---------- */
.about { padding: 130px 0; background: var(--paper-deep); }
.about__inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: center;
}
.about__media { background: var(--paper-deep); border-radius: var(--radius); }
.about__media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about__copy h2 { margin-bottom: 24px; }
.about__copy > p { color: var(--ink-soft); max-width: 460px; margin-bottom: 30px; }
.about__points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  max-width: 440px;
}
.about__points li {
  font-size: 0.9rem;
  font-weight: 500;
  padding-left: 22px;
  position: relative;
}
.about__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 1px;
  background: var(--bronze);
}

/* ---------- reviews ---------- */
.reviews { background: var(--paper-deep); padding: 130px 0; }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.review p {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink);
}
.review footer {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review footer span { font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- cta band ---------- */
.band { background: var(--ink); color: var(--paper); padding: 90px 0; }
.band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.band h2 em { color: var(--bronze-light); }
.band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- contact ---------- */
.contact { padding: 130px 0; }
.contact__inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: start;
}
.contact__copy h2 { margin-bottom: 20px; }
.contact__copy > p { color: var(--ink-soft); max-width: 380px; }
.contact__details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact__details a, .contact__details span {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}
.contact__details a:hover { color: var(--bronze-deep); }
.contact__details span { color: var(--ink-soft); font-weight: 400; }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234c4842' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  cursor: pointer;
}
.field select:invalid { color: #a39c8f; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(154, 116, 72, 0.14);
}
.field ::placeholder { color: #a39c8f; }
.contact__form .btn { align-self: flex-start; margin-top: 6px; }
.contact__status { font-size: 0.9rem; color: var(--bronze-deep); min-height: 1.4em; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer__brand { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.footer__meta a { color: var(--ink-soft); text-decoration: none; }
.footer__meta a:hover { color: var(--ink); }
.credit-link { color: var(--ink-soft); text-decoration: none; }
.credit-link:hover { color: var(--ink); }
.footer__legal { margin-left: auto; }
.footer__legal .credit-link { color: inherit; text-decoration: none; }
.footer__legal .credit-link:hover { color: var(--bronze-deep); text-decoration: underline; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .why__item, .why__item + .why__item { padding: 28px 0 20px; border-left: none; border-bottom: 1px solid var(--line); }
  .why__item:last-child { border-bottom: none; }
  .reviews__grid { grid-template-columns: 1fr; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
  }
  .nav__links.is-open {
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.35s ease, visibility 0s;
  }
  .nav__links a, .nav--scrolled .nav__links a {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.8rem;
    letter-spacing: 0;
  }
  .nav__cta { display: none; }
  .nav__burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
  }
  .nav__burger span {
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease, background 0.3s ease;
  }
  .nav--scrolled .nav__burger span, .nav__burger.is-open span { background: var(--ink); }
  .nav__burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero__content { padding-bottom: 72px; }
  .statement, .services, .about, .contact { padding: 90px 0; }
  .work { padding-bottom: 90px; }
  .work__grid { grid-template-columns: 1fr; }
  .work__item--tall { grid-row: auto; }
  .work__item--tall img { aspect-ratio: 4 / 3; }
  .band { padding: 70px 0; }
  .contact__form { padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 26px; margin-top: 50px; padding-top: 36px; }
  .reviews { padding: 90px 0; }
  .footer__legal { margin-left: 0; }
}
