/* ============================================
   FIGUEIRA LIMOUSINES - Responsive Styles
   ============================================ */

/* Tablet and below */
@media screen and (max-width: 1024px) {
  :root {
    --header-height: 70px;
}

  header a {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  letter-spacing: 1px;
}
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  /* Fix background for iOS - remove fixed attachment */
  body::before {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
  }

  /* Header adjustments */
  header {
    padding: 0 1rem;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.95);
  }

  /* Header logo on mobile */
  .header-logo img {
    height: 40px;
  }

  /* Show hamburger menu */
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
  }

  /* Mobile nav menu - hidden by default */
  header nav {
  position: fixed;
  top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  display: flex;
    flex-direction: column;
  justify-content: center;
  align-items: center;
    gap: 0;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

  /* When mobile menu is open */
  header.nav-open nav {
    right: 0;
}

  /* Stack nav links vertically */
  header nav a {
    font-size: 1.1rem;
    padding: 1.25rem 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  header nav a:last-child {
    border-bottom: none;
  }

  header nav a::after {
    display: none;
}

  /* Overlay when menu is open */
  header.nav-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }

  /* Main content adjustments */
  main {
    padding: calc(var(--header-height) + 1rem) 1rem 2rem;
    min-height: 100vh;
    min-height: 100dvh;
}

  /* Typography scaling */
  h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  h3 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  h5 {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

  p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* Button adjustments */
  .btn,
  .button,
  .custom-button {
    padding: 0.875rem 2rem;
    font-size: 0.85rem;
  width: 100%;
    max-width: 280px;
  }

  main .button a {
    padding: 0.875rem 2rem;
    font-size: 0.85rem;
}

  /* Footer adjustments */
footer {
    padding: 1.5rem 1rem;
    gap: 0.75rem;
  }

  footer p,
  footer a {
    font-size: 0.75rem;
  }

  /* Glass card adjustments */
  .glass-card {
    padding: 1.5rem;
    border-radius: 15px;
  }
}

/* Small mobile */
@media screen and (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  header {
    padding: 0 0.75rem;
  }

  .header-logo img {
    height: 35px;
  }

  header nav {
    width: 260px;
  }

  main {
    padding: calc(var(--header-height) + 0.5rem) 0.75rem 1.5rem;
  }

  h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .btn,
  .button,
  .custom-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

  main .button a {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }

  footer p,
footer a {
    font-size: 0.7rem;
  }
}

/* Landscape mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  main {
    padding-top: calc(var(--header-height) + 0.5rem);
    min-height: auto;
  }

  header nav {
    padding: 1rem;
    overflow-y: auto;
}

  header nav a {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body::before {
    background-image: url('../images/background.jpg');
  }
}

/* Fix for iOS Safari - background-attachment: fixed doesn't work */
@supports (-webkit-touch-callout: none) {
  body::before {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
  }
}

/* Touch devices - disable fixed background */
@media (hover: none) and (pointer: coarse) {
  body::before {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .menu-toggle {
    display: none;
}

  body::before,
  body::after {
    display: none;
}

  body {
    background: white;
    color: black;
  }

  main {
    padding: 0;
  }
}  
