/* ===== Mavr Construction — forest-green brand, mobile-first ===== */
:root {
  --green-950: #0d1f0c;
  --green-900: #16330f;
  --green-800: #1e451a;
  --green-700: #2d5a27;
  --green-500: #4e9c3a;
  --green-100: #e7f0e3;
  --amber: #e09f3e;
  --amber-dark: #c9882a;
  --cream: #f7f6f1;
  --ink: #1c241b;
  --ink-soft: #5b665a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 31, 12, 0.10);
  --shadow-lg: 0 16px 40px rgba(13, 31, 12, 0.18);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  padding-bottom: 68px; /* room for sticky mobile bar */
  overflow-x: hidden;
}

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

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; color: var(--green-900); text-transform: uppercase; letter-spacing: 0.5px; }
h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }

.section { padding: 72px 0; }
.section-eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--amber);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.section-sub { color: var(--ink-soft); max-width: 620px; margin: 10px 0 36px; }
.section-tint { background: var(--cream); }

.section-green { background: linear-gradient(165deg, var(--green-900) 0%, var(--green-950) 100%); }
.section-green h2, .section-green h3 { color: var(--white); }
.section-green p { color: #cfdcc9; }
.section-green .section-eyebrow { color: var(--amber); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; }

.btn-amber { background: var(--amber); color: var(--green-950); }
.btn-amber:hover { background: var(--amber-dark); }
.btn-green { background: var(--green-800); color: var(--white); }
.btn-green:hover { background: var(--green-700); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--white); border: 2px solid rgba(255,255,255,0.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--white); color: var(--green-900); }
.btn-lg { padding: 17px 30px; font-size: 1.06rem; }
.btn-sm { padding: 10px 18px; font-size: 0.95rem; }

/* ===== Topbar ===== */
.topbar {
  background: var(--green-950);
  color: #b9cbb2;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 12px;
  font-weight: 600;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 31, 12, 0.86);
  backdrop-filter: blur(10px);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { background: var(--green-950); box-shadow: 0 4px 18px rgba(0,0,0,0.35); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--white);
  letter-spacing: 1.5px;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.brand-text em { font-style: normal; font-weight: 600; font-size: 0.72rem; letter-spacing: 4.5px; color: var(--amber); }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 3px; background: var(--white); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-links {
  display: none;
  list-style: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--green-950);
  padding: 10px 20px 22px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}
