/* ============================================
   BONILLA LANDSCAPING — Custom Styles
   Palette: Teal (#0d4f4f / #1a6b6b / #2d8a7a)
            Slate Grey (#2c3e50 / #4a5f7a / #6b8299 / #e8edf2)
   Fonts: Playfair Display (serif headings), Raleway (sans body)
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  color: #2c3e50;
  background-color: #f8faf9;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color 0.25s ease; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
  color: #1a2f3f;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #1a6b6b;
  color: #ffffff;
  border-color: #1a6b6b;
}
.btn-primary:hover {
  background: #0d4f4f;
  border-color: #0d4f4f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 79, 79, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: #ffffff;
  color: #1a2f3f;
  border-color: #ffffff;
}

.btn-full { width: 100%; justify-content: center; }

/* ---------- Section Headings ---------- */
.section-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2d8a7a;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #1a2f3f;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #4a5f7a;
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-subtitle { margin: 0 auto; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 47, 63, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease;
}
.navbar.scrolled {
  background: rgba(26, 47, 63, 0.97);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}
.nav-logo-icon { color: #4db89a; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}
.nav-menu a:hover { color: #ffffff; }

.nav-cta {
  background: #2d8a7a;
  color: #ffffff !important;
  padding: 9px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.25s ease, transform 0.25s ease !important;
}
.nav-cta:hover {
  background: #1a6b6b !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(13, 40, 40, 0.82) 0%,
    rgba(26, 63, 63, 0.72) 50%,
    rgba(13, 40, 40, 0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  text-align: center;
}
.hero-inner { max-width: 820px; }

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4db89a;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.15;
}
.hero-title em {
  font-style: italic;
  color: #7ec8b4;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Services ---------- */
.services {
  padding: 100px 0;
  background: #f8faf9;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 40px 32px;
  border: 1px solid rgba(45, 138, 122, 0.1);
  transition: all 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(13, 79, 79, 0.1);
  border-color: rgba(45, 138, 122, 0.25);
}
.service-icon {
  color: #2d8a7a;
  margin-bottom: 20px;
}
.service-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #1a2f3f;
}
.service-desc {
  font-size: 0.95rem;
  color: #4a5f7a;
  line-height: 1.75;
}

/* ---------- About ---------- */
.about {
  padding: 100px 0;
  background: #ffffff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-main {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13, 79, 79, 0.12);
}
.about-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image-accent {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 55%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(13, 79, 79, 0.15);
  border: 4px solid #ffffff;
}
.about-image-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  top: -24px;
  left: -24px;
  background: #1a6b6b;
  color: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(13, 79, 79, 0.3);
}
.about-badge-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.about-badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.about-content .section-title { margin-bottom: 24px; }

.about-text {
  font-size: 1rem;
  color: #4a5f7a;
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 32px 0;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #2c3e50;
}
.about-feature svg {
  color: #2d8a7a;
  flex-shrink: 0;
}

/* ---------- Gallery ---------- */
.gallery {
  padding: 100px 0;
  background: #f0f4f2;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 100px 0;
  background: #1a2f3f;
}
.testimonials .section-eyebrow { color: #4db89a; }
.testimonials .section-title { color: #ffffff; }
.testimonials .section-header { margin-bottom: 60px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 36px 32px;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #d4a84b;
  margin-bottom: 20px;
}
.testimonial-text {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  font-size: 0.88rem;
  font-weight: 600;
  color: #7ec8b4;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 40, 40, 0.88) 0%, rgba(26, 63, 63, 0.80) 100%);
}
.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}
.cta-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #ffffff;
  margin-bottom: 20px;
}
.cta-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0;
  background: #f8faf9;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-desc {
  font-size: 1rem;
  color: #4a5f7a;
  margin-bottom: 36px;
  line-height: 1.8;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}
.contact-detail {
  display: flex;
  gap: 16px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: #e8f0ee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d8a7a;
  flex-shrink: 0;
}
.contact-detail strong {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a2f3f;
  margin-bottom: 4px;
}
.contact-detail p {
  font-size: 0.95rem;
  color: #4a5f7a;
  line-height: 1.6;
}
.contact-detail a {
  color: #1a6b6b;
  font-weight: 500;
}
.contact-detail a:hover { color: #0d4f4f; text-decoration: underline; }

.contact-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(13, 79, 79, 0.08);
}

/* Contact Form */
.contact-form-wrap {
  background: #ffffff;
  border-radius: 12px;
  padding: 44px 40px;
  box-shadow: 0 8px 32px rgba(13, 79, 79, 0.08);
  border: 1px solid rgba(45, 138, 122, 0.1);
}
.contact-form-title {
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: #1a2f3f;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2c3e50;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d4ddd6;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  color: #2c3e50;
  background: #f8faf9;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2d8a7a;
  box-shadow: 0 0 0 3px rgba(45, 138, 122, 0.12);
  background: #ffffff;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9aa8b4;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%234a5f7a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
  color: #1a6b6b;
}
.form-success svg {
  margin: 0 auto 16px;
  color: #2d8a7a;
}
.form-success h4 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #1a2f3f;
}
.form-success p {
  font-size: 0.95rem;
  color: #4a5f7a;
}

/* ---------- Footer ---------- */
.footer {
  background: #1a2f3f;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}
.footer-logo svg { color: #4db89a; }
.footer p { font-size: 0.9rem; line-height: 1.75; }

.footer h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7ec8b4;
  margin-bottom: 20px;
}
.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.25s ease;
}
.footer ul a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-image-accent { right: -20px; bottom: -24px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(26, 47, 63, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }
  .nav-menu.open {
    max-height: 420px;
    padding: 24px 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-cta {
    border-bottom: none !important;
    text-align: center;
    margin-top: 8px;
  }

  .hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 80px; }
  .about-image-wrap { max-width: 480px; margin: 0 auto; }
  .about-image-accent { right: -12px; bottom: -20px; width: 50%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form-wrap { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .services, .about, .gallery, .testimonials, .contact { padding: 72px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .about-badge { top: -16px; left: -16px; padding: 12px 16px; }
  .about-badge-number { font-size: 1.3rem; }
}
