/* ============================================================
   MOBILE EXPERIENCE ENHANCEMENTS
   ============================================================ */

/* Smooth scrolling for better feel */
html {
  scroll-behavior: smooth;
}

/* Mobile-specific typography improvements */
@media (max-width: 860px) {
  
  /* Better line height for readability on small screens */
  body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Improved heading spacing */
  h1, h2, h3, h4, h5, h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
  }

  /* Better paragraph spacing */
  p {
    margin-bottom: 1.2em;
  }

  /* Improved link styling for mobile */
  a {
    -webkit-tap-highlight-color: rgba(209, 170, 93, 0.2);
    tap-highlight-color: rgba(209, 170, 93, 0.2);
  }

  /* Better button touch targets */
  button, .btn, .pill, input[type="button"], input[type="submit"] {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 20px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Improved form field sizing */
  input, textarea, select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 16px;
    border-radius: 12px;
  }

  /* Better focus states for accessibility */
  input:focus, textarea:focus, select:focus, button:focus, a:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }

  /* Improved spacing for touch interactions */
  .mobile a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
  }

  /* Better card spacing on mobile */
  .card, .cap-card, .step-card, .proj-card, .market-card {
    margin-bottom: 16px;
    padding: 20px;
  }

  /* Improved section spacing */
  .section {
    padding: 40px 0 !important;
  }

  /* Better hero section on mobile */
  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  /* Improved CTA button sizing */
  .cta-box {
    padding: 32px 20px;
    text-align: center;
  }

  .cta-box h2 {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    margin-bottom: 12px;
  }

  /* Better footer spacing */
  footer {
    padding: 40px 0 20px;
  }

  footer .foot {
    gap: 24px;
  }

  /* Improved contact form on mobile */
  .form-box {
    padding: 24px;
  }

  .field {
    margin-bottom: 16px;
  }

  .field label {
    margin-bottom: 8px;
    display: block;
  }

  /* Better proof grid on mobile */
  .proof-grid {
    gap: 12px;
  }

  .proof-item {
    padding: 24px 16px;
  }

  .proof-item strong {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  /* Improved glass cards on mobile */
  .glass-card {
    padding: 24px;
  }

  /* Better list styling */
  ul, ol {
    margin-left: 20px;
    margin-bottom: 16px;
  }

  li {
    margin-bottom: 8px;
  }

  /* Improved table styling for mobile */
  table {
    font-size: 0.9rem;
    width: 100%;
    overflow-x: auto;
  }

  /* Better image sizing */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Improved video responsiveness */
  iframe, video {
    max-width: 100%;
    height: auto;
  }

  /* Better blockquote styling */
  blockquote {
    padding: 16px 20px;
    margin: 20px 0;
    border-left: 4px solid var(--gold);
    background: rgba(209, 170, 93, 0.05);
  }

  /* Improved code block styling */
  code, pre {
    font-size: 0.85rem;
    overflow-x: auto;
  }

  pre {
    padding: 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
  }

  /* Better list item spacing in navigation */
  .mobile a {
    word-break: break-word;
  }

  /* Improved stat display */
  .hero-stat strong {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  /* Better capability cards */
  .cap-card {
    margin-bottom: 16px;
  }

  .cap-icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  /* Improved step cards */
  .step-card {
    text-align: center;
  }

  .step-num {
    margin: 0 auto 16px;
  }

  /* Better market cards */
  .market-card {
    padding: 24px;
  }

  /* Improved project cards */
  .proj-card .body {
    padding: 20px;
  }

  .proj-card h3 {
    font-size: 1.1rem;
  }

  /* Better panel styling */
  .panel {
    padding: 28px 20px;
  }

  .panel h3 {
    font-size: 1.4rem;
  }

  /* Improved FAQ cards */
  .faq-card {
    padding: 24px;
  }

  .faq-card h3 {
    font-size: 1.05rem;
  }

  /* Better contact section */
  .contact-grid {
    gap: 16px;
  }

  .contact-copy, .form-box {
    padding: 24px;
  }

  /* Improved WhatsApp button area */
  .whatsapp-float{right:14px;bottom:14px;width:52px;height:52px;}
  
  .whatsapp-float .social-icon {
    width: 28px;
    height: 28px;
  }

  /* Better footer contact info */
  .contact-point {
    padding: 14px 16px;
  }

  /* Improved social links */
  .social-links {
    gap: 10px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  /* Better spacing for proof items */
  .proof-item p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Improved hero accent visibility */
  .hero-accent {
    display: none;
  }

  /* Better scroll indicator */
  .hero-scroll {
    display: none;
  }

  /* Improved glass sidebar on tablet */
  .glass-sidebar {
    flex-direction: column;
    gap: 12px;
  }

  .glass-stat {
    padding: 16px;
  }

  .glass-stat strong {
    font-size: 1.8rem;
  }

  /* Better caps layout */
  .caps-layout {
    gap: 20px;
  }

  .caps-intro {
    padding: 28px 20px;
  }

  .caps-metric {
    padding: 14px;
  }

  .caps-metric strong {
    font-size: 1.6rem;
  }

  /* Improved duo grid */
  .duo-grid {
    gap: 16px;
  }

  /* Better CTA band */
  .cta-band {
    padding: 48px 0;
  }

  .cta-box .actions {
    flex-direction: column;
    gap: 12px;
  }

  .cta-box .actions .btn {
    width: 100%;
  }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
  
  /* Tighter spacing on very small screens */
  .section {
    padding: 32px 0 !important;
  }

  .hero {
    padding-top: 70px;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.4rem);
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  /* Smaller card padding */
  .card, .cap-card, .step-card, .proj-card, .market-card {
    padding: 16px;
  }

  /* Tighter form spacing */
  .form-box {
    padding: 20px;
  }

  .field {
    margin-bottom: 12px;
  }

  /* Smaller button sizing */
  button, .btn, .pill {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Tighter footer */
  footer .foot {
    gap: 20px;
  }

  .contact-point {
    padding: 12px 14px;
  }

  /* Smaller social links */
  .social-links a {
    width: 36px;
    height: 36px;
  }

  /* Tighter proof items */
  .proof-item {
    padding: 20px 12px;
  }

  .proof-item strong {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  }

  /* Smaller panel padding */
  .panel {
    padding: 20px 16px;
  }

  .panel h3 {
    font-size: 1.2rem;
  }

  /* Tighter contact section */
  .contact-copy, .form-box {
    padding: 20px;
  }

  /* Smaller CTA box */
  .cta-box {
    padding: 24px 16px;
  }

  .cta-box h2 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  /* Tighter glass cards */
  .glass-card {
    padding: 20px;
  }

  .glass-stat {
    padding: 12px;
  }

  .glass-stat strong {
    font-size: 1.4rem;
  }

  /* Smaller caps intro */
  .caps-intro {
    padding: 20px 16px;
  }

  .caps-metric {
    padding: 12px;
  }

  .caps-metric strong {
    font-size: 1.4rem;
  }

  /* Tighter FAQ cards */
  .faq-card {
    padding: 20px;
  }

  .faq-card h3 {
    font-size: 0.95rem;
  }

  /* Smaller step cards */
  .step-num {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  /* Tighter market cards */
  .market-card {
    padding: 20px;
  }

  /* Smaller project card body */
  .proj-card .body {
    padding: 16px;
  }

  .proj-card h3 {
    font-size: 1rem;
  }

  /* Tighter blockquote */
  blockquote {
    padding: 12px 16px;
    margin: 16px 0;
  }

  /* Smaller code blocks */
  code, pre {
    font-size: 0.8rem;
  }

  pre {
    padding: 12px;
  }

  /* Tighter list spacing */
  ul, ol {
    margin-left: 16px;
  }

  li {
    margin-bottom: 6px;
  }

  /* Smaller hero stats */
  .hero-stat strong {
    font-size: clamp(1.4rem, 4vw, 2rem);
  }

  /* Tighter caps grid */
  .caps-layout {
    gap: 16px;
  }

  /* Smaller duo grid */
  .duo-grid {
    gap: 12px;
  }

  /* Tighter CTA band */
  .cta-band {
    padding: 32px 0;
  }
}

/* Landscape orientation optimizations */
@media (max-width: 860px) and (orientation: landscape) {
  
  .section {
    padding: 32px 0 !important;
  }

  .hero {
    min-height: auto;
    padding: 60px 0 30px;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
  }

  .hero-sub {
    font-size: 0.85rem;
  }

  .card, .cap-card, .step-card {
    padding: 16px;
  }

  .proof-item {
    padding: 16px 12px;
  }

  .proof-item strong {
    font-size: 1.4rem;
  }
}

/* Performance optimizations */
@media (max-width: 860px) {
  
  /* Reduce animations on mobile for better performance */
  * {
    animation-duration: 0.2s !important;
  }

  /* Optimize transitions */
  a, button, .btn, .pill {
    transition: all 0.15s ease !important;
  }

  /* Reduce shadow complexity */
  .card, .cap-card, .step-card, .proj-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  }

  /* Optimize backdrop filter */
  .glass-card, .mobile {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
}

/* Improved touch feedback */
@media (hover: none) and (pointer: coarse) {
  
  /* Better active states */
  a:active, button:active, .btn:active, .pill:active {
    opacity: 0.8;
    transform: scale(0.98);
  }

  /* Improved link feedback */
  a {
    -webkit-tap-highlight-color: rgba(209, 170, 93, 0.3);
  }

  /* Better button feedback */
  button, .btn, .pill {
    -webkit-tap-highlight-color: rgba(209, 170, 93, 0.3);
  }

  /* Improved form field feedback */
  input:active, textarea:active, select:active {
    background-color: rgba(245, 241, 233, 0.8);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) and (max-width: 860px) {
  
  body {
    background-color: #0a0a0a;
    color: #e0e0e0;
  }

  .card, .cap-card, .step-card, .proj-card {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
  }

  input, textarea, select {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.1);
  }

  input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
}

/* Print optimization */
@media print and (max-width: 860px) {
  
  .nav, .mobile, .toggle, .whatsapp-float {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .section {
    page-break-inside: avoid;
  }
}