.nav-links.open { display: block; }
.nav-links li { margin-top: 8px; }
.nav-links a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 600; display: block; padding: 9px 0; font-size: 1.05rem; }
.nav-links a:not(.btn):hover { color: var(--amber); }
.nav-cta { margin-top: 14px; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 4s ease-in-out;
  animation: heroZoom 22s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
.hero-slide.active { opacity: 1; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@media (prefers-reduced-motion: reduce) { .hero-slide { animation: none; } }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(178deg, rgba(13,31,12,0.82) 0%, rgba(13,31,12,0.55) 45%, rgba(13,31,12,0.88) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 72px; }
.hero-eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 12px;
}
.hero h1 { color: var(--white); text-shadow: 0 3px 18px rgba(0,0,0,0.45); }
.hero h1 span { color: var(--amber); }
.hero-sub { color: #e4ebe0; max-width: 540px; margin: 18px 0 30px; font-size: 1.12rem; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.hero-actions { display: flex; flex-direction: column; gap: 13px; align-items: flex-start; }
.hero-actions .btn { width: 100%; max-width: 380px; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero-chips li {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(13,31,12,0.35);
  backdrop-filter: blur(3px);
}
.hero-scroll { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1; }
.hero-scroll span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 12px;
  position: relative;
}
.hero-scroll span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--amber);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

/* ===== Stats ===== */
.stats { background: var(--green-950); padding: 34px 0; border-top: 3px solid var(--amber); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; color: var(--amber); display: block; line-height: 1; }
.stat-label { color: #b9cbb2; font-size: 0.86rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; display: block; margin-top: 6px; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-photo img { transform: scale(1.07); }
.service-body { padding: 20px 22px 24px; border-top: 3px solid var(--amber); }
.service-body p { color: var(--ink-soft); margin-top: 6px; font-size: 0.98rem; }

.services-more {
  margin-top: 34px;
  background: var(--green-100);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.services-more p { font-size: 1.05rem; }

/* ===== Marquee ===== */
.marquee { overflow: hidden; background: var(--green-950); padding: 14px 0; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track img { height: 150px; width: auto; border-radius: 8px; object-fit: cover; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.about-media img { border-radius: 18px; box-shadow: var(--shadow-lg); max-width: 420px; margin: 0 auto; }
.about-copy p { margin-top: 14px; }
.about-checks { list-style: none; margin-top: 22px; }
.about-checks li { position: relative; padding-left: 30px; margin-top: 10px; color: #e4ebe0; font-weight: 600; }
.about-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  transform: rotate(-45deg);
}

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--green-100);
  border: none;
  padding: 0;
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.hidden { display: none; }
.gallery-more { text-align: center; margin-top: 28px; }

/* ===== Why Us ===== */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 34px; }
.why-item {
  display: flex;
  gap: 17px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg { width: 26px; height: 26px; fill: var(--amber); }
.why-item p { color: var(--ink-soft); font-size: 0.97rem; margin-top: 4px; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--amber) 0%, #d9922f 100%);
  padding: 52px 0;
}
.cta-band h2 { color: var(--green-950); }
.cta-band p { color: #4a3a17; margin-top: 8px; font-weight: 500; }
.cta-band-inner { display: flex; flex-direction: column; gap: 24px; }
.cta-band-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band-actions .btn-amber { background: var(--green-950); color: var(--white); }
.cta-band-actions .btn-amber:hover { background: var(--green-800); }
.cta-band-actions .btn-ghost { border-color: var(--green-950); color: var(--green-950); background: transparent; }
.cta-band-actions .btn-ghost:hover { background: var(--green-950); color: var(--white); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.contact-list { list-style: none; margin-top: 24px; }
.contact-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--amber); font-weight: 700; }
.contact-list a, .contact-list span:not(.contact-label) { color: var(--white); text-decoration: none; font-size: 1.12rem; font-weight: 600; }
.contact-list a:hover { color: var(--amber); }
.contact-photo img { border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }

.social-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.social-links a:hover { background: rgba(224,159,62,0.25); border-color: var(--amber); }
.social-links svg { width: 20px; height: 20px; fill: var(--amber); }

/* ===== Footer ===== */
.site-footer { background: #0a170a; color: #8fa389; padding: 40px 0; text-align: center; font-size: 0.95rem; }
.footer-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.footer-name { color: var(--white); font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.footer-license { color: var(--amber); font-weight: 600; margin: 4px 0 8px; }
.site-footer a { color: #c3d2bd; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-copy { margin-top: 12px; font-size: 0.83rem; }

/* ===== Sticky mobile CTA bar ===== */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -3px 16px rgba(0,0,0,0.18);
}
.mobile-cta-bar .btn { flex: 1; padding: 13px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 15, 7, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; box-shadow: 0 12px 60px rgba(0,0,0,0.6); }
.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.lightbox-btn:hover { background: rgba(224,159,62,0.5); }
.lightbox-close { top: 14px; right: 14px; font-size: 1.9rem; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ===== Desktop ===== */
@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .mobile-cta-bar { display: none; }

  .section { padding: 96px 0; }

  .nav { height: 76px; }
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    align-items: center;
    gap: 4px;
  }
  .nav-links li { margin: 0; }
  .nav-links a:not(.btn) { padding: 8px 14px; font-size: 1rem; }
  .nav-cta { margin: 0 0 0 10px; }

  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-num { font-size: 3rem; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .services-more { flex-direction: row; align-items: center; justify-content: space-between; }

  .marquee-track img { height: 190px; }

  .about-grid { grid-template-columns: 5fr 7fr; gap: 60px; }

  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }

  .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-band-actions { flex-direction: row; }

  .contact-grid { grid-template-columns: 7fr 5fr; gap: 60px; }
}
