/* =============================================
   SPRAY FOAM SYSTEM PAGE STYLES
   ============================================= */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #2d3436;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.spray-hero {
    min-height: 40vh;
    background-image: url('https://cdn.imweb.me/thumbnail/20250726/7455230256b57.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 140px 30px 40px 30px;
    position: relative;
    overflow: hidden;
}

.spray-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.spray-hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.spray-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 25px 0;
    letter-spacing: 1px;
    line-height: 1.1;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.spray-hero p {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Container */
.spray-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

.spray-container {
    width: 100%;
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
}

/* Section Titles */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #FF8A4C;
}

.subsection-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #2d3436;
    margin: 40px 0 30px 0;
}

.section-text {
    font-size: 16px;
    line-height: 1.8;
    color: #2d3436;
    margin: 0 0 40px 0;
}

/* Key Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.feature-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(30, 36, 56, 0.3);
}

.feature-icon img {
    width: 55px;
    height: 55px;
    filter: brightness(0) invert(1);
}

.feature-content h4 {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #2d3436;
    line-height: 1.3;
}

.feature-content p {
    font-size: 12px;
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

/* Application Cards */
.application-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.app-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-card-image {
    height: 213px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card-content {
    padding: 15px;
    text-align: center;
}

.app-card-content p {
    font-size: 14px;
    margin: 0;
    color: #2d3436;
    font-weight: 700;
}

/* Products Table */
.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    border: 1px solid #dee2e6;
    table-layout: fixed;
}

.product-table thead {
    background: #f8f9fa;
}

.product-table th {
    padding: 15px 12px;
    text-align: center;
    font-weight: 700;
    color: #2d3436;
    border: 1px solid #dee2e6;
}

.product-table td {
    padding: 12px;
    text-align: center;
    color: #495057;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.product-table .category-cell {
    font-weight: 600;
    color: #1e2438;
    background: #f6f7f9;
}

.product-table .product-name {
    font-weight: 600;
    color: #2d3436;
}

/* View Images Button */
.view-images-btn-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.view-images-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 35px;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    border: 2px solid #dc3545;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-images-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(90, 122, 115, 0.6);
    background: linear-gradient(135deg, #5A7A73, #6B8A82);
    border-color: #5A7A73;
}

/* Desktop Gallery Grid */
.gallery-grid-desktop {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.gallery-item {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Mobile Carousel (Hidden by default) */
.carousel-container {
    display: none;
}

/* =============================================
   TABLET RESPONSIVE STYLES (769px - 1024px)
   ============================================= */

@media (min-width: 769px) and (max-width: 1024px) {
    /* Hero Section */
    .spray-hero {
        min-height: 40vh;
        padding: 120px 40px 35px 40px;
    }

    .spray-hero h1 {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .spray-hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Content */
    .spray-content {
        padding: 70px 30px;
    }

    .section-title {
        font-size: 30px;
    }

    .subsection-title {
        font-size: 22px;
    }

    /* Key Features - 2 columns */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* Applications Grid - 2 columns */
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* =============================================
   MOBILE RESPONSIVE STYLES (≤768px)
   ============================================= */

@media (max-width: 768px) {
    /* Hero Section */
    .spray-hero {
        min-height: 35vh !important;
        padding: 100px 20px 30px 20px !important;
    }

    .spray-hero h1 {
        font-size: 28px;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .spray-hero p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Content */
    .spray-content {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .subsection-title {
        font-size: 18px;
    }

    .section-text {
        font-size: 13px;
    }

    /* Key Features - 2x2 Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .feature-icon img {
        width: 55px;
        height: 55px;
    }

    .feature-content h4 {
        font-size: 12px;
    }

    .feature-content p {
        font-size: 11px;
    }

    /* Application Cards - 2 Columns */
    .application-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .app-card-image {
        height: 180px;
    }

    .app-card-content p {
        font-size: 13px;
    }

    /* Table */
    .product-table {
        font-size: 12px;
    }

    .product-table th,
    .product-table td {
        padding: 8px 6px;
    }

    /* Hide Desktop Gallery */
    .gallery-grid-desktop {
        display: none;
    }

    /* Show Mobile Carousel */
    .carousel-container {
        display: block;
        position: relative;
        width: calc(100% - 60px);
        height: 260px;
        margin: 0 auto 60px auto;
        overflow: hidden;
        border-radius: 16px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: all 0.6s ease-in-out;
        background-size: cover;
        background-position: center;
        transform: scale(1.05);
    }

    .carousel-slide.active {
        opacity: 1;
        transform: scale(1);
    }

    /* Arrow Buttons - No Background */
    .carousel-controls {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        font-weight: bold;
        color: white;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    }

    .carousel-controls:hover {
        transform: translateY(-50%) scale(1.2);
        text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
    }

    .carousel-prev {
        left: 20px;
    }

    .carousel-next {
        right: 20px;
    }

    /* Indicators */
    .carousel-indicators {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 10;
    }

    .carousel-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(255,255,255,0.6);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .carousel-dot.active {
        background: white;
        transform: scale(1.3);
    }

    .carousel-dot:hover {
        background: rgba(255,255,255,0.9);
    }

    /* View Images Button Mobile Adjustment */
    .view-images-btn-container {
        margin-top: 25px;
        margin-bottom: 25px;
    }
}

/* =============================================
   SMALL MOBILE RESPONSIVE (≤480px)
   ============================================= */

@media (max-width: 480px) {
    /* Hero */
    .spray-hero {
        padding: 30px 15px;
    }

    .spray-hero h1 {
        font-size: 28px;
        letter-spacing: 0.5px;
    }

    .spray-hero p {
        font-size: 15px;
    }

    /* Content */
    .spray-content {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 22px;
    }

    .subsection-title {
        font-size: 16px;
    }

    /* Features - Keep 2x2 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon img {
        width: 45px;
        height: 45px;
    }

    .feature-content h4 {
        font-size: 12px;
    }

    .feature-content p {
        font-size: 10px;
    }

    /* Application Cards - 1 Column */
    .application-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .app-card-image {
        height: 150px;
    }

    /* Table */
    .product-table {
        font-size: 10px;
    }

    .product-table th,
    .product-table td {
        padding: 6px 4px;
    }

    /* Carousel 480px Version */
    .carousel-container {
        width: calc(100% - 40px);
        height: 220px;
    }

    .carousel-controls {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .carousel-prev {
        left: 15px;
    }

    .carousel-next {
        right: 15px;
    }

    .carousel-indicators {
        bottom: 15px;
        gap: 5px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }
}

/* =============================================
   FOOTER MOBILE RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    footer {
        padding: 40px 0 30px 0 !important;
    }
    
    footer > div {
        padding: 0 20px !important;
    }
    
    footer > div > div:first-child {
        margin-bottom: 30px !important;
    }
    
    footer > div > div:first-child > div:first-child img {
        height: 40px !important;
        margin-right: 20px !important;
    }
    
    footer > div > div:first-child > div:first-child > div {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    
    footer div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    footer h4 {
        font-size: 14px !important;
    }
    
    footer p {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }
    
    footer span {
        font-size: 12px !important;
    }
    
    footer > div > div:last-child p {
        font-size: 11px !important;
    }
}
