/* ============================================================
   RESPONSIVE DESIGN STYLESHEET
   Mobile First Approach - All Devices Responsive
   ============================================================ */

/* ============================================================
   MOBILE FIRST - BASE STYLES (320px and up)
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  font-size: 10px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Make all images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Make videos responsive */
iframe,
video,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   EXTRA SMALL DEVICES (Mobile: 320px - 575px)
   ============================================================ */

@media only screen and (max-width: 575px) {
  html {
    font-size: 8px;
  }

  /* Header Mobile */
  .header-top-area {
    display: none !important;
  }

  .header-wrapper-1 {
    padding: 12px 20px;
  }

  .logo {
    max-width: 100px;
    height: auto;
  }

  /* Navigation */
  .nav-area {
    display: none;
  }

  .mobile-menu-icon {
    display: block !important;
    font-size: 24px;
    cursor: pointer;
  }

  /* Mobile Menu Drawer */
  .mobile-menu {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 60px;
  }

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

  .mobile-menu-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    font-size: 28px;
    cursor: pointer;
    display: none;
  }

  .mobile-menu.active ~ .mobile-menu-close {
    display: block;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
  }

  .mobile-menu.active ~ .mobile-menu-overlay {
    display: block;
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-menu li {
    border-bottom: 1px solid #eee;
  }

  .mobile-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #111032;
    font-weight: 500;
  }

  .mobile-menu a:active,
  .mobile-menu a:focus {
    background: #f0f0f0;
  }

  /* Hero Section */
  .hero-content {
    padding: 30px 20px;
    text-align: center;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
  }

  /* Service Cards */
  .service-card {
    margin-bottom: 20px;
    padding: 20px;
  }

  .service-icon {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .service-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  /* Cards and Boxes */
  .card,
  .box {
    margin-bottom: 15px;
  }

  /* Forms */
  form {
    width: 100%;
  }

  .form-group {
    margin-bottom: 15px;
  }

  label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
  }

  input,
  textarea,
  select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
  }

  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: #09a853;
    box-shadow: 0 0 8px rgba(9, 168, 83, 0.2);
  }

  textarea {
    resize: vertical;
    min-height: 100px;
  }

  /* Buttons */
  button,
  .btn,
  input[type="button"],
  input[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
  }

  /* Tables */
  table {
    width: 100%;
    font-size: 12px;
    overflow-x: auto;
    display: block;
  }

  th,
  td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
  }

  th {
    background: #f5f5f5;
    font-weight: 600;
  }

  /* Typography */
  h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  h2 {
    font-size: 20px;
    line-height: 1.3;
  }

  h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  h4 {
    font-size: 16px;
  }

  h5 {
    font-size: 15px;
  }

  h6 {
    font-size: 14px;
  }

  p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  /* Lists */
  ul,
  ol {
    padding-left: 20px;
    margin-bottom: 20px;
  }

  li {
    margin-bottom: 8px;
  }

  /* Footer */
  footer {
    padding: 30px 20px;
  }

  .footer-content {
    text-align: center;
  }

  .footer-widget {
    margin-bottom: 25px;
  }

  .footer-widget h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  /* Testimonials */
  .testimonial {
    padding: 20px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 4px;
  }

  .testimonial-author {
    font-size: 12px;
    margin-top: 10px;
  }

  /* Containers */
  .container-full {
    padding: 0 15px;
  }

  /* Spacing utilities */
  .m-0 {
    margin: 0 !important;
  }
  .m-1 {
    margin: 5px !important;
  }
  .m-2 {
    margin: 10px !important;
  }
  .m-3 {
    margin: 15px !important;
  }
  .m-4 {
    margin: 20px !important;
  }
  .m-5 {
    margin: 30px !important;
  }

  .p-1 {
    padding: 5px !important;
  }
  .p-2 {
    padding: 10px !important;
  }
  .p-3 {
    padding: 15px !important;
  }
  .p-4 {
    padding: 20px !important;
  }

  /* Flex Utilities */
  .flex-col {
    flex-direction: column;
  }

  .flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Grid - Full Width on Mobile */
  [class*="col-"] {
    width: 100% !important;
    /* margin-bottom: 20px; */
  }

  /* Carousel - Show one item on mobile */
  .carousel-item {
    min-width: 100%;
  }

  /* Modals */
  .modal {
    padding: 20px;
  }

  .modal-dialog {
    width: 90%;
    max-width: 100%;
  }

  /* Accordions */
  .accordion-item {
    margin-bottom: 0;
  }

  .accordion-button {
    padding: 15px;
    font-size: 15px;
  }

  /* Breadcrumbs */
  .breadcrumb {
    padding: 10px 0;
    font-size: 12px;
  }

  /* Alerts */
  .alert {
    padding: 12px;
    margin-bottom: 15px;
    font-size: 14px;
  }

  /* Badges */
  .badge {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* Horizontal Scroll for Tables */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Touch Optimizations */
  a {
    -webkit-tap-highlight-color: transparent;
  }

  button,
  [role="button"],
  input[type="button"],
  input[type="submit"] {
    min-height: 44px;
  }
}

