/* ============================================================
   EDIFICIENCIA – services.css
   Styles for individual service pages
   ============================================================ */

/* ─── NAV SOLID ON SERVICE PAGES ─── */
nav.scrolled {
  background: var(--color-white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}

/* ─── SERVICE HERO ─── */
.service-hero {
  min-height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,26,41,0.94) 0%, rgba(27,58,92,0.78) 100%);
}

.service-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); font-size: 0.75rem; }
.breadcrumb-current { color: var(--color-accent); font-weight: 600; }

/* ─── HERO CONTENT ─── */
.service-line-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232,119,34,0.15);
  border: 1px solid rgba(232,119,34,0.4);
  color: var(--color-accent);
  padding: 0.35rem 1.1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.service-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.service-hero h1 span { color: var(--color-accent); }

.service-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── OVERVIEW SECTION ─── */
.service-overview {
  padding: var(--section-padding) 0;
  background: var(--color-white);
}

.service-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-overview-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 24px 60px rgba(27,58,92,0.14);
}

.service-overview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}

.service-overview-img:hover img { transform: scale(1.04); }

.service-overview-text .section-tag { margin-bottom: 1rem; display: block; }

.service-overview-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  line-height: 1.22;
}

.service-overview-text p {
  color: var(--color-text);
  line-height: 1.78;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* ─── WHEN DO YOU NEED IT ─── */
.service-needs {
  padding: var(--section-padding) 0;
  background: var(--color-light);
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.need-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(27,58,92,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.need-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(27,58,92,0.12);
}

.need-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(232,119,34,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
  font-size: 1.3rem;
}

.need-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.need-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ─── DELIVERABLES ─── */
.service-deliverables {
  padding: var(--section-padding) 0;
  background: var(--color-white);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  border-radius: 14px;
  border: 1.5px solid rgba(27,58,92,0.08);
  background: var(--color-light);
  transition: border-color 0.3s, background 0.3s;
}

.deliverable-item:hover {
  border-color: var(--color-accent);
  background: rgba(232,119,34,0.03);
}

.deliverable-check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.deliverable-item p {
  font-size: 0.96rem;
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

/* ─── PROCESS STEPS ─── */
.service-process {
  padding: var(--section-padding) 0;
  background: var(--color-primary-dark);
}

.service-process .section-title { color: var(--color-white); }
.service-process .section-tag { color: var(--color-accent); }
.service-process .section-subtitle { color: rgba(255,255,255,0.65); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: rgba(232,119,34,0.25);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.process-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 20px rgba(232,119,34,0.4);
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.65;
}

/* ─── CTA SECTION ─── */
.service-cta {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, #c5631a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E") repeat;
}

.service-cta > * { position: relative; z-index: 1; }

.service-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: white;
  font-weight: 800;
  margin-bottom: 1rem;
}

.service-cta p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.btn-white {
  background: white !important;
  color: var(--color-accent) !important;
  border: 2px solid white !important;
  font-weight: 700 !important;
}

.btn-white:hover {
  background: transparent !important;
  color: white !important;
}

.btn-outline-white {
  background: transparent !important;
  color: white !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: white !important;
}

/* ─── RELATED SERVICES ─── */
.related-services {
  padding: var(--section-padding) 0;
  background: var(--color-light);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.related-card {
  background: var(--color-white);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  border: 1.5px solid rgba(27,58,92,0.08);
  transition: all 0.3s ease;
  display: block;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(27,58,92,0.13);
  border-color: var(--color-accent);
}

.related-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(27,58,92,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: background 0.3s, color 0.3s;
}

.related-card:hover .related-card-icon {
  background: var(--color-accent);
  color: white;
}

.related-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.related-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.related-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .service-overview-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-overview-img { order: -1; }
}

@media (max-width: 640px) {
  .process-steps::before { display: none; }
  .process-steps { gap: 1.5rem; }
  .hero-actions { flex-direction: column; }
}
