/**
 * Responsive Styles - Orchestrated By Heaven Wedding Website
 * Mobile-first responsive design with breakpoints at 768px, 1024px, and 1440px
 */

/* ==========================================================================
   MOBILE (Default - up to 767px)
   ========================================================================== */

/* Already handled in base mobile-first approach */

/* ==========================================================================
   TABLET (768px and up)
   ========================================================================== */

@media (min-width: 768px) {
  /* Typography Adjustments */
  .couple-names {
    font-size: var(--font-size-7xl);
  }

  h1 {
    font-size: var(--font-size-6xl);
  }

  .brand-name {
    font-size: var(--font-size-4xl);
  }

  /* Hero Sections */
  .hero-content {
    padding: var(--space-3xl) var(--space-2xl);
  }

  /* Countdown Timer */
  .countdown-number {
    font-size: var(--font-size-6xl);
  }

  /* Scripture Verses */
  .scripture-verse {
    font-size: var(--font-size-xl);
  }

  /* Cards */
  .card {
    padding: var(--space-2xl);
  }

  .quick-nav-card {
    padding: var(--space-3xl) var(--space-2xl);
  }

  /* Forms */
  .rsvp-form-container {
    padding: var(--space-3xl);
  }

  /* Gallery */
  .gallery-item {
    aspect-ratio: 4/3;
  }
}

/* ==========================================================================
   DESKTOP (1024px and up)
   ========================================================================== */

