/* Responsive Styles */
/* Media queries and responsive adjustments for mobile, tablet, and desktop */

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

@media screen and (min-width: 768px) {

  /* Section Padding */
  section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  /* About Section - Start two-column layout */
  .about-content {
    grid-template-columns: 40% 60%;
  }

  .profile-image {
    max-width: 350px;
  }

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

  /* Contact Form */
  .contact-form-container {
    padding: var(--space-3xl);
  }

  /* Pricing note */
  .pricing-note {
    font-size: var(--font-size-base);
  }

}

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

@media screen and (min-width: 1024px) {

  /* ===================================
     NAVIGATION - DESKTOP
     =================================== */

  /* Header height */
  .site-header {
    height: var(--nav-height);
  }

  /* Logo sizing */
  .site-logo {
    width: var(--logo-width-desktop);
  }

  /* Hide mobile menu toggle */
  .mobile-menu-toggle {
    display: none;
  }

  /* Show desktop navigation menu */
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
    background: transparent;
    padding: 0;
    transform: none;
    max-width: none;
    width: auto;
    overflow-y: visible;
  }

  /* Desktop nav links */
  .nav-link {
    color: var(--color-primary);
    font-size: var(--font-size-base);
    padding: var(--space-sm) var(--space-md);
    min-height: auto;
    display: inline-flex;
  }

  .nav-link:hover {
    background-color: var(--color-off-white);
    color: var(--color-accent);
  }

  .nav-link:focus-visible {
    outline-color: var(--color-turquoise);
    background-color: var(--color-off-white);
  }

  /* CTA button on desktop */
  .nav-link-cta {
    margin-top: 0;
  }

  /* ===================================
     SECTION SPACING
     =================================== */

  section {
    padding-top: var(--section-padding-desktop);
    padding-bottom: var(--section-padding-desktop);
  }

  /* ===================================
     ABOUT SECTION
     =================================== */

  .about-content {
    grid-template-columns: 40% 60%;
  }

  .profile-image {
    max-width: 400px;
  }

  /* ===================================
     HERO SECTION
     =================================== */

  .hero-section {
    height: 100vh;
  }

  .hero-title {
    letter-spacing: 3px;
  }

  /* ===================================
     PRICING CARDS
     =================================== */

  /* Featured card slight scale on desktop */
  .pricing-card-featured {
    transform: scale(1.05);
  }

  .pricing-card-featured:hover {
    transform: scale(1.08);
  }

  /* ===================================
     CONTACT SECTION - OPTIONAL TWO COLUMN
     =================================== */

  /* Uncomment to enable two-column contact layout on desktop */
  /*
  .contact-content {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .contact-info {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-lg));
  }
  */

  /* ===================================
     FOOTER
     =================================== */

  .footer-container {
    text-align: left;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .footer-nav-list {
    justify-content: flex-start;
  }

}

/* ===================================
   LARGE DESKTOP (1440px and up)
   =================================== */

@media screen and (min-width: 1440px) {

  /* Potentially increase container width */
  /* .section-container {
    max-width: 1400px;
  } */

  /* Increase spacing for very large screens */
  section {
    padding-top: calc(var(--section-padding-desktop) + var(--space-xl));
    padding-bottom: calc(var(--section-padding-desktop) + var(--space-xl));
  }

  /* Larger profile image */
  .profile-image {
    max-width: 450px;
  }

}

/* ===================================
   MOBILE SPECIFIC (< 768px)
   =================================== */

@media screen and (max-width: 767px) {

  /* Hero adjustments */
  .hero-section {
    min-height: 50vh;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .hero-title {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
    letter-spacing: 1px;
  }

  .scroll-indicator {
    bottom: var(--space-xl);
  }

  /* About Section - stack */
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1; /* Image first on mobile */
  }

  .profile-image {
    max-width: 250px;
  }

  /* Service cards - full width */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing cards - full width on very small screens */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Featured pricing card - no scale on mobile */
  .pricing-card-featured {
    transform: none;
  }

  .pricing-card-featured:hover {
    transform: none;
  }

  /* Testimonials - full width */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Footer - center everything */
  .footer-container {
    text-align: center;
  }

  .footer-nav-list {
    flex-direction: column;
  }

  /* Contact form - larger padding on mobile */
  .contact-form-container {
    padding: var(--space-lg);
  }

}

/* ===================================
   SMALL MOBILE (< 375px)
   =================================== */

@media screen and (max-width: 374px) {

  /* Reduce padding on very small screens */
  .section-container {
    padding: 0 var(--space-md);
  }

  /* Smaller card padding */
  .service-content,
  .pricing-card,
  .contact-form-container {
    padding: var(--space-md);
  }

  /* Smaller button padding */
  .btn {
    padding: var(--space-sm) var(--space-lg);
  }

  /* Reduce hero title size further */
  .hero-title {
    font-size: clamp(1.5rem, 12vw, 2rem);
  }

}

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

@media print {

  /* Hide navigation and footer */
  .site-header,
  .site-footer,
  .scroll-indicator,
  .mobile-menu-toggle {
    display: none;
  }

  /* Remove shadows and transitions */
  * {
    box-shadow: none !important;
    transition: none !important;
  }

  /* Black text on white background */
  body {
    background: white;
    color: black;
  }

  /* Show links */
  a {
    text-decoration: underline;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
  }

  /* Page breaks */
  section {
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }

}

/* ===================================
   LANDSCAPE ORIENTATION (Mobile)
   =================================== */

@media screen and (max-height: 500px) and (orientation: landscape) {

  /* Reduce hero height in landscape */
  .hero-section {
    min-height: 100vh;
  }

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

  /* Hide scroll indicator in landscape */
  .scroll-indicator {
    display: none;
  }

}

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

@media (prefers-contrast: high) {

  /* Increase border widths */
  .form-input,
  .form-textarea,
  .form-select {
    border-width: 3px;
  }

  /* Stronger shadows */
  .service-card,
  .pricing-card,
  .contact-form-container {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  /* Ensure text has strong contrast */
  body {
    color: #000;
  }

}

/* ===================================
   REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {

  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Remove hover transforms */
  .service-card:hover,
  .btn-primary:hover,
  .logo-link:hover {
    transform: none;
  }

  /* Keep focus visible but without transitions */
  :focus-visible {
    transition: none;
  }

}

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

@media (hover: none) and (pointer: coarse) {

  /* Larger touch targets on touch devices */
  .nav-link,
  .btn,
  .faq-button {
    min-height: var(--touch-target-comfortable);
  }

  /* Remove hover effects that don't work on touch */
  .service-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }

  /* Disable hover transforms on cards */
  .pricing-card-featured:hover {
    transform: scale(1.05);
  }

  /* Larger form inputs on touch devices */
  .form-input,
  .form-textarea,
  .form-select {
    min-height: var(--touch-target-comfortable);
    font-size: 16px; /* Prevent zoom on iOS */
  }

}
