
/* Service detail pages */
.detail-page { background: #fff; }
.detail-header .main-nav a[aria-current="page"] { color: var(--green-dark); }
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(136,189,52,.16), transparent 26%),
    linear-gradient(135deg, #08271f 0%, #0f3a2f 64%, #154b3c 100%);
  color: white;
}
.detail-hero::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -260px;
  bottom: -330px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
}
.detail-hero-grid {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
  gap: 64px;
  align-items: center;
  padding: 72px 0;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: rgba(255,255,255,.62); font-size: 14px; font-weight: 600; }
.breadcrumb a:hover { color: var(--green); }
.detail-hero-copy h1 { max-width: 760px; margin: 0 0 20px; font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.detail-hero-copy h1 span { color: #9bd63c; }
.detail-hero-copy > p { max-width: 700px; margin: 0; color: rgba(255,255,255,.76); font-size: 19px; line-height: 1.8; }
.detail-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.detail-hero-actions .btn-outline { border-color: rgba(255,255,255,.45); color: white; }
.detail-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 2009 / 800;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  box-shadow: 0 28px 65px rgba(0,0,0,.28);
  background: #eaf0e8;
}
.detail-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.detail-visual.projects img { object-position: 84% center; }
.detail-visual.reports img { object-position: 95% 20%; }
.detail-visual.construction img { object-position: 6% center; }
.detail-visual.regularization img { object-position: 9% center; }
.detail-visual.consulting img { object-position: center; }
.detail-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,29,23,.02), rgba(6,29,23,.26)); }
.detail-visual-tag { position: absolute; z-index: 2; left: 22px; bottom: 22px; max-width: calc(100% - 44px); padding: 12px 15px; border-radius: 11px; background: rgba(255,255,255,.91); color: var(--deep); font-size: 14px; font-weight: 700; box-shadow: 0 10px 28px rgba(0,0,0,.15); }
.detail-section { padding: 86px 0; }
.detail-section.soft { background: #f5f8f4; }
.detail-section-heading { max-width: 820px; margin-bottom: 36px; }
.detail-section-heading h2 { margin: 7px 0 13px; font-size: clamp(31px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.detail-section-heading h2 span { color: var(--green-dark); }
.detail-section-heading p { margin: 0; color: var(--muted); line-height: 1.8; }
.detail-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.detail-service-card { min-height: 220px; padding: 26px; border: 1px solid #e0e8df; border-radius: 17px; background: white; box-shadow: 0 10px 28px rgba(17,54,44,.055); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.detail-service-card:hover { transform: translateY(-4px); border-color: rgba(136,189,52,.5); box-shadow: 0 18px 36px rgba(17,54,44,.10); }
.detail-service-card .detail-card-number { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 10px; background: rgba(136,189,52,.12); color: var(--green-dark); font-size: 14px; font-weight: 800; }
.detail-service-card h3 { margin: 0 0 9px; font-size: 20px; line-height: 1.3; }
.detail-service-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.72; }
.detail-benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: start; }
.detail-copy h2 { margin: 7px 0 16px; font-size: clamp(30px, 4vw, 45px); line-height: 1.08; letter-spacing: -.035em; }
.detail-copy h2 span { color: var(--green-dark); }
.detail-copy > p { color: var(--muted); line-height: 1.8; }
.detail-points { display: grid; gap: 12px; margin-top: 24px; }
.detail-point { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; padding: 14px 0; border-bottom: 1px solid #dfe7de; }
.detail-point:last-child { border-bottom: 0; }
.detail-point > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--deep); color: var(--green); font-size: 15px; font-weight: 800; }
.detail-point strong { display: block; margin-bottom: 3px; font-size: 17px; }
.detail-point small { display: block; color: var(--muted); font-size: 15px; line-height: 1.65; }
.detail-panel { overflow: hidden; border-radius: 22px; background: var(--deep); color: white; box-shadow: var(--shadow); }
.detail-panel-top { padding: 30px 30px 26px; background: linear-gradient(135deg, #0b2c24, #144c3c); }
.detail-panel-top span { display: inline-block; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.detail-panel-top h3 { margin: 8px 0 0; font-size: 25px; line-height: 1.2; }
.detail-panel-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.detail-panel-list li { position: relative; padding: 16px 24px 16px 48px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.55; }
.detail-panel-list li::before { content: '✓'; position: absolute; left: 24px; color: var(--green); font-weight: 800; }
.detail-process { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.detail-process-step { position: relative; padding: 25px 22px; border-radius: 16px; background: white; border: 1px solid #e2e9e1; }
.detail-process-step span { color: var(--green-dark); font-size: 14px; font-weight: 800; }
.detail-process-step h3 { margin: 8px 0 8px; font-size: 19px; }
.detail-process-step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.quote-section { padding: 72px 0 88px; background: white; }
.quote-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 42px; align-items: center; padding: 48px 54px; border-radius: 24px; background: linear-gradient(135deg,#09281f,#124335); color: white; box-shadow: 0 24px 60px rgba(13,43,36,.18); }
.quote-card::after { content: ''; position: absolute; width: 250px; height: 250px; right: -110px; top: -130px; border-radius: 50%; background: rgba(136,189,52,.10); }
.quote-copy { position: relative; z-index: 1; }
.quote-copy h2 { margin: 5px 0 11px; font-size: clamp(28px, 3.6vw, 43px); line-height: 1.12; letter-spacing: -.03em; }
.quote-copy h2 span { color: #9ed63b; }
.quote-copy p { max-width: 720px; margin: 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.75; }
.quote-actions { position: relative; z-index: 1; display: grid; gap: 10px; min-width: 250px; }
.quote-actions .btn { justify-content: center; }
.quote-email { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; color: white; font-size: 14px; font-weight: 700; transition: .2s ease; }
.quote-email:hover { border-color: var(--green); color: var(--green); }
.detail-footer-email { overflow-wrap: anywhere; }
.solution-cta { display: inline-flex; margin-top: 12px; color: white; font-size: 14px; font-weight: 800; opacity: .92; }
.solution-cta:hover { color: #a9df4b; }

@media (max-width: 1040px) {
  .detail-hero-grid { grid-template-columns: 1fr .8fr; gap: 36px; }
  .detail-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-process { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-grid-featured { grid-template-columns: repeat(2, 1fr) !important; }
  .service-grid-featured .service-card { grid-column: auto !important; }
  .service-grid-featured .service-card:last-child { grid-column: 1 / -1 !important; }
}

@media (min-width: 1041px) {
  .service-grid-featured { grid-template-columns: repeat(6, 1fr); }
  .service-grid-featured .service-card { grid-column: span 2; }
  .service-grid-featured .service-card:nth-child(4),
  .service-grid-featured .service-card:nth-child(5) { grid-column: span 3; }
}

@media (max-width: 820px) {
  .detail-hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 58px 0; }
  .detail-visual { max-width: 820px; justify-self: center; }
  .detail-benefits-grid { grid-template-columns: 1fr; gap: 30px; }
  .quote-card { grid-template-columns: 1fr; padding: 40px 36px; }
  .quote-actions { min-width: 0; }
}

@media (max-width: 600px) {
  .detail-hero-grid { padding: 44px 0 52px; gap: 30px; }
  .detail-visual { border-radius: 20px; }
  .detail-hero-copy h1 { font-size: 42px; }
  .detail-hero-copy > p { font-size: 17px; }
  .detail-hero-actions { display: grid; }
  .detail-hero-actions .btn { width: 100%; justify-content: center; }
  .detail-visual { border-radius: 18px; }
  .detail-section { padding: 64px 0; }
  .detail-service-grid, .detail-process { grid-template-columns: 1fr; }
  .detail-service-card { min-height: 0; }
  .quote-section { padding: 48px 0 64px; }
  .quote-card { padding: 34px 24px; border-radius: 19px; }
  .quote-email { overflow-wrap: anywhere; text-align: center; }
  .service-grid-featured { grid-template-columns: 1fr !important; }
  .service-grid-featured .service-card:last-child { grid-column: auto !important; }
}


/* Project typologies — stacked content blocks */
.project-types-section { padding-top: 78px; }
.project-type-list { display: grid; gap: 0; }
.project-type-block {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: center;
  padding: 46px 0;
  border-top: 1px solid #e1e8e0;
}
.project-type-block:last-child { border-bottom: 1px solid #e1e8e0; }
.project-type-block.reverse .project-type-image { order: 2; }
.project-type-block.reverse .project-type-copy { order: 1; }
.project-type-image {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(17,54,44,.10);
  background: #edf1ec;
}
.project-type-image img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.project-type-block:hover .project-type-image img { transform: scale(1.025); }
.project-type-kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
.project-type-copy h3 {
  margin: 0 0 18px;
  color: var(--deep);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.project-type-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}
.project-type-copy p:last-child { margin-bottom: 0; }
.project-type-copy strong { color: var(--ink); font-weight: 700; }

@media (max-width: 820px) {
  .project-type-block,
  .project-type-block.reverse { grid-template-columns: 1fr; gap: 26px; padding: 38px 0; }
  .project-type-block.reverse .project-type-image,
  .project-type-block.reverse .project-type-copy { order: initial; }
  .project-type-image img { aspect-ratio: 1.65 / 1; }
}

@media (max-width: 600px) {
  .project-types-section { padding-top: 58px; }
  .project-type-block { padding: 30px 0; gap: 22px; }
  .project-type-image { border-radius: 16px; }
  .project-type-image img { aspect-ratio: 1.5 / 1; }
  .project-type-kicker { font-size: 12px; }
  .project-type-copy h3 { font-size: 28px; }
  .project-type-copy p { font-size: 15px; line-height: 1.72; }
}
