/* ============================================
   L&K Contracting — Landing Page Styles
   Color palette pulled from logo:
     Dark forest green:  #1B2E2A  (primary)
     Orange accent:      #E67E22
     Off-white:          #F5F1E8
     White:              #FFFFFF
     Text muted:         #5C6B66
   ============================================ */

:root {
  --green: #1B2E2A;
  --green-light: #2A4640;
  --green-dark: #0F1C19;
  --orange: #E67E22;
  --orange-dark: #C46815;
  --offwhite: #F5F1E8;
  --white: #FFFFFF;
  --text-dark: #1B2E2A;
  --text-muted: #5C6B66;
  --shadow: 0 4px 16px rgba(27, 46, 42, 0.12);
  --shadow-lg: 0 10px 32px rgba(27, 46, 42, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; }

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

/* ============================================
   HERO
   ============================================ */
.hero {
  background:
    linear-gradient(rgba(15, 28, 25, 0.85), rgba(15, 28, 25, 0.95)),
    radial-gradient(ellipse at top, var(--green-light) 0%, var(--green) 50%, var(--green-dark) 100%);
  color: var(--white);
  padding: 48px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(230, 126, 34, 0.04) 35px, rgba(230, 126, 34, 0.04) 36px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero__logo {
  width: 240px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
  /* New logo is black on transparent — invert to white for dark hero bg */
  filter: invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.hero__title .amp { color: var(--orange); }

.hero__tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  margin-bottom: 32px;
  color: var(--offwhite);
  font-weight: 500;
  line-height: 1.5;
}

.hero__free {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--offwhite);
  opacity: 0.85;
}

/* ============================================
   CTA BUTTONS
   ============================================ */
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cta-buttons--center { justify-content: center; }

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 22px 48px;
  border-radius: 14px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow);
  min-width: 320px;
  text-transform: uppercase;
  line-height: 1.05;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover { background: var(--orange-dark); color: var(--white); }

.btn--secondary {
  background: var(--white);
  color: var(--green);
}
.btn--secondary:hover { background: var(--offwhite); color: var(--green); }

.btn__label {
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  opacity: 0.95;
}
.btn__number {
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-weight: 700;
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust {
  background: var(--orange);
  color: var(--white);
  padding: 20px 24px;
  border-bottom: 4px solid var(--green);
}
.trust__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trust__icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  color: var(--orange);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--green);
  text-align: center;
}
.section-title--light { color: var(--white); }

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 72px 0;
  background: var(--offwhite);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  padding: 28px 20px;
  border-radius: 12px;
  text-align: center;
  border-top: 4px solid var(--orange);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.service-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--green);
  letter-spacing: 0.02em;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: 72px 0;
  background: var(--white);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  padding: 0;
  background: var(--green);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery__item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__item::after {
  content: '🔍';
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(27, 46, 42, 0.7);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery__item:hover::after { opacity: 1; }

/* Fallback when image is missing */
.gallery__item img:not([src]),
.gallery__item img[src=""] { display: none; }
.gallery__item:has(img:not([src])) {
  background:
    linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
  padding: 72px 0;
  background: var(--offwhite);
}
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid var(--orange);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}
.why-card__icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.why-card__text h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.why-card__text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 72px 0;
  background:
    linear-gradient(rgba(27, 46, 42, 0.92), rgba(15, 28, 25, 0.95)),
    radial-gradient(circle at top right, var(--green-light), var(--green-dark));
  color: var(--white);
}
.about__inner {
  max-width: 800px;
}
.about__text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--offwhite);
}
.about__text p:last-child {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: var(--orange);
  text-align: center;
  margin-top: 24px;
  letter-spacing: 0.02em;
}

/* ============================================
   BIG CTA
   ============================================ */
.big-cta {
  padding: 72px 0;
  background: var(--orange);
  color: var(--white);
  text-align: center;
}
.big-cta h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.big-cta p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  opacity: 0.95;
}
.big-cta .btn--primary {
  background: var(--green);
  color: var(--white);
}
.big-cta .btn--primary:hover { background: var(--green-dark); color: var(--white); }
.big-cta .btn--secondary {
  background: var(--white);
  color: var(--green);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--green-dark);
  color: var(--offwhite);
  padding: 48px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.1);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer__logo {
  width: 110px;
  height: auto;
  /* Match the hero treatment: invert black-on-transparent to white for dark footer */
  filter: invert(1);
}
.footer__name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.footer__contact p,
.footer__hours p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.footer__contact a {
  color: var(--orange);
  font-weight: 500;
}
.footer__area {
  margin-top: 12px;
  font-size: 0.85rem;
  opacity: 0.7;
}
.footer__bottom {
  padding: 16px 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 25, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.lightbox__caption {
  color: var(--offwhite);
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--orange);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease;
}
.lightbox__close:hover { background: var(--orange-dark); }

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 900px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery__item--wide { grid-column: span 2; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 760px) {
  .why-us__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 32px 16px 48px; }
  .hero__logo { width: 180px; }
  .container { padding: 0 16px; }
  .services, .gallery, .about, .big-cta, .why-us { padding: 48px 0; }
  .btn { min-width: 100%; padding: 18px 20px; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery__item--wide { grid-column: span 1; }
  .trust__grid { grid-template-columns: 1fr; gap: 12px; }
  .trust__item { justify-content: flex-start; }
  .why-card { padding: 18px; gap: 14px; }
  .why-card__icon { font-size: 2rem; }
}
