/* =====================================================================
   ADROAS — css/components.css
   Shared layout primitives, content sections, footer.
   ===================================================================== */


/* Force transparent backgrounds on sections inside bg-zones */
.problem-section,
.what-we-do-section,
.how-it-works-section,
.who-we-help-section,
.faq-section,
.contact-section,
.final-cta-section,
.site-footer {
  background: transparent !important;
  background-color: transparent !important;
}

/* ─────────────────────────────────────────────────────────────────────
   14. SECTIONS & COMMON LAYOUT
   ───────────────────────────────────────────────────────────────────── */
.section {
  margin: 0;
  padding-block: clamp(4rem, 8vw, 7rem);
  padding-inline: var(--pad-x);
  position: relative;
  z-index: 10;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
  contain: layout paint;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  max-width: 720px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}

.section-title {
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 780;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.section-desc {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Problem Section split layout */
.problem-section {
  position: relative;
  background: transparent;
}

.problem-section .container {
  position: relative;
  z-index: 1;
}

.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.problem-left {
  text-align: left;
}

.problem-left .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.problem-left .section-desc {
  text-align: left;
  max-width: 100%;
}

.problem-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.problem-card {
  background: rgba(248, 246, 239, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.problem-card:hover {
  border-color: var(--soft-blue);
  background: rgba(248, 246, 239, 0.92);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.88rem;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* What We Do Section */
.what-we-do-section {
  position: relative;
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}

.feature-card {
  background: rgba(248, 246, 239, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
  border-radius: 20px;
  padding: 2.5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--soft-blue);
  background: rgba(248, 246, 239, 0.92);
}

.feature-icon {
  font-size: 1.75rem;
  color: var(--blue);
  margin-bottom: 1.25rem;
  display: inline-block;
  line-height: 1;
}

/* How It Works Section - Timeline Layout */
.how-it-works-section {
  position: relative;
  background: transparent;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 3.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1.25rem;
  width: 2px;
  background: var(--soft-blue);
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-badge {
  position: absolute;
  left: -3.5rem;
  top: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(24, 38, 58, 0.15);
}

.timeline-content {
  background: rgba(248, 246, 239, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.timeline-content:hover {
  border-color: var(--soft-blue);
  background: rgba(248, 246, 239, 0.92);
}

/* Who We Help Section */
.who-we-help-section {
  position: relative;
  text-align: center;
  background: transparent;
}

.industries-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.88rem;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.industry-tag {
  background: rgba(248, 246, 239, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
  border-radius: 50px;
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.industry-tag:hover {
  background: rgba(248, 246, 239, 0.92);
  border-color: var(--steel);
}

.who-we-help-desc {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

/* FAQ Section */
.faq-section {
  position: relative;
  background: transparent;
}

/* Final CTA Section (Contact) */
.contact-section {
  position: relative;
  background: transparent;
}

/* Shared section vertical transition fade mask system */
.problem-section::after,
.what-we-do-section::after,
.how-it-works-section::after,
.who-we-help-section::after,
.faq-section::after,
.contact-section::after {
  content: none !important;
}

.cta-panel {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(248, 246, 239, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.cta-panel .section-title {
  margin-bottom: 1.25rem;
}

.cta-panel .section-desc {
  max-width: 540px;
  margin: 0 auto 2.25rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.cta-panel .cta-actions {
  display: flex;
  justify-content: center;
}

/* Footer styling */
.site-footer {
  background: transparent;
  border-top: none;
  padding: 3rem var(--pad-x) 2rem;
  z-index: 10;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
  contain: layout paint;
}

.site-footer::after {
  content: none !important;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  max-width: 380px;
}

.wordmark--footer {
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--navy);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.8;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────
   15. SETUP CARDS & SCROLL REVEAL (what-we-do.html)
   ───────────────────────────────────────────────────────────────────── */
.setup-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.setup-card {
  background: rgba(248, 246, 239, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  transition: opacity 500ms ease, transform 500ms ease, border-color 0.2s ease, background-color 0.2s ease;
  box-shadow: none;
  opacity: 0;
  transform: translateY(24px);
}

.setup-card:hover {
  border-color: var(--soft-blue);
  background: rgba(248, 246, 239, 0.90);
}

.setup-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .setup-card,
  .flagship-card,
  .phase-card,
  .faq-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .faq-chevron,
  .faq-answer {
    transition: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   16. WORKFLOW BREAKDOWN STYLES (what-we-do.html)
   ───────────────────────────────────────────────────────────────────── */
.workflow-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.workflow-card {
  background: rgba(248, 246, 239, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.workflow-card:hover {
  border-color: var(--soft-blue);
  background: rgba(248, 246, 239, 0.90);
}

.workflow-tag {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--steel);
  display: block;
  margin-bottom: 0.5rem;
}

.workflow-card .card-title {
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--navy);
}

.workflow-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  padding-left: 2.5rem;
}

.detail-row {
  display: flex;
  align-items: start;
}

.detail-label {
  font-weight: 700;
  color: var(--navy);
  display: inline-block;
  width: 110px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.detail-val {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Mobile responsive for Workflow Cards */
@media (max-width: 768px) {
  .workflow-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
  }
  .workflow-details {
    border-left: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-left: 0;
    padding-top: 1.5rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   17. SERVICE OVERVIEW & COMPACT EXAMPLES (what-we-do.html Rebuild)
   ───────────────────────────────────────────────────────────────────── */
.three-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.overview-card {
  background: rgba(248, 246, 239, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.overview-card:hover {
  border-color: var(--soft-blue);
  background: rgba(248, 246, 239, 0.90);
}

.overview-card .card-title {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.overview-card .card-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.workflow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.workflow-chip {
  background: rgba(24, 38, 58, 0.05);
  border: 1px solid rgba(24, 38, 58, 0.08);
  border-radius: 50px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-block;
}

.example-workflows-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.example-row {
  background: rgba(248, 246, 239, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.example-row:hover {
  border-color: var(--soft-blue);
  background: rgba(248, 246, 239, 0.90);
}

.workflow-step-node {
  color: var(--muted);
  font-weight: 500;
}

.workflow-step-node.accent {
  color: var(--navy);
  font-weight: 700;
}

.workflow-step-node.success,
.workflow-step-node.alert {
  color: var(--navy);
  font-weight: 600;
}

.workflow-step-arrow {
  color: var(--steel);
  font-weight: 700;
}

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

@media (max-width: 768px) {
  .three-card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .overview-card {
    padding: 1.75rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   18. CATEGORY CARDS (what-we-do.html — six systems)
   ───────────────────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.category-card {
  background: rgba(248, 246, 239, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 2rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.category-card:hover {
  border-color: var(--soft-blue);
  background: rgba(248, 246, 239, 0.90);
}

.category-card__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.category-card__index {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--steel);
  opacity: 0.75;
}

.category-card__head .card-title {
  margin: 0;
}

.category-card .card-desc {
  margin-bottom: 1.25rem;
}

.category-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.category-meta__row dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin: 0 0 0.25rem;
}

.category-meta__row dd {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────
   19. FLAGSHIP: THE FOLLOW-UP SYSTEM (dark/navy contrast section)
   ───────────────────────────────────────────────────────────────────── */
.bg-zone > section.flagship-section {
  background: var(--navy) !important;
}

.flagship-section {
  position: relative;
}

.flagship-section .section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft-blue);
  margin-bottom: 1.1rem;
}

.flagship-section .section-title {
  color: #FFFFFF;
}

.flagship-section .section-desc {
  color: rgba(255, 255, 255, 0.70);
  max-width: 640px;
  margin: 0 auto;
}

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.flagship-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 1.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 400ms ease, border-color 0.2s ease, background-color 0.2s ease;
}

.flagship-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.flagship-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.flagship-card__index {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--soft-blue);
  opacity: 0.6;
  margin-bottom: 0.9rem;
}

.flagship-card .card-title {
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.flagship-card .card-desc {
  color: rgba(255, 255, 255, 0.68);
}

/* ─────────────────────────────────────────────────────────────────────
   20. HOW IT WORKS — PHASE CARDS
   ───────────────────────────────────────────────────────────────────── */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.phase-card {
  background: rgba(248, 246, 239, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 400ms ease, border-color 0.2s ease, background-color 0.2s ease;
}

.phase-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.phase-card:hover {
  border-color: var(--soft-blue);
  background: rgba(248, 246, 239, 0.92);
}

.phase-card__label {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.phase-card .card-desc {
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────
   21. FAQ ACCORDION
   ───────────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.88rem;
}

.faq-item {
  background: rgba(248, 246, 239, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 400ms ease, border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:hover {
  border-color: var(--soft-blue);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  margin: 0;
  text-align: left;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--navy);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--steel);
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer__inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer__inner p {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

