/* ============================================================
   Blue Back Landscaping LLC – Design System
   Colors: Sky Blue #4BBDE8 | Light Blue-Grey #E6EEF3
           Dark Steel Blue #2D5F7A | White #FFFFFF
   WCAG 2.1 AA compliant
   ============================================================ */

/* ─── Custom Properties ─────────────────────────────────── */
:root {
  --sky:          #4BBDE8;
  --sky-dark:     #33A8D4;
  --light:        #E6EEF3;
  --dark:         #2D5F7A;
  --dark-deep:    #1E4157;
  --white:        #FFFFFF;
  --text:         #1A2E3B;
  --text-muted:   #4A6070;
  --border:       #C5D8E5;

  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.10);
  --shadow-md:  0 4px 14px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12);

  --r-sm:  4px;
  --r-md:  10px;
  --r-lg:  18px;

  --ease: 0.22s ease;
  --max: 1200px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── Accessibility Utilities ────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--dark);
  color: var(--white);
  padding: .75rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ─── Focus Styles ────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.2; font-weight: 800; color: var(--dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { font-size: 1rem; }

a { color: var(--dark); text-decoration: underline; transition: color var(--ease); }
a:hover { color: var(--sky-dark); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.9rem;
  font: 600 .95rem/1 var(--font);
  border-radius: var(--r-md);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  letter-spacing: .02em;
}
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

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

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border-color: var(--dark);
}
.btn-secondary:hover { background: var(--light); color: var(--dark); }

.btn-sky {
  background: var(--sky);
  color: var(--dark-deep);
  border-color: var(--sky);
  font-weight: 700;
}
.btn-sky:hover { background: var(--sky-dark); border-color: var(--sky-dark); color: var(--white); }

/* ─── Section Helpers ────────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.inner { max-width: var(--max); margin: 0 auto; }

.tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: .6rem;
}
.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.75;
  margin-top: .75rem;
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--light);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.nav-brand img { height: 48px; width: auto; }
.nav-brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.nav-list {
  display: flex;
  gap: .25rem;
}
.nav-list a {
  display: block;
  padding: .55rem 1rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background var(--ease), color var(--ease);
}
.nav-list a:hover { background: var(--light); color: var(--dark); }
.nav-list a[aria-current="page"] { color: var(--sky-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--dark);
  border-radius: var(--r-sm);
  padding: .35rem .55rem;
  cursor: pointer;
  color: var(--dark);
  font-size: 1.4rem;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   HERO CAROUSEL
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(30,65,87,.78) 0%,
    rgba(30,65,87,.45) 55%,
    rgba(30,65,87,.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.hero-content h1 {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
  margin-bottom: .5rem;
}
.hero-subtitle {
  color: var(--light);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
  max-width: 480px;
}

/* Prev / Next */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,.55);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-prev { left: 1.25rem; }
.hero-next { right: 1.25rem; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 2px solid rgba(255,255,255,.7);
  cursor: pointer;
  transition: all var(--ease);
  padding: 0;
}
.hero-dot.active,
.hero-dot:hover { background: var(--white); border-color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   HOME – INTRO
   ═══════════════════════════════════════════════════════════ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.intro-img {
  display: flex;
  justify-content: center;
  align-items: center;
}
.intro-img img {
  max-width: 380px;
  width: 100%;
  border-radius: var(--r-lg);
}

/* ═══════════════════════════════════════════════════════════
   HOME – ABOUT
   ═══════════════════════════════════════════════════════════ */
.about-home { background: var(--light); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-logo img { max-width: 360px; width: 100%; }

.stats-row {
  display: flex;
  gap: 1.25rem;
  margin: 1.75rem 0 2rem;
}
.stat-card {
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--r-md);
  border-left: 4px solid var(--sky);
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .2rem;
}

/* ═══════════════════════════════════════════════════════════
   HOME – WHY SECTION
   ═══════════════════════════════════════════════════════════ */
.why-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
  display: flex;
  align-items: center;
}
.why-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.why-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,65,87,.78);
}
.why-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.why-inner h2 { color: var(--white); }
.why-lead { color: var(--light); font-size: 1.1rem; max-width: 560px; margin: .75rem auto 3rem; }

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  color: var(--white);
  text-align: center;
}
.why-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.why-card p  { font-size: .95rem; line-height: 1.65; opacity: .9; }

/* ═══════════════════════════════════════════════════════════
   HOME – CONTACT STRIP
   ═══════════════════════════════════════════════════════════ */
.contact-strip { background: var(--dark-deep); }
.contact-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  padding: 1.25rem;
  border-right: 1px solid rgba(255,255,255,.12);
}
.contact-item:last-child { border-right: none; }

.contact-icon {
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .25rem;
}
.contact-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky);
}
.contact-value { color: var(--white); font-size: 1rem; }
.contact-value a {
  color: var(--white);
  text-decoration: none;
}
.contact-value a:hover { color: var(--sky); text-decoration: underline; }

