:root {
    --color-primary: hsl(0, 0%, 0%);
    --color-secondary: hsl(0, 0%, 100%);
    --color-accent: hsl(0, 0%, 50%);
    
    --ff-heading: 'Josefin Sans', sans-serif;
    --ff-body: 'Alta', sans-serif;
    --fw-regular: 400;
    --fw-light: 300;
    --fw-extralight: 100;
}

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}


body {
    font-family: var(--ff-heading);
    color: var(--color-primary) !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* header section */
.header {
    background: transparent;
    position: absolute;
    top: 0;
    width: 100%;
    color: var(--color-secondary);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.burger {
    z-index: 2000;
    cursor: pointer;
    position: relative;
}

.burger img {
    width: 35px;
    height: auto;
}

.icon-close {
  display: none;
}

#menu-toggle:checked ~ .menu {
    display: block;
}

#menu-toggle:checked ~ .burger .icon-open {
    display: none;
}

#menu-toggle:checked ~ .burger .icon-close {
    display: block;
}

body:has(#menu-toggle:checked) {
    overflow: hidden;
}

.menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    z-index: 1000;
}


.menu .menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}

.menu .menu-list li {
    margin: 0.5rem 0;
    text-transform: uppercase;
}

.menu a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: var(--fw-light);
    font-size: 1.5rem;
}

.logo-wrapper {
    height: 35px;
    width: auto;
    position: relative; 
    z-index: 2001;
}

.logo-img {
    height: 100%;
    width: auto;
    display: inline-block;
}


.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .logo-wrapper {
        height: 24px;
    }   

    .burger {
        display: none;
    }
    .menu{
        display: block;
        position: static;
        height: auto;
        width: auto;
        background: transparent;
    }
    .menu .menu-list {
        flex-direction: row;
        padding-left: 0;
        gap: 2rem;
    }
    .menu a {
        font-size: 17px;
        text-transform: none;
    }

    .menu-list a {
        position: relative;
        font-weight: var(--fw-regular);
    }

    .menu-list a::after {
        content: ' ';
        position: absolute;
        left: 0;
        top: 25px;
        width: 100%;
        height: 2px;
        background-color: white;
        border-radius: 2px;
        transform: scaleX(0);
        transition: transform 0.2s;
        transform-origin: right;
    }

    .menu-list a:hover::after {
        transform-origin: left;
        transform: scaleX(1);
    }

}
/* end header section */

.hero-section {
    background-image: url('./images/mobile/image-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-transform: uppercase;
    border: 2px solid var(--color-secondary);
    width: 100%;
}

.hero-content h1 {
    text-align: start;
    font-size: 3.5rem;
    font-weight: var(--fw-light);
    color: var(--color-secondary);
    line-height: 1;
}

.hero-content {
    padding: 2rem 3rem 2rem 2rem;
    max-width: 470px;
    margin: 50px 0 0;
}

.company-info-section {
    margin: 8rem 0;
    position: relative;
}

.info-container {
    margin: 0 2rem;
}

.info-container h2 {
    text-transform: uppercase;
    font-weight: var(--fw-light);
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin: 5rem 0 2rem 0;
}

.info-container p {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 25px;
    text-align: center;
}

.desktop {
    display: none;
}

div.mobile, p.mobile, h2.mobile { 
    font-family: 'Alta', sans-serif !important;
}
.mobile {
    text-transform: uppercase;
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.mobile h3 {
    font-family: var(--ff-heading);
    font-weight: var(--fw-light);
}

.feature-item-container {
    position: relative;
    cursor: pointer;
}

.features-section .features-grid {
        display: grid;
        gap: 3rem;
        margin-bottom: 150px;
    }

.feature-item-title {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: var(--color-secondary);
    text-transform: uppercase;
    font-family: var(--ff-heading);
    font-weight: var(--fw-light);
    font-size: 2.3rem;
    max-width: 200px;
    z-index: 2;
    line-height: 1;
}

.feature-item-container img{
    display: block;
    width: 100%;
    z-index: 0;
}

.see-all-btn-mobile {
    width: 40%;
    justify-self: center;
    align-self: center;
    background: transparent;
    border: 2px solid var(--color-primary);
    padding: 1rem 0;
    cursor: pointer;
}

.see-all-btn-mobile a {
    font-family: var(--ff-heading);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    text-align: center;
}

.feature-item-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to left, rgba(0,0,0,0), rgba(0,0,0,0.6));
    z-index: 1;
}


