html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
@media screen and (min-width: 768px) {
    html {
        font-size: 20px;
    }
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

:root {
    font-family: "Bricolage Grotesque", Helvetica, Arial, sans-serif;
    --background-color: #ffffff;
    --primary-bg-grey: #edeef0;
    --primary-green: #00963c;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

figure,
ul,
ol {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

header {
    background-color: transparent;
    position: relative;
    z-index: 3;
    padding: 2rem;
}
.header-logo {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo img {
    margin-left: -1rem;
    height: 110px;
    width: 110px;
    object-fit: contain;
}
.header-menu-icon {
    display: block;
    cursor: pointer;
}
.header-menu-close-icon {
    display: none;
    cursor: pointer;
}
.header-nav {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}
.header-nav ul {
    padding: 0;
    margin: 0;
    margin-top: 2rem;
}
.header-nav ul li {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}
.header-nav ul li a {
    text-decoration: none;
    color: black;
    opacity: 0.7;
    font-weight: 400;
}
.header-nav button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    background-color: var(--primary-bg-grey);
}
@media screen and (min-width: 768px) {
    header {
        padding: 3rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    .header-logo img {
        height: 200px;
        width: 200px;
    }
    .header-menu-icon {
        display: none;
    }
    .header-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .header-nav ul {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        margin-top: 0;
    }
    .header-nav ul li {
        border-bottom: none;
    }
    .header-nav button {
        background-color: var(--background-color);
        padding: 0.7rem 1rem;
    }
}

main {
    position: absolute;
    top: 0rem;
    margin: 2vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media screen and (min-width: 768px) {
    main {
        gap: 8rem;
    }
}

.hero {
    height: 80dvh;
    background-color: var(--primary-bg-grey);
    border-radius: 10px;
    padding: 1.5rem;
    padding-top: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.hero .hero-buttons {
    display: flex;
    gap: 1rem;
}
.hero .hero-buttons button {
    font-weight: 400;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.hero .hero-buttons .hero-button-explore-our-services {
    background-color: var(--primary-green);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 2rem;
}
.hero .hero-buttons .hero-button-lets-talk {
    background-color: transparent;
    border: none;
    padding: 0rem;
}
.hero article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    height: 100px;
}
.hero article section {
    position: relative;
    flex: 1;
    height: 100%;
    background-color: white;
    border-radius: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    padding: 0.7rem;
}
.hero article section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0;
}
.hero article section p {
    font-size: 0.7rem;
    font-weight: 300;
    opacity: 0.5;
    line-height: 1.2;
    margin-bottom: 0;
}
.hero article section img {
    position: absolute;
    top: -1rem;
    left: calc(50% - 18px);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    padding: 6px;
    border: 2.5px solid var(--primary-bg-grey);
    border-radius: 20px;
    background-color: var(--background-color);
}
.hero-decorative-image {
    background-image: url(assets/images/hero/hero.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    width: 100%;
    height: 32vh;
    margin-top: 1rem;
}
@media screen and (min-width: 768px) {
    .hero {
        height: 96vh;
        padding-left: 2.8rem;
        padding-top: 17vh;
        padding-right: 12vw;
    }
    .hero h1 {
        font-size: 3.3rem;
    }
    .hero .hero-buttons {
        margin-top: 2rem;
    }
    .hero article {
        justify-content: start;
        gap: 1rem;
        height: 150px;
    }
    .hero article section {
        max-width: 140px;
    }
    .hero article section h2 {
        font-size: 2rem;
    }
    .hero article section p {
        font-size: 1rem;
    }
    .hero-decorative-image {
        display: none;
    }
}
@media screen and (min-width: 1100px) {
    .hero-container {
        display: flex;
        gap: 1rem;
    }
    .hero {
        height: 96vh;
        flex: 0.6;
        padding-left: 2.8rem;
        padding-top: 17vh;
        padding-right: 12vw;
        border-radius: 16px;
    }
    .hero-decorative-image {
        display: block;
        flex: 0.4;
        background-image: url(assets/images/hero/hero.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 16px;
        width: 100%;
        height: 96vh;
        margin-top: 0;
    }
}

main > section > h2 {
    font-size: 1.2rem;
    font-weight: 200;
    opacity: 0.5;
    position: relative;
    margin-left: 40px;
}
main > section > h2::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary-green);
}

#about-us {
    scroll-margin-top: 2rem;
}
.about-us {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    justify-content: start;
    align-items: start;
}
.about-us p {
    font-size: 1.2rem;
    font-weight: 200;
    line-height: 1.3;
}
.about-us > h2::before {
    top: 50%;
    left: -40px;
}
@media screen and (min-width: 768px) {
    .about-us {
        flex-direction: row;
        align-items: start;
        padding: 0rem 4rem;
    }
    .about-us h2 {
        flex: 0.2;
    }
    .about-us p {
        flex: 0.8;
    }
}

.what-sets-us-apart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    justify-content: start;
    align-items: center;
}
.what-sets-us-apart > h2 {
    margin-left: 0px;
}
.what-sets-us-apart > h2::before {
    bottom: -5px;
    left: calc(50% - 15px);
}
.what-sets-us-apart > div {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}
.what-sets-us-apart > p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}
.what-sets-us-apart article {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: start;
    align-items: start;
    background-color: var(--primary-bg-grey);
    padding: 1rem;
    border-radius: 16px;
    margin: 1rem 0;
}
.what-sets-us-apart-article-header {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: start;
    align-items: center;
}
.what-sets-us-apart-article-header > h3 {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}
.what-sets-us-apart article p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.3;
    opacity: 0.5;
}
.what-sets-us-apart-decorative-image {
    background-image: url(assets/images/what-sets-us-apart/fixing-puzzle-sm.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 200px;
    border-radius: 16px;
}
@media screen and (min-width: 768px) {
    .what-sets-us-apart > div {
        padding-top: 2rem;
        grid-template-columns: repeat(13, 1fr);
        gap: 1rem;
        max-width: 1350px;
    }
    .what-sets-us-apart ul {
        display: grid;
        grid-template-rows: repeat(1, 1fr);
        gap: 1rem;
    }
    .what-sets-us-apart ul:first-child {
        grid-column: 1 / 6;
    }
    .what-sets-us-apart ul:last-child {
        grid-column: 9 / 14;
    }
    .what-sets-us-apart article {
        margin: 0;
    }
    .what-sets-us-apart-decorative-image {
        grid-column: 6 / 9;
        background-image: url(assets/images/what-sets-us-apart/fixing-puzzle-lg.png);
        height: 100%;
    }
}

#services {
    scroll-margin-top: 2rem;
}
.services {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    justify-content: start;
    align-items: start;
}
.services > div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.services > div > h2 {
    font-size: 1.2rem;
    font-weight: 200;
    opacity: 0.5;
    position: relative;
    margin-left: 40px;
}
.services > div > h2::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -40px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-green);
}
.services > div > p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
}
.services ul {
    padding: 0;
    margin: 0;
    margin-top: 1rem;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.services ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.services article {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    justify-content: center;
    align-items: center;
}
.services article img {
    display: flex;
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.services article > p {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}
@media screen and (min-width: 768px) {
    .services {
        padding: 0rem 4rem;
    }
    .services > div {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
        width: 100%;
        padding-bottom: 2rem;
    }
    .services > div > h2 {
        flex: 0.4;
    }
    .services > div > p {
        flex: 0.6;
    }
    .services ul {
        grid-template-columns: repeat(5, 1fr);
        gap: 3rem;
    }
}

.our-process {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: start;
    align-items: center;
    background-color: var(--primary-bg-grey);
    padding: 1rem;
    border-radius: 10px;
}
.our-process h2 {
    opacity: 0.8;
    margin-left: 0px;
}
.our-process > h2::before {
    bottom: -5px;
    left: calc(50% - 15px);
}
.our-process p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}
.our-process ol {
    width: 220px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    position: relative;
    padding-left: 20px;
}
.our-process article {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: start;
    padding-bottom: 1rem;
}
.our-process article > div {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: start;
}
.our-process article h3 {
    font-size: 0.6rem;
    font-weight: 500;
    opacity: 0.8;
    margin-left: 0.5rem;
}
.our-process article span {
    bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    width: 50px;
    text-align: center;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}
.our-process article figure {
    background-color: var(--primary-green);
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
}
.our-process article figure img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
@media screen and (min-width: 1120px) {
    .our-process {
        padding: 2rem 1rem;
    }

    .our-process ol {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        width: 100%;
        padding: 2rem 0;
    }

    .our-process li {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100px;
    }

    /* Vertical line from icon to text */
    .our-process li::before {
        content: "";
        position: absolute;
        width: 2px;
        height: 70px;
        background-color: #444;
    }

    .our-process li:nth-child(odd)::before {
        top: 50%;
        transform: translateY(-100%);
    }

    .our-process li:nth-child(even)::before {
        top: 50%;
    }

    .our-process article {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        position: relative;
        background: none;
        box-shadow: none;
        padding-bottom: 0;
    }

    /* Top alignment for odd items */
    .our-process li:nth-child(odd) article {
        margin-bottom: 2.5rem;
    }

    .our-process li:nth-child(odd) article > div {
        flex-direction: column;
    }

    /* Bottom alignment for even items */
    .our-process li:nth-child(even) article {
        margin-top: 2.5rem;
        flex-direction: column-reverse;
    }

    .our-process li:nth-child(even) article > div {
        flex-direction: column-reverse;
    }

    .our-process article figure {
        background-color: var(--primary-green);
        padding: 12px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 64px;
        z-index: 2;
    }

    .our-process article figure img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

    .our-process article span {
        font-size: 1.5rem;
        font-weight: 600;
        text-align: center;
        margin: 0;
        border: none;
        position: relative;
    }

    /* Positioning the step number */
    .our-process li:nth-child(odd) article span {
        top: 24px;
        right: 36px;
    }

    .our-process li:nth-child(even) article span {
        bottom: 24px;
        right: 36px;
    }

    .our-process article h3 {
        font-size: 0.8rem;
        font-weight: 400;
        opacity: 0.7;
        text-align: center;
        margin: 0;
    }
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    justify-content: start;
    align-items: center;
    /* background-color: var(--primary-bg-grey); */
    border-radius: 10px;
}
.gallery > h2 {
    margin-left: 0px;
}
.gallery > h2::before {
    bottom: -5px;
    left: calc(50% - 15px);
}
.gallery > p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 1rem;
}
.gallery-container {
    width: 100%;
    max-width: 1200px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.gallery-item figcaption {
    padding: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    color: #333;
    background-color: white;
}
@media screen and (min-width: 768px) {
    .gallery {
        padding: 2rem 4rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .gallery-item img {
        height: 250px;
    }
    .gallery-item figcaption {
        font-size: 1rem;
        padding: 1rem;
    }
}
@media screen and (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    .gallery-item img {
        height: 280px;
    }
}

.brands {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    justify-content: start;
    align-items: center;
}
.brands > h2 {
    margin-left: 0px;
}
.brands > h2::before {
    bottom: -5px;
    left: calc(50% - 15px);
}
.brands ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
}
.brands img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
@media screen and (min-width: 768px) {
    .brands {
        padding: 0rem 4rem;
        max-width: 1350px;
        margin: 0 auto;
    }
    .brands ul {
        gap: 3rem;
    }
    .brands img {
        width: 100px;
        height: 100px;
        object-fit: contain;
    }
}

footer {
    background-color: var(--primary-bg-grey);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2vh;
}
footer a {
    text-decoration: none;
    color: black;
    opacity: 0.7;
    font-weight: 400;
}
footer > article {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
footer figure img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}
footer figure figcaption {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.4;
    opacity: 0.7;
}
footer address ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
footer address li {
    display: flex;
    gap: 0.8rem;
}
footer address svg {
    opacity: 0.5;
    width: 16px;
    height: 16px;
}
footer address p {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.3;
    opacity: 0.7;
}
.footer-links-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
}
.footer-links {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}
.footer-links section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
footer hr {
    opacity: 0.5;
    margin: 1rem 0;
}
.footer-copyright-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-copyright {
    font-size: 0.7rem;
    font-weight: 300;
    line-height: 1.3;
    opacity: 0.7;
}
.footer-copyright-developer {
    font-size: 0.7rem;
    font-weight: 300;
    line-height: 1.3;
    opacity: 0.7;
}
.footer-copyright-container a {
    font-weight: 500;
    opacity: 1;
}
@media screen and (min-width: 768px) {
    footer > article {
        flex-direction: row;
        align-items: start;
    }
    footer > article > section {
        flex: 0.3;
        padding-right: 2rem;
    }
    footer figure img {
        width: 150px;
        height: 150px;
        object-fit: cover;
    }
    .footer-links-container {
        flex: 0.7;
        justify-self: center;
        flex-direction: row;
        align-items: start;
        justify-content: space-between;
        padding-top: 3rem;
    }
    .footer-links {
        flex: 0.6;
    }
    .footer-links > section {
        flex: 0.5;
    }
    .footer-links-container > section {
        flex: 0.4;
    }
    .footer-copyright-container {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    .footer-copyright-developer::before {
        content: "|";
        margin-right: 0.2rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* Lightbox Overlay Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

@media screen and (max-width: 767px) {
    .lightbox-overlay {
        padding: 1rem;
    }

    .lightbox-close {
        top: -2rem;
        font-size: 1.5rem;
    }

    .lightbox-caption {
        font-size: 1rem;
    }
}
