﻿:root {
    --color-title: #182f15;
    --color-text: #000000;
    --color-text-inverted: #ffffff;
    --color-details: #000000;
    --color-contact: #182f15;
    --color-background-primary: #ffffff;
    --color-background-secondary: #f5f4f2;
    --color-background-footer: #182f15;
    
    --separator-width: 60px;
    --separator-height: 2px;
    --separator-color: #182f15;
    --separator-margin-left-aligned: 2rem 0;
    --separator-margin-centered: 2rem auto;
}
/* ============================================================ */
@font-face {
    font-display: swap;
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/eb-garamond-v32-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
         url('fonts/eb-garamond-v32-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

@font-face {
    font-display: swap;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/lato-v25-latin-300.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
         url('fonts/lato-v25-latin-300.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color-text);
    line-height: 1.65;
    background-color: var(--color-background-primary);
    overflow-x: hidden;
}

address { 
    font-style: normal;
}

img {
    display: block;
    max-width: 100%;
}

h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    color: var(--color-text-inverted);
    font-size: clamp(60px, 6vw, 7.3331rem);
}

h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    color: var(--color-title);
    font-size: clamp(48px, 5vw, 6rem);
}

p {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    color: var(--color-details);
    font-size: clamp(20px, 1.5vw, 2.3331rem);
}

picture {
    display: block;
    width: 100%;
    height: 100%;
}
/* ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 580px;
    background-image: url('images/pic1.png');
    background-size: cover;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@supports (background-image: url('file.webp')) {
    .hero {
        background-image: url('images/pic1.webp');
    }
}

@supports (background-image: url('file.avif')) {
    .hero {
        background-image: url('images/pic1.avif');
    }
}

.hero__logo-wrap {
    padding: 2rem 3rem;
}

.hero__logo {
    height: 8.75rem;
    width: auto;
}

.hero__content {
    display: flex;
    flex: 1;
    align-items: flex-end; /* fallback for browsers without anchor positioning support */
    align-items: anchor-center;
    justify-content: space-between;
    padding: 0 10rem 7rem;
    gap: 2rem;
}

.hero__title {
    line-height: 1;
    margin-bottom: 1rem;
}

.hero__separator {
    width: var(--separator-width);
    height: var(--separator-height);
    background-color: var(--separator-color);
    margin: var(--separator-margin-left-aligned);
}

.hero__subtitle {
    font-size: clamp(20px, 1.6vw, 2.3331rem);
    letter-spacing: 0.05em;
    color: var(--color-text-inverted);
    font-family: 'EB Garamond', Georgia, serif;
}

.hero__circle-wrap {
    width: clamp(130px, 18vw, 230px);
    height: clamp(130px, 18vw, 230px);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
    align-self: center;
}

.hero__circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.5rem;
    text-decoration: none;
    animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0);   }
    50%      { transform: translateX(-50%) translateY(7px); }
}
/* ============================================================ */
.expertise {
    padding: 5.5rem 2rem;
    position: relative;
}

.expertise::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
            to bottom,
            #000000 0%,
            rgba(0, 0, 0, 0.6) 25%,
            rgba(0, 0, 0, 0.2) 55%,
            rgba(0, 0, 0, 0.05) 80%,
            var(--color-background-primary) 100%
    );
}

