html { box-sizing: border-box;}
*, *:before, *:after {
  box-sizing: inherit;
  scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Jost", sans-serif;
    overflow-x: hidden;
}

.back-home {
    position: fixed;
    top: 200px;
    left: 24px;

    z-index: 999;

    font-family: "Syne", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;

    color: #f2ede6;
    text-decoration: none;

    transition: all 0.3s ease;
}

.back-home:hover {
    color: #bada33;
}

/* top bar & nav bar */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.right-side {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 26px;
}

.right-side a {
    text-decoration: none;
    color: black;
    transition: 0.4s;
}

.right-side a:hover {
    color: #8C031C;
}

.left-side img {
    width: 200px;
}

.right-side a:first-child {
    font-size: 18px;
    background:#8C031C;
    color: white;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.4s;
}

.right-side a:first-child:hover {
    background: #111;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 15px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    display: block;
}

.navigation-bar {
    background: #111;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.navigation-bar ul {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.navigation-bar li {
    border-right: 1px solid #333;
}

.navigation-bar li:first-child {
    border-left: 1px solid #333;
}

.navigation-bar a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: 0.4s;
}

.navigation-bar a:hover {
    color:#8C031C;
    background: #1a1a1a;
}

.navigation-bar a.active {
    color: #8C031C;
    background: #1a1a1a;
}

.hero-section {
    background-image: url(images/hero-background.jpg);
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;

    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
         rgba(0,0,0,0.6),
         rgba(0,0,0,0.4))
}

.intro-hero {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;

    height: 100%;
    text-align: center;
}

.primary {
    font-size: 40px;
    margin-bottom: 10px;
    max-width: 850px;
    letter-spacing: 1px;
}

.secondary {
    font-size: 36px;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    letter-spacing: 3px;
}

.text {
    position: absolute;
    width: 100%;
    left: 50%;
    top: 40%;
    text-align: center;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.text.active {
    opacity: 1;
    transform: translate(-50%, -45%);
}


.contact-button a {

    margin-top: 150px;
    background: #8C031C;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 20px;
    display: inline-block;
    transition: transform 0.3s ease , box-shadow 0.3s ease, background 0.3s ease;
}

.contact-button a:hover {
    background: #333;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(227,6,19,0.25);
}

.contact-button a:active {
    transform: translateY(0) scale(0.98);
}


.offer {
    background: #1a1a1a;
    color: white;
    padding: 80px 40px;
}

.offer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.offer-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.offer-text ul {
    padding-left: 20px;
    line-height: 1.8;
    list-style: none;
    padding-left: 0;
}

.offer-text li::before {
    content: " – ";
    color: #8C031C;
}

.more-link {
    font-size: 18px;
    display: inline-block;
    margin-top: 20px;
    color: #8C031C;
    text-decoration: none;
    font-weight: 500;
    transition: 0.4s;
}

.more-link:hover {
    color: white;
}

.presentation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 500px;
}

.card {
    position: relative;
    aspect-ratio: 1/ 1;
    overflow: hidden;
    background: #8C031C;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: 0.4s;

    display: flex;
    align-items: center;
    justify-content: center;
}

.card span {
    position: relative;
    z-index: 3;
    color: white;
    font-size: 18px;
}



.card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}


.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    z-index: 2;
}

.card:hover img {
    opacity: 1;
}

.card:hover span {
    transform: translateY(-5px);
    transition: 0.3s;
}

.card:hover::after {
    opacity: 1;
}

.clients {
    background: #111;
    padding: 60px 40px;
    text-align: center;
}

.clients h2 {
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
}

.clients-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: center;
}

.clients-logos img {
    max-width: 120px;
    margin: 0 auto;
    opacity: 0.7;
    transition: 0.4s;
}

.clients-logos img:hover {
    opacity: 1;
    transform: scale(1.2);
}

.clients-logos p {

    font-size: 22px;
    font-weight: 600;
    color: white;
    text-transform: lowercase;
    text-align: center;
    margin-top: 50px;
}

.contact {
    padding: 80px 40px;
    background: #111;
    color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: none;
    outline: none;
    background-color: #1a1a1a;
    color: white;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    transition: 0.4s;
    border-radius: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom: 2px solid #8C031C;
}

.contact-form textarea {
    min-height: 120px;
    resize: none;
}

.contact-form button {
    background: #8C031C;
    color: white;
    border: none;
    padding: 14px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 20px;
    max-width: 200px;
    width: 100%;
    margin: 0 auto;
    display: block;
    transition: 0.4s ease;
}

.contact-form button:hover {
    transform: translateY(-3px) scale(1.02);
    background: #333;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 18px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #8C031C;
    font-size: 22px;
}

.map {
    margin-top: 20px;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    margin-top: 60px;
}

.footer-bottom img {
    width: 180px;
    margin-top: 40px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.footer-bottom p {
    opacity: 0.6;
}

@media (max-width: 768px) {

    .back-home {
        top: 135px;
    }
    
    /* top bar */
    .top-bar {
        padding: 15px 20px;
    }

    .left-side img {
        width: 120px;
    }

    .right-side {
        gap: 15px;
        font-size: 20px;
    }

    .right-side a:first-child {
        font-size: 0px;
        padding: 0x;
        width: 45px;
        height: 45px;
        border-radius: 22px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .right-side a:first-child i {
        margin-left: 6px;
        font-size: 20px;
    }

    /* nav bar */
    .navigation-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    .navigation-bar ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        background: #111;
        flex-direction: column;
        align-items: center;

        max-height: 0;
        overflow: hidden;
        transition: 0.4s;
    }

    .navigation-bar ul.active {
        max-height: 300px;
    }

    .navigation-bar li {
        border: none;
        width: 100%;
        text-align: center;
    }

    .navigation-bar a {
        width: 100%;
        padding: 15px;
    }

    /* Hero text */
    .primary {

        font-size: 26px;
    }

    .secondary {
        font-size: 18px;
    }

    .contact-button a {
        margin-top: 140px;
        font-size: 16px;
        padding: 12px 20px;
    }

    .presentation {
        margin: 0 auto;
    }

    /* clients */
    .clients-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .clients-logos img {
        max-width: 95px;
        opacity: 1;
    }

    .clients-logos p {
        grid-column: 1/ -1;
        margin-top: 20px;
        font-size: 18px;
    }

    .offer-content,
    .contact-content{
        grid-template-columns: 1fr;
    }

    .contact-info p {
        gap: 5px;
    }

}