@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;500;900');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;600;700');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;    
}

/* Fejléc */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2vh 7vw;
    background-color: #EDEDED;
    box-shadow: 0 2px 5px rgba(65, 62, 54, 0.4);
    z-index: 1000;        
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

svg {
    height: 40px;
    width: auto;
    max-width: 100%;
}

.nav a {
    margin-left: 3vw;
    color: #766D55;
    text-align: center;
    font-family: Montserrat;
    font-size: 1em;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-decoration: none;    
}

/* Hero szekció */
.hero {
    padding-top: calc(80px + 4vh);
    color: #403E36;
    position: relative;
    width: 100%;
    height: 60vh;
    background-image: url('../images/hestiart_hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;   
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 3vh;
    text-align: left;
    max-width: 600px;
}

.hero-content h1 {
    margin-bottom: 1vh;
    font-family: "Cormorant Garamond";
    font-size: 2.25em;
    font-style: italic;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.08px;     
}

.partner-info p,
.contact-content p,
.hero-content p,
.service-item p,
.feature-item p {
    margin-bottom: 2vh;
    font-family: "Cormorant Garamond";
    font-size: 1.5em;
    font-style: normal;
    font-weight: 300;
    line-height: 150%;
    letter-spacing: 0.2px;
    padding: 0 3vw;
}

.hero-content p {
    padding: 0;
}

.hero-image {
    width: 40%;
    background-color: #ccc;
    height: 300px; /* Kép helyettesítő */
}

/* Szolgáltatások szekció */
.services {
    padding: 10vh 5vw;
    text-align: center;
}

.contact-content h2,
.services h2,
.why-us h2  {
    margin-bottom: 4vh;
    width: 100%;
    text-align: center;
    font-family: Montserrat;
    font-size: 1.5em;
    font-style: normal;
    font-weight: 100;
    line-height: normal;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.service-box {
    display: flex;
    justify-content: center;
    gap: 2vw;
    margin-top: 20px;
}

.service-item {
    width: 45%;
    padding-bottom: 2vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* Középre igazítja a tartalmat */
    border-color: #ad9759;
    border-width: 1px;
    border-style: solid;
    transition: 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 0 20px rgba(173, 151, 89, 0.6);
}

.content {
    flex-grow: 1; /* Kitölti a fennmaradó helyet, így a gomb az alján marad */
}

.service-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.service-item h3,
.feature-item h3 {
    padding: 0 3vw;
    margin-top: 1vh;
    margin-bottom: 1vh;
    font-family: "Cormorant Garamond";
    font-size: 1.75em;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.08px;  
}

/* Miért a HestiArt szekció */
.why-us {
    padding: 40px;
    text-align: center;
    background-color: #EDEDED;
}

.features {
    display: flex;
    justify-content: center;
    gap: 3vw;
}

.feature-item {
    width: 30%;
    padding: 20px; 
}

.feature-item h3 .icon {
    display: inline-flex;
    margin-right: 8px;
}

.feature-item h3 .icon svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.button-link {
    display: inline-block;
    padding: 15px 20px;
    background: #ad9759;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    text-align: center;

    font-family: Montserrat;
    font-size: 1em;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.3px;
    text-transform: uppercase;  
}

.button-link:hover {
    background-color: #776e55;
    cursor: pointer;
}

.content {
    flex: 1;
}

footer {
    background-color: #ffffff;
    padding: 2vh 0;
    text-align: center;
}

.instagram-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    text-decoration: none;
}

.instagram-footer:hover {
    cursor: pointer;
}

.instagram-logo {
    width: 30px;
    height: 30px;
}

.instagram-text {
    color: #413e36;
    font-family: Montserrat;
    font-size: 1em;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.3px;
}


/* -------------- Gallery ------------- */

.grid-wrapper {
    display: grid;
    padding-top: calc(80px + 4vh);
    grid-gap: 1vw;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    width: 100%;
    max-width: 70%;
    margin: 0 auto; /* Center align the gallery */
}

/* A képek és az overlay alapbeállításai */
.grid-wrapper > div {
    position: relative;
    overflow: hidden;
}

.grid-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease; /* Smooth transition */
}