@media (min-width: 768px) {
    .logo-wrapper {
        width: 300px;
        height: auto;
    }
    .hero-section {
        background-image: url('./images/desktop/image-hero.jpg');
        height: 90vh;
    }

    .hero-section .container {
        display: flex;
        justify-content: flex-start;
        
    }
    
    .hero-content {
        padding: 3rem 3rem 2rem;
        max-width: 650px;
        margin: 50px 0 0;
        width: 90%;
    }
    .hero-content h1 {
        font-size: 4.5rem;
        text-align: left;
        width: 100%;
    }

    .company-info-section {
        padding-bottom: 5rem;
    }

    .info-wrapper {
        position: relative; /* Aceasta devine "ancora" pentru pozitionare */
        display: block;
    }

    .info-wrapper img {
        width: 60% (sau cat ai tu nevoie); /* Imaginea ocupa partea stanga */
        display: block;
    }

    .info-container {
        position: absolute;
        bottom: 0;   /* Se lipeste de fundul imaginii */
        right: 0;    /* Se lipeste de marginea dreapta a CONTAINERULUI (nu a ecranului) */
        width: 540px; 
        background-color: var(--color-secondary);
        padding: 6rem 0 0 6rem; /* Spațiere doar sus și stânga pentru a lăsa textul să respire */
        margin: 0;   /* Scoate marginile care l-ar putea impinge */
        z-index: 2;
    }

    .info-container h2 {
        font-size: 3rem;
        margin: 0;
        margin-bottom: 2.5rem;
        text-align: left;
    }

    .info-container p{
        color: var(--color-accent);
        font-weight: 600;
        font-size: 14px;
        text-align: left;
    }


    .features-hidden {
        display: none;
    }

    .desktop{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 4rem;
    }

    .desktop h3 {
        text-transform: uppercase;
        font-weight: var(--fw-light);
        font-size: 2.5rem;
        line-height: 1;
        color: var(--color-primary);
    }

    .desktop button {
        background: transparent;
        border: 1px solid var(--color-primary);
        padding: 0.5rem 2.5rem;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 3px;
        font-size: 14px;
        color: var(--color-primary);
        cursor: pointer;
    }

    .desktop button, .desktop button a {
        transition: all 0.3s ease;
    }

    .desktop button:hover {
        background-color: var(--color-primary);
    }

    .desktop button:hover a {
        color: var(--color-secondary);
    }

    .desktop button a {
        color: var(--color-primary);
        text-decoration: none;
        vertical-align: middle;
    }

    .see-all-btn-mobile {
        display: none;
    }

    .features-section .features-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        margin-bottom: 150px;
    }

    .feature-item-container::after {
        background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.6));
    }

    .feature-item-container:hover::after {
        background-image: none;
        background-color: rgba(255, 255, 255, 0.7);
        transition: all 0.3s ease;
    }

    .feature-item-title {
        bottom: 20px;
        left: 30px;
        font-size: 1.5rem;
        max-width: 140px;
    }

    .feature-item-container:hover .feature-item-title{
        color: var(--color-primary);
    }
}

footer {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    width: 100%;
    padding: 4rem 0;
}

#footer-logo {
    height: 24px;
    width: auto;
    margin-bottom: 1.5rem;
    display: inline-block;
}

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

.flex-group {
    padding: 0;
}

.footer-left .flex-group li {
    margin-bottom: 1.5rem;
}

.footer-right {
    margin-top: 3rem;
}

.footer-right p {
    font-size: 15px;
    color: var(--color-accent);
    margin-top: 1rem;
}

.footer-socials ul {
    display: flex;
    gap: 1rem;
    padding: 0;
    justify-content: center;
}


@media (min-width: 768px) {
    footer {
        padding: 2.5rem 0;
    }

    .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 90%;
        max-width: 1100px;
        margin: auto;
    }

    #footer-logo {
        height: 24px;
        margin-bottom: 1.5rem;
        display: block;
    }

    .flex-group {
        display: flex;
        gap: 2rem;
        padding: 0;
    }

    .footer-socials {
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: flex-end;
    }

    .footer-socials ul {
        display: flex;
        gap: 1rem;
        padding: 0;
    }

    .footer-socials ul li a img {
        width: 20px;
        height: auto;
    }

    .footer-right p {
        margin-top: 0;
    }

    .footer-right {
        margin-top: 0;
    }
}

