/* Header */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background-color: black; /* Don't delete: Must be set for z-index. */
    z-index: 100;
}

.header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center; /* Centers vertically only */
    max-width: 75rem;
    margin: 0 auto; 
}

.logo {
    display: block;
    width: 3.5rem;
    border-radius: 1.75rem;
}

.desktop-menu ul li {
    list-style: none;
    display: inline;
    padding-right: 1.5rem;
}

.desktop-menu .get-in-touch-list {
    padding-right: 0;
}

.desktop-menu ul li a {
    text-decoration: none;
    color: #9CA3AF;
    transition: all 0.3s ease-in;
}

@media (hover: hover) and (pointer: fine) {
    .desktop-menu ul li a:hover {
        color: white;
    }
}

.desktop-menu .get-in-touch-link {
    display: inline-block;
    background-color: #E5E7EB;
    padding: 0.5rem 1rem;
    color: black;
    border-radius: 1.25rem;
    transition: all 0.3s ease-in;
}

@media (hover: hover) and (pointer: fine) {
    .desktop-menu .get-in-touch-link:hover {
        color: black; /* Don't delete: All links inside desktop-menu are changing to white on hover. */
        opacity: 0.8;
    }
}

.menu-btn, .close-menu-btn {
    background-color: transparent;
    font-size: 2.5rem;
}

.close-menu-btn {
    display: none;
}

.menu-icon, .close-menu-icon {
    color: #E5E7EB;
}

.menu {
    display: none;
    position: fixed;
    top: 5.5rem;
    left: 0;
    right: 0;
    min-height: 100vh;
    background-color: black; /* Don't delete: Must be set for z-index */
    z-index: 200;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu ul li {
    list-style: none;
    padding: 1rem;
}

.menubar-icon {
    color: #E5E7EB;
    padding-right: 0.5rem;
}

.menu ul li a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 1.25rem;
}

@media (max-width: 1023px) {
    .desktop-menu {
        display: none; /* No need to set it as !important because it isn't overridden by JavaScript. */
    }
}

/* Don't delete the media query below. It overrides the inline CSS from JavaScript. */
@media (min-width: 1024px) {
    .menu, .menu-btn, .close-menu-btn {
        display: none !important;
    }
}


/* Main */

main {
    padding-top: 5.5rem;
    background-color: #121212;
}

.hero-img {
    width: 100%;
    height: auto; 
    display: block; /* Don't delete: It makes the image occupy the whole space available. */
}


/* About us */

.about-section {
    background-color: #E5E7EB;
    padding: 7rem 1rem 7rem 1rem;
    scroll-margin-top: 5.5rem;
}

/* .about-heading-container {
    max-width: 75rem;
    margin: 0 auto 3.5rem auto;
    border-left: 4px solid gold;
    padding-left: 1.5rem;
}

.about-heading {
    font-size: 2rem;
    text-transform: uppercase;
}

.about-tagline {
    font-style: italic;
    font-size: 0.875rem;
} */

.overview-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 3.5rem;
    max-width: 75rem;
    margin: 0 auto;
    text-align: center;
}

.overview-icon {
    font-size: 2.5rem;
    color: #0b9444;
    display: inline-block;
}

.overview-section h3 {
    margin-top: 1rem;
}

.location-link {
    color: black;
    text-decoration: none;
}


/* Mission and vision */

.mission-and-vision-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 3.5rem;
    max-width: 75rem;
    margin: 0 auto;
    padding-top: 7rem;
}

.mission-container, .vision-container {
    background-color: #0b9444;
    color: white;
    text-align: center;
    padding: 1.5rem;
    border-radius: 28px;
    transition: all 0.3s ease-in;
}

.mission-icon, .vision-icon {
    font-size: 4rem;
    display: block;
    padding-bottom: 1rem;
    color: gold;
}

@media (hover: hover) and (pointer: fine) {
    .mission-container:hover, .vision-container:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 375px) {
    .mission-and-vision-section {
        grid-template-columns: 100%;
    }   
}


/* Products */

.products-heading-section {
    padding: 0 1rem;
    scroll-margin-top: 12.5rem;
}

.products-heading-container {
    max-width: 75rem;
    margin: 7rem auto 3.5rem auto;
    border-left: 4px solid gold;
    padding-left: 1.5rem;
}

.products-heading {
    color: #E5E7EB;
    font-size: 2rem;
    text-transform: uppercase;
}

