/* ===================================
   Lali Green International - Responsive CSS
   Version: 1.0
   Description: Responsive breakpoints and mobile optimizations
   =================================== */

/* ===================================
   Breakpoint Reference:
   - Mobile: < 480px
   - Mobile Landscape: 480px - 767px
   - Tablet: 768px - 991px
   - Desktop: 992px - 1199px
   - Large Desktop: 1200px+
   - Extra Large: 1440px+
   =================================== */

/* ===================================
   1. Extra Large Screens (1440px+)
   =================================== */
@media screen and (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  /* Typography scaling */
  :root {
    --fs-xxl: 4.5rem;
    --fs-xl: 3.5rem;
    --fs-lg: 2.5rem;
    --fs-md: 1.5rem;
  }

  /* Hero adjustments */
  .hero-section {
    min-height: 100vh;
  }

  .hero-content {
    max-width: 900px;
  }

  .hero-title {
    font-size: 5rem;
    line-height: 1.1;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
  }

  /* About section */
  .about-grid {
    gap: var(--spacing-4xl);
  }

  .about-image {
    height: 600px;
  }

  /* Footer */
  .footer-grid {
    gap: var(--spacing-4xl);
  }
}

/* ===================================
   2. Large Desktop (1200px - 1439px)
   =================================== */
