@import url('colors.css');

/*
solutions.css
------------
Centered solution cards with smooth dropdown animation and rotating arrow.
*/

.solutions-page {
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  text-align: center;
  padding: 4rem 1rem;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* Centered vertical stack */
.solutions-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: visible;
}

/* Card container */
.solution-card {
  background-color: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  width: 100%;
  max-width: 420px;          /* wider */
  overflow: visible;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

/* Image */
.solution-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background-color: var(--bg-card);
  border-radius: 12px 12px 0 0;
}

/* Card body */
.solution-body {
  padding: 1.5rem;
}

.solution-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.solution-summary {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Dropdown toggle */

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.75rem auto;
}

.arrow-icon {
  width: 24px;
  height: 24px;
  color: var(--text-primary);   /* white */
  opacity: 0.8;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.3s ease-in-out, opacity 0.2s ease;
}

.dropdown-toggle:hover .arrow-icon {
  opacity: 1;
}

.dropdown-toggle.active .arrow-icon {
  transform: rotate(180deg);
  color: var(--text-primary);   /* stay white */
}

/* Dropdown content */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  border-radius: 0 0 10px 10px;
  margin-top: 0.5rem;
  text-align: left;
  padding: 0 1rem;
  transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease, padding 0.3s ease;
}

.dropdown-content a {
  color: var(--text-muted);        /* softer color */
  text-decoration: none;           /* remove underline */
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.dropdown-content a:hover {
  border-bottom: 1px solid var(--text-muted);  /* subtle hover */
  opacity: 0.8;
}

.dropdown-content.active {
  max-height: 800px;
  opacity: 1;
  visibility: visible;
  padding: 1rem;
}

/* Button */
.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;

  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);

  transition: background 0.25s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--bg-highlight);
  transform: translateY(-1px);
}

/* Video embed (only when details.video exists) */
.solution-video {
  width: 100%;
}

.video-embed {
  position: relative;
  width: 100%;
  height: 200px; /* match image height */
  background-color: var(--bg-card);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}