/*
 * WL Remodel marketing site — wlremodel.com
 * Palette sampled directly from the company signage.
 */
:root {
  --orange: #e56212;
  --orange-dark: #c4540c;
  --navy: #1e2a38;
  --navy-deep: #0d1c2a;
  --ink: #1e2a38;
  --text: #424c59;
  --muted: #8a93a0;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --border: #e2e6ea;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(13, 28, 42, 0.35);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.4em;
  font-weight: 800;
}
a {
  color: var(--orange-dark);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--orange);
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
  cursor: pointer;
}
.btn:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}
.btn:active {
  transform: translateY(1px);
}
.btn-lg {
  padding: 15px 28px;
  font-size: 17px;
}
.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px);
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 20px;
}
.brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
}
.nav a {
  color: #e7eaee;
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover {
  color: #fff;
}
.nav .btn {
  color: #fff;
}
@media (max-width: 680px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* Hero */
.hero {
  background:
    linear-gradient(rgba(13, 28, 42, 0.82), rgba(13, 28, 42, 0.92)),
    url('/brand/sign.jpeg') center / cover no-repeat;
  color: #fff;
  padding: clamp(60px, 12vw, 120px) clamp(16px, 4vw, 40px);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 14px;
  color: var(--orange);
  margin: 0 0 12px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 900;
  margin: 0 0 18px;
}
.hero h1 .accent {
  color: var(--orange);
}
.lede {
  max-width: 620px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: #d6dbe1;
  margin: 0 0 32px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Pillars */
.pillars {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}
.pillar {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.pillar-icon {
  font-size: 34px;
  margin-bottom: 10px;
}
.pillar h3 {
  font-size: 21px;
}

/* Why */
.why {
  background: var(--navy);
  color: #fff;
  padding: clamp(48px, 8vw, 84px) clamp(16px, 4vw, 40px);
}
.why-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.why h2 {
  color: #fff;
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 28px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
@media (max-width: 680px) {
  .checks {
    grid-template-columns: 1fr;
  }
}
.checks li {
  position: relative;
  padding-left: 34px;
  color: #d6dbe1;
  font-size: 17px;
}
.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

/* Gallery */
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 84px) clamp(16px, 4vw, 40px);
}
.gallery-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.gallery-sub {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
.gallery-note {
  text-align: center;
  color: var(--muted);
  padding: 24px 0;
}
.project-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--orange);
}
.project-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
}
.project-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(13, 28, 42, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.project-body {
  padding: 18px 20px 22px;
}
.project-body h3 {
  font-size: 19px;
  margin: 0 0 4px;
}
.project-meta {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.project-desc {
  color: var(--text);
  font-size: 15px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 28, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
/* The `hidden` attribute must win over the display:flex above — otherwise the
   full-screen overlay shows even when closed (a blank dialog that won't go away). */
.lightbox[hidden] {
  display: none !important;
}
.lb-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-figure img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
}
.lb-caption {
  color: #e7ebef;
  margin-top: 14px;
  font-size: 15px;
  text-align: center;
}
.lb-close,
.lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.lb-close:hover,
.lb-nav:hover {
  background: var(--orange);
}
.lb-close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 34px;
  line-height: 1;
}
.lb-prev {
  left: 16px;
}
.lb-next {
  right: 16px;
}
@media (max-width: 560px) {
  .lb-nav {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }
}

/* Contact */
.contact {
  padding: clamp(48px, 8vw, 84px) clamp(16px, 4vw, 40px);
}
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact h2 {
  font-size: clamp(26px, 4vw, 38px);
}
.lead-form {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  text-align: left;
}
.lead-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .lead-form .row {
    grid-template-columns: 1fr;
  }
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--bg-soft);
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--orange);
  border-color: transparent;
  background: #fff;
}
.lead-form .btn {
  width: 100%;
}
.form-note {
  text-align: center;
  font-weight: 600;
  margin: 4px 0 0;
  min-height: 1.2em;
}
.form-note.ok {
  color: var(--orange-dark);
}
.contact-direct {
  margin-top: 24px;
}
.contact-direct .phone {
  display: inline-block;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 1px;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #cdd3da;
  text-align: center;
  padding: 40px 20px;
}
.foot-brand {
  justify-content: center;
  margin-bottom: 10px;
  font-size: 18px;
}
.site-footer p {
  margin: 4px 0;
}
.site-footer .muted {
  color: #8c97a4;
  font-size: 14px;
}
.site-footer .muted a {
  color: #cdd3da;
}
.site-footer .small {
  font-size: 12px;
  margin-top: 12px;
}