@media screen and (min-width: 1200px) and (max-width: 1439px) {
  .container {
    max-width: 1140px;
  }

  /* Navigation */
  .nav-list {
    gap: var(--spacing-2xl);
  }

  /* Cards */
  .feature-card {
    padding: var(--spacing-3xl);
  }

  /* Gallery */
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================================
   3. Desktop (992px - 1199px)
   =================================== */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }

  /* Typography adjustments */
  :root {
    --fs-xxl: 3rem;
    --fs-xl: 2.25rem;
    --fs-lg: 1.75rem;
  }

  /* Navigation */
  .nav-list {
    gap: var(--spacing-lg);
  }

  .nav-link {
    font-size: 0.9rem;
  }

  /* Hero section */
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About section */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
  }

  /* Pricing cards */
  .pricing-card {
    padding: var(--spacing-lg);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  /* Gallery */
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================
   4. Tablet (768px - 991px)
   =================================== */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 720px;
    padding: 0 var(--spacing-lg);
  }

  /* Typography */
  :root {
    --fs-xxl: 2.5rem;
    --fs-xl: 2rem;
    --fs-lg: 1.5rem;
    --fs-md: 1.25rem;
  }

  /* Navigation - Still desktop style but compact */
  .nav-list {
    gap: var(--spacing-md);
  }

  .nav-link {
    font-size: 0.875rem;
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .dropdown-menu {
    min-width: 180px;
  }

  /* Hero section */
  .hero-section {
    min-height: 80vh;
    padding-top: var(--spacing-3xl);
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    gap: var(--spacing-sm);
  }

  .hero-stats {
    gap: var(--spacing-xl);
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .service-card {
    padding: var(--spacing-lg);
  }

  /* About section */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .about-visual {
    order: -1;
  }

  .about-image {
    height: 400px;
  }

  /* CTA section */
  .cta-title {
    font-size: 1.75rem;
  }

  /* Partners */
  .partner-item {
    width: 120px;
    height: 60px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  /* Components adjustments */
  .modal-dialog {
    max-width: 500px;
  }

  .pricing-card {
    padding: var(--spacing-lg);
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 10px;
  }

  /* Gallery */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Table */
  .table {
    font-size: var(--fs-sm);
  }

  .table th,
  .table td {
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* ===================================
   5. Mobile Landscape (480px - 767px)
   =================================== */
@media screen and (min-width: 480px) and (max-width: 767px) {
  .container {
    max-width: 100%;
    padding: 0 var(--spacing-md);
  }

  /* Typography */
  :root {
    --fs-xxl: 2rem;
    --fs-xl: 1.75rem;
    --fs-lg: 1.375rem;
    --fs-md: 1.125rem;
  }

  /* Mobile Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(18, 16, 13, 0.98);
    backdrop-filter: blur(12px);
    transition: left var(--transition-base);
    z-index: var(--z-header);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    padding: var(--spacing-xl);
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(68, 162, 57, 0.1);
  }

  .nav-link {
    display: block;
    padding: var(--spacing-md);
    font-size: var(--fs-base);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    margin: 0;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  /* Hero section */
  .hero-section {
    min-height: calc(100vh - 60px);
    padding: var(--spacing-2xl) 0;
  }

  .hero-title {
    font-size: 1.875rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: row;
    gap: var(--spacing-sm);
  }

  .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
  }

  .hero-stats {
    flex-direction: row;
    justify-content: space-between;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* About section */
  .about-image {
    height: 300px;
  }

  .experience-badge {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    padding: var(--spacing-md);
  }

  .badge-number {
    font-size: 1.5rem;
  }

  /* CTA section */
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  /* Components */
  .feature-card {
    padding: var(--spacing-lg);
  }

  .pricing-card {
    padding: var(--spacing-lg);
  }

  .modal-dialog {
    width: 95%;
    max-width: 450px;
  }

  /* Gallery */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  /* Tables */
  .table-wrapper {
    overflow-x: auto;
  }

  .table {
    min-width: 500px;
  }
}

/* ===================================
   6. Mobile Portrait (< 480px)
   =================================== */
@media screen and (max-width: 479px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Typography */
  :root {
    --fs-xxl: 1.75rem;
    --fs-xl: 1.5rem;
    --fs-lg: 1.25rem;
    --fs-md: 1rem;
    --fs-base: 0.9375rem;
  }

  /* Header */
  .header {
    padding: var(--spacing-sm) 0;
  }

  .nav-brand .logo {
    height: 35px;
  }

  /* Mobile Navigation */
  .nav-toggle {
    display: flex;
    padding: var(--spacing-xs);
  }

  .nav-menu {
    position: fixed;
    top: 50px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 50px);
    background: rgba(18, 16, 13, 0.98);
    transition: left var(--transition-base);
    z-index: var(--z-header);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    padding: var(--spacing-md);
    gap: 0;
  }

  .nav-link {
    padding: var(--spacing-md) var(--spacing-sm);
    font-size: 0.9rem;
  }

  /* Hero section */
  .hero-section {
    min-height: calc(100vh - 50px);
    padding: var(--spacing-xl) 0;
  }

  .hero-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
  }

  .hero-subtitle {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: var(--spacing-md);
    font-size: 0.875rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
  }

  .stat-item {
    text-align: center;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Sections */
  .section {
    padding: var(--spacing-2xl) 0;
  }

  .section-header {
    margin-bottom: var(--spacing-xl);
  }

  .section-title {
    font-size: 1.375rem;
    margin-bottom: var(--spacing-sm);
  }

  .section-subtitle {
    font-size: 0.875rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .service-card {
    padding: var(--spacing-md);
  }

  .service-title {
    font-size: 1.125rem;
  }

  .service-description {
    font-size: 0.875rem;
  }

  .icon-wrapper {
    width: 50px;
    height: 50px;
  }

  /* About section */
  .about-grid {
    gap: var(--spacing-lg);
  }

  .about-image {
    height: 250px;
    border-radius: var(--radius-md);
  }

  .experience-badge {
    position: static;
    margin-top: var(--spacing-md);
    width: 100%;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
  }

  .badge-number {
    font-size: 1.25rem;
  }

  .badge-text {
    font-size: 0.75rem;
  }

  .about-features {
    gap: var(--spacing-sm);
  }

  .feature-item {
    padding: var(--spacing-sm);
    font-size: 0.875rem;
  }

  /* CTA section */
  .cta-section {
    padding: var(--spacing-2xl) 0;
  }

  .cta-title {
    font-size: 1.375rem;
    margin-bottom: var(--spacing-sm);
  }

  .cta-subtitle {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-lg);
  }

  .cta-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  /* Partners */
  .partners-section {
    padding: var(--spacing-xl) 0;
  }

  .partner-item {
    width: 100px;
    height: 50px;
  }

  /* Footer */
  .footer-top {
    padding: var(--spacing-xl) 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto var(--spacing-md);
  }

  .social-links {
    justify-content: center;
  }

  .footer-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
  }

  .footer-links {
    font-size: 0.875rem;
  }

  .contact-info {
    align-items: center;
  }

  .contact-item {
    text-align: left;
    font-size: 0.875rem;
  }

  .footer-bottom {
    padding: var(--spacing-md) 0;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  .copyright {
    font-size: 0.75rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: var(--spacing-xs);
    font-size: 0.75rem;
  }

  /* Back to top */
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }

  /* Components - Mobile */
  
  /* Cards */
  .card {
    padding: var(--spacing-md);
  }

  .feature-card {
    padding: var(--spacing-lg);
  }

  .feature-card-icon {
    width: 60px;
    height: 60px;
  }

  .pricing-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-price {
    font-size: 1.5rem;
  }

  .testimonial-card {
    padding: var(--spacing-md);
  }

  /* Forms */
  .form-control {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
  }

  .form-label {
    font-size: 0.75rem;
  }

  /* Modals */
  .modal-dialog {
    width: 95%;
    margin: var(--spacing-md);
    max-height: calc(100vh - 2rem);
  }

  .modal-header {
    padding: var(--spacing-md);
  }

  .modal-title {
    font-size: 1.125rem;
  }

  .modal-body {
    padding: var(--spacing-md);
    max-height: calc(100vh - 150px);
  }

  .modal-footer {
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .modal-footer .btn {
    width: 100%;
  }

  /* Alerts */
  .alert {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
  }

  /* Tabs */
  .tab-list {
    gap: 0;
  }

  .tab-button {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.75rem;
  }

  /* Accordion */
  .accordion-header {
    padding: var(--spacing-md);
  }

  .accordion-title {
    font-size: 0.875rem;
  }

  .accordion-body.active {
    padding: var(--spacing-md);
  }

  /* Tables */
  .table-wrapper {
    border-radius: var(--radius-md);
  }

  .table {
    font-size: 0.75rem;
    min-width: 400px;
  }

  .table th,
  .table td {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  /* Pagination */
  .pagination {
    gap: var(--spacing-xs);
  }

  .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 var(--spacing-sm);
    font-size: 0.75rem;
  }

  .pagination-info {
    font-size: 0.625rem;
    margin: 0 var(--spacing-sm);
  }

  /* Timeline */
  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 40px;
    margin-bottom: var(--spacing-lg);
  }

  .timeline-marker {
    left: 6px;
    width: 16px;
    height: 16px;
  }

  .timeline-content {
    padding: var(--spacing-md);
  }

  .timeline-title {
    font-size: 1rem;
  }

  .timeline-description {
    font-size: 0.875rem;
  }

  /* Counter */
  .counter {
    padding: var(--spacing-md);
  }

  .counter-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .counter-number {
    font-size: 1.5rem;
  }

  /* Gallery */
  .gallery {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .gallery-item {
    aspect-ratio: 16/9;
  }

  /* Tooltips - Disable on mobile */
  .tooltip-content {
    display: none;
  }

  /* Tags */
  .tag {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
  }

  /* Social Share */
  .social-share {
    justify-content: center;
    flex-wrap: wrap;
  }

  .share-label {
    width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-sm);
  }

  .share-button {
    width: 35px;
    height: 35px;
  }
}

/* ===================================
   7. Landscape Mode Adjustments
   =================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
  /* Reduce vertical spacing in landscape */
  .hero-section {
    min-height: 100vh;
    padding: var(--spacing-lg) 0;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    margin-bottom: var(--spacing-md);
  }

  .hero-stats {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

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

/* ===================================
   8. Print Styles
   =================================== */
@media print {
  /* Hide unnecessary elements */
  .header,
  .nav-toggle,
  .hero-particles,
  .scroll-indicator,
  .back-to-top,
  .social-links,
  .footer-legal,
  .modal,
  .tooltip,
  .dropdown-menu,
  .pagination,
  .share-button {
    display: none !important;
  }

  /* Reset colors for printing */
  * {
    color: black !important;
    background: white !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  h1 { font-size: 24pt; }
  h2 { font-size: 20pt; }
  h3 { font-size: 16pt; }
  h4 { font-size: 14pt; }

  /* Ensure links are visible */
  a {
    text-decoration: underline;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }

  /* Page breaks */
  .section {
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  /* Images */
  img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  /* Tables */
  .table {
    font-size: 10pt;
  }

  thead {
    display: table-header-group;
  }

  tr {
    page-break-inside: avoid;
  }
}

/* ===================================
   9. Accessibility - Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-particles,
  .scroll-indicator,
  .progress-bar::after,
  .skeleton,
  .loading-dot,
  .counter-icon,
  .badge-dot {
    animation: none !important;
  }
}

/* ===================================
   10. High Contrast Mode
   =================================== */
@media (prefers-contrast: high) {
  :root {
    --brand-green: #00ff00;
    --primary-dark: #000000;
    --secondary-dark: #111111;
    --white: #ffffff;
    --light-gray: #ffffff;
    --medium-gray: #cccccc;
  }

  .btn,
  .card,
  .modal,
  .dropdown-menu {
    border-width: 2px;
  }

  .form-control {
    border-width: 2px;
  }

  a {
    text-decoration: underline;
  }
}

/* ===================================
   11. Dark Mode Preference
   =================================== */
@media (prefers-color-scheme: light) {
  /* Optional: Provide light mode alternative 
     Currently the site is dark by default */
}

/* ===================================
   12. Retina Display Optimizations
   =================================== */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  /* Sharper borders */
  .card,
  .btn,
  .form-control {
    border-width: 0.5px;
  }

  /* Optimize logo for retina */
  .nav-brand .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}