/* ==========================================================================
   T-Rohn's Lawncare and Landscape — stylesheet
   ========================================================================== */

:root {
  --dark: #1b1b16;
  --dark-2: #24241d;
  --cream: #faf8f1;
  --cream-2: #f0ecdd;
  --sage: #93a86b;
  --sage-dark: #74875092;
  --sage-dark-solid: #748750;
  --navy: #202a5e;
  --blue: #00259c;
  --blue-light: #3a58c9;
  --blue-soft: #eaedf9;
  --text-dark: #2a2a24;
  --text-muted: #6b6a5f;
  --text-light: #f7f5ec;
  --text-light-muted: #cfcdbd;
  --border: #e4e0cf;
  --radius: 14px;
  --shadow: 0 20px 40px -20px rgba(20, 20, 10, 0.35);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--dark);
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--sage-dark-solid);
  margin-bottom: 1.1em;
  padding-bottom: .7em;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 3px;
  border-radius: 2px;
  background: var(--blue);
}
.eyebrow.center { display: block; }
.eyebrow.center::after { left: 50%; transform: translateX(-50%); }
.center { text-align: center; }
.section-sub {
  max-width: 620px;
  color: var(--text-muted);
  margin: -.4em auto 2.5em;
}
section h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sage-dark-solid); color: #fff; }
.btn-primary:hover { background: #61713f; }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 1em 2em; font-size: 1rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(27, 27, 22, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: transform .3s ease;
}
.site-header.nav-hidden {
  transform: translateY(-100%);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  max-width: none;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; justify-self: start; }
.brand-logo-horizontal { height: 48px; width: auto; display: block; }
.brand-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 7px;
}
.brand-text {
  font-family: 'Fraunces', serif;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-text em { display: block; font-style: normal; font-weight: 500; font-size: .78rem; color: var(--sage); letter-spacing: .04em; }

.main-nav { display: flex; gap: 1.8rem; justify-self: center; }
.main-nav a {
  color: var(--text-light-muted);
  font-size: .93rem;
  font-weight: 500;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; border-bottom-color: #fff; }

.header-actions { display: flex; align-items: center; gap: 1rem; justify-self: end; }
.phone-pill {
  display: flex; align-items: center; gap: .5em;
  color: var(--text-light);
  font-weight: 600;
  font-size: .93rem;
}
.phone-pill .icon { width: 18px; height: 18px; color: var(--blue-light); }
.header-actions .btn-primary { padding: .7em 1.3em; font-size: .88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-light);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,10,.55) 0%, rgba(15,15,10,.55) 40%, rgba(15,15,10,.85) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; text-align: center; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: .3em;
}
.hero-logo-heading { margin: 0 0 .8em; }
.hero-logo { display: block; margin: 0 auto; width: min(760px, 88vw); height: auto; }

/* Light hero variant: white-ish translucent panel over the photo, for use
   with the plain (dark-text) horizontal logo. Scoped to .hero-light so it
   doesn't affect the default dark hero used elsewhere. */
.hero-light .hero-overlay {
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(252,251,246,.82) 45%, rgba(248,246,238,.92) 100%);
}
.hero-light .hero-logo { filter: drop-shadow(0 4px 16px rgba(0,0,0,.12)); }
.hero-light .hero-sub { color: var(--text-muted); }
.hero-light .btn-outline { border-color: var(--text-dark); color: var(--text-dark); }
.hero-light .btn-outline:hover { background: rgba(0,0,0,.06); }
.hero-sub { max-width: 560px; margin-left: auto; margin-right: auto; font-size: 1.15rem; color: var(--text-light-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.6rem; }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar { background: var(--dark); color: var(--text-light); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.4rem 24px;
  max-width: 860px;
  margin: 0 auto;
}
.trust-item { display: flex; align-items: center; gap: .9rem; }
.trust-item svg { width: 34px; height: 34px; color: var(--blue-light); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { color: var(--text-light-muted); font-size: .85rem; }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 6rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-points { margin: 1.5rem 0; }
.about-points li {
  position: relative;
  padding-left: 1.7em;
  margin-bottom: .6em;
  color: var(--text-dark);
}
.about-points li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sage-dark-solid);
}

/* ==========================================================================
   Page banner (subpages)
   ========================================================================== */
.page-banner {
  background: var(--dark);
  color: var(--text-light);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.page-banner .eyebrow { color: var(--sage); }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .3em; }
.page-banner p { color: var(--text-light-muted); max-width: 600px; margin: 0 auto; }

/* ==========================================================================
   Services preview (home page)
   ========================================================================== */
.services-preview { padding: 6rem 0; background: var(--cream-2); }
.services-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 820px;
  margin: 0 auto 3rem;
}
.services-preview-col h3 {
  font-family: 'Work Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  color: var(--sage-dark-solid);
  margin-bottom: 1rem;
}
.services-preview-list li {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .7em 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-dark);
}
.services-preview-list li:last-child { border-bottom: none; }
.services-preview-list li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage-dark-solid);
  flex-shrink: 0;
}
.services-preview-actions { text-align: center; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--sage-dark-solid); color: #fff; padding: 4.5rem 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto 1.6rem; }
.cta-band .btn-primary { background: #fff; color: var(--sage-dark-solid); }
.cta-band .btn-primary:hover { background: var(--cream); transform: translateY(-2px); }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 6rem 0; background: var(--cream-2); }
.tabs {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 3rem;
}
.tab-btn {
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .95rem;
  padding: .8em 1.8em;
  border-radius: 999px;
  transition: all .2s ease;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--sage-dark-solid);
  border-color: var(--sage-dark-solid);
  color: #fff;
}
.tab-panel { display: none; animation: fadeIn .4s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to {opacity:1; transform:none;} }