.products-tagline {
    color: #9CA3AF;
    font-style: italic;
    font-size: 0.875rem;
}

.products-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 3.5rem;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1rem 7rem 1rem;
    text-align: center;
}

.product-img {
    width: auto;
    height: 20rem;
    object-fit: cover;
}

.read-more-btn {
    display: inline-block;
    background-color: #0b9444;
    padding: 0.75rem 1.25rem;
    margin-top: 0.25rem;
    border-radius: 1.275rem;
    color: white;
    cursor: pointer;
}

.products-section h3 {
    color: #E5E7EB;
    font-size: 1.25rem;
    font-weight: 400;
    margin-top: 0.75rem;
}


/* Product Description (p-d) */

.p-d-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    background-color: #E5E7EB;
    z-index: 300;
    padding: 2rem 1rem;
    display: none;
}

.p-d-close-icon-container {
    max-width: 75rem;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.p-d-close-icon {
    font-size: 2.5rem;
    color: #1e293b;
    cursor: pointer;
}

.p-d-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
    gap: 2.5rem;
    max-width: 75rem;
    margin: 0 auto;
}

.p-d-img-container {
    display: grid;
    place-items: center;
    background-color: #1e293b;
    min-height: calc(100vh - 4rem - 5.75rem);
    border-radius: 28px;
}

.p-d-img {
    width: 20rem;
}

.p-d-heading {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 500;
}

.description {
    background-color: #9CA3AF;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
}

.p-d-ul {
    list-style: none;
}

.p-d-ul .check-icon {
    color: green;
}

@media (max-width: 375px) {
    .p-d-container {
        grid-template-columns: auto;
    }

    .p-d-img {
        width: 100%;
    }
}


/* Testimonials */

.testimonials-section {
    padding: 7rem 1rem 7rem 1rem;
    background: #E5E7EB;
    overflow: hidden;
    scroll-margin-top: 5.5rem;
}

.testimonials-heading-container {
    max-width: 75rem;
    margin: 0 auto 3.5rem auto;
    border-left: 4px solid gold;
    padding-left: 1.5rem;
}

.testimonials-heading {
    font-size: 2rem;
    text-transform: uppercase;
}

.testimonials-tagline {
    font-size: 0.875rem;
    font-style: italic;
}

.testimonials-div {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scrollTestimonials 40s linear infinite;
}

