/* ==========================================
   GREEN ROOTS  services.css
   ========================================== */

/* Inherit navbar always-solid from about.css pattern */
.navbar {
  background: var(--white) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}
.navbar .nav-links a {
  color: var(--text-dark) !important;
}
.navbar .logo {
  color: var(--green-dark) !important;
}
.navbar .hamburger {
  color: var(--text-dark) !important;
}

.active-link {
  color: var(--green-mid) !important;
  font-weight: 700 !important;
}
.text-center {
  text-align: center;
}

/* ==========================================
   PAGE HERO
   ========================================== */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 220px;
  margin-top: 72px;
}
.page-hero-overlay {
  background: linear-gradient(135deg, var(--green-dark) 0%, #3a6b22 100%);
  grid-column: 1;
  grid-row: 1;
}
.page-hero-content {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  padding: 50px clamp(24px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.page-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  animation: heroIn 0.8s ease forwards;
}
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}
.breadcrumb a {
  color: var(--green-light);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--white);
}
.breadcrumb span {
  color: rgba(255, 255, 255, 0.6);
}
.ph-services {
  background: url("https://images.unsplash.com/photo-1586348943529-beaae6c28db9?w=900&q=80")
    center/cover no-repeat;
}

/* ==========================================
   LOGICAL CHOICE
   ========================================== */
.logical {
  padding: 90px 0;
  background: var(--white);
}
.logical-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.logical-img-wrap {
  height: 460px;
  border-radius: 12px;
  background: url("https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=700&q=80")
    center/cover no-repeat;
  box-shadow: 0 20px 60px rgba(45, 90, 27, 0.22);
  position: relative;
  overflow: hidden;
}
.logical-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 4px solid rgba(125, 196, 78, 0.25);
  pointer-events: none;
}
.logical-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.logical-content h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
}
.logical-content h2 span {
  color: var(--green-mid);
}
.logical-content > p {
  color: var(--text-mid);
  line-height: 1.75;
}
.logical-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.lp-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(74, 140, 42, 0.12);
  background: var(--off-white);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.lp-item:hover {
  box-shadow: 0 6px 20px rgba(74, 140, 42, 0.15);
  transform: translateY(-3px);
}
.lp-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.lp-item h4 {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.lp-item p {
  font-size: 0.81rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ==========================================
   CONTACT STRIP BANNER
   ========================================== */
.contact-strip {
  background:
    linear-gradient(rgba(30, 70, 10, 0.78), rgba(30, 70, 10, 0.78)),
    url("https://images.unsplash.com/photo-1444930694458-01babf71870c?w=1600&q=80")
      center/cover no-repeat;
  padding: 28px 0;
}
.contact-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-strip-inner p {
  color: var(--white);
  font-size: 1.15rem;
  font-family: "Playfair Display", serif;
}
.contact-strip-inner strong {
  color: var(--green-light);
}
.btn-strip {
  display: inline-block;
  border: 2px solid var(--green-light);
  color: var(--green-light);
  padding: 11px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s;
}
.btn-strip:hover {
  background: var(--green-light);
  color: var(--white);
}

/* ==========================================
   SPOTLIGHT
   ========================================== */
.spotlight {
  background: var(--off-white);
  padding: 90px 0;
}
.spotlight-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.spotlight-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.spotlight-text h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.25;
}
.spotlight-text h2 span {
  color: var(--green-mid);
}
.spotlight-text p {
  color: var(--text-mid);
  line-height: 1.75;
}
.spotlight-image {
  position: relative;
}
.spotlight-img {
  height: 400px;
  border-radius: 12px;
  background: url("https://images.unsplash.com/photo-1464226184884-fa280b87c399?w=700&q=80")
    center/cover no-repeat;
  box-shadow: 0 20px 60px rgba(45, 90, 27, 0.22);
  overflow: hidden;
  position: relative;
}
.spotlight-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  pointer-events: none;
}
.spotlight-badge {
  position: absolute;
  bottom: -20px;
  left: 24px;
  background: var(--green-mid);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(74, 140, 42, 0.4);
}
.badge-icon-sm {
  font-size: 1.4rem;
}

/* ==========================================
   QUOTE SPLIT
   ========================================== */
.quote-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.quote-left {
  position: relative;
  background: url("https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?w=900&q=80")
    center/cover no-repeat;
}
.quote-left-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 45, 10, 0.75);
}
.quote-left-inner {
  position: relative;
  z-index: 1;
  padding: 70px clamp(24px, 5vw, 70px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.quote-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  width: fit-content;
}
.quote-left-inner h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  color: var(--white);
}
.quote-left-inner p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  font-size: 0.95rem;
}

