body,
html {
    margin: 0;
    padding: 0;
}

hr {
    height: 1px;
    background-color: #fff;
}

h1 {
    font-family: "Montserrat", sans-serif;
}

h2 {
    font-family: "Montserrat", sans-serif;
}

h3 {
    font-family: "Montserrat", sans-serif;
}

p {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
}

ul {
    padding-left: 0;
}

ul>li {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
}

.top-bar {
    background-color: #000;
    color: #fff;
    padding: 15px 0 5px;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.top-bar a:hover {
    text-decoration: underline;
    color: #0077df;
}

.top-bar ul>li {
    list-style-type: none;
}

.header {
    padding: 10px 0;
}

.header img {
    width: 70%;
}

.header ul {
    list-style-type: none;
    padding-left: 0;
}

.header a {
    text-decoration: none;
    color: #000;
}

.header a:hover {
    text-decoration: underline;
}

.header li {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 40px;
}

.header i {
    font-size: 15px;
    color: #0B76B3;
    margin-right: 10px;
}

.main-menu {
    background-color: #010048;
}

.navbar-nav {
    margin: auto;
    text-align: center;
}

.nav-link {
    color: #fff;
}

.nav-link:hover {
    background-color: #fff !important;
    color: #010048;
}

.carousel-inner {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 200px;
}

.carousel-caption h5 {
    font-family: "Montserrat", sans-serif;
    font-size: 2.5em;
    background-color: #010048;
    padding: 15px;
}

.carousel-caption p {
    font-size: 1.75em;
}

.navbar {
    margin-bottom: 0;
}

.nav-link {
    margin: 0 15px;
    font-size: 18px;
    font-weight: 600;
}

.nav-link:hover {
    color: #010048;
}

.main-content {
    background-image: url("/images/flooring-2.jpg");
    background-size: cover;
    padding: 200px 0;
    position: relative;
}

.main-content::before {
    content: "";
    position: absolute;
    background-color: #0000008e;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-content h1 {
    color: #fff;
    position: relative;
}

.main-content h3 {
    color: #fff;
    position: relative;
    line-height: 40px;
}

.grating-content {
    background-image: url("/images/grp-grating.png");
    background-position: bottom center;
    background-size: cover;
    padding: 200px 0;
    position: relative;

    h1 {
        position: relative;
        z-index: 20;
        color: #fff;
        font-size: 30px;
    }

    p {
        color: #fff;
        font-size: 14px;
        width: 60%;
        text-align: center;
        margin: auto;
        position: relative;
    }
}

.grating-content::before {
    content: "";
    position: absolute;
    background-color: #0000003d;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.grating-content1 {
    background-image: url("/images/grp-handrails.webp");
    background-position: center center;
    background-size: cover;
    padding: 200px 0;
    position: relative;

    h1 {
        position: relative;
        z-index: 20;
        color: #fff;
        font-size: 30px;
    }

    p {
        color: #fff;
        font-size: 14px;
        width: 60%;
        text-align: center;
        margin: auto;
        position: relative;
    }
}

.grating-content1::before {
    content: "";
    position: absolute;
    background-color: #00000080;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* GRP Stock Range Styling */

.grp-stock-range {
    font-family: Arial, sans-serif;
    margin: 40px auto;
    max-width: 1100px;
    line-height: 1.6;
}

.grp-stock-range h2,
.grp-stock-range h3 {
    margin-top: 30px;
    font-weight: 600;
    color: #010048;
}

.grp-stock-range p {
    margin-bottom: 15px;
    color: #444;
}

.grp-colours li {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

.grp-colours.list-inline .list-inline-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.light-grey:before {
    content: "";
    background-color: #c4c7c5;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    display: inline-block;
}

.dark-grey:before {
    content: "";
    background-color: #4a4d4c;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    display: inline-block;
}

.yellow:before {
    content: "";
    background-color: #e3b120;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    display: inline-block;
}

.green:before {
    content: "";
    background-color: #4a7551;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    display: inline-block;
}

/* Table Styling */
.grp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    background: #fff;
    border: 1px solid #ddd;
}

.grp-table caption {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

.grp-table th,
.grp-table td {
    padding: 12px 10px;
    border: 1px solid #ddd;
}

.grp-table th {
    background: #010048;
    font-weight: 600;
    color: #fff;
}

.grp-table tbody .welcome a {
    line-height: 36px;
}

.grp-clamp-table {

    img {
        height: 200px;
        width: auto;
        border-radius: 25px;
    }

    p {
        line-height: 2em;
    }

    .card {
        border: 2px solid #010048;
    }

    .card-body {
        text-align: center;
    }


}

.grp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;

    .card-body {
        border-radius: 0 20px 20px 0;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .grp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .grp-grid {
        grid-template-columns: 1fr;
    }
}

.grp-grid .box {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
}

.grp-grid .box img {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.welcome hr {
    border-top: 2px solid #646464;
}

.grid-default {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Force 4 columns on large screens */
@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Optional: force 2 columns on medium screens */
@media (min-width: 768px) and (max-width: 1199px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.services-grid {
    display: grid;
    gap: 80px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: center;
}

.grp-applications {
    background-color: #010048;

    h2 {
        color: #fff;
    }

    h3 {
        color: #fff;
    }

    h4 {
        color: #fff;
    }

    p {
        color: #fff;
    }

    ul {
        color: #fff;
    }

    li {
        line-height: 30px;
    }

    img {
        border-radius: 20px;
    }
}

.card {
    border: 1px solid #000;
    border-radius: 20px;
    width: 100%;

    img {
        border-radius: 20px 20px 0 0;
    }
}

.card-body {
    background-color: #010048;
    color: #fff;
    border-radius: 0 0 20px 20px;
    padding-bottom: 20px;

    h5 {
        line-height: 30px;
        margin-bottom: 20px;
    }

}

.accordion-button {
    background-color: #010048;
    color: #fff;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: #6ec1e4;
    color: #010048;
    font-weight: 600;
}

.btn-primary {
    background-color: #010048;
    color: #fff;
    position: relative;
    padding: 10px 30px;
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
    border-color: #000;
}

.btn-primary:hover {
    background-color: #000;
    border-color: #000;
}

/* The flip box container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-box {
    background-color: transparent;
    width: 100%;
    height: 230px;
    border: none;
    perspective: 1000px;
    margin-top: -100px;
    /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-box:hover .flip-box-inner {
    transform: rotateX(180deg);
}

/* Position the front and back side */
.flip-box-front,
.flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
}

/* Style the front side */
.flip-box-front {
    background-color: #010048;
    color: white;
    padding: 30px;
}

/* Style the back side */
.flip-box-back-1 {
    background-image: url("/images/box-1-grp-flooring.jpg");
    background-size: cover;
    background-color: #0b76b3;
    color: white;
    transform: rotateX(180deg);
    padding: 30px;
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
}

.flip-box-back-2 {
    background-image: url("/images/box-2-grp-grating.jpg");
    background-size: cover;
    background-color: #0b76b3;
    color: white;
    transform: rotateX(180deg);
    padding: 50px;
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
}

.flip-box-back-3 {
    background-image: url("/images/grp-handrails.webp");
    background-size: cover;
    background-color: #0b76b3;
    color: white;
    transform: rotateX(180deg);
    padding: 50px;
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
}

.flip-box-back-4 {
    background-image: url("/images/box-4-grp-flooring.jpg");
    background-size: cover;
    background-color: #0b76b3;
    color: white;
    transform: rotateX(180deg);
    padding: 50px;
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
}

.flip-box i {
    font-size: 40px;
    margin-bottom: 10px;
    color: white;
}

.flip-box h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    padding-bottom: 30px;
    color: white;
    line-height: 1.8em;
}

.welcome a {
    color: #010048;
    text-decoration: none;
}

.welcome a:hover {
    text-decoration: underline;
}

.welcome ul>li {
    list-style-type: none;
    line-height: 36px;
}

.footer {
    background-color: #000;
    color: #fff;
}

.footer a {
    color: #fff;
    text-decoration: none;
    line-height: 36px;
}

.footer a:hover {
    color: #0077df;
    text-decoration: underline;
}

.footer ul>li {
    line-height: 36px;
}

.footer i {
    color: #fff;
    font-size: 18px;
    margin-right: 20px;
}

.footer i:hover {
    color: #0077df;
    text-decoration: none;
}

.contacts ul {
    padding-left: 0;
}

.contacts li {
    list-style-type: none;
}

.contacts a:hover {
    text-decoration: none;
}

.my-modal .img-thumbnail {
    height: 220px;
}

.my-modal img:hover {
    cursor: pointer;
}

.contact-us ul {
    padding-left: 0;
    list-style-type: none;
}

.contact-us i {
    margin-right: 15px;
    color: #010048;
}

.contact-us a {
    color: #000;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    line-height: 36px;
    font-size: 16px;
}

.contact-us a:hover {
    color: #0077df;
    text-decoration: none;
}

.contact-us .socials i {
    font-size: 20px;
    color: #000;
}

.contact-us .socials i:hover {
    font-size: 20px;
    color: #0077df;
}

.contact-details {
    font-weight: 600;
}

.contact-details li {
    font-size: 16px;
}

@media (max-width: 768px) {

    .header img {
        width: 80%;
        margin: auto;
    }

    .navbar-toggler {
        margin: auto;
        border-color: #fff;
    }

    .navbar-toggler-icon {
        filter: invert(1);
    }

    .navbar-nav {
        text-align: center;
        padding-top: 15px;
    }

    .main-content {
        padding: 50px 0;
    }

    .carousel-inner {
        height: 200px;
    }

    .carousel-item img {
        height: 200px;
    }

    ul>li {
        font-size: 14px;
    }

    ul {
        padding-left: 0;
    }

    h1 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    p {
        font-size: 14px;
    }

    .main-content h3 {
        line-height: 24px;
        margin-top: 15px;
    }

    .flip-box {
        margin-top: 20px;
    }

    .footer h2 {
        margin-top: 15px;
    }

    .footer img {
        margin: auto;
    }

    .my-modal .img-thumbnail {
        width: 250px;
        margin: auto;
        margin-bottom: 15px;
    }

    .footer p {
        line-height: 20px;
    }


}