/* ============================================================
   SERVICES.CSS — GoDigital Service Catalog & Article Pages
   ============================================================ */

/* ===== SERVICES HERO ===== */
.services-hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #0f2555 0%, #1a3a7a 50%, #0f2555 100%);
  text-align: center;
  overflow: hidden;
}

.services-hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sh-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.sh-shape-1 {
  width: 500px;
  height: 500px;
  background: var(--gold);
  top: -200px;
  right: -150px;
}

.sh-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--blue-light);
  bottom: -100px;
  left: -100px;
  opacity: 0.15;
}

.sh-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--white);
  top: 40%;
  left: 30%;
  opacity: 0.04;
}

.services-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.services-hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.services-hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  line-height: 1.8;
}

/* ===== SERVICE CATALOG GRID ===== */
.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-catalog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 58, 122, 0.06);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.service-catalog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service-catalog-card:hover::before {
  transform: scaleX(1);
}

.service-catalog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 168, 83, 0.2);
}

.scc-top {
  padding: 36px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.scc-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(26, 58, 122, 0.08), rgba(26, 58, 122, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: var(--transition);
  flex-shrink: 0;
}

.service-catalog-card:hover .scc-icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.05);
}

.scc-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
}

.scc-body {
  padding: 24px 28px;
  flex: 1;
}

.scc-body h3 {
  font-size: 1.3rem;
  color: var(--blue-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.scc-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

.scc-footer {
  padding: 20px 28px 32px;
}

.scc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  transition: var(--transition);
}

.service-catalog-card:hover .scc-link {
  color: var(--gold);
  gap: 12px;
}

.services-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

/* ===== WHY CUSTOM SECTION ===== */
.why-custom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-custom-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 58, 122, 0.04);
  transition: var(--transition);
  text-align: center;
}

.why-custom-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 168, 83, 0.2);
}

.why-custom-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(26, 58, 122, 0.08), rgba(212, 168, 83, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin: 0 auto 20px;
  transition: var(--transition);
}

.why-custom-card:hover .why-custom-icon {
  background: var(--blue);
  color: var(--white);
}

.why-custom-card h3 {
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.why-custom-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */

/* ===== SERVICE DETAIL HERO ===== */
.sd-hero {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #0f2555 0%, #1a3a7a 100%);
  overflow: hidden;
}

.sd-hero-image {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.sd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 37, 85, 0.92) 0%, rgba(26, 58, 122, 0.85) 100%);
  z-index: 0;
}

.sd-hero .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.sd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.sd-breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.sd-breadcrumb a:hover {
  color: var(--gold);
}

.sd-breadcrumb svg {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.sd-breadcrumb span {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Hero Content */
.sd-hero-content {
  max-width: 760px;
}

.sd-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 24px;
}

.sd-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.sd-hero-intro {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 680px;
}

.sd-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ===== ARTICLE LAYOUT ===== */
.sd-content-section {
  padding: 80px 0 80px;
}

.sd-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

/* ===== ARTICLE CONTENT (CKEditor rendered HTML) ===== */
.sd-article {
  min-width: 0;
}

.service-content.ck-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.service-content.ck-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin: 48px 0 20px;
  line-height: 1.2;
}

.service-content.ck-content h1:first-child {
  margin-top: 0;
}

.service-content.ck-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(26, 58, 122, 0.08);
  line-height: 1.25;
}

.service-content.ck-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
  margin: 36px 0 12px;
  line-height: 1.3;
}

.service-content.ck-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 28px 0 10px;
}

.service-content.ck-content p {
  margin-bottom: 20px;
  color: var(--text);
}

.service-content.ck-content ul,
.service-content.ck-content ol {
  margin: 0 0 24px 0;
  padding-left: 28px;
}

.service-content.ck-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.service-content.ck-content ul li {
  list-style: none;
  position: relative;
  padding-left: 20px;
}

.service-content.ck-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.service-content.ck-content blockquote {
  margin: 32px 0;
  padding: 24px 28px 24px 32px;
  border-left: 4px solid var(--gold);
  background: rgba(212, 168, 83, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--blue-dark);
}

.service-content.ck-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: 28px 0;
}

.service-content.ck-content figure {
  margin: 28px 0;
}