.testimonials-div > div {
    min-width: 17.5rem;
    max-width: 20rem;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.testimonials-div p:first-child {
    font-style: italic;
    margin-bottom: 0.8rem;
}

.testimonials-div p:nth-child(2) {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.testimonials-div p:nth-child(3) {
    font-size: 0.875rem;
    color: #666;
}

@keyframes scrollTestimonials {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (hover: hover) and (pointer: fine) {
    .testimonials-div:hover {
        animation-play-state: paused;
    }
}


/* Gallery */

.gallery-section {
    padding-bottom: 7rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
    max-width: 75rem;
    margin: 0 auto;
}

.no-gallery-photo {
    background-color: #E5E7EB; 
    padding: 2rem; 
    border-radius: 28px;
}

.gallery-container {
    position: relative;
    height: 22rem; /* The height of the container must be the same as the height of the image for proper positioning of the title. */
}

.gallery-img {
    height: 22rem;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 28px;
    transition: transform 0.3s ease-in;
}

@media (hover: hover) and (pointer: fine) {
    .gallery-img:hover {
        transform: scale(1.05);
    }
}

.gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.35);
    padding: 1rem;
    text-align: center;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

@media (max-width: 320px) {
    .gallery-section {
        grid-template-columns: auto;
    }
}

@media (max-width: 1232px) {
    .gallery-section {
        padding: 0 1rem 7rem 1rem;
    }
}


/* News */

.news-section {
    background-color: #E5E7EB;
    padding: 7rem 1rem;
    scroll-margin-top: 5.5rem; 
}

.news-heading-container {
    max-width: 75rem;
    margin: 0 auto 3.5rem auto;
    border-left: 4px solid gold;
    padding-left: 1.5rem;   
}

.news-heading {
    font-size: 2rem;
    text-transform: uppercase;
}

.news-tagline {
    font-style: italic;
    font-size: 0.875rem;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    max-width: 75rem;
    margin: 0 auto;
    background-color: #d0d7e3;
    border-radius: 28px;
    padding: 1rem;
}

.no-news {
    padding: 1rem;
}

.news {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    background-color: #f9fafc;
    padding: 1rem;
    border-radius: 28px;
}

.news-date {
    padding-right: 1rem;
    border-right: 2px solid black;
}

.news-title-btn {
    text-align: left;
    background-color: transparent;
    font-size: 1.125rem;
    color: blue;
    text-transform: uppercase;
    cursor: pointer;
}

@media (max-width: 320px) {
    .news-container {
        grid-template-columns: auto;
    }
}


/* FAQs */

.faqs-section {
    scroll-margin-top: 5.5rem;
    max-width: 75rem;
    margin: 0 auto;
    padding: 7rem 0;
}

.faqs-heading-container {
    margin-bottom: 3.5rem;
    border-left: 4px solid gold;
    padding-left: 1.5rem;
}

.faqs-heading {
    color: #E5E7EB;
    font-size: 2rem;
    text-transform: uppercase;
}

.faqs-tagline {
    color: #9CA3AF;
    font-style: italic;
    font-size: 0.875rem;
}

.faqs-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faqs-item {
    border: 1px solid #2a2a2a;
    border-radius: 28px;
    padding: 1.5rem 2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .faqs-item:hover {
        background-color: #1a1a1a;
        border-color: gold;   
    }
}

.faqs-question {
    color: #E5E7EB;
    margin-bottom: 0.75rem;
}

.q-mark {
    color: gold;   
    padding-right: 1rem;   
}

.faqs-answer {
    color: #9CA3AF;        
}

.a-mark {
    color: gold;       
    padding-right: 1rem;
}

.faqs-item:focus-within {
    outline: 2px solid gold;
    outline-offset: 4px;
}

@media (max-width: 1232px) {
    .faqs-section {
        padding: 7rem 1rem;
    }
}


/* Get in Touch */

.get-in-touch-section {
    background-color: #E5E7EB;
    padding: 7rem 1rem;
    scroll-margin-top: 5.5rem;
}

.get-in-touch-heading-container {
    max-width: 75rem;
    margin: 0 auto 3.5rem auto;
    border-left: 4px solid gold;
    padding-left: 1.5rem;   
}

.get-in-touch-heading {
    font-size: 2rem;
    text-transform: uppercase;
}

.get-in-touch-tagline {
    font-style: italic;
    font-size: 0.875rem;
}

.get-in-touch-container {
    max-width: 75rem;
    margin: 0 auto;
    background-color: #f9fafc;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.8), 0 6px 14px rgba(0, 0, 0, 0.02);
    border: 1px solid #e0e4ec;
}

.field {
    margin-bottom: 2rem;
}

.field label {
    display: block;
    font-weight: 500;
    color: #2c3b4f;
    margin-bottom: 0.5rem;
}

.field input, .field textarea {
    width: 100%;
    border: 1px solid #dfe3eb;
    padding: 1rem 1.5rem;
    border-radius: 1.8125rem;
    outline: none;
    transition: border 0.3s ease-in, box-shadow 0.3s ease-in;
    color: #1e293b;
    background-color: #fefefe; 
}

.field textarea {
    resize: vertical;
    min-height: 7.5rem;
}

.field input:focus, .field textarea:focus {
    border-color: #9aa6b9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02), 0 0 0 3px rgba(154, 166, 185, 0.15);
    background-color: #ffffff;
}

::placeholder {
    color: #9fabbc;
    font-weight: 400;
}

.send-btn {
    background-color: #d0d7e3;  
    color: #1e2b3c;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 1.737rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    cursor: pointer;
    box-shadow: 0 8px 16px -12px #1e293b33;
    margin-top: 2rem;
    border: 1px solid #c2cad8;
    transition: background-color 0.3s ease-in, box-shadow 0.3s ease-in, transform 0.3s ease-in;
}

.send-btn i {
    font-size: 1.125rem;
    transition: transform 0.3s ease-in;
}

@media (hover: hover) and (pointer: fine) {
    .send-btn:hover {
        background-color: #c0cadb;
        box-shadow: 0 12px 22px -14px #1f2a3c;
        border-color: #b1bbcc;
    }

    .send-btn:hover i {
        transform: translateX(5px);
    }
}

.send-btn:active {
    transform: scale(0.95);
}

.subject {
    position: absolute;
    left: -99999px;
    top: -99999px;
    height: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -99999;
}