* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

body {
    font-size: 16px; 
    line-height: 1.6; 
    color: #1f2632; 
}

header {
    position: fixed;
    width: 100%;
    z-index: 3;
    padding: 20px;
}

.logo {
    display: flex;
    float: left;
    align-items: center;
    gap: 10px;
    color: white;
}

.logo:hover {
    opacity: .6;
}

.header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}
.header li a {
    display: block;
    padding: 20px 20px;
    text-decoration: none;
    color: #EEEEEE;
}
  
.header li a:hover,
.header .menu-btn:hover {
    opacity: .6;
}

.header .menu {
    clear: both;
    max-height: 0;
    transition: max-height .2s ease-out;
}

.header .menu-icon {
    cursor: pointer;
    display: inline-block;
    float: right;
    padding: 28px 20px;
    position: relative;
    user-select: none;
}

.header .menu-icon .navicon {
    background: #333;
    display: block;
    height: 2px;
    position: relative;
    transition: background .2s ease-out;
    width: 18px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: #333;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.header .menu-icon .navicon:before {
    top: 5px;
}
  
.header .menu-icon .navicon:after {
    top: -5px;
}

.header .menu-btn {
    display: none;
}
  
.header .menu-btn:checked ~ .menu {
    max-height: 240px;
}

.header.black-background {
    background-color: #335789;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
}
  
.header .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
}
  
.header .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
}
  
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
    top: 0;
}

@media (min-width: 48em) {
    .header li {
      float: left;
    }
    .header li a {
      padding: 20px 30px;
    }
    .header .menu {
      clear: none;
      float: right;
      max-height: none;
    }
    .header .menu-icon {
      display: none;
    }
}  

.logo img {
    width: 50px;
}

.margin-section {
    margin-bottom: 30px;
}

.hero-content{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 30px;
    color: #EEEEEE;
}

.hero-content p {
    font-size: 20px;
}

.hero-content, .call-to-actions {
    padding: 20px;
}

.call-to-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.intro-section {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0), rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0)),
    url('./assets/images/banner.jpg');
    background-position: center;
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.home {
    justify-self: center;
    margin-top: 25%;
}

.main-btn {
    border-radius: 20px;
    background-color: #335789;
    color: #EEEEEE;
    padding: 15px 32px;
    text-transform: uppercase;
    min-width: fit-content;
}

.secondary-btn {
    border-radius: 20px;
    background-color: #EEEEEE;
    color: #1f2632;
    padding: 15px 32px;
    text-transform: uppercase;
    min-width: fit-content;
}

@media (max-width: 800px) {
    .main-btn {
        width: 100%;
        text-align: center;
    }

    .secondary-btn {
        width: 100%;
        text-align: center;
    }
}

.products-container {
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.product-card {
    background-color: #EEEEEE;
    width: 30%;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    flex-direction: column; 
}

.product-card h3 {
    color: #335789;
}

.product-card img {
    min-height: 150px;
    width: 100%;
    border-radius: 15px;
    height: 230px;
    object-fit: c
    over;
}
@media (max-width: 1024px) {
    .product-card {
        width: 45%; 
    }
}

@media (max-width: 768px) {
    .product-card {
        width: 100%; 
    }

    .products-container {
        gap: 15px; 
    }
}
.products-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85%;
    margin: auto;
    padding: 50px;
    gap: 30px;
}

.about-us-section {
    background-image: url('./assets/images/fence.jpg');
    background-position: center;
    background-size: cover;
    background-color: rgba(255,255,255,0.6);
    background-blend-mode: lighten;
    flex-direction: column;
    display: flex;
    align-items: center;
    padding: 5%;
    justify-content: center;
    gap: 10px;
}

.about-us-container {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-top: 40px;
}

.about-us-container img {
    height: 90px;
    object-fit: cover;
}

@media (max-width: 768px) {
  
    .value-items {
        max-width: 90%; 
        margin: 10px 0; 
    }

    .about-us-section h2 {
        font-size: 1.5em; 
    }

    .about-us-section .value-items {
        font-size: 16px; 

    }

    .about-us-container img {
        height: 30px;
        width: 30px;
        object-fit: cover;
    }
}

.value-items {
    max-width: 25%;
}

.faq-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 10px 20px;
}

.faq-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    text-align: center;
    flex-wrap: wrap;
    height: 450px;
    gap: 15px;
    margin: auto;
    width: 100%;
}

.faq-inner {
  position: relative;
  transition: transform 0.5s;
  transform-style: preserve-3d;
  width: 100%;
  background-color: #1f2632;
  color: #EEEEEE;
  border-radius: 15px;
  height: 120px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); 
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-inner.flipped {
    transform: rotateY(180deg); 
}

