/* ========================================
   IMORTIS LAYOUT ENHANCEMENT
   Layout and spacing improvements ONLY
   Brand colors preserved from original
   ======================================== */

/* ========================================
   1. TYPOGRAPHY IMPROVEMENTS
   Better font weights, sizes, and hierarchy
   USING ORIGINAL FONTS (Playfair Display, Raleway)
   ======================================== */

/* Improved heading hierarchy with original fonts */
h1, h2, h3, .section-title h2, .hero-title,
.sales-section-title, .product-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1, .hero-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Body Text - Better line height and spacing */
body, p, .feature-description, .product-description,
.benefit-text, .step-text {
  line-height: 1.8;
}

/* ========================================
   2. ENHANCED SPACING & WHITESPACE
   More generous padding and vertical rhythm
   ======================================== */

/* Section breathing room */
section:not(.hero-section) {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* Card spacing improvements */
.feature-card,
.product-card,
.stat-card,
.value-card,
.step-card,
.commitment-card,
.advantage-card,
.platform-feature-card {
  padding: 2.5rem 2rem;
}

/* Better gap between grid items */
.features-grid,
.products-grid,
.stats-grid,
.advantages-grid,
.steps-grid,
.platform-features-grid {
  gap: 2.5rem;
}

/* ========================================
   3. LAYOUT IMPROVEMENTS
   Breaking predictable grids
   Asymmetric arrangements
   ======================================== */

/* Hero content - wider max-width, better centering */
.hero-content {
  max-width: 1100px;
  padding: 4rem 2.5rem;
}

/* Feature cards - staggered heights through padding variation */
.features-grid {
  align-items: start; /* Allow cards to have natural heights */
}

.feature-card:nth-child(2) {
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .feature-card:nth-child(3n+2) {
    margin-top: 1.5rem;
  }
}

/* Products section - better image/text balance */
.product-card {
  padding: 3rem;
}

.product-image {
  width: 200px;
  height: 200px;
  margin-bottom: 2rem;
}

/* Stats section - visual hierarchy through scale */
.stat-card:nth-child(even) {
  transform: scale(1.02);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* ========================================
   4. CARD & CONTAINER IMPROVEMENTS
   Softer borders, better shadows, rounded corners
   WITHOUT changing colors
   ======================================== */

/* Card enhancements - softer feel */
.feature-card,
.product-card,
.stat-card,
.value-card,
.step-card,
.commitment-card,
.advantage-card {
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover states - gentle elevation */
.feature-card:hover,
.product-card:hover,
.value-card:hover,
.step-card:hover,
.commitment-card:hover,
.advantage-card:hover {
  transform: translateY(-6px);
}

/* ========================================
   5. SECTION-SPECIFIC LAYOUT IMPROVEMENTS
   ======================================== */

/* Free Banner Section - Better content arrangement */
.free-banner-section {
  padding: 5rem 0;
}

.free-banner-content {
  gap: 2.5rem;
}

.free-banner-text {
  max-width: 800px;
}

.free-features-list {
  gap: 2rem;
}

.free-feature-item {
  padding: 2.5rem 2rem;
  border-radius: 1rem;
}

/* Why Choose Us - Improved card layout */
.advantages-grid {
  gap: 2rem;
}

.advantage-card {
  padding: 2.5rem 2rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.advantage-icon {
  margin-bottom: 1.75rem;
}

/* How It Works - Better step flow */
.steps-grid {
  gap: 2rem;
}

.step-card {
  padding: 2.5rem 2rem;
}

/* ========================================
   6. CTA & BUTTON SPACING
   Better visual hierarchy
   ======================================== */

.hero-cta-container {
  gap: 1.5rem;
  margin-top: 3rem;
}

.hero-cta {
  padding: 1.25rem 2.75rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Demo/CTA buttons - consistent spacing */
.demo-button,
.buy-button,
.free-banner-button {
  padding: 1.25rem 2.75rem;
  border-radius: 6px;
}

/* ========================================
   7. RESPONSIVE LAYOUT IMPROVEMENTS
   ======================================== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-card:nth-child(2) {
    margin-top: 0;
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section:not(.hero-section) {
    padding: 3.5rem 0;
  }
  
  .hero-content {
    padding: 2.5rem 1.5rem;
  }
  
  .features-grid,
  .advantages-grid,
  .steps-grid,
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card,
  .product-card,
  .stat-card,
  .value-card,
  .step-card,
  .advantage-card {
    padding: 2rem 1.5rem;
  }
  
  .stat-card:nth-child(even) {
    transform: none;
  }
  
  .free-features-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  section:not(.hero-section) {
    padding: 2.5rem 0;
  }
  
  .hero-cta-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-cta {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
  }
  
  .feature-card,
  .product-card,
  .advantage-card {
    padding: 1.75rem 1.25rem;
  }
}

/* ========================================
   8. VISUAL HIERARCHY ENHANCEMENTS
   ======================================== */

/* Section titles - more presence */
.section-title {
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.section-title p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Feature/benefit titles - better prominence */
.feature-title,
.advantage-title,
.platform-feature-title,
.step-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Descriptions - improved readability */
.feature-description,
.advantage-description,
.platform-feature-description,
.step-description {
  font-size: 1rem;
  line-height: 1.75;
}

/* ========================================
   9. ICON CONTAINER IMPROVEMENTS
   Better sizing and spacing
   ======================================== */

.feature-icon,
.advantage-icon,
.platform-feature-icon,
.step-icon,
.free-feature-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
}

.feature-icon i,
.advantage-icon i,
.platform-feature-icon i,
.step-icon i,
.free-feature-icon i {
  font-size: 1.75rem;
}

/* ========================================
   10. SUBTLE ANIMATIONS
   Respectful, professional motion
   ======================================== */

/* Smooth scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .feature-card:hover,
  .product-card:hover,
  .stat-card:hover {
    transform: none;
  }
}

/* ========================================
   11. CONTENT FLOW IMPROVEMENTS
   Better text/image arrangements
   ======================================== */

/* Showcase section - centered, focused */
.showcase-container {
  max-width: 800px;
  text-align: center;
}

.showcase-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.showcase-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* About platform - better content balance */
.about-platform-intro {
  max-width: 750px;
  margin-bottom: 4rem;
}

.about-platform-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Platform demo section */
.platform-demo {
  padding: 3.5rem;
  border-radius: 1rem;
}

.demo-title {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.demo-description {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ========================================
   12. PRODUCT CARDS - ENHANCED LAYOUT
   ======================================== */

.products-grid {
  gap: 3rem;
}

.product-card {
  text-align: center;
  padding: 3rem 2.5rem;
}

.product-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.product-price {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.product-description {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.buy-button {
  max-width: 260px;
}

/* ========================================
   13. STATS SECTION - VISUAL IMPACT
   ======================================== */

.stats-section {
  padding: 6rem 0;
}

.stats-grid {
  gap: 2rem;
}

.stat-card {
  padding: 3rem 2rem;
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ========================================
   14. MISSION SECTION IMPROVEMENTS
   ======================================== */

.mission-statement {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.mission-container {
  padding: 0 2rem;
}

/* Value cards in mission */
.value-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.value-icon {
  margin-bottom: 1.5rem;
}

.value-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.value-description {
  font-size: 1rem;
  line-height: 1.7;
}

/* ========================================
   15. FOOTER IMPROVEMENTS
   ======================================== */

footer {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-links {
  gap: 2rem;
}

/* ========================================
   16. FORM LAYOUT IMPROVEMENTS
   (for any contact/signup forms)
   ======================================== */

.form-group {
  margin-bottom: 1.75rem;
}

.form-control {
  padding: 1rem 1.25rem;
  border-radius: 6px;
}

/* ========================================
   17. DARK THEME LAYOUT CONSISTENCY
   Layout-only adjustments for dark mode
   ======================================== */

[data-theme="dark"] .feature-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .advantage-card {
  /* Layout stays the same, colors come from original CSS */
  border-radius: 1rem;
}

[data-theme="dark"] .stat-card:nth-child(even) {
  transform: scale(1.02);
}

[data-theme="dark"] .stat-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* ========================================
   END OF LAYOUT ENHANCEMENTS
   All color values preserved from original
   brand identity (home.css, base.css)
   ======================================== */
