/* 🚀 LAMBORGHINI-INSPIRED RESPONSIVE ENHANCEMENT */
/* Perfect responsiveness for any device and dimension */

/* === ENHANCED RESPONSIVE FOUNDATION === */
:root {
  /* Fluid Typography Scale */
  --fluid-min-width: 320;
  --fluid-max-width: 1400;
  --fluid-screen: 100vw;
  --fluid-bp: calc(
    (var(--fluid-screen) - var(--fluid-min-width) / 16 * 1rem) /
    (var(--fluid-max-width) - var(--fluid-min-width))
  );
  
  /* Dynamic Font Sizes - Scales perfectly across all devices */
  --fs-sm: calc(0.8rem + (1 - 0.8) * var(--fluid-bp));
  --fs-base: calc(1rem + (1.125 - 1) * var(--fluid-bp));
  --fs-lg: calc(1.125rem + (1.25 - 1.125) * var(--fluid-bp));
  --fs-xl: calc(1.25rem + (1.5 - 1.25) * var(--fluid-bp));
  --fs-2xl: calc(1.5rem + (1.875 - 1.5) * var(--fluid-bp));
  --fs-3xl: calc(1.875rem + (2.25 - 1.875) * var(--fluid-bp));
  --fs-4xl: calc(2.25rem + (3 - 2.25) * var(--fluid-bp));
  --fs-5xl: calc(3rem + (3.75 - 3) * var(--fluid-bp));
  --fs-6xl: calc(3.75rem + (4.5 - 3.75) * var(--fluid-bp));
  
  /* Fluid Spacing Scale */
  --space-3xs: calc(0.25rem + (0.25 - 0.25) * var(--fluid-bp));
  --space-2xs: calc(0.5rem + (0.5 - 0.5) * var(--fluid-bp));
  --space-xs: calc(0.75rem + (1 - 0.75) * var(--fluid-bp));
  --space-sm: calc(1rem + (1.25 - 1) * var(--fluid-bp));
  --space-md: calc(1.5rem + (2 - 1.5) * var(--fluid-bp));
  --space-lg: calc(2rem + (3 - 2) * var(--fluid-bp));
  --space-xl: calc(3rem + (4 - 3) * var(--fluid-bp));
  --space-2xl: calc(4rem + (6 - 4) * var(--fluid-bp));
  --space-3xl: calc(6rem + (8 - 6) * var(--fluid-bp));
  
  /* Container Sizes */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;
  
  /* Color System */
  --brand-primary: #2563EB;
  --brand-secondary: #6366F1;
  --neutral-50: #F9FAFB;
  --neutral-100: #F3F4F6;
  --neutral-200: #E5E7EB;
  --neutral-300: #D1D5DB;
  --neutral-400: #9CA3AF;
  --neutral-500: #6B7280;
  --neutral-600: #4B5563;
  --neutral-700: #374151;
  --neutral-800: #1F2937;
  --neutral-900: #111827;
  --white: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Border Radius Scale */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadow Scale */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Responsive Grid System */
  --grid-cols-1: repeat(1, minmax(0, 1fr));
  --grid-cols-2: repeat(2, minmax(0, 1fr));
  --grid-cols-3: repeat(3, minmax(0, 1fr));
  --grid-cols-4: repeat(4, minmax(0, 1fr));
  --grid-cols-6: repeat(6, minmax(0, 1fr));
  --grid-cols-12: repeat(12, minmax(0, 1fr));
}

/* === PERFECT FLUID CONTAINERS === */
.container {
  width: 100%;
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }

/* === ENHANCED RESPONSIVE GRID === */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Responsive Grid Classes */
.grid-1 { grid-template-columns: var(--grid-cols-1); }
.grid-2 { grid-template-columns: var(--grid-cols-2); }
.grid-3 { grid-template-columns: var(--grid-cols-3); }
.grid-4 { grid-template-columns: var(--grid-cols-4); }

/* === ENHANCED TYPOGRAPHY === */
.text-fluid-sm { font-size: var(--fs-sm); }
.text-fluid-base { font-size: var(--fs-base); }
.text-fluid-lg { font-size: var(--fs-lg); }
.text-fluid-xl { font-size: var(--fs-xl); }
.text-fluid-2xl { font-size: var(--fs-2xl); }
.text-fluid-3xl { font-size: var(--fs-3xl); }
.text-fluid-4xl { font-size: var(--fs-4xl); }
.text-fluid-5xl { font-size: var(--fs-5xl); }
.text-fluid-6xl { font-size: var(--fs-6xl); }

