/* =============================================================
   SERVICE PAGE STYLES
   Extends styles.css with service-specific components
   
   Sections:
   1. Service Hero
   2. Failure Points Section
   3. Approach Section
   4. Features Grid
   5. Why Unexa Section
   6. CTA Section
   7. Responsive Overrides
============================================================= */

/* =============================================================
   1. SERVICE HERO
============================================================= */
html {
    scroll-behavior: smooth;
}

#service-hero {
  background-image:
    linear-gradient(#72737500, #c16fda5f), url(../images/san-diego.webp);
  background-size: cover;
  background-position: center;
  padding-top: 100px;
}

.service-hero-grid {
  color: white;
  display: grid;
  grid-template-columns: 70% 30%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  position: relative;
  z-index: 1;
}

.service-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-hero-title {
  font-size: 50px;
  font-weight: 700;
  max-width: 750px;
  line-height: 62px;
  color: #ffffff;
  margin: 24px 0px;
  text-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}

.service-hero-desc {
  width: 100%;
  max-width: 580px;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: white;
  margin-bottom: 25px;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}

/* .service-cta-button {
  display: inline-block;
  text-decoration: none;
  color: white;
  background: linear-gradient(-90deg, #074ece, #d537e7);
  border: none;
  border-radius: 25px;
  padding: 12px 28px;
  line-height: 24px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  width: fit-content;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
}

.service-cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.service-cta-button:hover::before {
  opacity: 1;
}

.service-cta-button:hover {
  background-image: linear-gradient(to right, #074ece, #d537e7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
} */

.service-hero-grid .clients-badge {
  margin: 25px 0;
  justify-content: flex-start;
  gap: 12px;
  background: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

/* =============================================================
   2. FAILURE POINTS SECTION
============================================================= */
#web-blog {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: white;
}

.failure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  margin-bottom: 40px;
}

.failure-card {
  text-align: left;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.failure-card:hover {
  border-color: #d537e7;
  box-shadow: 0 8px 24px rgba(213, 55, 231, 0.15);
  transform: translateY(-5px);
}

.failure-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #074ece, #d537e7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 8px;
}


.failure-card p {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: #666;
  margin: 0;
}

.failure-conclusion {
  text-align: left;
  max-width: 800px;
  padding: 32px;
  background: rgba(7, 78, 206, 0.05);
  border-left: 4px solid #074ece;
  border-radius: 8px;
}

.failure-conclusion p {
  font-size: 17px;
  line-height: 28px;
  color: #1a1a1a;
  margin: 8px 0;
}

.failure-conclusion strong {
  background-image: linear-gradient(to right, #074ece, #d537e7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* =============================================================
   3. APPROACH SECTION
============================================================= */
#approach {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: linear-gradient(to bottom, #f9fafb, white);
}

.approach-content {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 48px;
  width: 100%;
  max-width: 1000px;
  align-items: center;
}

.approach-text p {
  font-size: 17px;
  font-weight: 400;
  line-height: 28px;
  color: #1a1a1a;
  margin: 0 0 20px 0;
}

.approach-text strong {
  font-weight: 700;
  color: #074ece;
}

.approach-principles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
}

.principle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.principle-item .check-icon {
  width: 20px;
  height: 20px;
  margin: 0;
  transform: none;
}

.approach-highlight {
  font-size: 17px !important;
  font-weight: 500 !important;
  background: rgba(213, 55, 231, 0.08);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #d537e7;
}

.approach-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.approach-stat-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.approach-stat-card:hover {
  border-color: #074ece;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(7, 78, 206, 0.15);
}

.approach-stat-card .stat-number {
  font-size: 48px;
  font-weight: 700;
  background-image: linear-gradient(to right, #074ece, #d537e7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  line-height: 1;
}

.approach-stat-card .stat-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  line-height: 1.4;
}

/* =============================================================
   4. FEATURES GRID
============================================================= */
#features {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1000px;
}