/* ============================================================
   SMALL DEVICES (Tablet Portrait: 576px - 767px)
   ============================================================ */

@media only screen and (min-width: 576px) and (max-width: 767px) {
  html {
    font-size: 9px;
  }

  /* Container */
  .container {
    max-width: 540px;
  }

  /* Header */
  .header-wrapper-1 {
    padding: 15px 20px;
  }

  .logo {
    max-width: 120px;
  }

  /* Hero */
  .hero-content {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  /* Grid - 2 columns */
  .col-md-6,
  .col-lg-6 {
    width: 50% !important;
    flex: 0 0 50% !important;
  }

  .col-md-4,
  .col-lg-4,
  .col-lg-3 {
    width: 50% !important;
    flex: 0 0 50% !important;
  }

  /* Typography */
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  p {
    font-size: 15px;
    line-height: 1.7;
  }

  /* Cards */
  .card {
    margin-bottom: 20px;
  }

  /* Forms */
  input,
  textarea,
  select {
    padding: 12px;
    font-size: 15px;
  }

  /* Buttons */
  button,
  .btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  /* Footer */
  footer {
    padding: 40px 20px;
  }

  .footer-widget {
    margin-bottom: 30px;
  }

  /* Carousel - 2 items visible */
  .carousel-item {
    min-width: 50%;
  }

  /* Modal */
  .modal-dialog {
    width: 90%;
  }

  /* Table */
  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 10px;
  }
}

/* ============================================================
   MEDIUM DEVICES (Tablet Landscape: 768px - 991px)
   ============================================================ */

@media only screen and (min-width: 768px) and (max-width: 991px) {
  /* Container */
  .container {
    max-width: 720px;
  }

  /* Header */
  .header-wrapper-1 {
    padding: 18px 30px;
  }

  .logo {
    max-width: 140px;
  }

  /* Hero */
  .hero-content {
    padding: 50px 30px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  /* Grid - Mix of full and 50% width */
  .col-md-6 {
    width: 50% !important;
    flex: 0 0 50% !important;
  }

  .col-md-4 {
    width: 33.333% !important;
    flex: 0 0 33.333% !important;
  }

  .col-lg-4,
  .col-lg-6 {
    width: 50% !important;
    flex: 0 0 50% !important;
  }

  .col-lg-3 {
    width: 50% !important;
    flex: 0 0 50% !important;
  }

  /* Typography */
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 26px;
  }

  p {
    font-size: 16px;
    line-height: 1.7;
  }

  /* Forms */
  input,
  textarea,
  select {
    padding: 12px 15px;
    font-size: 15px;
  }

  /* Buttons */
  button,
  .btn {
    padding: 12px 30px;
    font-size: 15px;
  }

  /* Footer */
  footer {
    padding: 50px 30px;
  }

  .footer-widget {
    margin-bottom: 40px;
  }

  /* Table */
  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 12px;
  }
}

/* ============================================================
   LARGE DEVICES (Desktop: 992px and up)
   ============================================================ */

@media only screen and (min-width: 992px) {
  /* Hide mobile-only elements */
  .mobile-menu-icon {
    display: none !important;
  }

  /* Show desktop navigation */
  .nav-area {
    display: block !important;
  }

  /* Container */
  .container {
    max-width: 960px;
  }

  /* Show desktop elements */
  .hide-desktop {
    display: none !important;
  }
}

/* ============================================================
   EXTRA LARGE DEVICES (Large Desktop: 1200px and up)
   ============================================================ */

@media only screen and (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }

  /* Optimal reading line length */
  p {
    max-width: 100%;
  }
}

/* ============================================================
   EXTRA EXTRA LARGE (4K and Ultra-wide: 1920px and up)
   ============================================================ */

@media only screen and (min-width: 1920px) {
  .container {
    max-width: 1540px;
  }

  html {
    font-size: 11px;
  }
}

/* ============================================================
   LANDSCAPE ORIENTATION
   ============================================================ */

@media only screen and (max-height: 500px) and (orientation: landscape) {
  header {
    padding: 8px 0 !important;
  }

  section {
    padding: 20px 0 !important;
  }

  .hero-content {
    padding: 15px 0 !important;
  }

  h1 {
    font-size: 18px !important;
  }

  h2 {
    font-size: 16px !important;
  }

  p {
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }
}