/* Overlay div, amely elsötétíti a képet és tartalmazza a szöveget */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    text-align: center;
}

/* Szöveg megjelenítése a kép közepén */
.overlay h3 {
    /* font-size: 1.5rem; */
    margin-bottom: 5px;
    font-family: Montserrat;
    font-size: 1.5em;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.3px;
    /* text-transform: uppercase;       */
}

/* .overlay p {
    font-size: 1rem;
} */

/* Hover effekt: sötétítés és szöveg megjelenítés */
.grid-wrapper > div:hover img {
    transform: scale(1.05); /* Kicsit kinagyítjuk a képet */
}

.grid-wrapper > div:hover .overlay {
    opacity: 1;
}


/* Grid size classes */
.grid-wrapper .wide {
    grid-column: span 2;
}

.grid-wrapper .tall {
    grid-row: span 2;
}

.grid-wrapper .big {
    grid-column: span 2;
    grid-row: span 2;
}


/* ------- Modalis ablak ---------*/
/* Modális háttér */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Modális tartalom */
.modal-content {
    position: relative;
    display: flex;
    background-color: #ffffff;
    overflow: hidden;
    /* Width and height will adapt based on the content */
}

/* Bezáró gomb a jobb felső sarokban */
.close-btn {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 36px;
    color: #403E36;
    cursor: pointer;
}

/* Bal oldali sáv a kép névvel és leírással */
.modal-sidebar {
    width: 400px;
    padding: 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.modal-sidebar h3 {
    margin-bottom: 10px;
    color: #403E36;
    font-family: Montserrat;
    font-size: 1.5em;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.3px;    
}

.modal-sidebar p {
    font-size: 1rem;
    color: #403E36;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 300;
    line-height: 150%;
}

/* A modális képrész */
.modal-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #403E36;
}

.modal-image img {
    max-width: none; /* Allow image to take natural width */
    max-height: 90vh; /* Set max height to avoid overflowing */
    object-fit: contain;
}


/* ---------- ABOUT -------------*/
/* Tartalom stílusok */
.about-content {
    padding-top: calc(80px + 4vh);
    max-width: 50%;
    margin: 0 auto;
    text-align: left;
    color: #403E36;
}

.about-content h1 {
    color: #403E36;
    text-align: center;
    margin-bottom: 4vh;
    font-family: "Cormorant Garamond";
    font-size: 3em;
    font-style: italic;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.08px;         
}

.about-content h2 {
    color: #403E36;
    text-align: left;
    margin-top: 3vh;
    margin-bottom: 1vh;
    font-family: "Cormorant Garamond";
    font-size: 2em;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.08px;         
}

.about-content h3 {
    color: #403E36;
    text-align: center;
    margin-bottom: 6vh;
    font-family: "Cormorant Garamond";
    font-size: 2em;
    font-weight: 300;
    font-style: italic;
    line-height: normal;
    letter-spacing: 1.08px;         
}

.about-content p {
    margin: 10px 0;
    margin-bottom: 2vh;
    font-family: "Cormorant Garamond";
    font-size: 1.75em;
    font-style: normal;
    font-weight: 300;
    line-height: 150%;
    letter-spacing: 0.2px;
}

.about-content strong {
    color: #403E36;
}

.about-content ul {
    margin-top: 1vh;
    padding-left: 2vw;
    margin-bottom: 2vh;
    font-family: "Cormorant Garamond";
    font-size: 1.75em;
    font-style: normal;
    font-weight: 300;
    line-height: 150%;
    letter-spacing: 0.2px;    
    list-style-type: none;
}

.about-content li {
    margin: 8px 0;
    color: #403E36;
}