.service-block + .service-block {
  margin-top: 5rem;
  padding-top: 5rem;
  border-top: 1px solid var(--border);
}
.service-block-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}
.service-block-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 40px; height: 3px;
  border-radius: 2px;
  background: var(--blue);
}

.service-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.service-media img { border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 110px; }
.service-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem;
}
.service-icon svg { width: 24px; height: 24px; color: var(--sage-dark-solid); }
.service-card h3 { font-size: 1.05rem; margin-bottom: .4em; }
.service-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ==========================================================================
   Before / After
   ========================================================================== */
.before-after { padding: 6rem 0; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
}
.ba-slider img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.ba-after, .ba-before { position: absolute; inset: 0; height: 100%; }
.ba-before { width: 50%; overflow: hidden; border-right: 2px solid #fff; }
.ba-before img { width: var(--ba-img-w, 100%); max-width: none; height: 100%; object-fit: cover; }
.ba-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
}
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  width: 44px; margin-left: -22px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.ba-handle::before {
  content: "";
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.ba-handle::after {
  content: "⇔";
  position: absolute;
  color: var(--dark);
  font-size: 1.1rem;
}
.ba-label {
  position: absolute; top: 14px;
  background: rgba(20,20,15,.65);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35em .8em;
  border-radius: 999px;
  pointer-events: none;
}
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { padding: 6rem 0; background: var(--cream-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  padding: 0; border: none; background: none;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.35));
  opacity: 0; transition: opacity .25s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* ==========================================================================
   Testimonial
   ========================================================================== */
.testimonial { background: var(--dark); color: var(--text-light); padding: 5.5rem 0; }
.testimonial-inner { max-width: 700px; text-align: center; }
.quote-mark { width: 44px; height: 34px; color: var(--sage); margin: 0 auto 1.2rem; }
.testimonial-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: #fff;
  line-height: 1.5;
}
.testimonial-name { color: var(--text-light-muted); font-size: .9rem; margin: 0; }

/* ==========================================================================
   Service area
   ========================================================================== */
.service-area { padding: 6rem 0; }
.area-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem;
  max-width: 780px; margin: 0 auto;
}
.area-pills span {
  background: #fff;
  border: 1px solid var(--border);
  padding: .7em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-dark);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 6rem 0; background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; }
.contact-detail { display: flex; align-items: center; gap: .8em; margin-bottom: 1em; }
.contact-detail svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }
.contact-detail a:hover { color: var(--sage-dark-solid); }
.contact-detail.hours-detail { align-items: flex-start; }
.contact-detail.hours-detail svg { margin-top: .15em; }
.hours-list { display: flex; flex-direction: column; gap: .3em; }
.social-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.2rem; }
.social-link {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 600;
  color: var(--navy);
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { color: var(--sage-dark-solid); }
.footer-brand .social-links { margin-top: 1rem; }
.footer-brand .social-link { color: var(--sage); }
.footer-brand .social-link:hover { color: #fff; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.contact-form label { font-size: .85rem; font-weight: 600; margin: .7em 0 .35em; color: var(--text-dark); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: .8em 1em;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--cream);
  transition: border-color .2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--sage-dark-solid);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form button { margin-top: 1.4rem; }
.form-note { text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: .9rem; }
.form-note a { font-weight: 600; color: var(--sage-dark-solid); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: var(--text-light-muted); padding-top: 4.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; object-fit: contain; padding: 7px; margin-bottom: 1rem; }
.footer-logo-stacked { width: 140px; height: auto; border-radius: 0; background: none; padding: 0; }
.footer-brand p { font-size: .9rem; }
.footer-col h4 { color: #fff; font-family: 'Work Sans', sans-serif; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 1.6rem 24px; text-align: center; font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; justify-content: center; gap: .6rem; margin-top: .5rem !important; }
.footer-legal a:hover { color: #fff; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal { padding: 4.5rem 0 5.5rem; }
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-updated { font-size: .88rem; color: var(--text-muted); margin-bottom: 2rem; }
.legal-body h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.legal-body h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.legal-body ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1em; }
.legal-body li { margin-bottom: .4em; }
.legal-body a { color: var(--sage-dark-solid); font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,8,.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 4vh 4vw;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none;
  color: #fff; font-size: 2.4rem; line-height: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .header-inner { display: flex; justify-content: space-between; gap: .6rem; padding: 10px 2px; }
  .brand-text em { display: none; }
  .brand-logo-horizontal { height: 34px; }
  .phone-pill span { white-space: nowrap; }
  .phone-pill { font-size: .85rem; }
  .about-grid, .service-layout, .contact-grid { grid-template-columns: 1fr; }
  .service-media img { position: static; }
  .ba-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-preview-grid { grid-template-columns: 1fr; gap: 2rem; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    justify-self: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    width: auto;
    background: var(--dark);
    padding: 1.5rem 24px;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }
}
@media (max-width: 640px) {
  .brand-logo-horizontal { height: 26px; }
  .service-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; max-width: 320px; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas { flex-direction: column; }
}
