/* ==========================================
   FOCUS AREA PAGES - PROFESSIONAL DESIGN
   Strategic, Offensive, and Defensive Security Pages
   ========================================== */

/* ==========================================
   HERO ENHANCEMENTS FOR FOCUS PAGES
   ========================================== */

/* ==========================================
   HERO SPLIT ENHANCEMENTS FOR FOCUS PAGES
   ========================================== */

/* Ensure content layers properly */
.hero-split .hero-content,
.hero-split .hero-split-visual {
  position: relative;
  z-index: 2;
}

/* Icon Badge */
.focus-hero-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(
    135deg,
    rgba(254, 231, 78, 0.15),
    rgba(254, 231, 78, 0.08)
  );
  border: 1px solid rgba(254, 231, 78, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.focus-hero-icon-badge img {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  align-self: center;
}

.focus-hero-icon-badge span {
  color: var(--color-yellow);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Yellow Highlight for Hero Title */
.hero-title .highlight-yellow {
  color: var(--color-yellow);
  position: relative;
}

/* Right Side - Section Navigation */

.focus-hero-nav-title {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-6);
  font-weight: var(--font-weight-semibold);
}

.focus-hero-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Navigation Link Cards */
.focus-nav-card {
  position: relative;
  display: block;
  padding: var(--space-6) var(--space-8);
  background: linear-gradient(
    135deg,
    rgba(254, 231, 78, 0.06),
    rgba(254, 231, 78, 0.02)
  );
  border: 1px solid rgba(254, 231, 78, 0.15);
  border-left: 4px solid rgba(254, 231, 78, 0.4);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.focus-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-yellow);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-smooth);
}

.focus-nav-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(254, 231, 78, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.focus-nav-card:hover {
  transform: translateX(8px);
  border-color: rgba(254, 231, 78, 0.4);
  background: linear-gradient(
    135deg,
    rgba(254, 231, 78, 0.1),
    rgba(254, 231, 78, 0.04)
  );
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.focus-nav-card:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.focus-nav-card:hover::after {
  opacity: 1;
}

.focus-nav-card-number {
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  color: rgba(254, 231, 78, 0.1);
  line-height: 1;
  z-index: 1;
}

.focus-nav-card-content {
  position: relative;
  z-index: 2;
}

.focus-nav-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(254, 231, 78, 0.15);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  transition: all var(--transition-smooth);
}

.focus-nav-card:hover .focus-nav-card-icon {
  background: rgba(254, 231, 78, 0.25);
  transform: scale(1.1);
}

.focus-nav-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-yellow);
}

.focus-nav-card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.focus-nav-card-description {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* ==========================================
   SERVICES SECTION - CONTENT BLOCKS
   ========================================== */
.services-section {
  position: relative;
  padding: var(--space-20) 0;
  background: linear-gradient(
    180deg,
    #000000 0%,
    rgba(5, 5, 5, 1) 100%
  );
}

/* Service Card - Large Content Block */
.service-card {
  position: relative;
  padding: var(--space-16);
  margin-bottom: var(--space-12);
  background: linear-gradient(
    135deg,
    rgba(254, 231, 78, 0.04),
    rgba(254, 231, 78, 0.01)
  );
  border: 1px solid rgba(254, 231, 78, 0.12);
  border-left: 6px solid rgba(254, 231, 78, 0.5);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-smooth);
  scroll-margin-top: calc(var(--header-height) + 40px);
}

.service-card:last-child {
  margin-bottom: 0;
}

.service-card:hover {
  border-left-color: var(--color-yellow);
  background: linear-gradient(
    135deg,
    rgba(254, 231, 78, 0.06),
    rgba(254, 231, 78, 0.02)
  );
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Service Number Badge */
.service-number {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: var(--font-weight-extrabold);
  color: rgba(254, 231, 78, 0.06);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* Service Icon */
.service-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(254, 231, 78, 0.2),
    rgba(254, 231, 78, 0.1)
  );
  border: 2px solid rgba(254, 231, 78, 0.3);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
  transition: all var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.08);
  border-color: rgba(254, 231, 78, 0.5);
  box-shadow: 0 0 30px rgba(254, 231, 78, 0.3);
}

.service-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--color-yellow);
}

/* Service Title */
.service-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

/* Service Description */
.service-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 900px;
}

.service-description p {
  margin-bottom: var(--space-4);
}

.service-description p:last-child {
  margin-bottom: 0;
}

/* Service Features List */
.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  max-width: 900px;
}

@media (min-width: 768px) {
  .service-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-base);
  line-height: 1.6;
  border-bottom: 1px solid rgba(254, 231, 78, 0.08);
}

