/*
 * Dice Media Group Web/App Design & Dev Section
 * Custom layout for Web/App Design & Dev service - 1/4 graphic left, 3/4 content right
 * Created: 2025-11-23
 */

/* ============================================
   WEB/APP DESIGN & DEV SECTION
   ============================================ */

.web-app-section {
  background-color: #2C2C2C; /* Dark charcoal */
  padding: 96px 60px;
  color: var(--bwp-white, #FFFFFF);
}

.web-app-container {
  max-width: 1200px;
  margin: 0 auto;
}

.web-app-header {
  font-family: var(--heading-font, 'Merriweather', Georgia, serif);
  font-size: 2.5rem; /* 40px */
  font-weight: 700;
  color: var(--bwp-white, #FFFFFF);
  text-align: left;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.web-app-intro,
.web-app-subheading,
.web-app-process-intro,
.web-app-deliverables-intro {
  font-family: var(--body-font, 'Open Sans', Arial, sans-serif);
  font-size: 1.125rem; /* 18px */
  color: var(--bwp-white, #FFFFFF);
  text-align: left;
  max-width: 100%;
  margin: 0 0 1.5rem 0;
  line-height: 1.8;
}

.web-app-subheading {
  font-weight: 600;
  margin-top: 2rem;
}

/* Main Content Layout - Graphic left (1/4), definitions right (3/4) */
.web-app-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* ============================================
   GRAPHIC - LEFT SIDE (1/4 width on desktop)
   ============================================ */

.web-app-graphic {
  flex: 0 0 25%;
  max-width: 25%;
}

.web-app-graphic svg {
  width: 100%;
  height: auto;
}

/* ============================================
   DEFINITIONS LIST - RIGHT SIDE (3/4 width on desktop)
   ============================================ */

.web-app-definitions {
  flex: 0 0 75%;
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.web-app-definition {
  margin-bottom: 1rem;
}

.web-app-definition-heading {
  font-family: var(--heading-font, 'Merriweather', Georgia, serif);
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: var(--bwp-white, #FFFFFF);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.web-app-definition-text {
  font-family: var(--body-font, 'Open Sans', Arial, sans-serif);
  font-size: 1.125rem; /* 18px */
  color: var(--bwp-white, #FFFFFF);
  opacity: 0.9;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   DIVIDER
   ============================================ */

.web-app-divider {
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  margin: 4rem 0;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.web-app-subheader {
  font-family: var(--heading-font, 'Merriweather', Georgia, serif);
  font-size: 2rem; /* 32px */
  font-weight: 700;
  color: var(--bwp-white, #FFFFFF);
  text-align: left;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.web-app-focus-points {
  margin: 2rem 0 3rem 0;
}

.web-app-focus-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.web-app-focus-bullet {
  color: var(--bwp-red, #C93636);
  font-size: 1.5rem;
  line-height: 1.5;
  flex-shrink: 0;
}

.web-app-focus-text {
  font-family: var(--body-font, 'Open Sans', Arial, sans-serif);
  font-size: 1.125rem; /* 18px */
  color: var(--bwp-white, #FFFFFF);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   DELIVERABLES
   ============================================ */

.web-app-deliverable {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 3rem;
}

.web-app-deliverable-graphic {
  flex: 0 0 200px;
  max-width: 200px;
}

.web-app-deliverable-graphic svg {
  width: 100%;
  height: auto;
}

.web-app-deliverable-content {
  flex: 1;
}

.web-app-deliverable-heading {
  font-family: var(--heading-font, 'Merriweather', Georgia, serif);
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: var(--bwp-white, #FFFFFF);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.web-app-deliverable-text {
  font-family: var(--body-font, 'Open Sans', Arial, sans-serif);
  font-size: 1.125rem; /* 18px */
  color: var(--bwp-white, #FFFFFF);
  opacity: 0.9;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px-1199px) */
@media (max-width: 1199px) {
  .web-app-section {
    padding: 80px 40px;
  }

  .web-app-content {
    gap: 40px;
  }

  .web-app-deliverable {
    gap: 30px;
  }

  .web-app-deliverable-graphic {
    flex: 0 0 150px;
    max-width: 150px;
  }
}

/* Mobile (320px-767px) - Full width, vertical stack */
@media (max-width: 767px) {
  .web-app-section {
    padding: 60px 20px;
  }

  .web-app-header {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .web-app-intro,
  .web-app-subheading,
  .web-app-process-intro,
  .web-app-deliverables-intro {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  /* Stack vertically on mobile */
  .web-app-content {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  /* Graphic takes full width on mobile */
  .web-app-graphic {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  /* Definitions take full width on mobile */
  .web-app-definitions {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    gap: 1.5rem;
  }

  .web-app-definition-heading {
    font-size: 1.25rem;
  }

  .web-app-definition-text {
    font-size: 1rem;
  }

  .web-app-divider {
    margin: 3rem 0;
  }

  .web-app-subheader {
    font-size: 1.5rem;
  }

  .web-app-focus-item {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .web-app-focus-bullet {
    font-size: 1.25rem;
  }

  .web-app-focus-text {
    font-size: 1rem;
  }

  .web-app-deliverable {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2.5rem;
  }

  .web-app-deliverable-graphic {
    flex: 0 0 auto;
    max-width: 200px;
    margin: 0 auto;
  }

  .web-app-deliverable-heading {
    font-size: 1.25rem;
  }

  .web-app-deliverable-text {
    font-size: 1rem;
  }
}

/* Small mobile (320px-480px) */
@media (max-width: 480px) {
  .web-app-section {
    padding: 50px 20px;
  }

  .web-app-header {
    font-size: 1.75rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .web-app-section {
    background-color: transparent;
    border: 1px solid var(--gray-300, #E0E0E0);
    page-break-inside: avoid;
  }

  .web-app-header,
  .web-app-definition-heading,
  .web-app-deliverable-heading {
    color: var(--bwp-charcoal, #2C2C2C);
  }

  .web-app-intro,
  .web-app-definition-text,
  .web-app-deliverable-text,
  .web-app-focus-text {
    color: var(--gray-700, #616161);
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Ensure sufficient contrast */
.web-app-definition-heading:focus-visible,
.web-app-deliverable-heading:focus-visible {
  outline: 2px solid var(--bwp-red, #D32F2F);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
