/* ==========================================
   RESPONSIVE CSS
   Nandkishore Steel & Pipe Distributor
========================================== */


/* ==========================================
   Large Screens
========================================== */

@media(max-width:1200px){

.container{
    width:95%;
}

.hero h1{
    font-size:3.5rem;
}

}


/* ==========================================
   Tablets
========================================== */

@media(max-width:992px){

/* Navigation */

.nav{

    flex-direction:column;
    height:auto;
    padding:20px 0;

}

nav ul{

    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
    margin:20px 0;

}

.btn{

    margin-top:15px;

}


/* Hero */

.hero{

    text-align:center;
    justify-content:center;

}

.hero-content{

    margin:0 auto;
    padding:0 30px;

}

.hero h1{

    font-size:3rem;

}

.hero-buttons{

    justify-content:center;

}


/* About */

.grid-2{

    grid-template-columns:1fr;

}

.about-home img{

    margin-bottom:40px;

}


/* Brands */

.brand-grid{

    grid-template-columns:repeat(2,1fr);

}


/* Products */

.product-grid{

    grid-template-columns:1fr;

}


/* Why */

.why-grid{

    grid-template-columns:repeat(2,1fr);

}


/* Counter */

.counter-grid{

    grid-template-columns:repeat(2,1fr);

}


/* Footer */

.footer-grid{

    grid-template-columns:repeat(2,1fr);

}

}



/* ==========================================
   Mobile
========================================== */

@media(max-width:768px){

section{

    padding:70px 0;

}

/* Typography */

h1{

    font-size:2.5rem;

}

h2{

    font-size:2rem;

}

h3{

    font-size:1.3rem;

}

p{

    font-size:15px;

}


/* Navbar */

.logo{

    text-align:center;

}

nav ul{

    flex-direction:column;
    gap:15px;

}

.btn{

    padding:12px 28px;

}

.btn-outline{

    margin-left:0;
    margin-top:15px;

}


/* Hero */

.hero{

    height:90vh;

}

.hero-content{

    padding:0 20px;

}

.hero h1{

    font-size:2.4rem;

}

.hero p{

    font-size:16px;

}


/* Brand */

.brand-grid{

    grid-template-columns:1fr;

}

.brand-card{

    padding:30px;

}


/* Product */

.product-card{

    padding:30px;

}


/* Why */

.why-grid{

    grid-template-columns:1fr;

}


/* Counter */

.counter-grid{

    grid-template-columns:1fr;
    gap:25px;

}

.counter-grid div{

    padding:20px;

}


/* Footer */

.footer-grid{

    grid-template-columns:1fr;
    text-align:center;

}


/* Contact */

.contact-grid{

    grid-template-columns:1fr;

}


/* Gallery */

.gallery-grid{

    grid-template-columns:repeat(2,1fr);

}

}



/* ==========================================
   Small Mobile
========================================== */

@media(max-width:576px){

.hero{

    height:85vh;

}

.hero h1{

    font-size:2rem;

}

.hero h4{

    font-size:16px;

}

.hero p{

    font-size:15px;

}

.btn,
.btn-outline{

    display:block;
    width:100%;
    text-align:center;

}

.hero-buttons{

    flex-direction:column;

}

.about-home img{

    border-radius:10px;

}

.brand-card{

    padding:25px;

}

.product-card{

    padding:25px;

}

.gallery-grid{

    grid-template-columns:1fr;

}

iframe{

    height:300px;

}

}



/* ==========================================
   Very Small Devices
========================================== */

@media(max-width:400px){

h1{

    font-size:1.7rem;

}

h2{

    font-size:1.5rem;

}

.logo h2{

    font-size:22px;

}

nav ul{

    gap:10px;

}

.container{

    width:92%;

}

}