/* Responsive CSS for Story Writing Website - Main Content Only */
/* Mobile First Approach with Progressive Enhancement */

/* Base Mobile Styles (320px and up) */
@media (max-width: 480px) {
    /* Hero Section */
    .hero-section {
        height: 500px;
        margin-block: -100px;
        background-position: center;
    }

    .hero-container-services {
        padding-top: 8em;
        gap: 15px;
        padding: 0 20px;
    }

    .hero-container-services h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-container-services span {
        font-size: 32px;
    }

    .hero-container-services p {
        font-size: 14px;
        width: 100%;
        padding: 0 10px;
    }

    .icon-btn {
        font-size: 12px;
        padding: 0 15px;
        height: 40px;
    }

    /* About Story Section */
    .section-about-story {
        padding-top: 4em;
        padding-bottom: 40px;
    }

    .container-about-story {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .container-about-story .left-div,
    .container-about-story .right-div {
        width: 100%;
    }

    .container-about-story h2 {
        font-size: 28px;
        text-align: center;
        line-height: 1.2;
    }

    .container-about-story span {
        font-size: 28px;
    }

    .container-about-story p {
        font-size: 16px;
        padding: 0;
        text-align: center;
    }

    .inner-container-grid {
        flex-direction: column;
        gap: 20px;
    }

    .inner-container-grid li {
        font-size: 16px;
    }

    /* Process Section */
    .process-container {
        padding: 40px 15px;
        min-height: auto;
        gap: 30px;
        border-radius: 20px;
    }

    .process-container h2 {
        font-size: 32px;
        line-height: 1.1;
    }

    .process-container span {
        font-size: 32px;
    }

    .process-container .inner-container-grid {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .process-container .inner-container-grid .item-process {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: auto;
    }

    .item-process .label-process {
        margin-right: 0;
        width: 120px;
        height: 50px;
        font-size: 16px;
        align-self: flex-end;
    }

    .content-process {
        height: auto;
        min-height: 120px;
        padding: 15px;
        flex-direction: column;
        text-align: center;
        border-radius: 20px;
    }

    .content-process h3 {
        font-size: 18px;
        width: auto;
        text-align: center;
    }

    .overlay-process {
        width: 60px;
        height: 60px;
    }

    .overlay-process img {
        width: 30px;
        height: 30px;
    }

    /* Testimonial Section */
    .testimonial-slider-section .container {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .testimonial-header {
        flex: 1 1 100%;
        padding-right: 0;
        text-align: center;
    }

    .testimonial-heading {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .placeholder-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .testimonial-cards-slider {
        flex: 1 1 100%;
        padding-bottom: 30px;
    }

    .testimonial-track {
        height: 300px;
    }

    .testimonial-content {
        padding: 20px;
        border-radius: 15px;
        height: 100%;
    }

    .testimonial-text {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .author-info {
        margin-top: 15px;
    }

    .author-image {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .author-name {
        font-size: 14px;
    }

    .author-title {
        font-size: 12px;
    }

    .slider-pagination {
        margin-left: 0;
        margin-top: 15px;
    }

    /* Contact Form Section */
    .contact-form-section .container {
        padding: 0 20px;
    }

    .contact-form-container {
        flex-direction: column;
        gap: 30px;
    }

    .form-content-container,
    .form-image-container {
        flex: 1 1 100%;
    }

    .form-heading {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-row input,
    .form-row textarea {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 8px;
        border: 1px solid #ddd;
    }

    .btn-submit {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border-radius: 8px;
        background: linear-gradient(90deg, #D80002 0%, #720001 100%);
        color: white;
        border: none;
        cursor: pointer;
    }
}

/* Tablet Portrait (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        height: 600px;
        margin-block: -200px;
    }

    .hero-container-services {
        padding-top: 12em;
        gap: 20px;
        padding: 0 40px;
    }

    .hero-container-services h1 {
        font-size: 48px;
    }

    .hero-container-services span {
        font-size: 48px;
    }

    .hero-container-services p {
        font-size: 16px;
        width: 90%;
    }

    /* About Section */
    .section-about-story {
        padding-top: 8em;
    }

    .container-about-story {
        flex-direction: column;
        gap: 40px;
        padding: 0 40px;
    }

    .container-about-story .left-div,
    .container-about-story .right-div {
        width: 100%;
    }

    .container-about-story h2 {
        font-size: 42px;
        text-align: center;
    }

    .container-about-story span {
        font-size: 42px;
    }

    .container-about-story p {
        font-size: 18px;
        text-align: center;
    }

    .inner-container-grid {
        justify-content: center;
        gap: 30px;
    }

    /* Process Section */
    .process-container {
        padding: 50px 30px;
        gap: 35px;
    }

    .process-container h2 {
        font-size: 48px;
    }

    .process-container span {
        font-size: 48px;
    }

    .process-container .inner-container-grid {
        width: 100%;
        gap: 18px;
    }

    .process-container .inner-container-grid .item-process {
        flex: 1 1 calc(50% - 18px);
        max-width: calc(50% - 18px);
    }

    .content-process h3 {
        font-size: 24px;
    }

    .overlay-process {
        width: 80px;
        height: 80px;
    }

    .overlay-process img {
        width: 40px;
        height: 40px;
    }

    /* Testimonials */
    .testimonial-slider-section .container {
        flex-direction: column;
        gap: 40px;
        padding: 0 40px;
    }

    .testimonial-header {
        flex: 1 1 100%;
        text-align: center;
        padding-right: 0;
    }

    .testimonial-heading {
        font-size: 36px;
    }

    .testimonial-cards-slider {
        flex: 1 1 100%;
    }

    .testimonial-track {
        height: 350px;
    }

    .slider-pagination {
        margin-left: 0;
    }

    /* Contact Form */
    .contact-form-container {
        flex-direction: column;
        gap: 40px;
    }

    .form-content-container,
    .form-image-container {
        flex: 1 1 100%;
    }

    .form-heading {
        font-size: 32px;
        text-align: center;
    }
}

/* Tablet Landscape (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Hero Section */
    .hero-section {
        height: 700px;
        margin-block: -250px;
    }

    .hero-container-services {
        padding-top: 15em;
    }

    .hero-container-services h1 {
        font-size: 58px;
    }

    .hero-container-services span {
        font-size: 58px;
    }

    .hero-container-services p {
        font-size: 18px;
        width: 80%;
    }

    /* About Section */
    .section-about-story {
        padding-top: 12em;
    }

    .container-about-story h2 {
        font-size: 58px;
    }

    .container-about-story span {
        font-size: 58px;
    }

    .container-about-story p {
        font-size: 18px;
    }

    /* Process Section */
    .process-container h2 {
        font-size: 58px;
    }

    .process-container span {
        font-size: 58px;
    }

    .process-container .inner-container-grid {
        width: 100%;
        max-width: 1200px;
    }

    .content-process h3 {
        font-size: 28px;
        width: auto;
    }

    /* Testimonials */
    .testimonial-header {
        flex: 0 0 40%;
    }

    .testimonial-cards-slider {
        flex: 0 0 55%;
    }

    .testimonial-heading {
        font-size: 32px;
    }

    /* Contact Form */
    .form-heading {
        font-size: 36px;
    }
}

/* Large Tablets/Small Laptops (1025px to 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    /* Hero Section */
    .hero-container-services h1 {
        font-size: 64px;
    }

    .hero-container-services span {
        font-size: 64px;
    }

    .hero-container-services p {
        width: 700px;
    }

    /* About Section */
    .container-about-story h2 {
        font-size: 64px;
    }

    .container-about-story span {
        font-size: 64px;
    }

    /* Process Section */
    .process-container h2 {
        font-size: 64px;
    }

    .process-container span {
        font-size: 64px;
    }

    .process-container .inner-container-grid {
        width: 100%;
        max-width: 1200px;
    }

    .content-process h3 {
        font-size: 32px;
    }

    /* Testimonials */
    .testimonial-heading {
        font-size: 34px;
    }
}

/* General Responsive Utilities */
@media (max-width: 1024px) {
    .main-container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }

    .bestseller-section {
        padding: 40px 0 60px;
    }

    .book-slider.customer-logos {
        margin-left: -100px;
        margin-right: -100px;
    }
}

/* High DPI/Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: url('assets/images/services-story-writing@2x.png');
    }
}

/* Print Styles */
@media print {
    .icon-btn,
    .btn-submit,
    .contact-form-section {
        display: none !important;
    }

    .hero-section {
        background: none;
        color: #000;
    }

    .testimonial-slider-section,
    .process-container {
        break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .testimonial-card {
        transition: none;
    }

    .book-card {
        transition: none;
    }
}

/* Focus States for Better Accessibility */
@media (max-width: 1024px) {
    .icon-btn:focus,
    .btn-submit:focus {
        outline: 2px solid #D80002;
        outline-offset: 2px;
    }
}

/* Container Responsive Behavior */
@media (max-width: 1440px) {
    .process-container .inner-container-grid {
        width: 90%;
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .process-container .inner-container-grid {
        width: 95%;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .hero-container-services h1 {
        font-size: 28px;
    }

    .hero-container-services span {
        font-size: 28px;
    }

    .container-about-story h2 {
        font-size: 24px;
    }

    .container-about-story span {
        font-size: 24px;
    }

    .process-container h2 {
        font-size: 28px;
    }

    .process-container span {
        font-size: 28px;
    }

    .icon-btn {
        font-size: 11px;
        padding: 0 12px;
        height: 35px;
    }
}