.quote-right {
  background: var(--off-white);
}
.quote-form-wrap {
  padding: 60px clamp(24px, 5vw, 60px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-form-wrap h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--text-dark);
}
.quote-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote-form-wrap input,
.quote-form-wrap select,
.quote-form-wrap textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dde8d0;
  border-radius: 5px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.3s;
}
.quote-form-wrap input:focus,
.quote-form-wrap select:focus,
.quote-form-wrap textarea:focus {
  border-color: var(--green-mid);
}
.quote-form-wrap button {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
}

/* ==========================================
   SERVICE CATEGORIES (4 columns)
   ========================================== */
.svc-categories {
  padding: 90px 0;
  background: var(--white);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 50px;
}
.cat-card {
  padding: 36px 28px;
  border-right: 1px solid rgba(74, 140, 42, 0.12);
  border-top: 3px solid transparent;
  text-align: center;
  transition:
    border-top-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
  background: var(--white);
}
.cat-card:last-child {
  border-right: none;
}
.cat-card:hover {
  border-top-color: var(--green-mid);
  box-shadow: 0 8px 30px rgba(74, 140, 42, 0.12);
  transform: translateY(-5px);
}
.cat-icon {
  font-size: 3rem;
  display: block;
  margin: 0 auto 20px;
  filter: grayscale(0.2);
  transition: transform 0.3s;
}
.cat-card:hover .cat-icon {
  transform: scale(1.15) rotate(-5deg);
}
.cat-card h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.cat-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 18px;
}
.cat-link {
  color: var(--green-mid);
  font-weight: 600;
  font-size: 0.84rem;
  transition: color 0.2s;
  display: inline-block;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.cat-link:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
}

/* ==========================================
   DETAIL SPLIT  DARK
   ========================================== */
.detail-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}
.detail-left {
  background: var(--text-dark);
  padding: 70px clamp(24px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.detail-left h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--white);
}
.detail-left p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  font-size: 0.93rem;
}
.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.detail-list li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 700;
}
.detail-right {
  position: relative;
  overflow: hidden;
}
.detail-img {
  height: 100%;
  min-height: 380px;
  background: url("https://images.unsplash.com/photo-1592419042139-aca73b80b5b2?w=900&q=80")
    center/cover no-repeat;
  transition: transform 0.5s;
}
.detail-right:hover .detail-img {
  transform: scale(1.04);
}

/* ==========================================
   BENTO SERVICES GRID
   ========================================== */
.bento-services {
  padding: 90px 0;
  background: var(--off-white);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  margin-top: 50px;
}
.bento-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(45, 90, 27, 0.18);
}

/* Image cards */
.bc-img {
  height: 240px;
  background-size: cover;
  background-position: center;
}
.bc1 {
  background-image: url("https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=600&q=80");
}
.bc2 {
  background-image: url("https://images.unsplash.com/photo-1462275646964-a0e3386b89fa?w=600&q=80");
}
.bc3 {
  background-image: url("https://images.unsplash.com/photo-1444930694458-01babf71870c?w=600&q=80");
}
.bc4 {
  background-image: url("https://images.unsplash.com/photo-1586348943529-beaae6c28db9?w=600&q=80");
}

.bento-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(20, 45, 10, 0.88) 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.35s;
}
.bento-card:hover .bento-card-overlay {
  opacity: 1;
}
.bento-card-overlay h4 {
  color: var(--white);
  font-size: 1rem;
}
.bento-card-overlay p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Text cards */
.bc-text {
  background: var(--white);
  padding: 30px 26px;
  border: 1px solid rgba(74, 140, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.bento-text-icon {
  font-size: 2.4rem;
}
.bc-text h4 {
  font-size: 1rem;
  color: var(--text-dark);
}
.bc-text p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* CTA card */
.bc-cta {
  background: var(--green-mid);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bc-cta::before {
  content: "";
  font-size: 180px;
  position: absolute;
  right: -30px;
  bottom: -20px;
  opacity: 0.1;
  line-height: 1;
}
.bento-cta-icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
}
.bc-cta h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--white);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.bc-cta .btn-primary {
  background: var(--white);
  color: var(--green-dark);
  position: relative;
  z-index: 1;
}
.bc-cta .btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .logical-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    grid-template-columns: 1fr;
  }
  .ph-services {
    display: none;
  }
  .logical-grid {
    grid-template-columns: 1fr;
  }
  .logical-img-wrap {
    height: 280px;
  }
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
  .spotlight-img {
    height: 280px;
  }
  .spotlight-badge {
    position: static;
    margin-top: 16px;
  }
  .quote-split {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-split {
    grid-template-columns: 1fr;
  }
  .detail-img {
    min-height: 260px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .contact-strip-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .logical-points {
    grid-template-columns: 1fr;
  }
}
