/* Ellis Landscape Services – Static Site Stylesheet
   Pixel-accurate replica of ellisdfw.com (Astra + Beaver Builder)
   v2.0
   ============================================================ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3a3a3a;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2d6a2d; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: #2d6a2d; color: #fff;
  padding: 8px 16px; z-index: 9999; font-size: 14px;
}
.skip-link:focus { top: 0; }

/* ── Top bar ── */
.top-bar {
  background: #3a7d34;           /* dark green — matches live site */
  color: #fff;
  font-size: 13px;
  padding: 7px 24px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.top-bar a { color: #fff; font-weight: 600; }
.top-bar a:hover { text-decoration: underline; }

/* ── Site header ── */
.site-header {
  background: #faf7f2;           /* warm cream — Astra default */
  border-bottom: 1px solid #ede9e0;
  position: sticky;
  top: 0;
  z-index: 500;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-logo { flex-shrink: 0; }
.site-logo img { height: 80px; width: auto; }

/* ── Navigation ── */
.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: 0; align-items: center; flex-wrap: wrap; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  transition: color .15s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: #2d6a2d; text-decoration: none; }

/* Dropdown arrow indicator */
.main-nav > ul > li:has(> ul) > a::after {
  content: " ▾";
  font-size: 11px;
  opacity: .6;
}

/* Dropdown panel */
.main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 270px;
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
  border-top: 3px solid #2d6a2d;
  border-radius: 0 0 6px 6px;
  z-index: 600;
  flex-direction: column;
  gap: 0;
}
.main-nav ul ul li a {
  display: block;
  padding: 10px 20px;
  font-size: 13.5px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background .12s, color .12s;
}
.main-nav ul ul li:last-child a { border-bottom: none; }
.main-nav ul ul li a:hover { background: #f0f7f0; color: #2d6a2d; text-decoration: none; }
.main-nav li:hover > ul { display: flex; }

/* CTA button in header */
.header-cta { margin-left: auto; }
.btn-primary {
  background: #2d6a2d;
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s;
  text-decoration: none !important;
  display: inline-block;
}
.btn-primary:hover { background: #1e5c1e; text-decoration: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #2d6a2d;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
  color: #2d6a2d;
  margin-left: auto;
}

/* ── HOME HERO — photo background with dark overlay ── */
.home-hero {
  position: relative;
  /* background-image is set via inline style on element so filename is easy to change */
  background-color: #1a3a1a;          /* fallback if image missing */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: 0 24px;   /* match body .section side padding so content lines up with .container */
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.18) 100%);
  z-index: 0;
}
.home-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;   /* match body .container */
  margin: 0 auto;
  padding: 60px 24px;  /* match body .container side padding */
}
.home-hero-content > * { max-width: 600px; }   /* keep text column readable, left-aligned to container edge */
.home-hero h1 {
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}
.home-hero .tagline {
  font-style: italic;
  font-size: 18px;
  opacity: .9;
  margin-bottom: 16px;
}
.home-hero .hero-desc {
  font-size: 16px;
  opacity: .88;
  margin-bottom: 8px;
}
.home-hero .hero-sub {
  font-size: 16px;
  opacity: .85;
  margin-bottom: 32px;
}
.btn-hero {
  background: #2d6a2d;
  color: #fff !important;
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-block;
  transition: background .15s;
}
.btn-hero:hover { background: #1e5c1e; text-decoration: none !important; }

/* ── Interior PAGE HERO ── */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #1a3a1a 0%, #2d6a2d 100%);
  color: #fff;
  padding: 100px 0;
  text-align: left;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;   /* match body .container */
  margin: 0 auto;
  padding: 0 24px;     /* match body .container side padding */
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}
.page-hero h1,
.page-hero p {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.page-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.page-hero p { font-size: 17px; opacity: .9; max-width: 680px; margin: 0; }

/* ── Buttons ── */
.btn-outline {
  border: 2px solid #fff;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  transition: background .15s;
  text-decoration: none !important;
  display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,.15); text-decoration: none !important; }