.service-content.ck-content figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.service-content.ck-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-content.ck-content th {
  background: var(--blue-dark);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
}

.service-content.ck-content td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(26, 58, 122, 0.08);
  color: var(--text);
}

.service-content.ck-content tr:last-child td {
  border-bottom: none;
}

.service-content.ck-content tr:nth-child(even) td {
  background: rgba(240, 244, 250, 0.5);
}

.service-content.ck-content a {
  color: var(--blue);
  text-decoration: underline;
  transition: var(--transition);
}

.service-content.ck-content a:hover {
  color: var(--gold);
}

.service-content.ck-content code {
  background: rgba(26, 58, 122, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  color: var(--blue-dark);
}

.service-content.ck-content pre {
  background: var(--blue-dark);
  color: #e2e8f0;
  padding: 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 28px 0;
}

.service-content.ck-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Embedded media (video iframes) */
.service-content.ck-content .media {
  margin: 28px 0;
}

.service-content.ck-content iframe {
  width: 100%;
  max-width: 100%;
  height: 400px;
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow);
}

/* ===== STICKY SIDEBAR ===== */
.sd-sidebar {
  position: sticky;
  top: 100px;
}

.sd-sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(26, 58, 122, 0.06);
}

.sd-sidebar-card h3 {
  font-size: 1.4rem;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.sd-sidebar-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.sd-sidebar-divider {
  height: 1px;
  background: rgba(26, 58, 122, 0.08);
  margin: 24px 0;
}

.sd-sidebar-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 12px !important;
  font-weight: 600;
}

.sd-sidebar-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sd-contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.sd-contact-btn.sd-wa {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
}

.sd-contact-btn.sd-wa:hover {
  background: #25D366;
  color: white;
}

.sd-contact-btn.sd-email {
  background: rgba(26, 58, 122, 0.06);
  color: var(--blue);
  font-size: 0.82rem;
}

.sd-contact-btn.sd-email:hover {
  background: var(--blue);
  color: white;
}

/* Other Services in Sidebar */
.sd-other-services {
  margin-top: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 58, 122, 0.06);
}

.sd-other-services h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 16px;
  font-weight: 700;
}

.sd-other-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(26, 58, 122, 0.06);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  gap: 10px;
}

.sd-other-link:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sd-other-link:hover {
  color: var(--blue);
  padding-left: 6px;
}

.sd-other-link svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ===== FINAL CTA SECTION ===== */
.sd-final-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f4fa 0%, #eef3fc 100%);
}

.sd-final-cta-card {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-radius: 24px;
  padding: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sd-final-cta-card::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.1);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.sd-final-cta-card::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  bottom: -80px;
  left: -60px;
  pointer-events: none;
}

.sd-final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.sd-final-cta-content h2 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 800;
}

.sd-final-cta-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.8;
}

.sd-final-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* WhatsApp button */
.btn-wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .sd-layout {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }

  .why-custom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .services-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sd-layout {
    grid-template-columns: 1fr;
  }

  .sd-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .sd-other-services {
    margin-top: 0;
  }

  .sd-final-cta-card {
    padding: 48px 32px;
  }

  .services-hero-content h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .services-catalog-grid {
    grid-template-columns: 1fr;
  }

  .services-hero {
    padding: 130px 0 80px;
  }

  .services-hero-content h1 {
    font-size: 2rem;
  }

  .sd-hero {
    padding: 120px 0 60px;
  }

  .sd-hero-content h1 {
    font-size: 2.2rem;
  }

  .sd-sidebar {
    grid-template-columns: 1fr;
  }

  .why-custom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sd-final-cta-content h2 {
    font-size: 1.8rem;
  }

  .sd-final-cta-card {
    padding: 40px 24px;
  }

  .sd-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .sd-final-cta-actions {
    flex-direction: column;
  }

  .service-content.ck-content h1 {
    font-size: 1.8rem;
  }

  .service-content.ck-content h2 {
    font-size: 1.5rem;
  }

  .service-content.ck-content iframe {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .why-custom-grid {
    grid-template-columns: 1fr;
  }

  .services-hero-content h1 {
    font-size: 1.7rem;
  }

  .sd-hero-content h1 {
    font-size: 1.8rem;
  }
}