/* ============================================================
   RETINA DISPLAY / HIGH DPI
   ============================================================ */

@media (-webkit-min-device-pixel-ratio: 2),
  (min--moz-device-pixel-ratio: 2),
  (min-device-pixel-ratio: 2) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ============================================================
   TOUCH DEVICES (Tablets, Phones)
   ============================================================ */

@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  button,
  .btn,
  a.btn,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  [role="button"],
  .clickable {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 20px;
  }

  /* Remove hover effects */
  button:hover,
  .btn:hover,
  a.btn:hover {
    transform: none;
    box-shadow: none;
  }

  /* Remove focus ring on click */
  button:focus,
  .btn:focus {
    outline: none;
  }

  /* Better touch feedback */
  button:active,
  .btn:active {
    opacity: 0.85;
  }

  /* Link adjustments for touch */
  a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
}

/* ============================================================
   POINTER FINE (Mouse Users)
   ============================================================ */

@media (pointer: fine) {
  /* Smaller cursor feedback for precise input */
  button:hover,
  .btn:hover,
  a:hover {
    cursor: pointer;
  }

  /* Smooth transitions for hover effects */
  a,
  button,
  .btn {
    transition: all 0.3s ease;
  }
}

/* ============================================================
   DARK MODE SUPPORT
   ============================================================ */

@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here */
  /* Currently keeping light theme as default */
}

/* ============================================================
   REDUCED MOTION (Accessibility)
   ============================================================ */

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

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  .no-print,
  .mobile-menu-icon,
  .menu,
  .nav,
  .navigation,
  footer,
  .advertisement {
    display: none !important;
  }

  .container {
    max-width: 100%;
  }

  img {
    max-width: 100%;
  }

  page-break-inside: avoid;
  page-break-after: auto;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Show/Hide */
.show-mobile {
  display: block;
}

.show-tablet {
  display: none;
}

.show-desktop {
  display: none;
}

@media only screen and (min-width: 576px) and (max-width: 991px) {
  .show-mobile {
    display: none;
  }

  .show-tablet {
    display: block;
  }

  .show-desktop {
    display: none;
  }
}

@media only screen and (min-width: 992px) {
  .show-mobile {
    display: none;
  }

  .show-tablet {
    display: none;
  }

  .show-desktop {
    display: block;
  }
}

/* Responsive Text */
.text-responsive {
  font-size: clamp(12px, 2.5vw, 32px);
}

/* Responsive Padding */
.pad-responsive {
  padding: clamp(10px, 2vw, 40px);
}

/* Responsive Margin */
.mar-responsive {
  margin: clamp(10px, 2vw, 40px);
}

/* ============================================================
   PRODUCT RANGE CARDS - RESPONSIVE
   ============================================================ */

/* Mobile: Single Column */
@media only screen and (max-width: 575px) {
  .product-range-grid {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: unset !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
  }

  .product-range-grid-bottom {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: unset !important;
    gap: 20px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .product-range-grid-bottom > div:last-child {
    display: none !important;
  }



  .product-label {
    padding: 10px 20px !important;
  }

  .product-label h4 {
    font-size: 14px !important;
  }

  .product-image {
    width: 100% !important;
    height: 100% !important;
  }
}

/* Tablet Portrait: 576px - 767px */
@media only screen and (min-width: 576px) and (max-width: 767px) {
  .product-range-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
  }

  .product-range-grid-bottom {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .product-range-grid-bottom > div:last-child {
    display: none !important;
  }


  .product-label {
    padding: 12px 25px !important;
  }

  .product-label h4 {
    font-size: 15px !important;
  }

  .product-image {
    width: 100% !important;
    height: 100% !important;
  }
}

/* Tablet Landscape: 768px - 991px */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .product-range-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
    margin-bottom: 25px !important;
  }

  .product-range-grid-bottom {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .product-range-grid-bottom > div:last-child {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto;
  }

 

  .product-label {
    padding: 12px 30px !important;
  }

  .product-label h4 {
    font-size: 16px !important;
  }

  .product-image {
    width: 100% !important;
    height: 100% !important;
  }
}

/* Desktop: 992px and up - Keep original layout */
@media only screen and (min-width: 992px) {
  .product-range-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
  }

  .product-range-grid-bottom {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
  }

  .product-range-grid-bottom > div:last-child {
    display: none !important;
  }



  .product-label {
    padding: 15px 15px !important;
  }

  .product-label h4 {
    font-size: 16px !important;
  }
}

/* Safe Area for Notched Devices */
body {
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
  padding-top: max(0px, env(safe-area-inset-top));
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}