.social-links {
  display: flex;
  gap: .75rem;
  justify-content: center;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: var(--white);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  transition: background var(--ease);
  border: 1px solid rgba(255,255,255,.25);
}
.social-link:hover { background: var(--sky); color: var(--white); border-color: var(--sky); }
.social-link svg { pointer-events: none; }

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (Services / Commercial / About)
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--dark);
  padding: 5rem 1.5rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .22;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero .lead { color: var(--light); max-width: 640px; }

/* ═══════════════════════════════════════════════════════════
   SERVICES PAGE
   ═══════════════════════════════════════════════════════════ */
.services-section { background: var(--light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.service-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.service-card-img-placeholder {
  width: 100%;
  height: 210px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--dark);
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.service-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--sky);
}
.service-card-desc {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   COMMERCIAL PAGE
   ═══════════════════════════════════════════════════════════ */
.commercial-intro {
  background: var(--light);
  padding: 5rem 1.5rem;
  text-align: center;
}
.commercial-intro .lead { margin: .75rem auto 2rem; }

.features-section { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  border-radius: var(--r-lg);
  border: 2px solid var(--light);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.feature-card:hover { border-color: var(--sky); box-shadow: var(--shadow-md); }

.feature-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--sky);
}
.feature-img-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 4px solid var(--sky);
  flex-shrink: 0;
}
.feature-card h3 { color: var(--dark); }
.feature-card p  { font-size: .95rem; color: var(--text-muted); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════ */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-story-img img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.values-section { background: var(--light); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  border-top: 4px solid var(--sky);
  box-shadow: var(--shadow-sm);
}
.value-card h3 { color: var(--dark); margin-bottom: .5rem; }
.value-card p  { font-size: .95rem; color: var(--text-muted); line-height: 1.7; }

/* ── Team Cards ──────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 2px solid var(--light);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.team-card:hover { border-color: var(--sky); box-shadow: var(--shadow-md); }

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--dark));
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  letter-spacing: .03em;
}

.team-name { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .3rem; }
.team-role { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* CTA Banner */
.cta-banner {
  background: var(--dark);
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p  { color: var(--light); font-size: 1.05rem; max-width: 540px; margin: 0 auto 2rem; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer { background: var(--dark-deep); color: var(--white); }

.footer-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand img  { height: 68px; margin-bottom: .75rem; }
.footer-brand-name { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: .35rem; }
.footer-tagline    { font-size: .88rem; color: rgba(255,255,255,.55); margin-bottom: 1.25rem; }

.footer-col-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1rem;
}

.footer-contact-list,
.footer-links-list { display: flex; flex-direction: column; gap: .55rem; }

.footer-contact-list li,
.footer-links-list  li { font-size: .92rem; color: rgba(255,255,255,.75); }

.footer-contact-list a,
.footer-links-list  a  {
  color: rgba(255,255,255,.75);
  text-decoration: none;
}
.footer-contact-list a:hover,
.footer-links-list  a:hover { color: var(--sky); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.4); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .hero-slide { transition: none !important; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-cards      { grid-template-columns: repeat(2, 1fr); }
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .values-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: .75rem;
    box-shadow: var(--shadow-md);
    border-top: 2px solid var(--light);
  }
  .nav-list.open { display: flex; }

  .intro-grid,
  .about-grid,
  .about-story-grid { grid-template-columns: 1fr; }

  .intro-img    { order: -1; }
  .about-logo   { order: -1; }

  .services-grid  { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: 1fr; }
  .why-cards      { grid-template-columns: 1fr; }
  .footer-main    { grid-template-columns: 1fr; gap: 2.5rem; }

  .contact-strip-inner {
    grid-template-columns: 1fr;
  }
  .contact-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding-bottom: 1.75rem;
  }
  .contact-item:last-child { border-bottom: none; }

  .hero { min-height: 460px; }
  .section { padding: 3.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .stats-row { flex-direction: column; }
  .hero { min-height: 380px; }
  .hero-content h1 { font-size: 2rem; }
}

/* ═══════════════════════════════════════════════════════════
   LEGAL PAGES (Privacy Policy / Accessibility / Terms)
   ═══════════════════════════════════════════════════════════ */
.prose {
  max-width: 800px;
  margin: 0 auto;
}
.prose h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--dark);
  margin-top: 2.5rem;
  margin-bottom: .6rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--border);
}
.prose h2:first-child { margin-top: 0; }
.prose p  { margin-bottom: 1rem; color: var(--text); }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: .4rem; color: var(--text); }
.prose a  { color: var(--dark); }
.prose strong { color: var(--dark); }
.prose .last-updated {
  display: inline-block;
  background: var(--light);
  color: var(--text-muted);
  font-size: .875rem;
  padding: .35rem .9rem;
  border-radius: var(--r-sm);
  margin-bottom: 2rem;
}
