/* ============================================
   Float Luxury Spa - Responsive Styles
   ============================================ */

/* Mobile Devices (320px - 767px) */
@media (max-width: 767px) {
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Container padding */
  .container {
    padding: 0 1rem;
  }
  
  /* Section spacing */
  section {
    padding: 3rem 0;
  }
  
  /* Grid layouts */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Cards */
  .card-image {
    height: 200px;
  }
  
  .card-content {
    padding: var(--spacing-lg);
  }
  
  /* Buttons */
  .btn {
    width: 100%;
    display: block;
  }
  
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  /* Forms */
  .form-row {
    flex-direction: column;
  }
  
  /* Hero section */
  .hero {
    min-height: 400px;
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  /* Section headers */
  .section-title {
    font-size: 1.875rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  /* Navigation */
  .nav {
    padding: var(--spacing-md) 0;
  }
  
  .nav-logo {
    font-size: var(--font-size-xl);
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    gap: var(--spacing-md);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  /* Touch targets */
  .btn,
  .nav-link,
  .form-input,
  .form-select {
    min-height: 44px;
  }
}

/* Tablet Devices (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Container */
  .container {
    padding: 0 2rem;
  }
  
  /* Grid layouts */
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Hero */
  .hero {
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Forms */
  .form-row {
    display: flex;
    gap: var(--spacing-md);
  }
  
  .form-row .form-group {
    flex: 1;
  }
}

/* Desktop Devices (1024px - 1439px) */
@media (min-width: 1024px) {
  /* Container */
  .container {
    padding: 0 3rem;
  }
  
  /* Grid layouts */
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Hero */
  .hero {
    min-height: 600px;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Forms */
  .form-row {
    display: flex;
    gap: var(--spacing-md);
  }
  
  .form-row .form-group {
    flex: 1;
  }
  
  /* Two-column layout */
  .two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
  }
  
  .two-column.reverse {
    direction: rtl;
  }
  
  .two-column.reverse > * {
    direction: ltr;
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  /* Hero */
  .hero {
    min-height: 700px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  /* Section spacing */
  section {
    padding: 6rem 0;
  }
}

/* Print Styles */
@media print {
  /* Hide non-essential elements */
  .nav,
  .footer,
  .cookie-banner,
  .cookie-modal,
  .btn,
  .hero {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000080;
    --color-gray-600: #000000;
    --color-gray-700: #000000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    border: 2px solid #000;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Uncomment if dark mode is desired
  :root {
    --color-white: #1F2937;
    --color-gray-900: #F9FAFB;
    --color-gray-800: #F3F4F6;
    --color-gray-700: #E5E7EB;
    --color-gray-600: #D1D5DB;
    --color-gray-500: #9CA3AF;
    --color-gray-400: #6B7280;
    --color-gray-300: #4B5563;
    --color-gray-200: #374151;
    --color-gray-100: #1F2937;
    --color-gray-50: #111827;
    --color-black: #FFFFFF;
  }
  
  body {
    background-color: var(--color-gray-900);
    color: var(--color-gray-100);
  }
  */
}

/* Landscape Orientation (Mobile) */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 300px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Specific breakpoint utilities */
.mobile-only {
  display: block;
}

.tablet-up {
  display: none;
}

.desktop-up {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  
  .tablet-up {
    display: block;
  }
}

@media (min-width: 1024px) {
  .desktop-up {
    display: block;
  }
  
  .tablet-only {
    display: none;
  }
}

/* Flexbox utilities for responsive layouts */
.flex-mobile-column {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .flex-mobile-column {
    flex-direction: row;
  }
}

/* Image responsive utilities */
.img-responsive {
  width: 100%;
  height: auto;
  display: block;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Aspect ratio containers */
.aspect-ratio-16-9 {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.aspect-ratio-16-9 > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.aspect-ratio-4-3 {
  position: relative;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
}

.aspect-ratio-4-3 > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.aspect-ratio-1-1 {
  position: relative;
  padding-bottom: 100%;
  height: 0;
  overflow: hidden;
}

.aspect-ratio-1-1 > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
