/* ============================================================
   WEBBER LANDSCAPING — Design System
   Modern-Trustworthy | Green + Black/White
   ============================================================ */

:root {
  /* Brand Colors */
  --color-primary: #058249;
  --color-primary-dark: #046b3c;
  --color-primary-light: #e8f5ee;
  --color-secondary: #111111;
  --color-white: #ffffff;
  --color-black: #111111;

  /* Neutral Palette */
  --color-bg: #ffffff;
  --color-bg-alt: #f8faf9;
  --color-bg-dark: #111111;
  --color-text: #111111;
  --color-text-light: #555555;
  --color-text-muted: #888888;
  --color-text-on-dark: #ffffff;
  --color-border: #e2e2e2;
  --color-border-light: #f0f0f0;

  /* Status */
  --color-success: #058249;
  --color-error: #dc3545;

  /* Typography */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(2.2rem, 5vw, 3.5rem);
  --fs-h1: clamp(1.8rem, 4vw, 2.5rem);
  --fs-h2: clamp(1.4rem, 3vw, 1.875rem);
  --fs-h3: clamp(1.1rem, 2.5vw, 1.375rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.8125rem;
  --lh-heading: 1.25;
  --lh-body: 1.6;

  /* Spacing */
  --section-padding: clamp(2rem, 4vw, 3rem);
  --container-max: 1200px;
  --gap: 1.25rem;

  /* Design Tokens */
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --transition: 0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
a, button, input, select, textarea, [role="button"] { touch-action: manipulation; }

/* Skip Link */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--color-primary); color: #fff;
  padding: 0.75rem 1.5rem; z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--section-padding) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-bg-dark); color: var(--color-text-on-dark); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark .color-muted { color: #ccc; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--color-secondary);
}
h1 { font-size: var(--fs-h1); margin-bottom: 0.75rem; }
h2 { font-size: var(--fs-h2); margin-bottom: 0.5rem; }
h3 { font-size: var(--fs-h3); margin-bottom: 0.375rem; }
p { margin-bottom: 0.75rem; }
.lead { font-size: 1.125rem; color: var(--color-text-light); line-height: 1.7; }
.color-primary { color: var(--color-primary); }
.color-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

/* ============================================================
   TOP BAR (social + contact info)
   ============================================================ */
.top-bar {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  font-size: var(--fs-xs);
  padding: 0.5rem 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar a { color: var(--color-text-on-dark); }
.top-bar a:hover { color: var(--color-primary); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 1rem; }
.social-links { display: flex; gap: 0.5rem; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 48px;
}
.social-links svg { width: 20px; height: 20px; fill: currentColor; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a, .nav-dropdown > button {
  padding: 0.5rem 0.875rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  border: none; background: none; font-family: inherit;
  display: inline-flex; align-items: center; gap: 0.25rem;
  min-height: 48px;
}
.nav a:hover, .nav a.active, .nav-dropdown > button:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  z-index: 100;
  padding: 0.5rem 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: 0;
  min-height: 44px;
}
.nav-dropdown-menu a:hover { background: var(--color-bg-alt); }
.dropdown-arrow { font-size: 0.65em; transition: transform var(--transition); }
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

/* CTA in nav */
.nav-cta {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
  padding: 0.625rem 1.25rem !important;
}
.nav-cta:hover { background: var(--color-primary-dark) !important; }

/* Phone in header */
.header-phone {
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--fs-small);
  white-space: nowrap;
}
.header-phone:hover { color: var(--color-primary); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  transition: var(--transition);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle.active span { background: transparent; }
.menu-toggle.active span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: var(--fs-body);
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all var(--transition);
  min-height: 48px;
  text-align: center;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn-white:hover { background: #f0f0f0; color: var(--color-primary-dark); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--fs-small); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: var(--fs-hero); color: var(--color-white); max-width: 720px; }
.hero .lead { color: #ccc; max-width: 600px; margin-bottom: 1.25rem; }
.hero .btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: left; }
.hero-stat .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--color-primary); }
.hero-stat .stat-label { font-size: var(--fs-xs); color: #aaa; text-transform: uppercase; letter-spacing: 0.05em; }

/* Hero Contact Bar */
.hero-contact-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.hero-contact-bar .social-links a { color: #ccc; }
.hero-contact-bar .social-links a:hover { color: var(--color-primary); }
.hero-contact-bar a { color: #ccc; }
.hero-contact-bar a:hover { color: var(--color-primary); }
.hero-contact-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: var(--fs-small);
  flex-wrap: wrap;
}
.hero-contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  white-space: nowrap;
}
.hero-contact-info svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.hero-contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  color: #ccc;
}

