/* =========================================================
   SHINSNEN SOLAR GROUP
   RESPONSIVE.CSS
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

    .container {
        width: 92%;
    }

    .navigation {
        gap: 15px;
    }

    .navigation a {
        font-size: 14px;
    }

    .caption h1 {
        font-size: 50px;
    }

}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

.menu-toggle {
    display: none;

    width: 46px;
    height: 46px;

    align-items: center;
    justify-content: center;

    font-size: 28px;

    background: transparent;
    border: none;

    cursor: pointer;

    color: var(--dark);

    z-index: 10001;
}


@media (max-width: 900px) {

    .nav-container {
        position: relative;
        height: 70px;
    }

    .logo img {
        height: 52px;
        width: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .navigation {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        background: #ffffff;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px 20px 20px;

        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);

        z-index: 10000;
    }

    .navigation.active {
        display: flex;
    }

    .navigation a {
        width: 100%;

        padding: 14px 10px;

        border-bottom: 1px solid #eeeeee;

        text-align: center;

        font-size: 16px;

        text-decoration: none;
    }

    .navigation a:last-child {
        border-bottom: none;
    }

}


/* =========================================================
   GENERAL MOBILE SPACING
   ========================================================= */

@media (max-width: 768px) {

    section {
        padding: 50px 0;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 22px;
    }

    p {
        font-size: 15px;
        line-height: 1.7;
    }

}


/* =========================================================
   HERO SLIDER
   ========================================================= */

.hero-slider {
    width: 100%;
    height: 720px;

    position: relative;

    overflow: hidden;
}

.slides {
    width: 100%;
    height: 100%;
}

.slides img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* Keep overlay below caption */

.hero-slider::after {
    z-index: 2;
    pointer-events: none;
}

.caption {
    z-index: 5;

    width: 84%;
    max-width: 800px;
}


/* =========================================================
   TABLET HERO
   ========================================================= */

@media (max-width: 768px) {

    .hero-slider {
        height: 600px;
    }

    .caption {
        left: 7%;
        width: 86%;
    }

    .caption h1 {
        font-size: 40px;
        line-height: 1.15;
        margin-bottom: 15px;
    }

    .caption p {
        font-size: 18px;
        line-height: 1.5;
    }

}


/* =========================================================
   PHONE HERO
   ========================================================= */

@media (max-width: 480px) {

    .hero-slider {
        height: 520px;
    }

    .caption {
        left: 6%;
        width: 88%;
    }

    .caption h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    .caption p {
        font-size: 16px;
    }

}


/* =========================================================
   STATISTICS
   ========================================================= */

@media (max-width: 768px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-box {
        padding: 25px 15px;
    }

    .stat-box h2 {
        font-size: 34px;
    }

    .stat-box p {
        font-size: 14px;
    }

}


@media (max-width: 400px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   SERVICES
   ========================================================= */

@media (max-width: 768px) {

    .service-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card {
        width: 100%;
    }

    .service-card img {
        width: 100%;
        height: 230px;
        object-fit: cover;
    }

}


/* =========================================================
   TWO COLUMN SECTIONS
   ========================================================= */

@media (max-width: 768px) {

    .two-column {
        grid-template-columns: 1fr;
        gap: 35px;
    }

}


/* =========================================================
   MANUFACTURING / PRODUCT GRID
   ========================================================= */

@media (max-width: 900px) {

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 768px) {

    .four-column {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .product-grid,
    .four-column {
        grid-template-columns: 1fr;
    }

    .product-card {
        width: 100%;
    }

    .product-card img {
        height: 220px;
        width: 100%;
        object-fit: cover;
    }

}


/* =========================================================
   PROJECTS
   ========================================================= */

@media (max-width: 900px) {

    .project-grid,
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}


@media (max-width: 600px) {

    .project-grid,
    .project-gallery {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card img {
        height: 230px;
    }

}


/* =========================================================
   ABOUT PAGE
   ========================================================= */

@media (max-width: 768px) {

    .mv-grid,
    .team-grid,
    .cert-grid,
    .two-column,
    .impact-grid,
    .esg-grid,
    .blog-grid,
    .benefit-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        height: 400px;
        min-height: 400px;
    }

    .page-hero h1 {
        font-size: 40px;
        line-height: 1.15;
    }

    .page-hero p {
        font-size: 17px;
    }

}


/* =========================================================
   TEAM
   ========================================================= */

@media (max-width: 768px) {

    .team-card img {
        height: 280px;
    }

}


/* =========================================================
   TIMELINE
   ========================================================= */

@media (max-width: 600px) {

    .timeline {
        padding-left: 20px;
    }

}


/* =========================================================
   CASE STUDY
   ========================================================= */

@media (max-width: 768px) {

    .case-study {
        padding: 25px;
    }

}


/* =========================================================
   CONTACT
   ========================================================= */

@media (max-width: 768px) {

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contact-form,
    .quote-form {
        width: 100%;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select,
    .quote-form input,
    .quote-form select {
        width: 100%;
        max-width: 100%;
    }

    .map-placeholder {
        height: 280px;
    }

}


/* =========================================================
   NEWSLETTER
   ========================================================= */

@media (max-width: 600px) {

    .newsletter input {
        width: 100%;
        max-width: 100%;
    }

}


/* =========================================================
   BUTTONS
   ========================================================= */

@media (max-width: 600px) {

    .btn,
    .btn-primary,
    .btn-outline {
        max-width: 100%;

        text-align: center;

        white-space: normal;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 10px;
    }

}


/* =========================================================
   FOOTER
   ========================================================= */

@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 45px 0;

        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-column a {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .container {
        width: 92%;
    }

    .logo img {
        height: 45px;
    }

    .nav-container {
        height: 65px;
    }

    .navigation {
        top: 65px;
    }

    .hero-slider {
        height: 480px;
    }

    .caption h1 {
        font-size: 26px;
    }

    .caption p {
        font-size: 14px;
    }

    .stat-box h2 {
        font-size: 30px;
    }

}