/* KB Landscaping LLC — mobile-first stylesheet */

:root {
  --green-deep: #1f3d24;
  --green: #2f5d34;
  --green-light: #eef4e8;
  --terracotta: #d3703b;
  --terracotta-dark: #b25a2b;
  --cream: #fbf8f1;
  --ink: #22281f;
  --gray: #5c6456;
  --border: #e2ddcd;
  --radius: 12px;
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: var(--green-deep); }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 4rem 1.25rem; }
.eyebrow { font-family: var(--font-head); color: var(--terracotta); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; margin: 0 0 0.55rem; }
.section-lead { max-width: 640px; color: var(--gray); font-size: 1.05rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.contact .btn-outline, .about .btn-outline { border-color: var(--green-deep); color: var(--green-deep); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.header-inner { max-width: 1160px; margin: 0 auto; padding: 0.65rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.logo span { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--green-deep); }

.main-nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 8px 12px rgba(0,0,0,0.06); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.main-nav.open { max-height: 320px; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 1rem 1.25rem; border-top: 1px solid var(--border); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.main-nav a:hover { color: var(--terracotta); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.phone-pill { display: none; background: var(--green); color: #fff; text-decoration: none; padding: 0.55rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.menu-toggle { width: 44px; height: 44px; background: none; border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--green-deep); transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 84vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,61,36,0.55) 0%, rgba(20,38,22,0.82) 65%, rgba(15,28,16,0.94) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 6rem 1.25rem 3rem; color: #fff; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 5.5vw, 3rem); margin-bottom: 0.7rem; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.trust-badge { margin-top: 1.6rem; font-weight: 700; color: #d9f0c8; }

/* Services */
.services { background: var(--green-light); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.service-icon { width: 44px; height: 44px; color: var(--terracotta); margin-bottom: 1rem; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--gray); margin: 0; font-size: 0.95rem; }

/* Work / gallery */
.work { background: var(--cream); }
.kb-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2.5rem; }
.kb-gallery-thumb { padding: 0; border: none; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: none; aspect-ratio: 4 / 3; }
.kb-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.kb-gallery-thumb:hover img { transform: scale(1.05); }

.lb-overlay { position: fixed; inset: 0; background: rgba(10,15,10,0.92); z-index: 100; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 1.5rem; }
.lb-image { max-width: 90vw; max-height: 72vh; object-fit: contain; border-radius: 8px; }
.lb-caption { color: rgba(255,255,255,0.85); margin-top: 1rem; font-size: 0.9rem; text-align: center; }
.lb-close { position: absolute; top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.2rem; cursor: pointer; }
.lb-nav { width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.3rem; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 0.75rem; }
.lb-next { right: 0.75rem; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,0.3); }

/* About */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li { padding-left: 1.7rem; position: relative; font-weight: 600; color: var(--green-deep); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--terracotta); font-weight: 800; }
.service-area-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* Contact */
.contact { background: var(--green-light); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.contact-list a { color: var(--terracotta-dark); text-decoration: none; font-weight: 700; }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.8); }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 2.5rem 1.25rem; text-align: center; }
.footer-name { font-family: var(--font-head); color: #fff; font-size: 1.15rem; margin: 0 0 0.5rem; }
.footer-inner a { color: #fff; text-decoration: none; }
.footer-copy { font-size: 0.85rem; margin-top: 0.75rem; opacity: 0.7; }

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .main-nav { position: static; flex-direction: row; max-height: none; overflow: visible; background: transparent; box-shadow: none; }
  .main-nav a { color: var(--ink); border-top: none; padding: 0.5rem 0.9rem; min-height: auto; }
  .phone-pill { display: inline-flex; }
  .about-grid { grid-template-columns: 1.1fr 1fr; }
  .contact-grid { grid-template-columns: 1.1fr 1fr; align-items: center; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