.expertise__inner {
    margin: 2rem auto 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.expertise__separator {
    width: var(--separator-width);
    height: var(--separator-height);
    background-color: var(--separator-color);
    margin: var(--separator-margin-centered);
}

.expertise__inner p {
    margin-bottom: 1.2rem;
}
/* ============================================================ */
.gardens {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.gardens__img-wrap {
    overflow: hidden;
}

.gardens__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gardens__content {
    padding: 4rem 4.5rem 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-background-secondary);
}

.gardens__title {
    max-width: 550px;
}

.gardens__separator {
    width: var(--separator-width);
    height: var(--separator-height);
    background-color: var(--separator-color);
    margin: var(--separator-margin-left-aligned);
}

.gardens__content p {
    margin-bottom: 1rem;
}
/* ============================================================ */
.projects {
    padding: 5.5rem 2rem;
    position: relative;
}

.projects__decoration {
    position: absolute;
    top: -100px;
    right: 0;
    pointer-events: none;
    width: 30%;
}

.projects__inner {
    margin: 0 3.5rem;
    text-align: center;
}

.projects__separator {
    width: var(--separator-width);
    height: var(--separator-height);
    background-color: var(--separator-color);
    margin: var(--separator-margin-centered);
}

.projects__subtitle {
    margin-bottom: 5rem;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.projects__item {
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

.projects__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.projects__item:hover img {
    transform: scale(1.04);
}
/* ============================================================ */
.contact {
    background-color: var(--color-background-secondary);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    min-height: 637px;
    position: relative;
}

.contact::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 70%;
    width: 2px;
    background-color: var(--separator-color);
}

.contact__leaves {
    position: absolute;
    pointer-events: none;
}

.contact__left {
    display: flex;
    flex-direction: column;
    align-items: last baseline;
    padding-right: 2rem;
}

.contact__separator {
    width: var(--separator-width);
    height: var(--separator-height);
    background-color: var(--separator-color);
    margin: var(--separator-margin-left-aligned);
}

.contact__right {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding-left: 2rem;
}

.contact__item {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact__border {
    border: 1px solid var(--color-contact);
    width: fit-content;
    padding: 1rem;
}

.contact__icon {
    object-fit: contain;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact__label {
    font-family: Calibri, 'Lato', Georgia, serif;
    font-weight: 300;
    font-size: clamp(23px, 1.8vw, 3rem);
    color: var(--color-contact);
    margin-bottom: 0;
    line-height: 1.2;
}

.contact__detail {
    font-family: Calibri, 'Lato', Georgia, serif;
    font-weight: 300;
    font-size: clamp(20px, 1.2vw, 2rem);
    color: var(--color-contact);
    line-height: 1.2;
}
/* ============================================================ */
footer {
    background: var(--color-background-footer);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

footer p {
    font-size: clamp(16px, 1vw, 2rem);
    color: var(--color-text-inverted);
}

.footer__brand {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    filter: brightness(0) invert(1);
}

.footer__brand p {
    margin-left: 0.5rem;
}

.footer__right {
    align-items: end;
    display: flex;
    flex-direction: column;
}
/* ============================================================ */
@media (max-width: 1200px) {
    .hero {
        height: auto;
        min-height: 580px;
    }

    .hero__nav {
        padding: 1rem;
    }

    .hero__logo {
        height: 4rem;
    }

    .hero__content {
        padding: 0 2rem 3rem;
        gap: 2rem;
    }

    .hero__circle-wrap {
        margin-bottom: 2rem;
    }
    
    .gardens {
        grid-template-columns: 1fr;
    }

    .gardens__title {
        width: 100%;
    }

    .gardens__img-wrap {
        min-height: 280px;
    }

    .gardens__content {
        padding: 2.5rem 1.5rem;
        text-align: center;
        align-items: center;
    }
    
    .gardens__content p {
        width: 70%;
    }

    .projects__decoration {
        top: -10%;
        width: 35%;
    }

    .contact {
        gap: 2rem;
        padding: 3rem 2rem;
    }
}
/* ============================================================ */
@media (max-width: 800px) {
    .projects {
        padding: 4rem 1.5rem;
    }
    
    .projects__grid {
        grid-template-columns: 1fr;
    }
    
    .contact__left {
        padding-right: 0;
    }
    
    .contact__right {
        padding-left: 1rem;
    }
}
/* ============================================================ */
@media (max-width: 600px) {
    .hero {
        min-height: 500px;
    }

    .hero__content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 2rem 1.5rem 4rem;
        gap: 1rem;
    }

    .hero__circle-wrap {
        display: none;
    }
    
    .expertise {
        padding: 4rem 1.5rem;
    }

    .gardens__content p {
        width: 100%;
    }
    
    .projects {
        padding: 2rem 1.5rem;
    }
    
    .projects__inner {
        margin: 0;
    }

    .projects__decoration {
        display: none;
    }

    .projects__separator {
        margin: 1rem auto;
    }
    
    .projects__subtitle {
        margin-bottom: 2rem;
    }
    
    .contact {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 3rem 1.5rem;
        gap: 2.5rem;
    }

    .contact::before {
        display: none;
    }

    .contact__separator {
        margin: 1rem auto;
    }
    
    .contact__left {
        align-items: center;
    }

    .contact__right {
        padding-left: 0;
    }
    
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .footer__brand {
        align-items: center;
    }

    .footer__brand p {
        margin-left: 0;
    }

    .footer__right {
        align-items: center;
    }
}