/* Vintage Furniture Restoration Template - Responsive CSS */

/* Mobile First Approach */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.52rem;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
  .hero-desc {
    max-width: 70%;
  }
  
  .service-card {
    margin-bottom: 0;
  }
  
  .team-card {
    margin-bottom: 0;
  }
  
  .review-card {
    margin-bottom: 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
  .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  .hero {
    text-align: left;
  }
  
  .hero-content {
  padding-top: 50px !important;
    padding-right: 2rem;
  }
  
  .section-desc {
    max-width: 700px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer .row > div {
    margin-bottom: 0;
  }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.85rem;
  }
  
  .hero-subtitle {
    font-size: 1.48rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card, .team-card, .review-card {
    margin-bottom: 2rem;
  }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575px) {
  :root {
    --h1-size: 2rem;
    --h2-size: 1.75rem;
    --h3-size: 1.25rem;
    --navbar-brand-size: 1.25rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: var(--navbar-brand-size) !important;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin: 0;
  }
  
  .hero {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: var(--h1-size);
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 1.72rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: var(--h2-size);
  }
  
  .section-subtitle {
    font-size: 1.15rem;
  }
  
  .section-desc {
    font-size: 0.96rem;
    margin-bottom: 2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1.59rem;
  }
  
  .feature-icon {
    font-size: 2.57rem;
  }
  
  .service-card, .team-card, .review-card {
    margin-bottom: 1.70rem;
  }
  
  .service-body, .team-info {
    padding: 1.5rem;
  }
  
  .service-price {
    font-size: 1.54rem;
  }
  
  .team-photo {
    height: 200px;
  }
  
  .review-card {
    padding: 2rem;
  }
  
  .review-card::before {
    font-size: 3rem;
    top: -0.25rem;
  }
  
  .review-text {
    font-size: 1rem;
  }
  
  .faq-question, .faq-answer {
    padding: 1.25rem;
  }
  
  .priceplan-card {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .priceplan-price {
    font-size: 2.54rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-item {
    aspect-ratio: 4/3;
  }
  
  .blog-content {
    padding: 1.25rem;
  }
  
  .contact-bg {
    padding: 2rem 0;
  }
  
  .form-control {
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  .btn-primary, .btn-outline-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .footer .row > div:last-child {
    margin-bottom: 0;
  }
  
  .footer-bottom {
    text-align: center;
    font-size: 0.98rem;
  }
}

/* Extra Extra Small Devices (up to 375px) */
@media (max-width: 375px) {
  :root {
    --h1-size: 1.75rem;
    --h2-size: 1.5rem;
    --h3-size: 1.125rem;
    --navbar-brand-size: 1.125rem;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .hero {
    min-height: 70vh;
    padding: 1.5rem 0;
  }
  
  .hero-title {
    font-size: var(--h1-size);
  }
  
  .hero-subtitle {
    font-size: 1.24rem;
  }
  
  .hero-desc {
    font-size: 1.09rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .service-body, .team-info {
    padding: 1.25rem;
  }
  
  .service-price {
    font-size: 1.39rem;
  }
  
  .team-photo {
    height: 180px;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .review-card::before {
    font-size: 2.65rem;
  }
  
  .priceplan-card {
    padding: 1.5rem;
  }
  
  .priceplan-price {
    font-size: 2rem;
  }
  
  .gallery-item {
    aspect-ratio: 1;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 60vh;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar-nav {
    max-height: 50vh;
    overflow-y: auto;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-image: var(--gradient-hero), url('../YOC_images/hero-bg@2x.webp');
  }
}

/* Print Styles */
@media print {
  * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar, .footer {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
  
  .btn {
    display: none;
  }
  
  .gallery-grid {
    display: none;
  }
}

/* Accessibility - Focus Styles */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 3px solid var(--highlight-gold);
    outline-offset: 2px;
  }
}

/* Dark Mode Preference (Optional - for future enhancement) */
@media (prefers-color-scheme: dark) {
  /* Note: As requested, we're not implementing dark theme for accessibility */
  /* This is a placeholder for future enhancement if needed */
}

/* Animation Performance Optimization */
@media (max-width: 767px) {
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .review-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Specific breakpoints for common devices */

/* iPhone SE, iPhone 5s */
@media (max-width: 320px) {
  :root {
    --h1-size: 1.5rem;
    --h2-size: 1.25rem;
    --navbar-brand-size: 1rem;
  }
  
  .hero-title {
    font-size: var(--h1-size);
  }
  
  .priceplan-price {
    font-size: 1.86rem;
  }
}

/* iPad Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero {
    min-height: 70vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .section {
    padding: 4rem 0;
  }
}

/* iPad Landscape */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .hero {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 3.62rem;
  }
  
  .section {
    padding: 7rem 0;
  }
} 