/* ==========================================================
   Loucks Construction & Land Services LLC
   ========================================================== */

:root {
  --navy: #152a42;
  --navy-deep: #0f2033;
  --amber: #e08a2e;
  --amber-dark: #c97620;
  --bg: #f7f5f1;
  --white: #ffffff;
  --ink: #2b3644;
  --muted: #5d6a7a;
  --line: #e4dfd6;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(15, 32, 51, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 32, 51, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

section { scroll-margin-top: 110px; }

h1, h2, h3 { line-height: 1.15; color: var(--navy); }

.section { padding: 72px 0; }
.section-alt { background: var(--white); }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 10px;
}

.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-lead { max-width: 640px; color: var(--muted); margin-bottom: 40px; font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 0;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.85); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn svg { flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 76px; width: auto; display: block; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-text { line-height: 1.1; }
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.brand-sub {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
}
.main-nav a:hover { color: var(--amber-dark); }
.header-cta { display: inline-flex; padding: 11px 20px; font-size: 15px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(13, 27, 44, 0.82) 0%, rgba(13, 27, 44, 0.45) 55%, rgba(13, 27, 44, 0.12) 100%),
    url("images/blueprint-hero.jpg") center / cover no-repeat;
}
.hero-inner { padding: 90px 0; max-width: 720px; }
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 21px);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy); color: #fff; }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15.5px;
  text-align: center;
}
.trust-item svg { color: var(--amber); flex-shrink: 0; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.service-card svg { color: var(--amber-dark); margin-bottom: 14px; }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.service-card p { font-size: 15px; color: var(--muted); }

/* ---------- Before / After ---------- */
.pair { margin-bottom: 56px; }
.pair:last-child { margin-bottom: 0; }
.pair-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pair-images figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pair-images img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.tag-before { background: rgba(15, 32, 51, 0.82); }
.tag-after { background: var(--amber); }
.pair-caption { margin-top: 14px; }
.pair-caption h3 { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.pair-caption p { color: var(--muted); font-size: 16px; max-width: 760px; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.why-list { list-style: none; display: grid; gap: 22px; margin-top: 8px; }
.why-list li { display: flex; gap: 16px; }
.why-list svg { color: var(--amber-dark); flex-shrink: 0; margin-top: 3px; }
.why-list h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 2px; }
.why-list p { color: var(--muted); font-size: 15.5px; }
.why-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why-photo img { width: 100%; height: 520px; object-fit: cover; }

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.work-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.work-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.work-grid figure:hover img { transform: scale(1.04); }
.center { text-align: center; }

/* ---------- Gallery page ---------- */
.page-hero {
  background: linear-gradient(100deg, rgba(13, 27, 44, 0.92), rgba(13, 27, 44, 0.65)),
    url("images/pavers-driveway.jpg") center 55% / cover no-repeat;
  padding: 90px 0 70px;
}
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, 0.9); font-size: 19px; max-width: 620px; }
.gallery-section { padding: 56px 0 8px; }
.gallery-section h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}
.gallery-section > .container > p { color: var(--muted); margin-bottom: 26px; max-width: 720px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  position: relative;
  background: var(--navy);
}
.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); opacity: 0.92; }
.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(15, 32, 51, 0.85));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 33, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 4vh 4vw;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; }
.contact .section-title, .contact h3 { color: #fff; }
.contact .kicker { color: var(--amber); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-lead { color: rgba(255, 255, 255, 0.85); font-size: 18px; margin-bottom: 30px; }
.contact-methods { display: grid; gap: 14px; margin-bottom: 34px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s ease;
}
.contact-method:hover { background: rgba(255, 255, 255, 0.13); }
.contact-method svg { color: var(--amber); flex-shrink: 0; }
.contact-method .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.65); font-weight: 700; }
.contact-method .value { font-size: 19px; font-weight: 700; }
.service-area { color: rgba(255, 255, 255, 0.8); font-size: 15.5px; }
.license-chip {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Estimate form ---------- */
.estimate-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-lg);
}
.estimate-form h3 { color: var(--navy); font-size: 22px; margin-bottom: 4px; }
.estimate-form > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}
.estimate-form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 30px 0;
  font-size: 14.5px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-photo img { height: 380px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav .header-cta { margin-top: 14px; border-bottom: 0; width: auto; }
  .nav-toggle { display: block; }
  .brand-logo { height: 54px; }
  .header-inner { height: 80px; }
  .pair-images { grid-template-columns: 1fr; }
  .pair-images img { height: 260px; }
  .hero { min-height: 540px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 10px; }
}

@media (max-width: 520px) {
  .work-grid, .gallery-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { font-size: 13.5px; justify-content: flex-start; text-align: left; }
}