.feature-card {
  text-align: left;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-card:hover {
  border-color: #d537e7;
  box-shadow: 0 8px 24px rgba(213, 55, 231, 0.15);
  transform: translateY(-5px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #074ece, #d537e7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 8px;
}


.feature-card p {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: #666;
  margin: 0;
}

/* =============================================================
   5. WHY UNEXA SECTION
============================================================= */
#why-unexa {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: linear-gradient(to bottom, #f9fafb, white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 1000px;
}

.why-card {
  text-align: left;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, #074ece, #d537e7);
  transition: height 0.3s ease;
}

.why-card:hover::before {
  height: 100%;
}

.why-card:hover {
  border-color: #074ece;
  box-shadow: 0 8px 24px rgba(7, 78, 206, 0.15);
  transform: translateX(8px);
}

.why-number {
  font-size: 48px;
  font-weight: 700;
  background-image: linear-gradient(to right, #074ece, #d537e7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}



.why-card p {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: #666;
  margin: 0;
}

.why-conclusion {
  text-align: left;
  max-width: 800px;
  padding: 32px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
}

.why-conclusion p {
  font-size: 17px;
  line-height: 28px;
  color: #1a1a1a;
  margin: 8px 0;
}

.why-conclusion strong {
  background-image: linear-gradient(to right, #074ece, #d537e7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* =============================================================
   6. CTA SECTION
============================================================= */
#cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 40px;
  background: linear-gradient(-45deg, #072356, #d537e7, #072356);
  background-size: 400% 400%;
  animation: gradient-animation 10s ease infinite;
}

.cta-container {
  text-align: center;
  max-width: 800px;
  color: white;
}

.cta-container h2 {
  font-size: 42px;
  font-weight: 700;
  color: white;
  background: none;
  -webkit-text-fill-color: white;
  margin-bottom: 20px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.cta-container p {
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.9);
  margin: 12px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-container .cta-button {
  margin-top: 32px;
}

/* =============================================================
   7. RESPONSIVE OVERRIDES
============================================================= */

/* Tablet (769px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
    padding: 0 40px;
  }

  .service-hero-title {
    font-size: 42px;
    line-height: 52px;
  }

  .failure-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .approach-visual {
    flex-direction: row;
    justify-content: space-between;
  }

  .approach-stat-card {
    flex: 1;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  #service-hero {
    padding: 80px 0 0px 0;
  }

  .service-hero-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .service-hero-title {
    font-size: 32px !important;
    line-height: 42px !important;
    max-width: 100%;
  }

  .service-hero-desc {
    font-size: 16px;
    line-height: 24px;
    max-width: 100%;
  }

  .service-cta-button {
    width: 100%;
    text-align: center;
  }

  .service-hero-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
  }

  #web-blog,
  #approach,
  #features,
  #why-unexa,
  #cta-section {
    padding: 20px;
  }

  .failure-grid,
  .features-grid,
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .failure-card,
  .feature-card,
  .why-card {
    padding: 24px 20px;
  }

  .failure-icon,
  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .failure-icon svg,
  .feature-icon svg {
    width: 28px;
    height: 28px;
  }

  .failure-conclusion,
  .why-conclusion {
    padding: 24px 20px;
  }

  .failure-conclusion p,
  .why-conclusion p {
    font-size: 15px;
    line-height: 24px;
  }

  .approach-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .approach-text p {
    font-size: 15px;
    line-height: 24px;
  }

  .approach-principles {
    padding: 20px;
  }

  .approach-visual {
    flex-direction: column;
  }

  .approach-stat-card .stat-number {
    font-size: 36px;
  }

  .why-number {
    font-size: 36px;
  }


  .cta-container h2 {
    font-size: 32px !important;
  }

  .cta-container p {
    font-size: 16px;
    line-height: 24px;
  }

  #cta-section {
    padding: 60px 20px;
  }
}

/* Extra Small (≤ 480px) */
@media (max-width: 480px) {
  .service-hero-title {
    font-size: 28px !important;
    line-height: 36px !important;
  }

  .service-hero-desc {
    font-size: 15px;
  }

  .cta-container h2 {
    font-size: 28px !important;
  }

  .approach-stat-card .stat-number {
    font-size: 32px;
  }
}
