/* ============================================
   ANTIQUE TREASURES - RESPONSIVE STYLESHEET
   Mobile-First Responsive Design
   ============================================ */

/* Mobile First Approach - Base styles for mobile */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    :root {
        --h1-size: 1.8rem;
        --h2-size: 1.5rem;
        --h3-size: 1.3rem;
        --h4-size: 1.1rem;
        --navbar-brand-size: 1.2rem;
        --font-size-base: 14px;
        --font-size-lg: 16px;
    }
    
    /* Header adjustments */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px !important;
        margin: 5px 0;
        text-align: center;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 80vh;
        padding: 40px 0;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    /* Section padding adjustments */
    .py-5 {
        padding: 40px 0;
    }
    
    .page-section {
        padding: 40px 0;
    }
    
    /* Cards and components */
    .feature-card,
    .service-card,
    .price-card,
    .team-card,
    .case-card,
    .blog-card,
    .career-card,
    .info-card {
        margin-bottom: 20px;
    }
    
    .service-content,
    .blog-content {
        padding: 20px;
    }
    
    .price-card {
        padding: 30px 20px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-info {
        padding: 25px 10px;
        margin-top: 30px;
    }
    
    /* Team photos */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Process timeline */
    .process-item {
        flex-direction: column;
        text-align: center;
    }
    
    .process-number {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    /* Timeline events */
    .timeline-event {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-year {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    /* Gallery adjustments */
    .gallery-item {
        margin-bottom: 10px;
    }
    
    /* Footer */
    .footer-section .col-lg-4,
    .footer-section .col-lg-2,
    .footer-section .col-lg-3 {
        margin-bottom: 30px;
        text-align: center;
    }
    
    /* Disable autoplay and effects for mobile as specified */
    .swiper {
        --swiper-navigation-size: 0;
        --swiper-pagination-bullet-size: 8px;
    }
    
    .reviewsSwiper {
        padding: 30px 0;
    }
    
    /* Hide complex animations on mobile */
    .feature-card:hover,
    .service-card:hover,
    .case-card:hover,
    .blog-card:hover,
    .gallery-item:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    :root {
        --h1-size: 2rem;
        --h2-size: 1.7rem;
        --h3-size: 1.4rem;
        --navbar-brand-size: 1.3rem;
    }
    
    .hero-section {
        min-height: 85vh;
    }
    
    .py-5 {
        padding: 50px 0;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
    
    .team-photo {
        width: 130px;
        height: 130px;
    }
    
    /* Disable effects for mobile */
    .feature-card:hover,
    .service-card:hover,
    .case-card:hover,
    .blog-card:hover {
        transform: translateY(-2px);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --h1-size: 2.1rem;
        --h2-size: 1.75rem;
        --navbar-brand-size: 1.35rem;
    }
    
    .hero-section {
        min-height: 90vh;
    }
    
    .py-5 {
        padding: 55px 0;
    }
    
    .contact-form {
        padding: 35px 30px;
    }
    
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    /* Tablets get some hover effects but reduced */
    .feature-card:hover,
    .service-card:hover,
    .case-card:hover,
    .blog-card:hover {
        transform: translateY(-3px);
    }
    
    /* Timeline adjustments for tablets */
    .timeline-event {
        flex-direction: row;
        text-align: left;
    }
    
    .timeline-year {
        margin-right: 25px;
        margin-bottom: 0;
    }
    
    .process-item {
        flex-direction: row;
        text-align: left;
    }
    
    .process-number {
        margin-right: 25px;
        margin-bottom: 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 95vh;
    }
    
    .contact-form {
        padding: 40px 35px;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .container {
        max-width: 1200px;
    }
}

/* Ultra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
}

/* Height-based media queries for better mobile experience */
@media (max-height: 600px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .hero-text p {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

/* Landscape phone adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 30px 0;
    }
    
    .py-5 {
        padding: 35px 0;
    }
    
    .navbar {
        padding: 0.3rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer-section,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        page-break-after: always;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
  overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .team-card {
        border: 1px solid #ccc;
        box-shadow: none;
        margin-bottom: 15pt;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .swiper {
        --swiper-transition-duration: 0ms;
    }
    
    .feature-card,
    .service-card,
    .case-card,
    .blog-card,
    .gallery-item {
        transition: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .case-card:hover,
    .blog-card:hover,
    .gallery-item:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-gold: #FFD700;
        --primary-burgundy: #800000;
        --primary-forest: #006400;
        --primary-charcoal: #000000;
        --light-cream: #FFFFFF;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .team-card,
    .case-card,
    .blog-card {
        border: 2px solid var(--primary-charcoal);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-charcoal);
    }
}


/* Focus states for accessibility */
.navbar-nav .nav-link:focus,
.btn:focus,
.form-control:focus,
a:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Skip navigation for screen readers */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-gold);
    color: var(--primary-charcoal);
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
}

.skip-nav:focus {
    top: 6px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .navbar-nav .nav-link {
  font-size: 10px !important;
        padding: 12px 16px;
    }
    
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .gallery-item {
        border: 2px solid transparent;
    }
    
    .gallery-item:active {
        border-color: var(--primary-gold);
    }
    
    /* Disable hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .case-card:hover,
    .blog-card:hover,
    .gallery-item:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }
}

/* Container adjustments for different screen sizes */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

/* Swiper responsive adjustments */
@media (max-width: 767.98px) {
    .swiper-slide {
        padding: 0 10px;
    }
    
    .review-card {
        padding: 25px 20px;
    }
    
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

@media (min-width: 768px) {
    .swiper-slide {
        padding: 0 15px;
    }
}

/* Form responsive adjustments */
@media (max-width: 767.98px) {
    .contact-form .col-md-6 {
        margin-bottom: 15px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Gallery responsive grid */
@media (max-width: 575.98px) {
    .gallery-section .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery-section .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Additional page specific responsive styles */
@media (max-width: 767.98px) {
    .collection-item h4,
    .restoration-item h4,
    .resource-item h4 {
        font-size: 1.1rem;
        padding: 15px 15px 8px;
    }
    
    .collection-item p,
    .restoration-item p,
    .resource-item p {
        font-size: 14px;
        padding: 0 15px 15px;
    }
    
    .process-step,
    .insight-card,
    .appraisal-service,
    .acquisition-service,
    .consultation-service {
        padding: 20px 15px;
    }
    
    .workshop-service,
    .shipping-service {
        padding: 20px 15px;
    }
    
    .workshop-service img,
    .shipping-service img {
        height: 120px;
    }
} 