/* ====================================================================
   RESIDENTIAL SERVICES PAGE
   Loaded only on the Residential Services template.
   Relies on tokens + shared patterns defined in main.css.
   ==================================================================== */


/* ── CUSTOM DESIGN & BUILD ─────────────────────────────────────────── */
.custom-build {
  background: var(--c-off-white);
}

.custom-build__card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: clamp(460px, 52vw, 620px);
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(56, 69, 68, 0.16);
}

.custom-build__panel {
  width: 100%;
  max-width: 460px;
  background: rgba(40, 50, 49, 0.86);
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.custom-build__title {
  font-family: var(--f-secondary);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  color: var(--c-white);
  margin-bottom: 20px;
}

.custom-build__text {
  font-family: var(--f-secondary);
  font-size: clamp(14px, 1.5vw, 15.5px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

.custom-build__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.custom-build__list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--f-secondary);
  font-size: clamp(14px, 1.5vw, 15.5px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.custom-build__list li::before {
  content: '\2022';
  position: absolute;
  left: 2px;
  color: var(--c-green-1);
}


/* ── NOT SURE WHERE TO START ───────────────────────────────────────── */
.not-sure {
  background: #2A3231;
}

.not-sure__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.not-sure__heading {
  font-family: var(--f-primary);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--c-green-1);
  margin-bottom: 22px;
}

.not-sure__text {
  font-family: var(--f-secondary);
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 18px;
}

.not-sure__content .btn {
  margin-top: 14px;
}

.not-sure__media {
  position: relative;
}

.not-sure__photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}


/* ── LET US GUIDE YOU THROUGH YOUR PROJECT ─────────────────────────── */
.guide {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-color: var(--c-slate-1);
  padding: clamp(64px, 9vw, 120px) 0;
}

.guide__inner {
  max-width: 820px;
  text-align: center;
}

.guide__heading {
  font-family: var(--f-primary);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--c-white);
  margin-bottom: 28px;
}

.guide__text {
  font-family: var(--f-secondary);
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 22px;
  text-wrap: balance;
}

.guide__text:last-child {
  margin-bottom: 0;
}


/* ── SERVICE CARD GRIDS (landscaping + hardscaping) ────────────────── */
.svc-list {
  background: var(--c-off-white);
}

.svc-list--alt {
  background: var(--c-off-white);
  padding-top: 0;
}

.svc-list__heading {
  font-family: var(--f-primary);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--c-slate-1);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 30px);
}

.svc-card {
  position: relative;
  display: flex;
  min-height: 280px;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(56, 69, 68, 0.12);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.svc-card--compact {
  min-height: 210px;
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 50, 49, 0) 32%, rgba(42, 50, 49, 0.82) 100%);
  transition: background var(--t-base);
}

.svc-card:hover,
.svc-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(56, 69, 68, 0.24);
  outline: none;
}

.svc-card:hover::before {
  background: linear-gradient(180deg, rgba(42, 50, 49, 0.15) 20%, rgba(42, 50, 49, 0.88) 100%);
}

.svc-card__body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  width: 100%;
  padding: clamp(20px, 2.4vw, 28px);
}

.svc-card__title {
  font-family: var(--f-secondary);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.2;
  color: var(--c-white);
  margin-bottom: 8px;
}

.svc-card--compact .svc-card__title {
  margin-bottom: 0;
}

.svc-card__desc {
  font-family: var(--f-secondary);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Drop the desktop-only forced breaks so `text-wrap: balance` can reflow
     these headings into even lines with no stranded word on small screens. */
  .custom-build__title br,
  .guide__heading br,
  .not-sure__heading br { display: none; }

  /* Custom Design & Build — panel spans full width over the photo */
  .custom-build__card { min-height: 0; }
  .custom-build__panel {
    max-width: none;
    background: rgba(40, 50, 49, 0.92);
  }

  /* Not sure — stack, photo first */
  .not-sure__grid { grid-template-columns: 1fr; }
  .not-sure__media { order: -1; }
  .not-sure__photo { max-height: 360px; }

  /* Service grids — single column */
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: 240px; }
  .svc-card--compact { min-height: 200px; }
}