.service-features li::before {
  content: '→';
  color: var(--color-yellow);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  font-size: var(--font-size-lg);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.focus-cta-section {
  position: relative;
  padding: var(--space-20) 0;
  background: linear-gradient(
    135deg,
    rgba(254, 231, 78, 0.08),
    rgba(254, 231, 78, 0.02)
  );
  overflow: hidden;
}

.focus-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(254, 231, 78, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(254, 231, 78, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.focus-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-12);
  background: linear-gradient(
    135deg,
    rgba(2, 2, 2, 0.6),
    rgba(2, 2, 2, 0.4)
  );
  border: 1px solid rgba(254, 231, 78, 0.15);
  border-radius: var(--radius-2xl);
  backdrop-filter: var(--blur-base);
}

.focus-cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

.focus-cta-content p {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.focus-cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   SERVICE DETAIL SECTIONS - IMAGE + TEXT LAYOUT
   ========================================== */
.service-detail-section {
  padding: var(--space-32) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    180deg,
    #000000 0%,
    rgba(5, 5, 5, 1) 100%
  );
  scroll-margin-top: calc(var(--header-height) + 40px);
}

.service-detail-section:nth-child(even) {
  background: linear-gradient(
    135deg,
    rgba(254, 231, 78, 0.03),
    transparent
  );
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.service-detail-content {
  min-width: 0;
}

.service-detail-section-reverse .service-detail-content {
  order: 2;
}

.service-detail-section-reverse .service-detail-image {
  order: 1;
}

.service-detail-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-6);
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
}

.service-detail-text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: var(--font-size-lg);
}

.service-detail-text p {
  margin-bottom: var(--space-6);
}

.service-detail-text p:last-child {
  margin-bottom: 0;
}

.service-detail-text .text-highlight {
  color: var(--color-yellow);
  font-weight: var(--font-weight-bold);
}

.service-detail-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(254, 231, 78, 0.15);
}

.service-detail-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(254, 231, 78, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: 1;
  pointer-events: none;
}

.service-detail-image:hover::before {
  opacity: 1;
}

.service-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-2xl);
  transition: transform var(--transition-smooth);
}

.service-detail-image:hover img {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .service-detail-section {
    padding: var(--space-16) 0;
    min-height: auto;
  }

  .service-detail-grid {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
  }

  /* Image as hero with overlay */
  .service-detail-image {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: var(--radius-2xl);
    order: -1;
  }

  .service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--radius-2xl);
  }

  /* Dark gradient overlay for text contrast */
  .service-detail-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(2, 2, 2, 0.3) 50%,
      rgba(2, 2, 2, 0.88) 100%
    );
    z-index: 1;
    pointer-events: none;
    border-radius: var(--radius-2xl);
  }

  /* Content container - normal flow below image */
  .service-detail-content {
    position: relative;
    order: 1;
    padding-top: var(--space-6);
  }

  /* Text content needs top margin for spacing from heading */
  .service-detail-content .service-detail-text {
    margin-top: var(--space-4);
  }

  /* Badge overlay - positioned at bottom-left of image */
  .mobile-badge-overlay {
    position: absolute;
    bottom: var(--space-6);
    left: var(--space-4);
    z-index: 10;
    margin: 0 !important;
    background: rgba(2, 2, 2, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(254, 231, 78, 0.2) inset;
  }

  /* Keep image first on mobile for all sections (remove reverse ordering) */
  .service-detail-section-reverse .service-detail-image {
    order: -1 !important;
  }
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 1023px) {
  .focus-hero {
    min-height: auto;
    padding: calc(var(--header-height) + 40px) 0 80px;
  }

  .focus-hero .container {
    grid-template-columns: 1fr;
  }

  .focus-hero::before {
    width: 100%;
    clip-path: none;
    background: linear-gradient(
      180deg,
      rgba(254, 231, 78, 0.06) 0%,
      transparent 100%
    );
  }

  .focus-hero-nav {
    margin-top: var(--space-12);
  }

  .focus-nav-card {
    padding: var(--space-5) var(--space-6);
  }
}

@media (max-width: 768px) {
  .focus-hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .service-card {
    padding: var(--space-10) var(--space-6);
  }

  .service-number {
    font-size: clamp(3rem, 15vw, 5rem);
    top: var(--space-6);
    right: var(--space-6);
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  .services-section {
    padding: var(--space-16) 0;
  }

  .focus-cta-section {
    padding: var(--space-16) 0;
  }

  .focus-cta-content {
    padding: var(--space-8);
  }

  .why-protforce-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ==========================================
   WHY PROTFORCE SECTION
   ========================================== */
.why-protforce-section {
  padding: var(--space-20) 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 1) 0%,
    #000000 100%
  );
}

.why-protforce-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  text-align: center;
  margin-bottom: var(--space-12);
  line-height: 1.2;
}

.why-protforce-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  max-width: 1400px;
  margin: 0 auto;
}

.why-protforce-card {
  background: linear-gradient(
    135deg,
    rgba(254, 231, 78, 0.05),
    rgba(254, 231, 78, 0.02)
  );
  border: 1px solid rgba(254, 231, 78, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-smooth);
}

.why-protforce-card:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 231, 78, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(254, 231, 78, 0.08);
}

.why-protforce-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-yellow);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.why-protforce-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-protforce-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: var(--font-size-base);
}

.why-protforce-list li:last-child {
  margin-bottom: 0;
}

.why-protforce-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-yellow);
  border-radius: 50%;
}

/* Two-column variant for sections with only 2 cards */
.why-protforce-grid--two-cols {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
}

/* Responsive */
@media (max-width: 1023px) {
  .why-protforce-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .why-protforce-grid--two-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .why-protforce-section {
    padding: var(--space-12) 0;
  }

  .why-protforce-title {
    margin-bottom: var(--space-8);
  }

  .why-protforce-card {
    padding: var(--space-6);
  }
}
