/* Collier Landscaping & Irrigation — site styles */

:root {
  --green-900: #1f3d2c;
  --green-700: #2f6b48;
  --green-600: #3c7f56;
  --green-500: #5cae7d;
  --green-100: #e9f4ec;
  --cream: #faf8f3;
  --stone-900: #22221e;
  --stone-700: #4a483f;
  --stone-500: #746f61;
  --stone-200: #e6e1d4;
  --stone-100: #f2efe6;
  --white: #ffffff;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1200px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(34, 34, 30, 0.08);
  --shadow-lg: 0 12px 40px rgba(34, 34, 30, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--stone-900);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--stone-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 0.6em;
}

.section {
  padding: 72px 0;
}
.section--tight { padding: 48px 0; }
.section--alt { background: var(--stone-100); }
.section--green { background: var(--green-900); color: var(--white); }
.section--green h2, .section--green .eyebrow { color: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-600); color: var(--white); }
.btn-primary:hover { background: var(--green-700); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green-900); }
.btn-outline-dark { background: transparent; border-color: var(--stone-900); color: var(--stone-900); }
.btn-outline-dark:hover { background: var(--stone-900); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--stone-200);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--stone-900);
}
.brand img { height: 69px; width: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--stone-700);
  font-weight: 500;
  font-size: 0.98rem;
}
.main-nav a.active,
.main-nav a:hover { color: var(--green-700); }

.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.has-dropdown .caret { font-size: 0.7em; transition: transform 0.15s ease; }
.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: 100%;
  left: -10px;
  min-width: 260px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown-menu li a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.93rem;
  white-space: nowrap;
}
.dropdown-menu li a:hover { background: var(--green-100); color: var(--green-700); }

@media (max-width: 900px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    display: none;
    padding: 4px 0 4px 14px;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .has-dropdown.open .caret { transform: rotate(180deg); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  font-weight: 600;
  color: var(--stone-900);
  white-space: nowrap;
}
.header-phone svg { vertical-align: -3px; margin-right: 5px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--stone-900);
  margin: 6px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(31,61,44,0.72), rgba(31,61,44,0.55)), url("../images/portfolio-mission-hills-patio.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 120px 0 100px;
}
.hero .eyebrow { color: var(--green-100); }
.hero h1 { color: var(--white); max-width: 780px; }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 560px;
  color: var(--stone-100);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  background: var(--green-900);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero p { color: var(--green-100); max-width: 620px; margin: 0; }

/* Service cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--green-700);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Service detail rows */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--stone-200);
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse .service-row-media { order: 2; }
.service-row-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.service-row ul {
  padding-left: 1.1em;
  margin: 1em 0;
}
.service-row li { margin-bottom: 0.4em; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.testimonial .stars { color: var(--green-600); letter-spacing: 2px; margin-bottom: 10px; font-size: 0.95rem; }
.testimonial p.quote { font-style: italic; color: var(--stone-700); }
.testimonial .author { font-weight: 600; color: var(--stone-900); margin: 0; }

/* Portfolio gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1/1;
  background: var(--stone-200);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  color: var(--stone-100);
  font-size: 0.95rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* About */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--green-700);
  font-weight: 700;
}
.stat .label { color: var(--stone-500); font-size: 0.92rem; }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.contact-info-card .row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-info-card .row:last-child { margin-bottom: 0; }
.contact-info-card .row svg { flex-shrink: 0; color: var(--green-700); margin-top: 3px; }
.contact-info-card .row strong { display: block; color: var(--stone-900); }

.social-row { display: flex; gap: 12px; margin-top: 24px; }
.social-row a,
.site-footer .social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-700);
}
.social-row a:hover,
.site-footer .social-row a:hover { background: var(--green-700); color: var(--white); }

form.card { padding: 36px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--stone-900);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--stone-100);
  color: var(--stone-900);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--stone-500); margin-top: 14px; }

/* Footer */
.site-footer {
  background: var(--green-900);
  color: var(--stone-100);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1em; }
.site-footer a { color: var(--stone-100); }
.site-footer a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 108px; }
.footer-brand span { font-family: var(--font-heading); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(240, 240, 235, 0.65);
}

/* Project detail pages */
.project-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}
.project-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.project-tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--stone-200);
}
.project-nav a {
  font-weight: 600;
  color: var(--stone-900);
}
.project-nav a:hover { color: var(--green-700); }

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.project-gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .project-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Homepage services groups */
.services-group {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px 14px;
  box-shadow: var(--shadow);
}
.services-group .icon { margin-bottom: 16px; }
.services-group h3 { margin-bottom: 2px; }
.services-group .group-tag {
  display: block;
  color: var(--stone-500);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.services-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.services-group li { border-top: 1px solid var(--stone-200); }
.services-group li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 1px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--stone-900);
}
.services-group li a:hover { color: var(--green-700); }
.services-group li a .chevron {
  flex-shrink: 0;
  color: var(--stone-500);
  transition: transform 0.15s ease, color 0.15s ease;
}
.services-group li a:hover .chevron { transform: translateX(3px); color: var(--green-700); }

/* CTA band */
.cta-band {
  background: var(--green-700);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.2em; }
.cta-band p { color: var(--green-100); margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .testimonial-grid { grid-template-columns: 1fr; }
  .grid-2, .service-row, .service-row.reverse, .about-hero, .contact-wrap, .form-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-row.reverse .service-row-media { order: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero { padding: 90px 0 70px; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--stone-200);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