.about-content ul li {
    position: relative;
    padding-left: 40px; /* Helyet hagyunk az ikon számára */
    margin-bottom: 10px;
}

.about-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px; /* Ikon szélessége */
    height: 20px; /* Ikon magassága */
    background-image: url('../images/bullet_point.svg'); /* Az SVG ikon URL-je */
    background-size: contain;
    background-repeat: no-repeat;
}

.about-image {
    float: left; 
    margin: 0 40px 20px 0;
    width: 300px; 
    /* box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);  */
}

/* --------------- CONTACT ------------------*/
.contact-hero {
    padding-top: calc(80px + 4vh);
    color: #403E36;
    position: relative;
    width: 100%;
    height: 60vh;
    background-image: url('../images/contact_hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;   
}

.contact-hero-content {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 3vh;
    text-align: left;
    max-width: 600px;
}

.contact-hero-content h1 {
    margin-bottom: 1vh;
    font-family: "Cormorant Garamond";
    font-size: 2.25em;
    font-style: italic;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.08px;     
}

.contact-content {
    padding-top: 3vh;
    max-width: 50%;
    margin: 0 auto;
    color: #403E36;
    flex: 1;
}

.contact-content strong {
    color: #403E36;
}

.contact-content a {
    color: #ad9759;
    text-decoration: none;
}

.contact-content a:hover {
    text-decoration: underline;
}

.contact-content ul {
    margin-top: 1vh;
    padding-left: 2vw;
    margin-bottom: 2vh;
    font-family: "Cormorant Garamond";
    font-size: 1.5em;
    font-style: normal;
    font-weight: 300;
    line-height: 150%;
    letter-spacing: 0.2px;    
    list-style-type: none;
}

.contact-content li {
    margin: 8px 0;
    color: #403E36;
}

.contact-content ul li {
    position: relative;
    padding-left: 40px; /* Helyet hagyunk az ikon számára */
    margin-bottom: 10px;
}

.contact-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px; /* Ikon szélessége */
    height: 20px; /* Ikon magassága */
    background-image: url('../images/bullet_point.svg'); /* Az SVG ikon URL-je */
    background-size: contain;
    background-repeat: no-repeat;
}


/* ---------- GALLERY PARTNER ------------- */

.partner-info {
    padding: 1vw;
    margin-top: 2vh;
    text-align: center;
    color: #403E36;
}

.partner-info a {
    color: #ad9759;
    text-decoration: none;
}

.partner-info a:hover {
    text-decoration: underline;
}

/* --------- responsive ---------------- */
@media (max-width: 320px) {
    .feature-item h3 .icon {
        width: 16px;
        height: 16px;
    }

    .logo-image {
        height: 15px;
        width: auto;
    }    

    body {
        font-size: 12px;
    }

    .nav a {
        font-size: 0.8em;
    }

    .hero-content h1 {
        font-size: 1.6em;
    }

    .partner-info p,
    .contact-content p,
    .hero-content p,
    .service-item p,
    .feature-item p {
        font-size: 1em;
    }

    .about-content h1 {
        font-size: 1.8em;
    }

    .about-content p,
    .about-content ul {
        font-size: 1em;
    }

    .about-content h3,
    .service-item h3 {
        font-size: 1.2em;
    }

    .partner-info {
        font-size: 0.9em;
    }

    .contact-content ul {
        font-size: 1em;
    }

    .contact-content p {
        font-size: 1em;
    }

    /* Galéria képek optimalizálása */
    .grid-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-gap: 1vw;
    }

    .grid-wrapper img {
        object-fit: contain; /* A képek ne legyenek túlzottan nagyítva */
    }

    /* Modális ablak optimalizálása */
    .modal-content {
        flex-direction: column; /* Váltás oszlopos elrendezésre */
        max-width: 100%; /* Az ablak ne legyen nagyobb, mint a képernyő */
    }

    .modal-sidebar {
        width: 100%; /* Teljes szélességű információs sáv */
        padding: 10px;
    }

    .modal-sidebar h3 {
        font-size: 1.2em;
    }

    .modal-sidebar p {
        font-size: 0.9em;
    }

    .modal-image {
        max-height: 60vh; /* Kisebb hely a kép számára */
    }

    .modal-image img {
        max-width: 100%;
        max-height: 60vh;
        object-fit: contain; /* A kép helyes arányainak megtartása */
    }
}

