:root{
  --forest:#0f2f22;
  --forest2:#0b241a;
  --tan:#e7dccb;
  --tan2:#dccfbf;
  --orange:#d67b1f;
  --text:#1f1f1f;
  --card-border: rgba(0,0,0,0.10);
  --shadow: 0 10px 25px rgba(0,0,0,0.12);
  --radius: 18px;
  --footer: var(--forest);
}

*{ box-sizing:border-box; }
body{
  overflow-x: hidden;
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--tan);
  color: var(--text);
}

a{ color: inherit; }

/* ===== Shared Top Banner (All pages except Home) ===== */
.top-banner{
  background: linear-gradient(180deg, var(--forest), var(--forest2));
  padding: 6px 18px;
  border-bottom: 2px solid rgba(255,255,255,0.08);
}

.top-inner{
  max-width: 1200px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.logo-wrap{
  display:flex;
  align-items:center;
  min-width: 380px;
}

.logo-wrap a{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.logo{
  height: 170px;
  width: auto;
  display:block;
}

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav a{
  color: var(--orange);
  text-decoration:none;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: transform 0.08s ease, background 0.15s ease;
}

.nav a:hover{
  background: rgba(214,123,31,0.12);
  transform: translateY(-1px);
}

.nav .active{
  color: #ffb36b;
  background: rgba(214,123,31,0.14);
}


/* ===== Page Wrap ===== */
.wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 18px 40px;
}

/* ===== Banner Photo Placeholder (below header) ===== */
.hero-photo{
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 18px;
}

.hero-box{
  height: 200px;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.22);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: rgba(0,0,0,0.45);
}

/* ===== Headline ===== */
.headline{
  text-align:center;
  margin-bottom: 26px;
}

.headline h1{
  margin: 0 0 8px;
  font-size: 44px;
  letter-spacing: 0.3px;
}

.headline .sub1{
  color: var(--orange);
  font-weight: 900;
  margin-bottom: 6px;
  font-size: 20px;
}

.headline .sub2{
  opacity: 0.85;
  font-weight: 700;
  font-size: 18px;
}

/* ===== Services Grid ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .headline h1{ font-size: 38px; }
}

@media (max-width: 620px){
  .grid{ grid-template-columns: 1fr; }
  .logo{
  height: 125px; }
  .headline h1{ font-size: 34px; }
}

/* Tile */
.tile{
  background: rgba(255,255,255,0.35);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 18px;
  display:flex;
  gap: 16px;
  align-items:center;
  min-height: 92px;
  text-decoration:none;
  color: inherit;
  transition: transform 0.10s ease, box-shadow 0.15s ease, border 0.15s ease;
}

.tile:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(214,123,31,0.35);
}

.icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 2px solid rgba(214,123,31,0.45);
  background: rgba(214,123,31,0.10);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}

.icon-dot{
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--orange);
  opacity: 0.95;
}

.tile-title{
  font-weight: 900;
  color: var(--orange);
  font-size: 18px;
  line-height: 1.2;
}

.tile-note{
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.82;
  font-weight: 700;
}

/* ===== Service Detail Page Layout ===== */
.service-title{
  text-align:center;
  margin-top: 26px;
  margin-bottom: 18px;
}

.service-title h1{
  margin:0;
  font-size: 38px;
  letter-spacing: 0.2px;
}

.service-shell{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 900px){
  .service-shell{ grid-template-columns: 1fr; }
}

