/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   Tối ưu cho mọi màn hình
   ======================================== */

/* Global Fixes for All Screens */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* Base Responsive Utilities */
@media (max-width: 991px) {
  /* Prevent horizontal scroll */
  .container,
  .container-fluid {
    overflow-x: hidden;
  }

  .row {
    margin-left: -12px;
    margin-right: -12px;
  }

  .row > * {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Hide on mobile/tablet */
  .d-lg-block {
    display: none !important;
  }

  /* Text alignment */
  .text-center-mobile {
    text-align: center !important;
  }

  /* Spacing adjustments */
  .py-mobile-sm {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .mb-mobile-md {
    margin-bottom: 1.5rem !important;
  }
}

/* ========================================
   TABLET & SMALL LAPTOP (768px - 991px)
   ======================================== */
@media (min-width: 769px) and (max-width: 991px) {
  /* Homepage Carousel - Tablet 500px */
  .hero-carousel,
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-carousel .carousel-item .hero {
    height: 500px;
    min-height: 500px;
    max-height: 500px;
  }

  /* Hero Section */
  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Statistics Bar */
  .stat-number {
    font-size: 2rem !important;
  }

  .stat-label {
    font-size: 0.85rem !important;
  }

  /* Section Headers */
  .section-title {
    font-size: 1.85rem;
  }

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

  /* Lifestyle Banners */
  .lifestyle-banner {
    height: 260px;
  }

  .lifestyle-banner-content h3 {
    font-size: 1.5rem !important;
  }

  .lifestyle-banner-content p {
    font-size: 0.95rem !important;
  }

  /* Product Cards */
  .product-card {
    margin-bottom: 1.5rem;
  }
}



/* ========================================
   MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  /* Global Spacing - Reduced 50% */
  .section-padding {
    padding: 1.5rem 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Homepage Carousel - Mobile 450px */
  .hero-carousel,
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-carousel .carousel-item .hero {
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
  }

  /* Hero Section - Reduced 50% */
  .hero-section {
    min-height: 400px;
  }

  .hero-content {
    padding: 1rem 0;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Statistics Bar - Reduced 50% */
  .trust-bar {
    padding: 1rem 0;
    margin-top: 0 !important;
  }

  .stat-item {
    padding: 1.25rem 0.75rem;
    margin-bottom: 0.5rem;
  }

  .stat-item:not(:last-child)::after {
    display: none !important;
  }

  .stat-number {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .stat-label {
    font-size: 0.8rem !important;
    line-height: 1.4;
    display: block;
    padding: 0 0.5rem;
  }
  
  /* Section Headers */
  .section-header {
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .section-description {
    font-size: 0.9rem;
  }
  
  /* Lifestyle Banners */
  .lifestyle-banner {
    height: 280px !important;
    min-height: 280px;
    margin-bottom: 1rem;
  }

  .lifestyle-banner-content {
    padding: 1.5rem 1.25rem !important;
    max-width: 100%;
  }

  .lifestyle-banner-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.5rem;
  }

  .lifestyle-banner-content h3 {
    font-size: 1.35rem !important;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .lifestyle-banner-content p {
    font-size: 0.9rem !important;
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .lifestyle-banner-content .btn {
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
  }

  /* Product Cards */
  .product-card {
    margin-bottom: 1.5rem;
  }

  .product-card-title {
    font-size: 1.05rem;
  }

  .product-card-body {
    padding: 1.25rem;
  }

  /* Process Timeline */
  .process-step {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .process-step h4 {
    font-size: 1.05rem;
  }

  .process-step p {
    font-size: 0.9rem;
  }

  /* Service Cards */
  .service-card {
    margin-bottom: 1.5rem;
  }

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

  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  /* Footer - Reduced 50% */
  .footer {
    padding: 1.25rem 0 0.75rem;
  }

  .footer-section {
    margin-bottom: 2rem;
  }

  .footer-section h5 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  .footer-links li {
    margin-bottom: 0.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding-top: 1.5rem;
  }

  /* Blog Cards */
  .blog-card {
    margin-bottom: 1.5rem;
  }

  .blog-card-title {
    font-size: 1.1rem;
  }

  /* Forms */
  .form-control,
  .form-select {
    font-size: 0.95rem;
    padding: 0.65rem 0.85rem;
  }

  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  /* Modal */
  .modal-dialog {
    margin: 1rem;
  }

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

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.85rem;
  }

  /* Pagination */
  .pagination {
    font-size: 0.9rem;
  }

  /* Tables */
  .table {
    font-size: 0.9rem;
  }

  .table th,
  .table td {
    padding: 0.65rem;
  }

  /* Carousel */
  .carousel-caption {
    padding: 1rem;
  }

  .carousel-caption h3 {
    font-size: 1.25rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  /* Image Gallery */
  .gallery-item {
    margin-bottom: 1rem;
  }

  /* Video Container */
  .video-container {
    margin-bottom: 1.5rem;
  }
}

/* ========================================
   SMALL MOBILE (max-width: 576px)
   ======================================== */
@media (max-width: 576px) {
  /* Global */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Statistics - Optimize for small screens */
  .stat-item {
    padding: 1.25rem 0.5rem !important;
  }

  .stat-number {
    font-size: 1.5rem !important;
    margin-bottom: 0.4rem;
  }

  .stat-label {
    font-size: 0.7rem !important;
    padding: 0 0.25rem;
  }

  /* Hero */
  .hero-content h1 {
    font-size: 1.4rem !important;
    line-height: 1.25;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  /* Lifestyle Banners */
  .lifestyle-banner {
    height: 250px !important;
    min-height: 250px;
  }

  .lifestyle-banner-content {
    padding: 1.25rem 1rem !important;
  }

  .lifestyle-banner-content h3 {
    font-size: 1.15rem !important;
    margin-bottom: 0.5rem;
  }

  .lifestyle-banner-content p {
    font-size: 0.8rem !important;
    margin-bottom: 0.75rem;
  }

  .lifestyle-banner-content .btn {
    font-size: 0.8rem;
    padding: 0.55rem 1rem;
  }

  /* Section Headers */
  .section-title {
    font-size: 1.35rem !important;
  }

  .section-description {
    font-size: 0.85rem;
  }

  /* Buttons */
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
  }

  /* Cards */
  .card {
    margin-bottom: 1rem;
  }

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

  /* Navbar */
  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-logo {
    height: 40px !important;
    max-width: 160px !important;
  }

  /* Contact Buttons */
  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons .btn {
    width: 100%;
  }

  /* Footer */
  .footer {
    font-size: 0.85rem;
  }

  .footer-section h5 {
    font-size: 0.95rem;
  }
}

/* ========================================
   LARGE SCREENS (min-width: 1400px)
   ======================================== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.75rem;
  }

  .stat-number {
    font-size: 3rem !important;
  }

  .lifestyle-banner {
    height: 320px;
  }
}

/* ========================================
   LANDSCAPE MODE (Mobile/Tablet)
   ======================================== */
@media (max-width: 991px) and (orientation: landscape) {
  .hero-section {
    min-height: 350px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .stat-item {
    padding: 0.75rem 0.5rem;
  }

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

  .lifestyle-banner {
    height: 220px !important;
  }

  .section-padding {
    padding: 0.5rem 0;
  }
}

/* ========================================
   VERY SMALL SCREENS (max-width: 375px)
   ======================================== */
@media (max-width: 375px) {
  .stat-number {
    font-size: 1.35rem !important;
  }

  .stat-label {
    font-size: 0.65rem !important;
  }

  .hero-content h1 {
    font-size: 1.25rem !important;
  }

  .lifestyle-banner-content h3 {
    font-size: 1rem !important;
  }

  .lifestyle-banner-content p {
    font-size: 0.75rem !important;
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.55rem 1rem;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .navbar,
  .footer,
  .contact-buttons,
  .floating-contact {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }

  .section-padding {
    padding: 1rem 0;
  }

  * {
    color: #000 !important;
    background: #fff !important;
  }
}

