/* Responsive Styles */

/* Tablet and smaller screens */
@media screen and (max-width: 992px) {
  html {
    font-size: 56.25%; /* 9px = 1rem */
  }
  
  .hero-title {
    font-size: 5rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .about-text {
    order: 2;
  }
  
  .about-image {
    order: 1;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .modal-content {
    max-width: 90%;
  }
}

/* Mobile screens */
@media screen and (max-width: 768px) {
  html {
    font-size: 50%; /* 8px = 1rem */
  }
  
  h1 {
    font-size: 3.6rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.8rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 400px;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--spacing-xxxl);
    transition: right var(--transition-medium);
    box-shadow: var(--shadow-lg);
    z-index: 5;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    color: var(--color-text);
    font-size: 2rem;
    width: 100%;
    padding: var(--spacing-md) 0;
  }
  
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .lang-switcher {
    margin-top: var(--spacing-xl);
  }
  
  .current-lang {
    color: var(--color-text);
  }
  
  .feature-card {
    padding: var(--spacing-lg);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .testimonial-content {
    padding: var(--spacing-lg);
  }
  
  .gallery-modal {
    padding: var(--spacing-md);
  }
  
  .modal-content {
    max-width: 100%;
  }
  
  .modal-prev,
  .modal-next {
    padding: var(--spacing-sm);
  }
  
  .close-modal {
    top: 10px;
    right: 15px;
  }
}

/* Small mobile screens */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.6rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: var(--spacing-xxl) 0;
  }
  
  .section-header {
    margin-bottom: var(--spacing-xl);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    justify-content: center;
  }
  
  #backToTop {
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Landscape orientation on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 400px;
    padding: var(--spacing-xxxl) 0;
  }
  
  .nav-links {
    padding: var(--spacing-xl);
  }
}

/* Hover effects - only on devices that can hover */
@media (hover: hover) {
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  .gallery-item:hover .gallery-overlay {
    transform: translateY(0);
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
}

/* Remove hover effects on touch devices */
@media (hover: none) {
  .gallery-overlay {
    transform: translateY(0);
    opacity: 0.9;
  }
  
  .feature-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  .nav-links a::after {
    display: none;
  }
}



/* High contrast mode */
@media (forced-colors: active) {
  .btn,
  .feature-card,
  .gallery-item,
  .contact-form-container {
    border: 1px solid CanvasText;
  }
  
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid CanvasText;
  }
}

/* Print styles */
@media print {
  #header,
  .hero,
  .gallery-section,
  .testimonials,
  .map-section,
  .footer,
  #backToTop,
  .cookie-consent {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
    font-size: 12pt;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  
  .about-content,
  .contact-content,
  .features-grid {
    display: block;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  .about-image,
  .feature-icon {
    display: none;
  }
  
  .section {
    margin-bottom: 20pt;
    page-break-inside: avoid;
  }
}

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