/* Override default heading sizes with fluid versions */
h1 { 
  font-size: var(--fs-5xl);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

h2 { 
  font-size: var(--fs-4xl);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h3 { 
  font-size: var(--fs-3xl);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h4 { 
  font-size: var(--fs-2xl);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

h5 { 
  font-size: var(--fs-xl);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

h6 { 
  font-size: var(--fs-lg);
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

p {
  font-size: var(--fs-base);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* === ENHANCED SPACING UTILITIES === */
.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }
.p-3xl { padding: var(--space-3xl); }

.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* === ENHANCED SECTIONS === */
section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.section-padding-sm {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section-padding-lg {
  padding-top: calc(var(--space-3xl) * 1.5);
  padding-bottom: calc(var(--space-3xl) * 1.5);
}

/* === ENHANCED HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: var(--container-2xl);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-md);
}

/* === ENHANCED NAVIGATION === */
nav {
  padding: var(--space-md) var(--space-md);
}

.nav-links {
  gap: var(--space-lg);
}

.nav-links a {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-base);
}

/* === ENHANCED BUTTONS === */
.cta-button, .btn {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-base);
  border-radius: var(--radius-md);
}

.cta-button.large {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--fs-lg);
}

.cta-button.small {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-sm);
}

/* === ENHANCED CARDS === */
.card, .testimonial-card, .course-card {
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-md);
}

/* === PERFECT RESPONSIVE BREAKPOINTS === */

/* Small devices (landscape phones) */
@media (min-width: 576px) {
  .container { padding-left: var(--space-lg); padding-right: var(--space-lg); }
  
  .grid-sm-1 { grid-template-columns: var(--grid-cols-1); }
  .grid-sm-2 { grid-template-columns: var(--grid-cols-2); }
  .grid-sm-3 { grid-template-columns: var(--grid-cols-3); }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Medium devices (tablets) */
@media (min-width: 768px) {
  .grid-md-1 { grid-template-columns: var(--grid-cols-1); }
  .grid-md-2 { grid-template-columns: var(--grid-cols-2); }
  .grid-md-3 { grid-template-columns: var(--grid-cols-3); }
  .grid-md-4 { grid-template-columns: var(--grid-cols-4); }
  
  .nav-links {
    gap: var(--space-xl);
  }
  
  .hero {
    min-height: 90vh;
  }
}

/* Large devices (desktops) */
@media (min-width: 992px) {
  .grid-lg-1 { grid-template-columns: var(--grid-cols-1); }
  .grid-lg-2 { grid-template-columns: var(--grid-cols-2); }
  .grid-lg-3 { grid-template-columns: var(--grid-cols-3); }
  .grid-lg-4 { grid-template-columns: var(--grid-cols-4); }
  .grid-lg-6 { grid-template-columns: var(--grid-cols-6); }
  
  .hero-content {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
  }
}

/* Extra large devices */
@media (min-width: 1200px) {
  .grid-xl-1 { grid-template-columns: var(--grid-cols-1); }
  .grid-xl-2 { grid-template-columns: var(--grid-cols-2); }
  .grid-xl-3 { grid-template-columns: var(--grid-cols-3); }
  .grid-xl-4 { grid-template-columns: var(--grid-cols-4); }
  .grid-xl-6 { grid-template-columns: var(--grid-cols-6); }
  .grid-xl-12 { grid-template-columns: var(--grid-cols-12); }
}

/* === ENHANCED SPECIFIC COMPONENTS === */

/* Course Grid Enhancement */
.course-grid-four {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* Testimonials Enhancement */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* Pricing Grid Enhancement */
.pricing-grid-four {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* Featured Posts Enhancement */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* === STREAMLINED SECTION SPACING === */
.section-divider {
  display: none; /* Remove dividers to reduce clutter */
}

/* Section Spacing Control */
.section-padding-sm {
  padding: var(--space-lg) 0;
}

.section-padding-md {
  padding: var(--space-xl) 0;
}

.section-padding-lg {
  padding: var(--space-2xl) 0;
}

/* Text Center Utility */
.text-center {
  text-align: center;
}

/* === MOBILE-SPECIFIC IMPROVEMENTS === */

/* Course Preview Cards */
.course-preview-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.preview-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1px solid var(--neutral-200);
  transition: all 0.3s ease;
  text-align: center;
}

/* Testimonial Cards Mobile */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1px solid var(--neutral-200);
  transition: all 0.3s ease;
}

.testimonial-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.testimonial-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
}

.testimonial-info h4 {
  margin: 0 0 var(--space-3xs) 0;
  font-size: var(--fs-lg);
  font-weight: 600;
}

.testimonial-info span {
  color: var(--neutral-600);
  font-size: var(--fs-sm);
}

.testimonial-badges {
  margin-top: var(--space-xs);
}

.badge {
  display: inline-block;
  padding: var(--space-3xs) var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* Why Choose Us Cards */
.reasons {
  display: grid;
  gap: var(--space-lg);
}

.reason {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1px solid var(--neutral-200);
  text-align: center;
  transition: all 0.3s ease;
}

.reason i {
  font-size: var(--fs-3xl);
  color: var(--brand-primary);
  margin-bottom: var(--space-md);
}

.reason h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-xl);
}

/* About Content Layout */
.about-content {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.about-image img {
  border-radius: var(--radius-xl);
  max-width: 100%;
  height: auto;
}

/* CTA Buttons Responsive */
.final-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 576px) {
  .final-cta-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Guarantees Grid */
.guarantees {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
}

/* Live Activity Ticker */
.live-activity {
  background: var(--neutral-50);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
}

.activity-ticker {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
}

.activity-text {
  flex: 1;
}

.activity-time {
  color: var(--neutral-500);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

/* === ULTRA-SMALL DEVICES (< 480px) === */
@media (max-width: 479px) {
  :root {
    /* Tighter spacing for very small screens */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
  }
  
  .container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
  
  .hero {
    min-height: 100vh;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }
  
  .nav-links {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  /* Force single column on very small screens */
  .grid,
  .course-grid-four,
  .testimonials-grid,
  .pricing-grid-four,
  .featured-grid,
  .course-preview-grid,
  .reasons,
  .guarantees {
    grid-template-columns: 1fr !important;
    gap: var(--space-md);
  }
  
  .card,
  .testimonial-card,
  .course-card,
  .preview-card,
  .testimonial,
  .reason {
    padding: var(--space-md);
  }
  
  .cta-button,
  .btn {
    width: 100%;
    text-align: center;
    margin-bottom: var(--space-sm);
  }
  
  /* Testimonial Header Stack */
  .testimonial-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .testimonial-photo {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }
  
  /* Section Padding Reduction */
  .section-padding-lg {
    padding: var(--space-xl) 0;
  }
  
  .section-padding-md {
    padding: var(--space-lg) 0;
  }
  
  /* Text Sizing for Mobile */
  h1 { font-size: var(--fs-4xl) !important; }
  h2 { font-size: var(--fs-3xl) !important; }
  h3 { font-size: var(--fs-2xl) !important; }
  
  /* Activity Ticker Mobile */
  .activity-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xs);
  }
}

/* === MEDIUM-SMALL DEVICES (480px - 640px) === */
@media (min-width: 480px) and (max-width: 639px) {
  .course-preview-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .guarantees {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* === LARGE TABLETS (640px - 768px) === */
@media (min-width: 640px) and (max-width: 767px) {
  .course-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .guarantees {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === SMALL DESKTOPS (768px - 1024px) === */
@media (min-width: 768px) and (max-width: 1023px) {
  .course-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .guarantees {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* === LARGE SCREENS (1024px+) === */
@media (min-width: 1024px) {
  .course-preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .reasons {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .guarantees {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-content {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* === ULTRA-WIDE SCREENS (1400px+) === */
@media (min-width: 1400px) {
  .hero-content {
    max-width: 1200px;
  }
  
  .testimonials-grid,
  .reasons,
  .course-preview-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* === ENHANCED INTERACTIVE ELEMENTS === */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* === MOBILE TOUCH OPTIMIZATIONS === */
@media (pointer: coarse) {
  .cta-button,
  .btn,
  .nav-links a,
  .preview-btn {
    min-height: 48px;
    min-width: 48px;
    padding: var(--space-sm) var(--space-lg);
  }
  
  .preview-card,
  .testimonial,
  .reason {
    padding: var(--space-lg);
  }
}

/* === ACCESSIBILITY IMPROVEMENTS === */
@media (prefers-reduced-motion: reduce) {
  .hover-scale,
  .hover-lift,
  .preview-card,
  .testimonial,
  .reason {
    transition: none !important;
  }
  
  .hover-scale:hover,
  .hover-lift:hover {
    transform: none !important;
  }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
  :root {
    --brand-primary: #0066FF;
    --brand-secondary: #6366F1;
    --neutral-900: #000000;
    --white: #FFFFFF;
    --neutral-200: #999999;
  }
}

/* === PRINT STYLES === */
@media print {
  .nav-links,
  .whatsapp-float,
  .cta-button,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  h1 { font-size: 18pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
}

/* === LANDSCAPE MOBILE OPTIMIZATION === */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  
  section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
}

/* === TOUCH DEVICE OPTIMIZATIONS === */
@media (pointer: coarse) {
  .cta-button,
  .btn,
  .nav-links a {
    min-height: 44px;
    min-width: 44px;
  }
  
  .cta-button {
    padding: var(--space-md) var(--space-lg);
  }
}

/* === HOVER DEVICE OPTIMIZATIONS === */
@media (hover: hover) {
  .card:hover,
  .testimonial-card:hover,
  .course-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
}

/* === COMPONENT-SPECIFIC RESPONSIVE FIXES === */

/* Header/Navigation - Original styling maintained */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--neutral-200);
  background: rgba(255, 255, 255, 0.95);
}

/* Main content adjustment for fixed header */
main {
  padding-top: 80px;
}

/* Footer always at bottom */
footer {
  margin-top: auto;
}

/* Body full height */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* === PERFECT FLUID IMAGES === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-responsive {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.img-contain {
  object-fit: contain;
}

/* === ENHANCED FORM RESPONSIVENESS === */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-grid .full-width {
    grid-column: 1 / -1;
  }
}

/* === LOADING STATES === */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === PERFECT SCROLL BEHAVIOR === */
html {
  scroll-behavior: smooth;
}

/* === ENHANCED FOCUS STYLES === */
*:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
} 