.block{
  background: rgba(255,255,255,0.35);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.block h3{
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 18px;
  letter-spacing: 0.2px;
}

.block p{
  margin: 0;
  font-weight: 650;
  opacity: 0.85;
  line-height: 1.45;
}

.stack{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.photo-box{
  height: 140px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.22);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  color: rgba(0,0,0,0.40);
}

/* ===== Contact Form ===== */
.form-shell{
  max-width: 820px;
  margin: 22px auto 0;
}

.form-card{
  background: rgba(255,255,255,0.35);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

label{
  font-weight: 800;
  display:block;
  margin: 12px 0 6px;
}

input, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  padding: 12px 12px;
  font-size: 16px;
  background: rgba(255,255,255,0.75);
}

textarea{
  min-height: 140px;
  resize: vertical;
}

button{
  margin-top: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.2px;
  cursor: pointer;
}

button:hover{
  filter: brightness(1.03);
}

/* ===== Footer ===== */
.footer{
  background: linear-gradient(180deg, var(--forest2), var(--forest));
  color: #f2f2f2;
  padding: 18px 18px;
  margin-top: 10px;
}

.footer-inner{
  max-width: 1200px;
  margin:0 auto;
  text-align:center;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.footer a{
  color: #f2f2f2;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.footer a:hover{
  text-decoration: underline;
  color: var(--orange);
}

.footer small{
  opacity: 0.9;
  font-weight: 650;
  letter-spacing: 0.2px;
}

/* ===== Home Page ===== */
.home{
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  padding: 26px 18px 0;
}

.home-center{
  max-width: 900px;
  width: 100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-top: 10px;
}

.home-logo{
  width: min(980px, 95%);
  height: auto;
  display:block;
}

.home-buttons{
  display:flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap:wrap;
  justify-content:center;
}

.home-buttons a{
  text-decoration:none;
  background: var(--orange);
  color:#fff;
  font-weight: 900;
  padding: 12px 18px;
  border-radius: 14px;
  letter-spacing: 0.2px;
}

.home-buttons a:hover{
  filter: brightness(1.03);
}

.home-tag{
  margin-top: 14px;
  text-align:center;
  font-weight: 900;
  font-size: 18px;
  opacity: 0.9;
}


/* ===== Mobile Header Fix ===== */
@media (max-width: 720px){
  .top-inner{
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
  }

  .logo-wrap{
    min-width: auto;
    width: 100%;
    padding-top: 4px;      /* nudges logo down a bit */
  }

  .nav{
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding-bottom: 4px;   /* keeps links visually inside green */
  }

  .nav a{
    padding: 8px 10px;
  }
}


/* ===== Service Detail Tweaks (desktop spacing + bigger photo blocks) ===== */
.service-page .wrap{
  padding-top: 18px; /* pulls content up closer to the banner */
}

.service-page .service-title{
  margin-top: 14px;
  margin-bottom: 14px;
}

.service-page .service-shell{
  margin-top: 12px;
}

/* Make right-side photo placeholders slightly bigger on desktop */
.service-page .photo-box{
  height: 175px;
}

/* ===== Masonry page: remove photo tile borders/background (no white lines) ===== */
.masonry-page .photo-box{
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: block; /* keeps image full-bleed */
}
.masonry-page .photo-img{
  border-radius: 0;
}

/* Mobile fine-tune: logo left + nav centered */
@media (max-width: 720px){
  .top-banner{ padding-left: 12px; padding-right: 12px; }
  .logo{ margin-left: -4px; } /* slight nudge left */
}

/* Service tile PNG icons */
.tile .icon img{
  width: 70px;
  height: 70px;
  display: block;

  object-fit: contain;
}


/* ===== Services Tiles: Green Gradient Background (for icon contrast) ===== */
.tile{
  background: linear-gradient(180deg, rgba(19,60,45,0.14), rgba(19,60,45,0.06));
  border: 1px solid rgba(19,60,45,0.18);
}
.tile:hover{
  border-color: rgba(19,60,45,0.34);
  background: linear-gradient(180deg, rgba(19,60,45,0.18), rgba(19,60,45,0.08));
}
.tile-title{
  color: #153b2d;
}
.tile-note{
  color: rgba(0,0,0,0.68);
}


.services-landing .tile .icon img{
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
}


.tile .icon{
  width: 70px;
  min-width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--orange);
}

.tile .icon img{
  width: 70px;
  height: 70px;
  display: block;
  opacity: 1;
  filter: contrast(1.25) saturate(1.15) brightness(1.05);
}


.services-landing .tile{
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}


/* ===== Services Landing Tiles: TAN + BOLD OUTLINE (reference style) ===== */
.services-landing .tile{
  background: rgba(245,240,232,0.92);
  border: 2px solid rgba(26,62,48,0.20);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.services-landing .tile:hover{
  border-color: rgba(26,62,48,0.34);
  transform: translateY(-1px);
}
.services-landing .tile-title{
  color: #1b2b23;
}
.services-landing .tile-note{
  color: rgba(0,0,0,0.68);
}
.services-landing .tile .icon{
  width: 70px;
  min-width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}
.services-landing .tile .icon img{
  width: 70px;
  height: 70px;
  display: block;
  opacity: 1;
  filter: contrast(1.10) saturate(1.05);
}


/* ===== Services tile icon sizing (consistent) ===== */
.services-landing .tile .icon{
  width: 92px;
  min-width: 92px;
  height: 92px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.services-landing .tile .icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
  opacity: 1;
  filter: contrast(1.12) saturate(1.08);
}

/* ===== Services page (services.html) icon sizing ===== */
.services-page .tile .icon{
  width: 92px;
  min-width: 92px;
  height: 92px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: transparent;
  border: none;
  box-shadow: none;
}
.services-page .tile .icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
  opacity: 1;
  filter: contrast(1.12) saturate(1.08);
}

@media (max-width: 640px){
  .services-page .tile .icon{
    width: 76px;
    min-width: 76px;
    height: 76px;
  }
}


/* ===== Beneficial page results note ===== */
.results-note{
  display:block;
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.75;
  font-weight: 750;
}

/* Standalone results box (below Text Block 3, above footer) */
.results-box{
  grid-column: 1 / 2;
  margin-top: 0;
}

.results-box p{
  font-size: 13px;
  opacity: 0.80;
}


/* ===== Inserted Images (Beneficial Insect page) ===== */

/* Hero banner: full banner image (no blurred fill) */
.hero-media{
  position: relative;
  width: 100%;
  aspect-ratio: var(--hero-ar, 16 / 5);
  border-radius: 22px;
  border: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.hero-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;     /* fill the banner (no side bars) */
  object-position: center;
  background: transparent;
  filter: saturate(1.08) contrast(1.03);
}

.hero-banner{
  width: 100%;
  max-width: 100%;
  height: clamp(180px, 18vw, 280px);
  display: block;
  border-radius: 22px;
  border: 0;
  object-fit: cover;
  object-position: center;
}

/* Standard photo blocks */
/* Beneficial page: make photo tiles larger for consistency */
.service-shell .photo-box:not(.duo-box){
  height: clamp(200px, 22vw, 260px);
}

.photo-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

/* Use this on collages/screenshots so nothing important gets cropped */
.photo-img.contain{
  object-fit: contain;
  background: rgba(255,255,255,0.10);
}


/* Two images side-by-side (sprayer + nematodes) */
.photo-box.duo-box{
  height: auto;
  display: block;
  padding: 10px;
  align-items: initial;
  justify-content: initial;
  color: inherit;
}

.duo-images{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.duo-img{
  width: 100%;
  height: clamp(240px, 24vw, 360px);
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  object-fit: cover;
  background: rgba(255,255,255,0.22);
}

/* Taller duo photo treatment (used on Carpentry block 2) */
.duo-box.tall .duo-img{
  height: clamp(280px, 28vw, 420px);
}


.duo-img.nematodes{
  /* Fix: remove visible edge/crop lines by filling the box */
  object-fit: cover;
  object-position: center;
  background: transparent;
}

@media (max-width: 720px){
  .duo-images{ grid-template-columns: 1fr; }
  .duo-img{ height: 260px; }
}



/* ===== Beneficial page photo sizing polish (even + professional) ===== */
.service-shell .photo-box:not(.duo-box){
  /* Make Ladybug/Mantis tiles match the duo block height */
  height: clamp(240px, 24vw, 360px);
}

/* Make the duo (sprayer + nematodes) look like one intentional panel */
.photo-box.duo-box{
  padding: 0;
  border: 0;
  background: transparent;
}

.duo-images{
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.22);
  line-height: 0; /* prevent tiny seams in some browsers */
  gap: 0; /* remove “two separate cards” look */
}

.duo-img{
  height: clamp(240px, 24vw, 360px);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.duo-img.sprayer{
  object-fit: cover;
}

.duo-img.nematodes{
  /* Fix: remove visible edge/crop lines by filling the box */
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.duo-images .duo-img:first-child{
  border-right: 1px solid rgba(0,0,0,0.10); /* subtle divider */
}

/* Banner: thinner + keep the left foreground (flowers) in-frame */
.hero-banner{
  height: clamp(140px, 14vw, 220px);
  object-position: left center;
}

@media (max-width: 720px){
  .duo-images{ grid-template-columns: 1fr; }
  .duo-images .duo-img:first-child{
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,0.10);
  }
  .duo-img{ height: 280px; }
}

/* ===== Desktop spacing polish (selected pages) =====
   Stretch photo tiles to match the taller paired text tile,
   keeping the “image-first” scroll rhythm while removing dead space.
*/
@media (min-width: 901px){
  body.stretch-photo-rows .service-shell .photo-box:not(.duo-box){
    min-height: clamp(240px, 24vw, 360px);
    height: 100%;
    align-self: stretch;
  }
  body.stretch-photo-rows .service-shell .photo-img{
    height: 100%;
  }
}


/* Hero banner: extra color pop (helps graphics + collage stand out) */
.hero-media--pop .hero-img{
  filter: saturate(1.22) contrast(1.10) brightness(1.02);
}

/* Hero banner: darker on the right side so light UI elements read better */
.hero-media--right::after{
  background: linear-gradient(90deg,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.05) 55%,
    rgba(0,0,0,0.18) 100%);
}


/* Collage / UI screenshot photo blocks: add a little padding + tint so they read as intentional */
.photo-box.collage-box{
  background: rgba(15,47,34,0.10);
  border: 1px solid rgba(214,123,31,0.18);
  padding: 10px;
}
.photo-box.collage-box .photo-img{
  border-radius: 12px;
}

/* ===== Carpentry Photo Block 2: collage-touch duo + keep side-by-side on mobile ===== */
.service-page .photo-box.duo-box .duo-images{
  display: flex;
  gap: 0;
}
.service-page .photo-box.duo-box .duo-img{
  flex: 1 1 50%;
  width: 50%;
}
/* remove the “cut line” and any hairline seam */
.service-page .photo-box.duo-box .duo-images .duo-img:first-child{
  border-right: 0 !important;
  border-bottom: 0 !important;
  margin-right: -1px; /* kills subpixel seams */
}
@media (max-width: 720px){
  .service-page .photo-box.duo-box .duo-images{
    flex-direction: row; /* stay side-by-side */
  }
  .service-page .photo-box.duo-box .duo-img{
    height: clamp(190px, 42vw, 240px);
  }
  .service-page .photo-box.duo-box.tall .duo-img{
    height: clamp(210px, 46vw, 270px);
  }
}


/* ===== Wildlife Exclusion photo blocks: lock 16:9 so collages don't crop (web + mobile) ===== */
body.photo-ar-16x9 .service-shell .photo-box:not(.duo-box){
  height: auto;
  aspect-ratio: 16 / 9;
}
body.photo-ar-16x9 .service-shell .photo-img{
  height: 100%;
}



/* --- Services jump block (Service Areas page) --- */
.services-jump{
  position: relative;
}
.services-jump:hover{
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  transform: translateY(-1px);
  transition: box-shadow .15s ease, transform .15s ease;
}
.services-jump-header{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.services-jump h3{
  margin-top: 0;
  margin-bottom: 6px;
}
.services-jump-all{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.55);
  text-decoration:none;
  font-weight: 600;
  font-size: 0.92rem;
  color: inherit;
}
.services-jump-all:hover{
  background: rgba(255,255,255,0.85);
}
.services-jump-sub{
  margin: 0 0 12px 0;
  opacity: .9;
  font-size: 0.98rem;
}
.services-jump-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}
.sj-link{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration:none;
  color: inherit;
}
.sj-link:hover{
  background: rgba(0,0,0,0.04);
}
.sj-link img{
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}
.sj-link span{
  font-size: 0.98rem;
  line-height: 1.15;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* --- Service Areas landing: icon tiles (match label width to icon width) --- */
body.service-areas-page .services-jump-grid{
  /* Make tiles behave like icon cards (not wide rows) */
  gap: 14px 14px;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  justify-items: center;
}

body.service-areas-page .sj-link{
  /* Stack icon over title; keep each tile consistent */
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 10px;
  width: 104px;
  min-height: 142px;
  text-align: center;
}

body.service-areas-page .sj-link img{
  width: 68px;
  height: 68px;
  margin: 0;
}

body.service-areas-page .sj-link span{
  /* Key fix: force the title box to the SAME width as the icon */
  width: 68px;
  max-width: 68px;
  font-size: clamp(0.60rem, 0.30vw + 0.55rem, 0.74rem);
  line-height: 1.15;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 980px){
  .service-shell{ grid-template-columns: 1fr; }
  body.service-areas-page .services-jump-grid{
    grid-template-columns: repeat(2, minmax(96px, 1fr));
    gap: 12px 12px;
  }
  body.service-areas-page .sj-link{
    width: 96px;
    min-height: 136px;
    padding: 10px 8px;
  }
}