@media (min-width: 768px) {
    .faq-inner:hover  {
        transform: rotateY(180deg);
        cursor: pointer;
    }
} 

.faq-card-question, .faq-card-answer {
    position: absolute;
    left: 0;
    width: 100%;
    transform: rotateX(0deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
}

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

.faq-card-answer {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotateY(180deg) translateY(-50%);
    top: 50%;
}

@media (max-width: 768px) {
    .faq-inner {
        cursor: pointer; 
        transform-style: preserve-3d; 
    }

    .faq-inner.active {
        transform: rotateY(180deg); 
    }

    .faq-card-question {
        backface-visibility: hidden; 
    }

    .faq-card-answer {
        backface-visibility: hidden; 
        position: absolute; 
        left: 0; 
        width: 100%; 
        height: fit-content;
    }

    .faq-card-answer.active {
        display: block; 
    }
}

.faq-inner {
    max-height: none; 
}

/* Additional styles for larger screens */
@media (min-width: 768px) {
    .faq-container {
        width: 85%;
    }

    .faq-inner { 
        margin: 10px; 
    }

    .faq-section {
        margin: 30px;
    }
}

.testemonials-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 25px;
}

.testemonials-conteiner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 85%;
    margin: auto;
    gap: 30px;
    margin-bottom: 50px;
}

.testemonials-card img {
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    object-fit: cover; 
    margin-bottom: 10px; 
}
.testemonials-card {
    display: flex;
    flex-direction: column;
    background-color: #EEEEEE;
    padding: 15px;
    border-radius: 15px;
    width: 300px;
    height: 230px;
}

.text-client {
    margin-top: auto;
}

@media (max-width: 1024px) {
    .testemonials-conteiner {
        gap: 20px; 
    }

    .testemonials-card {
        width: 45%; 
    }
}


@media (max-width: 768px) {
    .testemonials-conteiner {
        flex-direction: column; 
        gap: 20px; 
    }

    .testemonials-card {
        width: 100%; 
    }
}
.client {
    font-style: italic;
    margin-top: auto;
    color: gray;
}

.contact-us form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 60%;
    margin: auto;
}

@media (max-width: 768px) {
    .contact-us form {
    width: 364px;
    }
}


.contact-us > form > button {
    align-self: center;
}

.contact-us input {
    border-radius: 30px;
    text-align: justify;
    padding: 10px;
}

.contact-us textarea{
    border-radius: 10px;
    text-align: justify;
    padding: 10px;
}

.contact-us main-btn {
    border-radius: 20px;
    background-color: #335789;
    color: #EEEEEE;
    padding: 15px 32px;
    text-transform: uppercase;
    min-width: fit-content;
}

.contact-details {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 30px;
}

.required {
    color: red; 
    font-weight: bold; 
}

.contact-us input:required:focus,
.contact-us textarea:required:focus {
    border: 2px solid #ff0000; 
}

footer {
    background-color: #1f2632;
    color: #EEEEEE;
    margin-top: 40px;

}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

@media(max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-item {
        text-align: center;
    }

    .phone-number {
        margin-bottom: 15px;
    }
}

.footer-item {
    display: block;
    justify-content: space-evenly;
    padding: 20px;
}

.footer-item a {
    display: block;
    justify-content: space-evenly;
    color: #EEEEEE;
}

@media (max-width: 768px) { 
    .footer-content p {
        font-size: 0.9rem; 
    }
}

@media (max-width: 480px) { 
    .footer-content p {
        font-size: 0.8rem;
    }

    .footer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1280px;
    width: 95%;
    background: #10182F;
    border-radius: 6px; }

    .footer-content a {
        font-size: 1rem; 
        display: block; 
        margin-bottom: 10px;
    }
}

.footer-middle {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 20px;
    flex-wrap: wrap;
    text-decoration: none;
    gap: 30px;
}

.footer-about, .footer-nav {
    width: 250px;
    text-align: center; 
}

.footer-about {
    display: block;
    justify-content: center;
}

.footer-nav {
    text-decoration: none;
    margin-top: 10px;

}

.footer-bottom {
    text-align: center;
    margin: 15px;
    padding: 20px;
}

.footer-nav ul {
    list-style: none;
    color: #EEEEEE;
    padding: 0;
}

.footer-nav a {
    list-style: none;
    color: #EEEEEE;
    padding: 0;
}

.product-card p1 {
    color: green;
}

.available {
    color: green;
    font-style: italic;
    margin-top: auto;
}

.description-product {
    margin-top: auto;
}