/* AlpsCraft Web Agency - Responsive Styles */
/* Mobile-First Approach */

/* Base Mobile Styles (320px+) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.25rem;
    gap: 0.5rem;
  }
  
  .navbar-logo {
    height: 32px;
  }
  
  .brand-content small {
    display: none;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 2rem;
  }
  
  .hero-buttons,
  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
    margin: 0 !important;
  }
  
  .hero-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .hero-badges .badge {
    display: block;
    padding: 0.5rem 1rem;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .hero-img {
    max-width: 95%;
    width: 95%;
    filter: drop-shadow(0 10px 20px rgba(46, 139, 87, 0.12));
    border-radius: var(--border-radius);
  }
  
  .hero-image {
    min-height: 200px;
  }
  
  .hero-image::before {
    width: 100%;
    height: 100%;
  }
  
  /* Sections */
  section {
    padding: 3rem 0 !important;
  }

  /* Page Header - Mobile Fix */
  .page-header {
    padding-top: 80px !important;
    padding-bottom: 20px !important;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Service Cards */
  .service-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Value Proposition */
  .value-point {
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .value-icon {
    align-self: center;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  /* Trust Badges */
  .trust-badges {
    gap: 2rem;
  }
  
  .badge-item i {
    font-size: 3rem !important;
  }
  
  /* Contact Info */
  .contact-info .row {
    text-align: center;
  }
  
  .contact-item {
    margin-bottom: 1rem;
  }
  
  /* Footer */
  .footer .row > div {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
    display: flex;
  }
  
  /* Cookie Consent */
  .cookie-consent .row {
    text-align: center;
  }
  
  .cookie-consent .col-lg-4 {
    margin-top: 1rem;
  }
}

/* Large Mobile Styles (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-buttons,
  .cta-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero-buttons .btn,
  .cta-buttons .btn {
    width: auto;
    margin: 0 !important;
  }
  
  .hero-badges {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .trust-badges {
    gap: 2.5rem;
  }
}

/* Extra Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  .hero-img {
    max-width: 100%;
    width: 100%;
    border-radius: calc(var(--border-radius) * 0.8);
  }
  
  .hero-image {
    min-height: 180px;
    margin-top: 1.5rem;
  }
  
  .hero-graphic {
    animation: float 4s ease-in-out infinite;
  }
}

/* Page Header - Tablet and Medium Mobile */
@media (min-width: 576px) and (max-width: 991.98px) {
  .page-header {
    padding-top: 100px !important;
    padding-bottom: 25px !important;
  }
}

/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Navigation */
  .navbar-logo {
    height: 36px;
  }
  
  .hero-section {
    padding-top: 120px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-img {
    max-width: 98%;
    width: 98%;
    filter: drop-shadow(0 15px 30px rgba(46, 139, 87, 0.13));
    border-radius: calc(var(--border-radius) * 1.2);
  }
  
  .hero-image {
    min-height: 250px;
  }
  
  /* Service Grid */
  .row.g-4 > .col-lg-4.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Value Proposition */
  .value-point {
    flex-direction: row;
    text-align: left;
  }
  
  .value-icon {
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
  
  /* Testimonials */
  .testimonial-card {
    height: auto;
  }
}

/* Desktop Styles (1025px+) */
@media (min-width: 1025px) {
  /* Enhanced hover effects for desktop - standardized with styles.css */
  
  .btn:hover {
    transform: translateY(-3px);
  }
  
  /* Larger containers for wide screens */
  .container {
    max-width: 1200px;
  }
  
  /* Enhanced spacing */
  .hero-content {
    padding-right: 2rem;
  }
  
  .value-content {
    padding-right: 2rem;
  }
}

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  /* Increased font sizes for better readability */
  .hero-subtitle,
  .lead {
    font-size: 1.375rem;
  }
  
  .section-subtitle {
    font-size: 1.25rem;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .cookie-consent,
  .hero-buttons,
  .cta-section,
  .social-links {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
    page-break-after: avoid;
  }
  
  .service-card,
  .testimonial-card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp borders and shadows */
  .service-card,
  .testimonial-card {
    border: 0.5px solid #e9ecef;
  }
  
  .section-title::after {
    height: 2px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  /* Note: This is a basic implementation */
  /* Full dark mode would require more comprehensive theming */
  
  .cookie-consent {
    background: #2d3748;
  }
  
  .image-placeholder {
    background: #4a5568;
    border-color: #718096;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .btn:hover {
    transform: none;
  }
  
  .hero-graphic {
    animation: none;
  }
  
  * {
    transition-duration: 0.01ms !important;
  }
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 1rem 0;
    background: white;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1.25rem !important;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link.active {
    background-color: var(--background-light);
    border-left: 3px solid var(--primary-color);
  }

  #languageSwitcher {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f0f0f0;
  }

  #languageSwitcher .dropdown-toggle {
    width: 100%;
    text-align: left;
  }
}

/* Specific breakpoint adjustments for Bootstrap grid */
@media (min-width: 992px) {
  .row.align-items-center {
    min-height: 400px;
  }
}

@media (max-width: 991.98px) {
  .text-md-end {
    text-align: center !important;
    margin-top: 1rem;
  }
  
  .hero-section {
    align-items: flex-start !important;
  }
  
  .hero-section .row {
    align-items: flex-start !important;
    text-align: center;
    padding-top: 2rem;
  }
  
  .value-proposition .row {
    flex-direction: column-reverse;
  }
  
  .value-image {
    margin-bottom: 2rem;
  }
}