/* 
 * Nomadica Website
 * Responsive Stylesheet
 * Version: 1.0
 */

/* ====================== RESPONSIVE STYLES ====================== */

/* Large Desktops (1200px and up) */
@media screen and (max-width: 1200px) {
    .hero-title {
      font-size: 4.2rem;
    }
    
    .concept .container {
      gap: var(--spacing-xl);
    }
  }
  
  /* Desktops and Laptops (992px and up) */
  @media screen and (max-width: 992px) {
    html {
      font-size: 58%;
    }
    
    .section-title {
      font-size: 3.2rem;
    }
    
    .hero .container {
      flex-direction: column;
      text-align: center;
    }
    
    .hero-content {
      margin-bottom: var(--spacing-xxl);
    }
    
    .hero-buttons {
      justify-content: center;
    }
    
    .concept .container {
      flex-direction: column-reverse;
    }
    
    .concept-visual {
      margin-bottom: var(--spacing-xl);
    }
    
    .cta .container {
      flex-direction: column;
      text-align: center;
    }
    
    .cta-buttons {
      justify-content: center;
    }
    
    .cta-content {
      margin-bottom: var(--spacing-xl);
    }
    
    .footer-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Tablets (768px and up) */
  @media screen and (max-width: 768px) {
    html {
      font-size: 56%;
    }
    
    /* Navigation Menu */
    .nav-toggle {
      display: flex;
    }
    
    .nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: 70%;
      height: 100vh;
      background-color: white;
      box-shadow: var(--shadow-lg);
      transition: right var(--transition-normal);
      z-index: 100;
      padding: var(--spacing-xxl) var(--spacing-l);
    }
    
    .header-page .nav {
      background-color: var(--primary);
    }
    
    .nav.active {
      right: 0;
    }
    
    .nav-list {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .nav-list a {
      display: block;
      padding: var(--spacing-m) 0;
      width: 100%;
    }
    
    /* Sections */
    .trust-logos {
      gap: var(--spacing-l);
    }
    
    .trust-logos img {
      height: 2.4rem;
    }
    
    .features-grid {
      grid-template-columns: 1fr;
    }
    
    .testimonial-card {
      flex: 0 0 80%;
    }
    
    /* Privacy Policy Page */
    .policy-section {
      flex-direction: column;
    }
    
    .policy-toc {
      position: relative;
      top: 0;
      margin-bottom: var(--spacing-xl);
    }
    
    /* Contact Page */
    .contact-grid {
      grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-bottom {
      flex-direction: column;
      gap: var(--spacing-m);
      text-align: center;
    }
  }
  
  /* Mobile (576px and up) */
  @media screen and (max-width: 576px) {
    html {
      font-size: 54%;
    }
    
    .container {
      padding: 0 var(--spacing-m);
    }
    
    h1 {
      font-size: 3.6rem;
    }
    
    h2 {
      font-size: 2.8rem;
    }
    
    .hero-title {
      font-size: 3.6rem;
    }
    
    .section-title {
      font-size: 2.8rem;
    }
    
    .hero-buttons {
      flex-direction: column;
      width: 100%;
    }
    
    .hero-buttons .btn {
      width: 100%;
    }
    
    .concept-card {
      transform: none;
    }
    
    .concept-card:hover {
      transform: none;
    }
    
    .testimonial-card {
      flex: 0 0 85%;
    }
    
    .cta-buttons {
      flex-direction: column;
      width: 100%;
    }
    
    .cta-buttons .btn {
      width: 100%;
    }
    
    .footer-grid {
      grid-template-columns: 1fr;
    }
    
    .footer-bottom-links {
      flex-direction: column;
      gap: var(--spacing-s);
    }
  }
  
  /* Small Mobile (375px and below) */
  @media screen and (max-width: 375px) {
    html {
      font-size: 52%;
    }
    
    .hero-title {
      font-size: 3.2rem;
    }
    
    .section-title {
      font-size: 2.6rem;
    }
    
    .hero-image img {
      max-width: 100%;
    }
    
    .testimonial-card {
      flex: 0 0 90%;
    }
    
    .form-group.checkbox-group {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  
  /* Animation for Mobile Nav Menu */
  @keyframes slideInNav {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }
  
  .nav.active .nav-list {
    animation: slideInNav 0.3s ease-out forwards;
  }
  
  /* Mobile Nav Menu Close Button */
  .nav-close {
    position: absolute;
    top: var(--spacing-m);
    right: var(--spacing-m);
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-close::before,
  .nav-close::after {
    content: '';
    position: absolute;
    width: 2.4rem;
    height: 2px;
    background-color: var(--text);
    transform: rotate(45deg);
  }
  
  .header-page .nav-close::before,
  .header-page .nav-close::after {
    background-color: white;
  }
  
  .nav-close::after {
    transform: rotate(-45deg);
  }
  
  /* Retina and High DPI Screens */
  @media
  only screen and (-webkit-min-device-pixel-ratio: 2),
  only screen and (min--moz-device-pixel-ratio: 2),
  only screen and (-o-min-device-pixel-ratio: 2/1),
  only screen and (min-device-pixel-ratio: 2),
  only screen and (min-resolution: 192dpi),
  only screen and (min-resolution: 2dppx) {
    /* Retina-specific styles here */
    .hero::before,
    .cta::before {
      background-size: 50%;
    }
  }
  
  /* Print Styles */
  @media print {
    .header,
    .footer,
    .hero-buttons,
    .cta,
    .testimonials {
      display: none;
    }
    
    body {
      font-size: 12pt;
      line-height: 1.5;
      color: #000;
      background: #fff;
    }
    
    a {
      color: #000;
      text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
      page-break-after: avoid;
      page-break-inside: avoid;
    }
    
    img {
      max-width: 100% !important;
      page-break-inside: avoid;
    }
    
    .container {
      max-width: 100%;
      padding: 0;
    }
    
    .policy-toc {
      display: none;
    }
  }