/* 
* Responsive CSS File for Vaveti Website
* Author: Manus AI
* Version: 1.1
*/

/* ======================================
   Table of Contents:
   1. Base Responsive Settings
   2. Mobile Styles (< 768px)
   3. Tablet Styles (768px - 1023px)
   4. Desktop Styles (1024px - 1439px)
   5. Large Desktop Styles (≥ 1440px)
   6. Print Styles
   ====================================== */

/* ======================================
   1. Base Responsive Settings
   ====================================== */
html {
  font-size: 16px;
}

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

/* ======================================
   2. Mobile Styles (< 768px)
   ====================================== */
@media (max-width: 767px) {
  /* Typography */
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2rem; /* 28px */
  }
  
  h2 {
    font-size: 1.75rem; /* 24.5px */
  }
  
  h3 {
    font-size: 1.5rem; /* 21px */
  }
  
  h4 {
    font-size: 1.25rem; /* 17.5px */
  }
  
  /* Layout */
  section {
    padding: 2.5rem 0; /* Reduced padding for smaller screens */
  }
  
  .container {
    padding: 0 1rem; /* Adjusted container padding */
  }
  
  /* Header & Navigation */
  .top-bar .container {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center; /* Center items in top bar */
  }
  
  .main-header .container {
    flex-wrap: wrap;
    justify-content: space-between; /* Ensure logo and toggle are spaced */
    align-items: center;
  }
  
  .logo {
    margin-bottom: 0; /* Remove margin if toggle is on the same line */
  }
  
  .mobile-menu-toggle {
    display: block;
    margin-left: auto; /* Keep toggle to the right */
    padding: 10px; /* Increased padding for better tap area */
    background: transparent; /* Ensure no background interferes */
    border: none; /* Remove border if any */
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0A3161; /* Or your desired icon color */
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px; /* Max width for larger mobile screens */
    height: 100vh;
    background-color: #FFFFFF;
    flex-direction: column;
    padding: 3rem 2rem; /* Increased padding */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1001;
  }
  
  .nav-list.active {
    left: 0;
  }
  
  .nav-list li {
    margin-bottom: 1.5rem; /* Increased spacing */
  }

  .nav-list li a {
    font-size: 1.1rem; /* Slightly larger font for readability */
    padding: 10px 15px; /* Consistent padding for tap area */
    display: block; /* Make whole area tappable */
  }
  
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
  }
  
  .mobile-menu-overlay.active {
    display: block;
  }
  
  /* Hero Section */
  .hero-section {
    height: auto; /* Auto height for content */
    padding: 4rem 0; /* Adjust padding */
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .hero-section h3 {
    font-size: 1.25rem;
  }
  
  /* Grid Layouts */
  .grid-2,
  .grid-3,
  .grid-4,
  .services-grid,
  .features-grid,
  .news-grid,
  .partners-logo-grid,
  .about-content,
  .story-content,
  .mission-vision-grid,
  .achievements-grid,
  .values-grid,
  .service-content,
  .solutions-grid,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-content.reverse,
  .solution-content.reverse {
    direction: ltr;
  }
  
  /* Footer */
  .footer-top,
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Reduced gap */
  }

  .footer-widget {
    margin-bottom: 1rem;
  }

  .footer-widget h4 {
    margin-bottom: 0.5rem;
  }

  .footer .contact-info li {
    display: flex; /* Use flex for better alignment */
    align-items: flex-start; /* Align icon with the start of the text */
    text-align: left; /* Ensure text within li is left-aligned */
    margin-bottom: 0.75rem; /* Space between contact items */
    word-break: break-word; /* Ensure long addresses break nicely */
  }

  .footer .contact-info li i {
    margin-right: 10px; /* Space between icon and text */
    margin-top: 4px; /* Align icon slightly lower */
    flex-shrink: 0; /* Prevent icon from shrinking */
  }

  .footer .contact-info li span {
    flex-grow: 1; /* Allow text to take remaining space */
    word-break: break-word; /* Ensure long addresses break nicely */
    text-align: left !important; /* Force left alignment */
    display: block; /* Ensure it behaves as a block for alignment */
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem; /* Reduced gap */
    text-align: center;
  }
  
  /* Forms */
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: 100%; /* Ensure full width */
  }
  
  .newsletter-form button {
    border-radius: 4px;
    width: 100%;
  }
  
  /* Filter Container */
  .filter-container {
    flex-direction: column;
    align-items: stretch; /* Stretch items to full width */
  }
  
  .search-box {
    width: 100%;
    max-width: none;
    margin-bottom: 1rem; /* Add space below search box */
  }

  .filter-buttons button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Back to Top Button */
  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 40px; /* Slightly smaller */
    height: 40px;
    font-size: 1rem;
  }

  /* Specific fixes for cards and content grids */
  .service-card, .solution-card, .news-card {
    padding: 1rem;
  }

  .service-card h3, .solution-card h3, .news-card h3 {
    font-size: 1.3rem;
  }

  .btn {
    padding: 0.6rem 1.2rem; /* Adjust button padding */
    font-size: 0.9rem;
  }
}

/* ======================================
   3. Tablet Styles (768px - 1023px)
   ====================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Typography */
  html {
    font-size: 15px;
  }
  
  /* Layout */
  section {
    padding: 3.5rem 0;
  }
  
  /* Grid Layouts */
  .grid-3,
  .grid-4,
  .services-grid,
  .features-grid,
  .news-grid,
  .partners-logo-grid,
  .achievements-grid,
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Hero Section */
  .hero-section {
    height: 550px;
  }
  
  /* Navigation */
  .nav-list {
    gap: 1rem;
  }

  .footer .contact-info li span {
    word-break: normal; /* Revert for wider screens if needed */
  }
}

/* ======================================
   4. Desktop Styles (1024px - 1439px)
   ====================================== */
@media (min-width: 1024px) and (max-width: 1439px) {
  /* Layout */
  .container {
    max-width: 1000px;
  }
}

/* ======================================
   5. Large Desktop Styles (≥ 1440px)
   ====================================== */
@media (min-width: 1440px) {
  /* Layout */
  .container {
    max-width: 1320px;
  }
  
  /* Typography */
  html {
    font-size: 18px;
  }
  
  /* Hero Section */
  .hero-section {
    height: 700px;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .hero-section h3 {
    font-size: 1.75rem;
  }
}

/* ======================================
   6. Print Styles
   ====================================== */
@media print {
  /* General */
  body {
    background-color: #FFFFFF;
    color: #000000;
    font-size: 12pt;
  }
  
  /* Hide elements not needed for print */
  .header,
  .footer,
  .back-to-top,
  .cta-section,
  .newsletter-section,
  .social-icons,
  .mobile-menu-toggle,
  .btn {
    display: none !important;
  }
  
  /* Adjust layout */
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    color: #000000;
    page-break-after: avoid;
  }
  
  p, ul, ol {
    orphans: 3;
    widows: 3;
  }
  
  /* Links */
  a {
    color: #000000;
    text-decoration: underline;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 90%;
  }
  
  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  /* Tables */
  table {
    border-collapse: collapse;
  }
  
  table, th, td {
    border: 1px solid #000000;
  }
}