.btn-white {
  background: #fff;
  color: #2d6a2d !important;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  transition: background .15s, color .15s;
  text-decoration: none !important;
  display: inline-block;
}
.btn-white:hover { background: #e8f5e9; text-decoration: none !important; }

/* ── Content wrappers ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 24px; }
.section-alt { background: #f7faf7; }
.section h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; color: #1e5c1e; margin: 32px 0 12px; }
.section h4 { font-size: 17px; font-weight: 700; color: #1a1a1a; margin: 20px 0 8px; }
.section p { margin-bottom: 16px; max-width: 780px; }
.section ul { margin: 12px 0 16px 24px; }
.section ul li { margin-bottom: 8px; }
.section strong { color: #1a1a1a; }

/* ── Homepage service image-card grid (matches live site) ── */
.service-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.service-img-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.service-img-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12); transform: translateY(-3px); }
.service-img-card a { display: block; text-decoration: none !important; }
.service-img-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.service-img-card-body { padding: 20px 22px 24px; }
.service-img-card-body h3 {
  font-size: 18px; font-weight: 700; color: #1a1a1a;
  margin: 0 0 10px; line-height: 1.3;
}
.service-img-card-body p { font-size: 14px; color: #555; margin: 0 0 14px; max-width: none; }
.service-img-card-body .card-cta {
  font-size: 13px; font-weight: 700; color: #2d6a2d;
}

/* ── Emoji service cards (interior pages) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.service-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.service-card h3 { margin-top: 0; }
.service-card .card-icon { font-size: 36px; margin-bottom: 12px; }
.service-card a.card-link {
  display: inline-block; margin-top: 16px;
  color: #2d6a2d; font-weight: 700; font-size: 14px;
}

/* ── Why choose us ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.trust-item { text-align: center; padding: 24px; }
.trust-item .icon { font-size: 40px; margin-bottom: 12px; }
.trust-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }
.trust-item p { font-size: 14px; max-width: none; }

/* ── Why Choose Ellis — bullet list style (homepage) ── */
.why-list { list-style: none; margin: 16px 0 0; padding: 0; }
.why-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid #e8f0e8;
  font-size: 15px;
}
.why-list li::before { content: '✓'; position: absolute; left: 0; color: #2d6a2d; font-weight: 900; }
.why-list li strong { color: #1a1a1a; }

/* ── Image + text split ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.split-img { margin: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.split-img img { width: 100%; height: 320px; object-fit: cover; display: block; }
.split-text > :first-child { margin-top: 0; }

/* ── Blockquote ── */
blockquote, .testimonial {
  background: #f0f7f0;
  border-left: 4px solid #2d6a2d;
  padding: 20px 28px;
  margin: 32px 0;
  font-style: italic;
  font-size: 17px;
  color: #333;
  border-radius: 0 6px 6px 0;
}

/* ── CTA strip ── */
.cta-strip {
  background: #2d6a2d;
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}
.cta-strip h2 { color: #fff; margin-bottom: 12px; }
.cta-strip p { margin-bottom: 24px; opacity: .9; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-phone {
  font-size: 30px; font-weight: 900; color: #fff !important;
  text-decoration: none !important; display: inline-block; margin-bottom: 16px;
}
.cta-phone:hover { text-decoration: underline !important; }
.cta-info { font-size: 14px; opacity: .85; margin-bottom: 24px; }

/* ── Service area cards ── */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.area-card {
  border: 1px solid #d0e8d0;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  color: #1e5c1e;
  background: #f9fdf9;
  transition: background .15s, transform .15s;
  font-size: 14px;
}
.area-card:hover { background: #e8f5e8; transform: translateY(-2px); text-decoration: none; }

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.gallery-grid img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: 6px; transition: transform .2s;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.blog-card { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .2s; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-body h3 { margin-top: 0; font-size: 17px; }
.blog-card-body h3 a { color: #1a1a1a; }
.blog-card-body h3 a:hover { color: #2d6a2d; }
.blog-meta { font-size: 13px; color: #888; margin-bottom: 10px; }

/* ── Contact form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { color: #1a1a1a; margin-top: 0; }
.contact-info p { margin-bottom: 12px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 10px 14px;
  border: 1px solid #ccc; border-radius: 4px;
  font-size: 15px; font-family: inherit;
  margin-bottom: 16px; color: #333;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: #2d6a2d; box-shadow: 0 0 0 3px rgba(45,106,45,.15);
}
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form button {
  background: #2d6a2d; color: #fff; border: none;
  padding: 12px 32px; font-size: 16px; font-weight: 700;
  border-radius: 4px; cursor: pointer; transition: background .15s;
}
.contact-form button:hover { background: #245724; }
.contact-form button:disabled { opacity: .6; cursor: default; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 4px; font-size: 15px; }
.form-status.success { background: #e8f5e9; border: 1px solid #2d6a2d; color: #1b4d1b; }
.form-status.error { background: #fdecea; border: 1px solid #c0392b; color: #922b21; }

/* ── Reviews ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; margin-top: 32px;
}
.review-card {
  background: #fff; border: 1px solid #e0e0e0;
  border-radius: 8px; padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.review-stars { color: #f4c430; font-size: 20px; margin-bottom: 8px; }
.review-text { font-style: italic; margin-bottom: 16px; color: #444; }
.review-author { font-weight: 700; color: #1a1a1a; font-size: 14px; }
.review-source { font-size: 12px; color: #888; }

/* ── FAQ ── */
.faq-list { margin-top: 24px; }
.faq-item { border-bottom: 1px solid #e0e0e0; padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { margin: 0 0 8px; color: #1a1a1a; }
.faq-item p { margin: 0; max-width: none; }

/* ── Footer ── */
.site-footer { background: #111; color: #ccc; padding: 56px 24px 24px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px; margin-bottom: 40px;
}
.footer-col h2 {
  color: #fff; font-size: 16px; font-weight: 700;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid #2d6a2d;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #b0b0b0; font-size: 14px; transition: color .12s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-col p { font-size: 14px; color: #b0b0b0; }
.footer-col .footer-credential { margin-top: 12px; font-size: 13px; color: #8fae8f; }
.founder-attribution { font-style: italic; color: #2d6a2d; font-weight: 600; margin: 4px 0 24px; }
.footer-col .footer-contact a { color: #b0b0b0; }
.footer-col .footer-contact a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid #333;
  text-align: center; font-size: 13px; color: #9a9a9a;
}

/* Accessibility: inline body links must be distinguishable by more than color */
#content p a, #content li a { text-decoration: underline; }
#content p a.btn-primary, #content p a.btn-white, #content p a.btn-outline,
#content li a.btn-primary, #content li a.btn-white, #content li a.btn-outline { text-decoration: none; }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mt-8 { margin-top: 48px; }
.mb-4 { margin-bottom: 24px; }
.green { color: #2d6a2d; }
.badge {
  display: inline-block; background: #e8f5e9; color: #1e5c1e;
  border: 1px solid #c8e6c9; padding: 4px 12px;
  border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.content-img { margin: 28px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.content-img img { width: 100%; height: 360px; object-fit: cover; object-position: center top; }
.content-img.portrait img { height: auto; max-height: none; object-fit: contain; }
.content-img figcaption { background: #f5f5f5; padding: 8px 16px; font-size: 13px; color: #666; font-style: italic; }

/* ── Magazine-style half-width body images ── */
.content-img.float-left,
.content-img.float-right { width: 46%; clear: both; margin: 6px 0 22px; }
.content-img.float-right { float: right; margin-left: 34px; }
.content-img.float-left  { float: left;  margin-right: 34px; }
.content-img.float-left img,
.content-img.float-right img { height: 300px; }
.section.container h2,
.section.container h3 { clear: both; }
.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; clear: both; }
.img-pair .content-img { margin: 0; }
.img-pair .content-img img { height: 300px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .content-img.float-left,
  .content-img.float-right { float: none; width: 100%; margin: 28px 0; }
  .content-img.float-left img,
  .content-img.float-right img { height: 340px; }
  .img-pair { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 12px 0; z-index: 600;
  }
  .main-nav.open ul { flex-direction: column; }
  .main-nav.open ul ul { position: static; box-shadow: none; border-top: none; padding-left: 20px; }
  .main-nav.open > ul > li > a { padding: 12px 20px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .home-hero-content { padding: 48px 24px; }
}
@media (max-width: 600px) {
  .top-bar { gap: 16px; font-size: 12px; justify-content: center; }
  .home-hero { min-height: 420px; }
  .home-hero h1 { font-size: 26px; }
  .page-hero { padding: 40px 0; }
  .page-hero-inner { padding: 0 20px; }
  .section { padding: 40px 20px; }
  .services-grid, .service-img-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
