/* ==========================================================================
   AVERDISO SERVICE SUBPAGES STYLESHEET
   ========================================================================== */

/* 1. CSS Custom Properties / Design Tokens */
:root {
  --primary: #111111;
  --primary-hover: #2a2a2a;
  --accent-red: #e63946;
  --bg-light: #fafafa;
  --bg-card: #f8f9fa;
  --border-light: rgba(0, 0, 0, 0.06);
  --text-dark: #111111;
  --text-muted: #666666;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 50px;
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2. Global Page Layout & Hero Specifics */
.hero-subpage {
  padding: 5rem 1rem 3rem 1rem;
}

.hero-subpage h1 {
  max-width: 900px;
  margin: 1rem auto;
}

.hero-subpage .section-desc {
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

.text-gradient {
  background: linear-gradient(135deg, #111111 0%, #555555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-image-wrapper {
  max-width: 1000px;
  margin: 0 auto 5rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.hero-image-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* 3. Badges & Accents */
.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* 4. Grid Layout Helpers */
.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.align-center {
  align-items: center;
}

/* 5. Components & Cards */
.pillar-section {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 5rem 3rem;
  margin-top: 2rem;
}

.pillar-header {
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.pillar-card {
  padding: 2.25rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: var(--bg-light);
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.pillar-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.pillar-title {
  margin: 0.75rem 0;
  font-size: 1.5rem;
}

.pillar-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

.pain-point-card {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

/* 6. Lists */
.check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-list .icon-cross {
  color: var(--accent-red);
  font-weight: bold;
}

ol.process-list {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--text-muted);
}

ol.process-list li {
  line-height: 1.6;
}

ol.process-list strong {
  color: var(--text-dark);
}

/* 7. CTA Section */
.cta-banner {
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 5rem 2rem;
  margin-bottom: 5rem;
}

.cta-banner h2 {
  font-size: 3rem;
  margin: 1rem auto;
  max-width: 800px;
  color: #ffffff;
}

.cta-banner p {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  color: #a1a1a1;
  font-size: 1.1rem;
}

/* 8. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-dark {
  background: var(--primary);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.btn-light {
  background: #ffffff;
  color: var(--primary);
}

.btn-light:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.rounded-pill {
  border-radius: var(--radius-pill) !important;
}

/* 9. Responsive Breakpoints */
@media (max-width: 992px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-subpage h1 {
    font-size: 2.25rem !important;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .pillar-section {
    padding: 3rem 1.5rem;
  }

  .cta-banner h2 {
    font-size: 2.25rem;
  }
}



/* ==========================================================================
   TYPOGRAPHY & TITLE SCALING OVERRIDES
   ========================================================================== */

/* Hero Main Title */
.hero-subpage h1.large-text,
.hero-subpage h1 {
  font-size: clamp(2.75rem, 5vw, 4.25rem) !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Primary Section Headings (H2) */
.section-title,
.large-text,
.section container h2,
.pillar-header h2 {
  font-size: clamp(2.25rem, 4vw, 3.25rem) !important;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Section Sub-headings & Card Titles (H3) */
.card-title,
.pillar-title,
.pain-point-card h3 {
  font-size: clamp(1.6rem, 2.5vw, 2rem) !important;
  line-height: 1.3;
  font-weight: 600;
}

/* Call to Action Title */
.cta-banner h2 {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem) !important;
  line-height: 1.15;
}

/* Pillar Numbers */
.pillar-number {
  font-size: 1.5rem !important;
  font-weight: 700;
  color: var(--text-dark, #111111);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-subpage h1 {
    font-size: 2.5rem !important;
  }
  
  .section-title,
  .pillar-header h2 {
    font-size: 2rem !important;
  }

  .cta-banner h2 {
    font-size: 2.25rem !important;
  }
}


/* ==========================================================================
   PROCESS / METHODOLOGY LAYOUT FIXES
   ========================================================================== */

/* Container wrapper for image + process list */
.process-section {
  padding: 4rem 0;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center; /* Vertical center alignment */
}

/* Image styling & constraints */
.process-image-wrapper {
  width: 100%;
  border-radius: var(--radius-lg, 24px);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light, rgba(0, 0, 0, 0.06));
}

/* ==========================================================================
   VERTICAL PROCESS IMAGE FIX
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr; /* Slightly narrows image column to emphasize verticality */
  gap: 3.5rem;
  align-items: center;
}

.process-image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4; /* Enforces a clean vertical portrait orientation */
  border-radius: var(--radius-lg, 24px);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light, rgba(0, 0, 0, 0.06));
}

.process-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fits the image cleanly inside the vertical aspect ratio without stretching */
  display: block;
}

/* Responsive Fix for Mobile & Tablets */
@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .process-image-wrapper {
    aspect-ratio: 4 / 3; /* Shifts back to landscape on mobile so it doesn't take up full screen height */
    max-height: 400px;
  }
}
/* Process Text Content */
.process-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
  margin: 0.75rem 0 1.75rem 0;
  line-height: 1.2;
}

/* Enhanced Ordered List Styling */
ol.process-list {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--text-muted, #666666);
}

ol.process-list li {
  line-height: 1.6;
  font-size: 1.05rem;
}

ol.process-list li strong {
  color: var(--text-dark, #111111);
  display: block; /* Puts title above description or keeps it punchy */
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

/* Responsive Fix for Mobile & Tablets */
@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .process-image-wrapper img {
    height: 350px;
  }
}