/* ==========================================================================
   Lucas Remodeling — spencerlucas.com
   Palette: navy #0d2137 · gold #c9a84c · light #f8f6f2 · text #1a1a1a
   Fonts:   Playfair Display (headings) · Inter (body)
   ========================================================================== */

:root {
  --navy: #0d2137;
  --navy-deep: #091827;
  --navy-soft: #16324e;
  --gold: #c9a84c;
  --gold-soft: #d9bd6e;
  --light: #f8f6f2;
  --ink: #1a1a1a;
  --white: #ffffff;
  --muted: #5b6470;
  --muted-on-dark: #aab6c4;
  --border: #e6e1d7;
  --shadow: 0 10px 30px rgba(13, 33, 55, 0.10);
  --shadow-lg: 0 18px 50px rgba(13, 33, 55, 0.18);
  --radius: 6px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --nav-height: 78px;
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

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

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}

.hidden-field { position: absolute; left: -9999px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--gold:hover {
  background: var(--gold-soft);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover {
  background: var(--navy-soft);
  box-shadow: var(--shadow);
}

.btn--lg { padding: 1rem 2.1rem; font-size: 1.02rem; }
.btn--block { display: block; width: 100%; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(13, 33, 55, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(9, 24, 39, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}

.nav__brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
  flex-shrink: 0;
}

.nav__brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.nav__brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--white);
  white-space: nowrap;
}

.nav__brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__links > a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s ease;
}

.nav__links > a:hover { color: var(--gold); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav__phone svg { width: 17px; height: 17px; color: var(--gold); }
.nav__phone:hover { color: var(--gold); }

.nav__mobile-cta { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 4rem) 0 5rem;
  background:
    radial-gradient(1100px 500px at 85% 10%, rgba(201, 168, 76, 0.14), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 55%, #060f1a 100%);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero__content { position: relative; max-width: 780px; }

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.6rem;
}

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  color: var(--white);
  margin-bottom: 1.4rem;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted-on-dark);
  max-width: 620px;
  margin-bottom: 2.2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.6rem;
}

.hero__area {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
}

.hero__area svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ---------- Stats bar ---------- */

.stats {
  background: var(--navy-deep);
  border-top: 1px solid rgba(201, 168, 76, 0.28);
  border-bottom: 3px solid var(--gold);
  padding: 2.6rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat { text-align: center; }

.stat__number {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* ---------- Sections (shared) ---------- */

.section { padding: 6rem 0; }

.section--light { background: var(--light); }

.section--dark {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.section--dark .section__title,
.section--dark h3 { color: var(--white); }

.section--dark p,
.section--dark .section__sub { color: var(--muted-on-dark); }

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 1rem;
}

.section__sub { color: var(--muted); }

/* ---------- Services ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}

.service {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: rgba(201, 168, 76, 0.14);
  color: var(--navy);
  margin-bottom: 1.3rem;
}

.service__icon svg { width: 30px; height: 30px; }

.service h3 { font-size: 1.28rem; margin-bottom: 0.6rem; }

.service p { font-size: 0.97rem; color: var(--muted); }

/* ---------- About ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 4.5rem;
  align-items: center;
}

.about__photo { position: relative; }

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  height: 100%;
  min-height: 460px;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(13, 33, 55, 0.03) 14px, rgba(13, 33, 55, 0.03) 28px),
    linear-gradient(160deg, #ece7dd, #ddd5c5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #8d8474;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photo-placeholder svg { width: 42px; height: 42px; opacity: 0.55; }

.about__badge {
  position: absolute;
  bottom: -1.4rem;
  right: -1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--gold);
  padding: 1.1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about__badge-number {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.about__badge-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.about__text .section__title { margin-bottom: 1.2rem; }

.about__text p { margin-bottom: 1.1rem; color: #3c4450; }

.about__points {
  list-style: none;
  margin: 1.4rem 0 2rem;
  display: grid;
  gap: 0.7rem;
}

.about__points li,
.contact__points li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-weight: 500;
}

.check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.75rem;
  font-weight: 700;
  transform: translateY(3px);
}

/* ---------- Process ---------- */

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.step {
  position: relative;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 2.4rem 1.7rem 2rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.step:hover {
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.step__number {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.step h3 { font-size: 1.22rem; margin-bottom: 0.6rem; }

.step p { font-size: 0.95rem; }

/* ---------- Gallery ---------- */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1.2rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery__item--tall { grid-row: span 2; }

.gallery__item .photo-placeholder { min-height: 100%; border: 0; border-radius: 0; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(9, 24, 39, 0.88));
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 2.2rem 1.1rem 0.9rem;
}

/* ---------- Testimonials ---------- */

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.testimonial {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}

.testimonial__stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.testimonial p {
  font-size: 0.98rem;
  color: #3c4450;
  margin-bottom: 1.4rem;
}

.testimonial footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
}

.testimonial footer span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Trust badges ---------- */

.trust {
  background: var(--gold);
  padding: 1.6rem 0;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.trust__item svg { width: 24px; height: 24px; flex-shrink: 0; }

/* ---------- Contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 4.5rem;
  align-items: start;
}

.contact__text .section__title { margin-bottom: 1.2rem; }
.contact__text > p { margin-bottom: 1.8rem; }

.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.8rem;
  transition: color 0.15s ease;
}

.contact__phone:hover { color: var(--gold-soft); }

.contact__phone svg { width: 28px; height: 28px; }

.contact__points {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.contact__points li { color: var(--muted-on-dark); }

.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  padding: 2.4rem 2.2rem;
  box-shadow: var(--shadow-lg);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form__group { margin-bottom: 1.1rem; }

.form__group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__group textarea { resize: vertical; min-height: 110px; }

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.22);
}

.form__group input::placeholder,
.form__group textarea::placeholder { color: #a09a8c; }

.form__note {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted) !important;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-deep);
  color: var(--muted-on-dark);
  padding-top: 4.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer__brand p {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer__social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--muted-on-dark);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.footer__social a:hover {
  color: var(--navy-deep);
  background: var(--gold);
  border-color: var(--gold);
}

.footer__social svg { width: 17px; height: 17px; }

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.94rem;
}

.footer__col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 1.4rem 0;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Reveal-on-scroll ---------- */

/* Hidden state applies only when JS is running (html.js), so the page
   is never blank if script.js fails to load. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service, .step { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about__photo { max-width: 520px; }
  .about__badge { right: 1rem; }
}

@media (max-width: 860px) {
  :root { --nav-height: 68px; }

  .nav__actions .nav__phone { display: none; }
  .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    border-bottom: 3px solid var(--gold);
    padding: 0.6rem 1.5rem 1.6rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav__links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__links > a {
    padding: 0.9rem 0.2rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__mobile-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    padding-top: 1.3rem;
  }

  .nav__mobile-cta .nav__phone { justify-content: center; font-size: 1.1rem; }

  .hero { min-height: 0; }

  .section { padding: 4.5rem 0; }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
}

@media (max-width: 560px) {
  .stats__grid { gap: 1.6rem 1rem; }
  .process__grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; gap: 1rem; }
  .trust__item { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .contact__form { padding: 1.8rem 1.4rem; }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery__item--tall { grid-row: span 1; }

  .hero__ctas .btn { flex: 1 1 100%; }

  .photo-placeholder { min-height: 340px; }
}
