/* MOBILE OPTIMIZATION FIXES FOR PAUL SCATES WEBSITE */

/* Fix container padding on very small screens */
@media (max-width: 640px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Fix header height on mobile - make it more compact */
header .container {
  height: 4.5rem !important; /* Reduced from 6rem */
}

@media (min-width: 768px) {
  header .container {
    height: 5rem !important; /* Slightly taller on tablet+ */
  }
}

/* Ensure logo is appropriately sized on mobile */
header .container a div {
  height: 2.5rem !important;
}

@media (min-width: 768px) {
  header .container a div {
    height: 3rem !important;
  }
}

/* Fix video display - remove opacity 0 issue */
video {
  opacity: 1 !important;
  transition: opacity 0.5s;
}

/* Ensure hero text is visible on mobile */
@media (max-width: 768px) {
  .text-muted-foreground {
    opacity: 1 !important;
    color: hsl(43, 85%, 70%) !important; /* Brighter gold for better visibility */
  }
  
  /* Specifically target subtitle in hero section */
  section.container.py-6 .text-muted-foreground,
  section.container.text-center .text-muted-foreground {
    color: hsl(43, 90%, 75%) !important;
    opacity: 1 !important;
  }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.mobile-nav-overlay.active {
  display: block;
}

/* Mobile Navigation Panel */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background-color: hsl(var(--background));
  z-index: 101;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-panel.active {
  right: 0;
}

/* Mobile menu header */
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid hsl(var(--foreground) / 0.2);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: hsl(var(--foreground));
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

/* Mobile menu links */
.mobile-nav-links {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  background-color: hsl(var(--secondary) / 0.5);
  color: hsl(var(--primary));
  transform: translateX(8px);
}

.mobile-nav-links a[data-slot="button"] {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  text-align: center;
  margin-top: 1rem;
}

.mobile-nav-links a[data-slot="button"]:hover {
  background-color: hsl(var(--primary) / 0.9);
  transform: translateX(0) scale(1.02);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-nav-open {
  overflow: hidden;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
  button, a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Make clickable areas larger */
  header nav a,
  header button {
    padding: 0.875rem 1.25rem;
  }
}

/* Fix video container on mobile */
.video-wrap {
  min-height: 300px;
}

@media (min-width: 768px) {
  .video-wrap {
    min-height: 500px;
  }
}

/* Improve card layouts on mobile */
@media (max-width: 768px) {
  [data-slot="card"] {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

/* Fix text sizes on very small screens */
@media (max-width: 375px) {
  .text-3xl {
    font-size: 1.5rem;
  }
  
  .text-4xl {
    font-size: 1.875rem;
  }
  
  .text-5xl {
    font-size: 2.25rem;
  }
}

/* Improve spacing on mobile */
@media (max-width: 768px) {
  .py-12,
  .py-20 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  section.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Fix grid gaps on mobile */
@media (max-width: 640px) {
  .grid {
    gap: 1rem !important;
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Fix footer on mobile */
footer .container {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 768px) {
  footer .grid {
    gap: 2rem;
  }
}

/* Improve form elements on mobile */
input, textarea, select {
  font-size: 16px !important; /* Prevents zoom on iOS */
}

/* Fix sticky header on mobile - REMOVED body padding to avoid conflicts */
@media (max-width: 768px) {
  header.sticky {
    position: sticky; /* Keep as sticky, not fixed - works better */
    top: 0;
    left: 0;
    right: 0;
  }
}

/* Improve button sizes on mobile */
@media (max-width: 640px) {
  [data-slot="button"] {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* Fix horizontal overflow issues */
body, html {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  max-width: 100%;
}

/* Better touch feedback */
@media (hover: none) {
  button:active,
  a:active {
    opacity: 0.7;
  }
}