@media (min-width: 1024px) {
  /* Typography */
  .couple-names {
    font-size: 5.5rem;
  }

  h1 {
    font-size: var(--font-size-7xl);
  }

  h2 {
    font-size: var(--font-size-5xl);
  }

  .lead {
    font-size: var(--font-size-2xl);
  }

  /* Hero Adjustments */
  .hero {
    min-height: 100vh;
  }

  .hero-content {
    padding: var(--space-4xl) var(--space-3xl);
  }

  /* Navigation */
  .nav-logo {
    font-size: var(--font-size-3xl);
  }

  .nav-link {
    font-size: var(--font-size-lg);
  }

  /* Countdown Timer */
  .countdown {
    gap: var(--space-2xl);
    max-width: 1000px;
  }

  .countdown-item {
    padding: var(--space-2xl);
  }

  .countdown-number {
    font-size: 4.5rem;
  }

  /* Timeline */
  .timeline {
    padding: var(--space-4xl) 0;
  }

  .timeline-content {
    padding: var(--space-2xl);
  }

  /* Cards have more breathing room */
  .card-feature {
    padding: var(--space-3xl);
  }

  /* RSVP Form */
  .rsvp-form-container {
    padding: var(--space-4xl);
  }

  /* Venue Sections - Side by Side */
  .venue-section {
    gap: var(--space-3xl);
  }

  .venue-info {
    padding: var(--space-3xl);
  }

  /* Hero Verse Callout (Glassmorphism) */
.hero .verse-callout {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  margin-top: var(--space-3xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .verse-callout .scripture-verse {
  border-left: none; /* Ensure no double border */
  padding-left: 0;
  margin: 0;
  color: var(--color-navy); /* Ensure readability */
}


  /* Gallery */
  .gallery {
    gap: var(--space-xl);
  }

  /* Footer */
  .footer {
    padding: var(--space-4xl) 0 var(--space-2xl) 0;
  }

  .footer-links {
    gap: var(--space-2xl);
  }
}

/* ==========================================================================
   WIDE SCREENS (1440px and up)
   ========================================================================== */

@media (min-width: 1440px) {
  /* Even more generous spacing */
  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .section-lg {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  /* Hero */
  .hero-content {
    padding: var(--space-5xl) var(--space-4xl);
  }

  /* Typography */
  .couple-names {
    font-size: 6.5rem;
  }

  /* Timeline */
  .timeline-content {
    padding: var(--space-3xl);
  }

  /* Gallery - 4 columns on very wide screens */
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   LANDSCAPE MOBILE PHONES
   ========================================================================== */

@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-4xl) 0;
  }

  .hero-content {
    padding: var(--space-2xl) var(--space-lg);
  }

  .couple-names {
    font-size: var(--font-size-4xl);
  }

  h1 {
    font-size: var(--font-size-3xl);
  }
}

/* ==========================================================================
   SMALL MOBILE (480px and below)
   ========================================================================== */

@media (max-width: 480px) {
  /* Reduce font sizes for very small screens */
  .couple-names {
    font-size: var(--font-size-4xl);
  }

  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }

  .brand-name {
    font-size: var(--font-size-xl);
  }

  /* Countdown Timer - Stack vertically on very small screens */
  .countdown {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .countdown-item {
    padding: var(--space-lg);
  }

  .countdown-number {
    font-size: var(--font-size-4xl);
  }

  /* Buttons */
  .btn {
    font-size: var(--font-size-sm);
    padding: var(--space-md) var(--space-lg);
  }

  /* Cards */
  .card {
    padding: var(--space-lg);
  }

  .quick-nav-card {
    padding: var(--space-lg);
  }

  /* Forms */
  .rsvp-form-container,
  .contact-form-container {
    padding: var(--space-lg);
  }

  /* Timeline */
  .timeline-content {
    padding: var(--space-lg);
  }

  /* Gallery */
  .gallery {
    gap: var(--space-sm);
  }

  /* Hotel Cards */
  .hotel-info {
    padding: var(--space-md);
  }

  /* Party Members */
  .party-member {
    padding: var(--space-lg);
  }

  .party-photo {
    width: 120px;
    height: 120px;
  }

  /* Venue Info */
  .venue-info {
    padding: var(--space-lg);
  }

  /* Scripture Verses */
  .scripture-verse {
    font-size: var(--font-size-base);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  /* Hashtag */
  .hashtag {
    font-size: var(--font-size-2xl);
  }

  /* Back to Top Button */
  .back-to-top {
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .btn {
    min-height: 44px;
  }

  .accordion-header {
    min-height: 44px;
  }

  .nav-link {
    padding: var(--space-md) 0;
  }

  .mobile-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Remove hover effects on touch devices */
  .card:hover,
  .gallery-item:hover img,
  .hotel-card:hover,
  .quick-nav-card:hover {
    transform: none;
  }

  .gallery-overlay {
    opacity: 1; /* Always show captions on touch devices */
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  /* Hide interactive elements */
  .header,
  .mobile-nav,
  .nav-backdrop,
  .back-to-top,
  .menu-toggle,
  .btn,
  form,
  .gallery-overlay {
    display: none !important;
  }

  /* Optimize for print */
  body {
    background-color: white;
    color: black;
    font-size: 12pt;
    line-height: 1.5;
  }

  h1 {
    font-size: 24pt;
    page-break-after: avoid;
  }

  h2 {
    font-size: 20pt;
    page-break-after: avoid;
  }

  h3 {
    font-size: 16pt;
    page-break-after: avoid;
  }

  .section {
    page-break-inside: avoid;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  .scripture-verse {
    border-left-color: #D4A854;
    page-break-inside: avoid;
  }

  /* Remove shadows and effects */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Ensure links are visible */
  a,
  a:visited {
    text-decoration: underline;
    color: #000;
  }

  /* Page margins */
  @page {
    margin: 2cm;
  }
}

/* ==========================================================================
   HIGH CONTRAST MODE (Accessibility)
   ========================================================================== */

@media (prefers-contrast: high) {
  /* Increase contrast for better visibility */
  :root {
    --color-navy: #1A1A1A;
    --color-charcoal: #333333;
    --color-gold: #B8860B;
  }

  .btn-primary {
    border: 2px solid var(--color-navy);
  }

  .nav-link::after {
    height: 3px;
  }

  .focus-visible {
    outline-width: 3px;
  }
}

/* ==========================================================================
   REDUCED MOTION (Accessibility)
   ========================================================================== */

@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;
  }

  .hero {
    background-attachment: scroll;
  }

  .gallery-item:hover img {
    transform: none;
  }

  .card:hover,
  .btn:hover,
  .quick-nav-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   DARK MODE SUPPORT (Optional - Future Enhancement)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  /* Note: Wedding websites typically don't use dark mode */
  /* This can be uncommented and customized if needed */
  
  /*
  :root {
    --color-cream: #1A1A1A;
    --color-white: #2A2A2A;
    --color-beige-soft: #333333;
    --color-charcoal: #E0E0E0;
  }

  body {
    background-color: var(--color-cream);
    color: var(--color-charcoal);
  }

  .header {
    background-color: rgba(26, 26, 26, 0.95);
  }
  */
}

/* ==========================================================================
   IE11 FALLBACKS (If support needed)
   ========================================================================== */

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /* IE11 specific styles if needed */
  
  .grid {
    display: -ms-grid;
  }

  .flex {
    display: -ms-flexbox;
  }
}
