/* ===== Luce Line Landscapes — brand tokens ===== */
:root {
  --green: #2f6b3f;
  --green-dark: #1c2b22;
  --green-light: #eaf1ec;
  --tan: #c8a97e;
  --ink: #1c2b22;
  --muted: #6b7d72;
  --paper: #fbfaf7;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(28,43,34,0.12);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
h3 { font-size: 19px; margin-bottom: 8px; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.section-intro { color: var(--muted); font-size: 15px; margin-bottom: 36px; max-width: 560px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: #275933; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251,250,247,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28,43,34,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.brand span { color: var(--green); }
.main-nav { display: flex; gap: 32px; }
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink); opacity: 0.8; }
.main-nav a:hover { opacity: 1; color: var(--green); }
.nav-cta { margin-left: 24px; }
.social-links { display: flex; gap: 14px; margin-left: 28px; }
.social-links a { color: var(--ink); opacity: 0.7; display: flex; }
.social-links a:hover { opacity: 1; color: var(--green); }
.footer-social { margin: 0; gap: 16px; }
.footer-social a { color: rgba(255,255,255,0.7); }
.footer-social a:hover { color: var(--white); opacity: 1; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, #24462c 0%, #2f6b3f 45%, #3d7d4c 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.06), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(0,0,0,0.15), transparent 45%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,30,23,0.55), rgba(20,30,23,0.2));
}
.hero-content { position: relative; z-index: 2; padding-top: 72px; max-width: 720px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero-sub { color: rgba(255,255,255,0.92); font-size: 18px; margin-bottom: 6px; }
.hero-service-area { color: rgba(255,255,255,0.7); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Services ===== */
.services { padding: 100px 0 90px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  /* 6 cards in a 4-col grid leaves the last 2 alone on row 2 — center that pair
     in the middle two columns so it lines up under the row above, same gap as row 1. */
  .service-card:nth-child(5) { grid-column: 2; }
  .service-card:nth-child(6) { grid-column: 3; }
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(28,43,34,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-photo {
  height: 170px;
  background: linear-gradient(135deg, var(--green-light), #d8e5db);
  background-size: cover;
  background-position: center;
}
.ph-drainage {
  background-color: var(--green-light);
  background-size: contain;
  background-repeat: no-repeat;
}
.service-card h3, .service-card p { padding-left: 20px; padding-right: 20px; }
.service-card h3 { margin-top: 18px; }
.service-card p { color: var(--muted); font-size: 14px; padding-bottom: 22px; }

/* ===== Before / After ===== */
.before-after { padding: 90px 0; background: var(--green-dark); }
.before-after h2, .before-after .section-label { color: var(--white); }
.before-after .section-label { color: #9fd4ab; }
.before-after .section-intro { color: rgba(255,255,255,0.65); }

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  background: #33443a;
}
.ba-after, .ba-before {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #3d5245, #263229);
  background-size: cover;
  background-position: center;
}
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}
.ba-slider { touch-action: none; }
.ba-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  touch-action: none;
  pointer-events: none;
}
.ba-tag {
  position: absolute; top: 14px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(0,0,0,0.55); color: var(--white);
  padding: 5px 10px; border-radius: 4px;
  pointer-events: none;
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }
.ba-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  font-size: 13px; color: var(--white);
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}

/* ===== Gallery ===== */
.gallery { padding: 90px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(28,43,34,0.08);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* ===== About ===== */
.about { padding: 100px 0; }
.about-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

/* Temporary "under construction" overlay for the About section — see HTML comment above this section */
.about-under-construction { position: relative; min-height: 320px; }
.about-hidden { visibility: hidden; }
.about-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.about-overlay-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 44px 32px;
  text-align: center;
  max-width: 420px;
}
.about-overlay-stripe {
  height: 10px;
  margin: 0 -44px 22px;
  background: repeating-linear-gradient(45deg, var(--green), var(--green) 14px, var(--tan) 14px, var(--tan) 28px);
}
.about-overlay-card .about-overlay-stripe:last-child { margin: 22px -44px 0; }
.about-overlay-icon { font-size: 38px; margin-bottom: 10px; }
.about-overlay-card h3 { font-size: 21px; margin-bottom: 8px; }
.about-overlay-card p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.about-list li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid rgba(28,43,34,0.08);
  position: relative;
  font-size: 15px;
  color: var(--ink);
}
.about-list li::before {
  content: "";
  position: absolute; left: 0; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}
.about-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-light), #d8e5db);
  box-shadow: var(--shadow);
}

/* ===== Contact ===== */
.contact { padding: 90px 0 110px; background: var(--green-light); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.contact-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 4px 16px rgba(28,43,34,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.contact-value { font-size: 18px; font-weight: 700; color: var(--ink); }

/* ===== Partner Logo Ticker ===== */
.partners { padding: 50px 0 60px; background: var(--paper); overflow: hidden; }
.logo-ticker {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.logo-ticker::before, .logo-ticker::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.logo-ticker::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.logo-ticker::after { right: 0; background: linear-gradient(to left, var(--paper), transparent); }
.logo-track {
  display: flex;
  align-items: center;
  gap: 90px;
  width: max-content;
  animation: logo-scroll 140s linear infinite;
}
.logo-item {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.logo-item:hover { opacity: 1; filter: grayscale(0%); }
@keyframes logo-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { color: var(--white); }
.footer-brand span { color: #9fd4ab; }
.footer-meta { font-size: 13px; text-align: right; }
.footer-meta div:first-child { margin-bottom: 2px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
}
@media (max-width: 720px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); padding: 20px 24px; gap: 18px; box-shadow: var(--shadow);
  }
  .site-header.nav-open .nav-cta {
    display: block; position: absolute; top: 230px; left: 24px; right: 24px; text-align: center;
  }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}