/* Inner page hero (shorter) */
.hero-inner {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  text-align: center;
}
.hero-inner h1 { color: var(--color-white); margin: 0 auto 0.375rem; }
.hero-inner .lead { color: #ccc; max-width: 600px; margin: 0 auto; }
.breadcrumbs {
  font-size: var(--fs-xs);
  color: #999;
  margin-bottom: 0.5rem;
}
.breadcrumbs a { color: #ccc; }
.breadcrumbs a:hover { color: var(--color-primary); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-body { padding: 1.125rem; }
.card-img {
  aspect-ratio: 16/10;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card .card-body h3 { margin-bottom: 0.375rem; }
.service-card .card-body p { color: var(--color-text-light); font-size: var(--fs-small); margin-bottom: 0.625rem; }
.service-card .card-link {
  font-weight: 600; font-size: var(--fs-small);
  color: var(--color-primary);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.service-card .card-link:hover { gap: 0.6rem; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 0;
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  text-align: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--fs-small);
  white-space: nowrap;
}
.trust-item svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ============================================================
   TWO-COLUMN LAYOUTS
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.split-content { max-width: 540px; }
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
}
.testimonial-stars { color: #f59e0b; font-size: 1.125rem; margin-bottom: 0.5rem; }
.testimonial-text { font-style: italic; color: var(--color-text-light); margin-bottom: 0.5rem; }
.testimonial-author { font-weight: 700; font-size: var(--fs-small); }
.testimonial-meta { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0;
  background: none;
  border: none;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  min-height: 48px;
  gap: 1rem;
}
.faq-question:hover { color: var(--color-primary); }
.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding-bottom: 0.875rem;
  color: var(--color-text-light);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 0.75rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-small);
  margin-bottom: 0.375rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--fs-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
  background: var(--color-white);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(5, 130, 73, 0.15);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--color-primary);
  color: var(--color-white);
  padding: clamp(2rem, 4vw, 3rem) 0;
  text-align: center;
}
.cta-section h2 { color: var(--color-white); }
.cta-section p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg-dark);
  color: #ccc;
  padding: 2.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.footer h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: var(--fs-small); margin-bottom: 0.5rem; }
.footer-brand .logo img { height: 44px; margin-bottom: 0.75rem; filter: brightness(0) invert(1); }
.footer ul li { margin-bottom: 0; }
.footer a { color: #ccc; font-size: var(--fs-small); display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 1.5rem;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: #888;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--color-primary); }

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.img-placeholder {
  aspect-ratio: 16/9;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #9ca3af;
  border-radius: var(--radius);
}
.img-placeholder span {
  color: #6b7280;
  font-size: var(--fs-xs);
  text-align: center;
  padding: 1rem;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  cursor: pointer;
  transition: transform var(--transition);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   TABLES
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.data-table th {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
.data-table tr:hover { background: var(--color-bg-alt); }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-1 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1.25rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.75rem; }
.mb-3 { margin-bottom: 1.25rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.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;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-img { order: -1; }

  /* Mobile nav */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a, .nav-dropdown > button {
    width: 100%;
    padding: 0.875rem 1rem;
    justify-content: flex-start;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
  }
  .menu-toggle { display: flex; }
  .header-phone-desktop { display: none; }

  .hero-stats { gap: 1.5rem; }
  .hero-stat .stat-value { font-size: 1.35rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; width: 100%; }
  .btn-group .btn { width: 100%; }
  .top-bar-left { display: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@page { margin: 0; }
@media print {
  body { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .header, .footer, .top-bar, .cta-section { display: none; }
}
