/* Mobile Optimization CSS for YAUMINA */

/* Tablet responsive for new hero and header */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    padding: 40px 20px;
  }
  
  .hero-left {
    text-align: center;
    padding: 40px 20px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-right {
    flex: none;
    width: 100%;
    max-width: 400px;
  }
  
  .hero-image-wrapper {
    width: 350px;
    height: 350px;
  }
}

/* Base Mobile Styles */
@media (max-width: 768px) {
  /* New header styles for mobile */
  .header-top-green {
    font-size: 0.75rem;
    padding: 8px 0;
  }
  
  .top-info {
    flex-direction: column;
    gap: 5px;
  }
  
  .navbar-menu-clean {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    z-index: 9999;
    padding: 92px 20px 28px;
    overflow-y: auto;
  }
  
  .navbar-menu-clean.active {
    display: flex;
  }
  
  .navbar-menu-clean li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    font-size: 1rem;
    padding: 12px;
    border-radius: 8px;
    background: #ffffff;
  }

  .navbar-menu-clean .dropdown-panel-clean {
    position: static;
    min-width: 0;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 4px 0 8px 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: #f7faf8;
  }

  .navbar-menu-clean .dropdown.active .dropdown-panel-clean,
  .navbar-menu-clean .dropdown:hover .dropdown-panel-clean {
    display: block;
  }

  .navbar-menu-clean .dropdown-panel-clean a {
    font-size: 0.95rem;
    min-height: 38px;
    padding: 9px 10px;
    background: transparent;
    color: #2f3f36;
  }

  .navbar-menu-clean .dropdown-panel-clean a::before {
    width: 6px;
    height: 6px;
  }
  
  .brand-text h1 {
    font-size: 1.2rem;
  }
  
  .brand-text span {
    font-size: 0.6rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    text-align: center;
  }
  
  .hero-image-wrapper {
    width: 280px;
    height: 280px;
  }
  /* Header Top Bar */
  .header-top {
    font-size: 0.8rem;
    padding: 5px 0;
  }
  
  .header-top .container {
    padding: 0 10px;
  }
  
  .header-contact a {
    margin-right: 10px;
    font-size: 0.75rem;
  }
  
  .header-social a {
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 12px;
    margin-left: 5px;
  }

  /* Navigation */
  .navbar {
    padding: 12px 0;
  }

  .navbar-brand {
    gap: 12px;
  }

  .navbar-logo {
    height: 45px;
  }

  .navbar-title h1 {
    font-size: 1.35rem;
  }

  .navbar-title span {
    font-size: 0.7rem;
    display: block;
  }

  /* Mobile Menu */
  .navbar-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 999;
  }

  .navbar-menu.active {
    display: flex !important;
  }

  .navbar-menu li {
    width: 100%;
    margin: 5px 0;
  }

  .navbar-menu a {
    display: block;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: left;
    transition: all 0.3s;
  }

  .navbar-menu a:hover,
  .navbar-menu a.active {
    background: #f0f8f4;
    color: var(--primary-green);
  }

  .navbar-menu a::after {
    display: none;
  }

  /* Mobile Menu Toggle */
  .navbar-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
  }

  .navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
    transition: all 0.3s;
  }

  .navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .navbar-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Hero Section */
  .hero {
    padding: 60px 0 40px;
  }

  .hero-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }

  .hero-text p {
    font-size: 1rem !important;
    margin: 1.5rem 0 !important;
  }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    flex: 1;
    min-width: 140px;
  }

  .hero-image {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  /* Services Section */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }

  /* News Section */
  .news-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-links ul {
    text-align: center;
  }

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

  /* Sections */
  .section {
    padding: 40px 0;
  }

  /* Typography */
  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  /* Container */
  .container {
    padding: 0 15px;
  }

  /* CTA Section */
  .cta h2 {
    font-size: 1.75rem;
  }

  .cta p {
    font-size: 1rem;
  }

  /* WhatsApp Float Button */
  .whatsapp-float {
    width: 55px !important;
    height: 55px !important;
    bottom: 20px !important;
    right: 15px !important;
    font-size: 28px !important;
  }

  .whatsapp-float i {
    font-size: 28px !important;
  }
}

/* Very Small Devices */
@media (max-width: 480px) {
  /* Hide header top on very small screens */
  .header-top {
    display: none;
  }
  
  .navbar {
    padding: 10px 0;
  }
  
  .navbar-logo {
    height: 40px;
  }

  .navbar-title h1 {
    font-size: 1.2rem;
  }
  
  .navbar-title span {
    font-size: 0.65rem;
    line-height: 1.1;
  }

  .hero-text h1 {
    font-size: 1.8rem !important;
    line-height: 1.15 !important;
  }

  .hero-text p {
    font-size: 0.95rem !important;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .service-card {
    padding: 25px 20px;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
  }

  .news-card h3 {
    font-size: 1.15rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
    padding: 15px 0;
  }
  
  .container {
    padding: 0 12px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 80px 0 30px;
  }

  .hero-content {
    flex-direction: row;
  }

  .hero-text,
  .hero-image {
    flex: 1;
  }

  .hero-text h1 {
    font-size: 1.75rem !important;
  }

  .navbar-menu {
    max-height: calc(100vh - 50px);
    columns: 2;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .navbar-menu a {
    padding: 15px 20px;
  }

  .btn {
    min-height: 48px;
  }

  .social-link {
    width: 44px;
    height: 44px;
    line-height: 44px;
  }

  /* Remove hover effects on touch devices */
  .service-card:hover {
    transform: none;
  }

  .news-card:hover {
    transform: none;
  }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
  .header {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .navbar-menu {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .navbar {
    border-bottom: 1px solid var(--dark-gray);
  }

  .btn {
    border: 2px solid currentColor;
  }

  .service-card {
    border: 1px solid var(--dark-gray);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
