/* Responsive Styles for TreasureSigns Website */

/* Large Screens (1200px and above) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium Screens (992px to 1199px) */
@media screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    /* Header & Navigation */
    .mega-content {
        width: 900px;
    }
    
    /* Hero Sections */
    .hero-content h1,
    .product-hero-content h1,
    .service-hero-content h1 {
        font-size: 3rem;
    }
    
    /* Services Grid */
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Case Studies */
    .case-study-content {
        padding: 2rem;
    }
}

/* Tablet Screens (768px to 991px) */
@media screen and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 1.5rem;
    }
    
    /* Header & Navigation */
    .mega-content {
        width: 700px;
    }
    
    .mega-column {
        padding: 1rem;
    }
    
    /* Hero Sections */
    .hero .container,
    .product-hero .container,
    .service-hero .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-content,
    .hero-image,
    .product-hero-content,
    .product-hero-image,
    .service-hero-content,
    .service-hero-image {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content h1,
    .product-hero-content h1,
    .service-hero-content h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-content p,
    .product-descriptor,
    .service-descriptor {
        text-align: center;
        margin: 0 auto 2rem;
    }
    
    .hero-cta,
    .product-hero-cta,
    .service-hero-cta {
        justify-content: center;
    }
    
    /* Services Grid */
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Printing Options */
    .option-item {
        flex-direction: column;
    }
    
    .option-image {
        max-width: 100%;
    }
    
    /* Specifications Tabs */
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 0 calc(50% - 0.5rem);
        margin-bottom: 0.5rem;
    }
    
    /* Case Studies */
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials */
    .testimonial-content {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-logo {
        grid-column: auto; /* keep normal flow so it stays on left */
        text-align: left;
    }
}

/* Mobile Screens (576px to 767px) */
@media screen and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    
    /* Header & Navigation */
    .site-header {
        padding: 0.3rem 0; /* even tighter mobile header padding */
    }
    
    .logo img {
        max-width: 100px; /* tablet/mobile logo size to match styles.css */
        height: auto;
    }
    
    /* Hero Sections */
    .hero-content h1,
    .product-hero-content h1,
    .service-hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p,
    .product-descriptor,
    .service-descriptor {
        font-size: 1rem;
    }
    
    /* Services Grid */
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* What We Deliver */
    .deliver-grid {
        grid-template-columns: 1fr;
    }
    
    /* Technical Specs */
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    /* Use Cases */
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    /* Process Timeline */
    .process-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 10px;
    }
    
    /* Pricing Tables */
    .pricing-table {
        font-size: 0.875rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 0.5rem;
    }
    
    /* Order Process */
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    /* Related Products/Services */
    .related-products-grid,
    .related-services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Small Mobile Screens (Up to 575px) */
@media screen and (max-width: 575px) {
    /* Header & Navigation */
    .site-header {
        padding: 0.25rem 0; /* extra small: tighter header */
    }
    
    .logo img {
        max-width: 90px; /* small mobile logo size to match styles.css */
        height: auto;
    }
    
    /* Hero Sections */
    .hero-content h1,
    .product-hero-content h1,
    .service-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-cta,
    .product-hero-cta,
    .service-hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn,
    .product-hero-cta .btn,
    .service-hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Section Padding */
    .services-overview,
    .case-studies,
    .testimonials,
    .cta-section,
    .product-features,
    .printing-options,
    .product-specs,
    .product-pricing,
    .order-process,
    .product-testimonials,
    .product-faq,
    .related-products,
    .product-cta,
    .what-we-deliver,
    .technical-specs,
    .use-cases,
    .process-section,
    .related-services {
        padding: 3rem 0;
    }
    
    /* Section Headings */
    h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Testimonials */
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin: 0 auto 1rem;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* FAQ Section */
    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
    
    /* Size Chart */
    .size-chart {
        font-size: 0.75rem;
    }
    
    /* Color Grid */
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .cta-section,
    .product-cta {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .product-hero,
    .service-hero {
        padding: 1cm 0;
    }
    
    .product-specs,
    .technical-specs {
        page-break-before: always;
    }
}
/* Compact adjustments for WhatsApp CTA on narrow screens */
@media (max-width: 640px) {
  .btn.btn-whatsapp {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .btn.btn-whatsapp .icon {
    width: 16px;
    height: 16px;
  }
}
