/* inner-pages.css - Premium Aesthetics for CODARA Inner Pages (Light Theme) */

:root {
  --inner-bg: transparent;
  --inner-surface: rgba(255, 255, 255, 0.58);
  --inner-surface-hover: rgba(255, 255, 255, 0.9);
  --inner-border: rgba(131, 46, 255, 0.16);
  --inner-border-hover: rgba(131, 46, 255, 0.4);
  --inner-glow: rgba(85, 51, 138, 0.11);
  --inner-text-primary: #1a0836;
  --inner-text-secondary: #7d6b9c;
  --inner-accent: #55338a;
  --inner-radius: 1.5rem;
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets for inner pages */
.inner-page-wrapper {
  padding-top: 140px;
  padding-bottom: 0;
  background: transparent;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Beautiful Animated Light Gradient for Inner Page Heroes */
.inner-page-wrapper::before,
.inner-page-wrapper::after {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.inner-page-wrapper::before {
  left: -20vw;
  top: -15vw;
  background: rgba(131, 46, 255, 0.08);
  animation: heroFloat1 18s infinite alternate ease-in-out;
}

.inner-page-wrapper::after {
  right: -15vw;
  top: 5vw;
  background: rgba(192, 132, 252, 0.07);
  animation: heroFloat2 22s infinite alternate ease-in-out;
}

@keyframes heroFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vw) scale(1.15); }
}

@keyframes heroFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-8vw, 8vw) scale(1.1); }
}

/* Light Pink Floating Cubes (Glassmorphism) */
.floating-cubes-bg {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.floating-cubes-bg .cube {
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 182, 220, 0.6) 0%, rgba(255, 182, 220, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px 0 rgba(255, 182, 220, 0.25);
  border-radius: 16px;
  animation: floatPinkCube 15s infinite ease-in-out alternate;
  will-change: transform;
}
.cube-1 { width: 90px; height: 90px; top: 15%; left: 8%; animation-delay: 0s; animation-duration: 18s; transform: rotate(15deg); }
.cube-2 { width: 140px; height: 140px; top: 40%; right: 12%; animation-delay: -5s; animation-duration: 22s; transform: rotate(-25deg); }
.cube-3 { width: 60px; height: 60px; top: 70%; left: 18%; animation-delay: -10s; animation-duration: 15s; transform: rotate(45deg); }
.cube-4 { width: 100px; height: 100px; top: 10%; right: 25%; animation-delay: -15s; animation-duration: 20s; transform: rotate(10deg); }
.cube-5 { width: 75px; height: 75px; top: 60%; right: 8%; animation-delay: -7s; animation-duration: 17s; transform: rotate(-15deg); }

@keyframes floatPinkCube {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  100% { transform: translateY(-50px) rotate(45deg) scale(1.1); }
}

/* Ensure all content wrappers on inner pages sit above the background cubes */
.inner-page-wrapper,
.page-main {
  position: relative;
  z-index: 2;
}

.inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
  z-index: 2;
}

/* Premium Hero Section */
.inner-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.inner-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(131, 46, 255, 0.08);
  border: 1px solid rgba(131, 46, 255, 0.18);
  color: var(--inner-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.inner-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--inner-text-primary);
}

.inner-lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--inner-text-secondary);
}

/* Premium Cards (Glassmorphism) */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.premium-card {
  position: relative;
  background: var(--inner-surface);
  border: 1px solid var(--inner-border);
  border-radius: var(--inner-radius);
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(85, 51, 138, 0.05);
}

.premium-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4);
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(-8px);
  background: var(--inner-surface-hover);
  border-color: var(--inner-border-hover);
  box-shadow: 0 20px 40px rgba(85, 51, 138, 0.1), 0 0 40px rgba(131, 46, 255, 0.05);
}

.premium-card-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--inner-text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.premium-card-desc {
  color: var(--inner-text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Card image handling */
.premium-card-img-wrapper {
  margin: -40px -40px 30px -40px;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.premium-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover .premium-card-img {
  transform: scale(1.05);
}

/* Tags */
.premium-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.premium-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(131, 46, 255, 0.08);
  border: 1px solid rgba(131, 46, 255, 0.18);
  color: var(--inner-accent);
}

/* FAQ Accordion */
.premium-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.premium-faq-item {
  border-bottom: 1px solid var(--inner-border);
  overflow: hidden;
}

.premium-faq-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--inner-text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}

.premium-faq-btn:hover {
  color: var(--inner-accent);
}

.premium-faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.4s ease;
}

.premium-faq-icon::before,
.premium-faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s ease;
}

.premium-faq-icon::before {
  top: 11px;
  left: 0;
  width: 24px;
  height: 2px;
}

.premium-faq-icon::after {
  top: 0;
  left: 11px;
  width: 2px;
  height: 24px;
}

.premium-faq-item.active .premium-faq-icon {
  transform: rotate(45deg);
}

.premium-faq-content {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding 0.4s ease;
}

.premium-faq-item.active .premium-faq-content {
  padding-bottom: 32px;
  opacity: 1;
}

.premium-faq-text {
  color: var(--inner-text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Review Masonry */
.review-masonry {
  column-count: 1;
  column-gap: 32px;
}

@media (min-width: 768px) { .review-masonry { column-count: 2; } }
@media (min-width: 1024px) { .review-masonry { column-count: 3; } }

.review-card {
  break-inside: avoid;
  margin-bottom: 32px;
  padding: 32px;
  background: var(--inner-surface);
  border: 1px solid var(--inner-border);
  border-radius: var(--inner-radius);
  position: relative;
  box-shadow: 0 22px 70px rgba(85, 51, 138, 0.05);
}

.review-quote {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--inner-text-primary);
  margin-bottom: 24px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.review-name {
  display: block;
  font-weight: 600;
  color: var(--inner-text-primary);
}

.review-role {
  display: block;
  font-size: 0.85rem;
  color: var(--inner-text-secondary);
}

/* Process Timeline */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(131, 46, 255, 0.35), transparent);
}

.process-step {
  position: relative;
  margin-bottom: 60px;
}

.process-step::before {
  content: '';
  position: absolute;
  left: -45px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--inner-accent);
}

/* Utilities */
.text-accent { color: var(--inner-accent); }
