/* Just Wax Me - Responsive Styles */
/* Mobile-first approach */

/* ============================================
   MOBILE BASE (0 - 639px)
   ============================================ */

/* Navigation Mobile */
.nav-links {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--color-white);
  flex-direction: column;
  padding: var(--spacing-lg);
  gap: var(--spacing-md);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--color-gray-100);
}

.nav-links.active {
  display: flex;
}

.nav-toggle {
  display: flex;
}

.nav-dropdown-menu {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  box-shadow: none;
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
}

.nav-cta {
  margin-left: 0;
  width: 100%;
}

.nav-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Hero Mobile */
.hero {
  padding-top: 100px;
  min-height: auto;
  padding-bottom: var(--spacing-3xl);
}

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

.hero-subtitle {
  font-size: var(--text-base);
}

.hero-cta {
  flex-direction: column;
}

.hero-cta .btn {
  width: 100%;
}

.hero-trust {
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Section Adjustments */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-header h2 {
  font-size: var(--text-2xl);
}

/* Grid Systems */
.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

.specialty-grid {
  grid-template-columns: 1fr;
}

.services-grid {
  grid-template-columns: 1fr;
}

.team-grid {
  grid-template-columns: 1fr;
}

.team-full-grid {
  grid-template-columns: 1fr;
}

.location-grid {
  grid-template-columns: 1fr;
}

.contact-grid {
  grid-template-columns: 1fr;
}

/* Footer Mobile */
.footer-grid {
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
}

.footer-bottom {
  flex-direction: column;
  text-align: center;
}

/* About Page */
.about-intro {
  grid-template-columns: 1fr;
}

.about-photo {
  height: 300px;
}

/* Story Page */
.timeline-item {
  grid-template-columns: 1fr;
  padding-left: var(--spacing-xl);
}

.timeline-item::before {
  left: 6px;
  top: 0;
}

.timeline-year {
  text-align: left;
  padding-right: 0;
  margin-bottom: var(--spacing-md);
}

.timeline-year::after {
  left: -24px;
  right: auto;
  top: 8px;
}

/* Pitch Page Mobile */
.problem-grid {
  grid-template-columns: 1fr;
}

.good-news-grid {
  grid-template-columns: 1fr;
}

.features-list {
  grid-template-columns: 1fr;
}

.tech-grid {
  grid-template-columns: 1fr;
}

.steps-grid {
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
}

.step-card::after {
  display: none;
}

.competitor-table {
  font-size: var(--text-xs);
}

.competitor-table th,
.competitor-table td {
  padding: var(--spacing-sm);
}

/* ============================================
   TABLET (640px+)
   ============================================ */

@media (min-width: 640px) {
  .hero h1 {
    font-size: var(--text-4xl);
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .hero-cta .btn {
    width: auto;
  }

  .hero-trust {
    flex-direction: row;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .specialty-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .good-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   LAPTOP (768px+)
   ============================================ */

@media (min-width: 768px) {
  .section {
    padding: var(--spacing-3xl) 0;
  }

  .hero {
    padding-top: 120px;
    min-height: 90vh;
  }

  .hero h1 {
    font-size: var(--text-5xl);
  }

  .hero-subtitle {
    font-size: var(--text-xl);
  }

  .section-header h2 {
    font-size: var(--text-3xl);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-full-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .location-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-intro {
    grid-template-columns: 1fr 1.5fr;
  }

  .about-photo {
    height: 500px;
  }

  .timeline-item {
    grid-template-columns: 120px 1fr;
    padding-left: 0;
  }

  .timeline-item::before {
    left: 60px;
    top: 40px;
  }

  .timeline-year {
    text-align: right;
    padding-right: var(--spacing-lg);
    margin-bottom: 0;
  }

  .timeline-year::after {
    right: -6px;
    left: auto;
    top: 12px;
  }

  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.5fr;
  }

  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  /* Show full navigation */
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-top: none;
  }

  .nav-toggle {
    display: none;
  }

  .nav-dropdown-menu {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    margin-top: 0;
    transform: translateX(-50%) translateY(10px);
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-cta {
    margin-left: var(--spacing-md);
  }

  .nav-cta .btn {
    width: auto;
  }

  .section {
    padding: var(--spacing-4xl) 0;
  }

  .hero {
    min-height: 100vh;
  }

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

  .section-header h2 {
    font-size: var(--text-4xl);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .step-card::after {
    display: block;
  }
}

/* ============================================
   LARGE DESKTOP (1280px+)
   ============================================ */

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }

  .hero-content {
    max-width: 900px;
  }
}

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

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

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

  .service-link {
    min-height: 48px;
  }

  /* Remove hover effects that don't work well on touch */
  .hover-lift:hover,
  .hover-scale:hover,
  .card-3d:hover .card-3d-inner {
    transform: none;
  }

  /* Click to call styling */
  a[href^="tel:"] {
    font-weight: 600;
    text-decoration: underline;
  }
}

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

@media print {
  .header,
  .nav,
  .nav-toggle,
  .final-cta,
  .btn {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: var(--spacing-xl) 0;
    background: none !important;
  }

  .section {
    padding: var(--spacing-lg) 0;
    break-inside: avoid;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  h1, h2, h3 {
    color: #000;
    page-break-after: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .footer {
    background: none;
    color: #000;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid #ccc;
  }
}

/* ============================================
   LANDSCAPE PHONE ADJUSTMENTS
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 0 var(--spacing-2xl);
  }

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

  .page-hero {
    padding: 100px 0 40px;
  }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
  :root {
    --color-primary: #C4176F;
    --color-gray-400: #666;
    --color-gray-500: #555;
    --color-gray-600: #333;
  }

  .btn-primary {
    background: var(--color-primary);
  }

  .feature-card,
  .specialty-card,
  .team-card,
  .tech-card {
    border: 2px solid var(--color-gray-600);
  }
}

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

@media (prefers-color-scheme: dark) {
  /*
   * Dark mode styles can be added here in the future
   * For now, the site maintains its pink/feminine light theme
   */
}