@media (max-width: 768px) {
    .header {
        text-align: right;
    }

    .feature-item h3 .icon svg {
        width: 20px;
        height: 20px;
    }

    .logo-image {
        height: 25px;
        width: auto;
    }   

    .about-content ul li::before {
        width: 16px;
        height: 16px;       
    }

    body {
        font-size: 14px;
    }

    .nav a {
        font-size: 0.9em;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .partner-info p,
    .contact-content p,
    .hero-content p,
    .service-item p,
    .feature-item p {
        font-size: 1.2em;
    }

    .about-content h1 {
        font-size: 2em;
    }

    .about-content p,
    .about-content ul {
        font-size: 1.2em;
    }

    .about-content h3,
    .service-item h3 {
        font-size: 1.3em;
    }

    .partner-info {
        font-size: 1em;
    }

    .contact-content ul {
        font-size: 1.2em;
    }

    .contact-content p {
        font-size: 1.2em;
    }

    /* Galéria képek optimalizálása */
    .grid-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .grid-wrapper img {
        object-fit: cover; /* A képek kitöltik a rendelkezésre álló teret */
    }

    /* Modális ablak optimalizálása */
    .modal-content {
        flex-direction: column; /* Oszlopos elrendezés */
        max-width: 100%;
    }

    .modal-sidebar {
        width: 100%;
        padding: 15px;
        text-align: right;
    }

    .modal-sidebar h3 {
        font-size: 1.4em;
    }

    .modal-sidebar p {
        font-size: 1em;
    }

    .modal-image {
        max-height: 70vh;
    }

    .modal-image img {
        max-width: 100%;
        max-height: 70vh;
        object-fit: contain;
    }
}

@media (max-width: 1024px) {
    /* Szolgáltatások és feature-ek vertikális elrendezése */
    .services {
        display: flex;
        flex-direction: column; /* Egymás alá kerüljenek */
        align-items: center; /* Középre igazítjuk */
        gap: 2vh; /* Függőleges térköz */
    }

    .service-box {
        flex-direction: column; /* Egymás alá helyezzük a szolgáltatási elemeket */
        gap: 3vh; /* Függőleges térköz */
    }

    .service-item {
        width: 100%; /* Teljes szélességet elfoglalják */
        max-width: 400px; /* Opciósan maximális szélesség */
    }

    .features {
        flex-direction: column; /* Egymás alá helyezés */
        align-items: center; /* Középre igazítja az elemeket */
        gap: 3vh; /* Függőleges térköz */
    }

    .feature-item {
        width: 100%; /* Teljes szélesség */
        max-width: 400px; /* Opcionális korlátozás */
        text-align: center; /* Szöveg középre igazítása */
        margin: 0 auto; /* Elem középre helyezése */
        display: flex; /* Flexbox használata */
        flex-direction: column; /* Vertikális elrendezés a tartalomban */
        align-items: center; /* Minden tartalom középre igazítása */
    }    
}

@media (orientation: portrait) {
    /* Modális ablak optimalizálása */
    .modal-content {
        flex-direction: column; /* Oszlopos elrendezés */
        max-width: 100%;
    }

    .modal-sidebar {
        width: 100%;
        padding: 15px;
        text-align: right;
    }

    .modal-sidebar h3 {
        font-size: 1.4em;
    }

    .modal-sidebar p {
        font-size: 1em;
    }

    .modal-image {
        max-height: 70vh;
    }

    .modal-image img {
        max-width: 100%;
        max-height: 70vh;
        object-fit: contain;
    }    
}