:root {
    font-size: 4px;
    
    --color-dark: #664c3e;
    --color-primary-dark: #546d5a;
    --color-primary-dark-2: #718b75;
    --color-primary-light: #74B77F;
    --color-secondary: #F5F3EE;
    --color-light: #f0f0f0;
    --color-white: #FFF;
    --color-accent: #F8B15F;

    --color-primary-darker: #596a5b;
    --color-secondary-text: #E8EFC4;
    --color-dark-backdrop: #302a27;

    --color-hero-gradient-transition: #282322;

    --color-dark-gradient:                      radial-gradient(circle at 90% center, #7d5a49, #664c3e 75%, #513D33);
    --color-primary-dark-gradient:              radial-gradient(circle at 90% bottom,#647b66, #667e6b 65%);
    --color-primary-light-gradient-to-left:     linear-gradient(to bottom left, #a4ea9d, #6EA180 80%);
    --color-primary-light-gradient-to-right:    linear-gradient(to bottom right, #a4ea9d, #6EA180 80%);
    --color-secondary-gradient:                 radial-gradient(circle at 90% center, #f1f4e9, #edeee5 75%, #dfdfd8);
    --color-white-gradient:                     radial-gradient(circle at 80% center, var(--color-white), var(--color-light));
    --color-accent-gradient:                    linear-gradient(to bottom right, #efb36f, #e7a669);

    --section-margins: 60rem;

    --gobo-opacity: 20%;

    --animation-duration: 700ms;
    --easing: ease-in-out;
}

@font-face {
	font-family: 'Afek';
	font-weight: 400; /* regular */
	font-style: normal;
	src: url('./assets/font/afek-regular-aaa.woff2') format('woff2'),
		 url('./assets/font/afek-regular-aaa.woff') format('woff'),
		 url('./assets/font/afek-regular-aaa.eot') format('eot');
}

@font-face {
	font-family: 'Afek';
	font-weight: 500; /* medium */
	font-style: normal;
	src: url('./assets/font/afek-medium-aaa.woff2') format('woff2'),
		 url('./assets/font/afek-medium-aaa.woff') format('woff'),
		 url('./assets/font/afek-medium-aaa.eot') format('eot');
}

@font-face {
	font-family: 'Afek';
	font-weight: 700; /* bold */
	font-style: normal;
	src: url('./assets/font/afek-bold-aaa.woff2') format('woff2'),
		 url('./assets/font/afek-bold-aaa.woff') format('woff'),
		 url('./assets/font/afek-bold-aaa.eot') format('eot');
}

@font-face {
	font-family: 'Afek';
	font-weight: 800; /* ultra-bold */
	font-style: normal;
	src: url('./assets/font/afek-ultrabold-aaa.woff2') format('woff2'),
		 url('./assets/font/afek-ultrabold-aaa.woff') format('woff'),
		 url('./assets/font/afek-ultrabold-aaa.eot') format('eot');
}

/* ================================================================================= */
    /* CSS Reset */
/* ================================================================================= */

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    hanging-punctuation: first last;
}

body {
    direction: rtl;
    overflow-x: hidden;

    font-family: 'Afek', sans-serif;
    font-weight: 400;
    
    font-size: 4rem;
    text-align: right;
    
    color: var(--color-primary-dark);
    background-color: var(--color-secondary);
}

body, section {
    position: relative;

    background-size: cover;
    background-position: center;
}

header,
.header-menu,
section,
footer {
    display: grid;
    grid-template-columns: minmax(8%, 1fr)
                           minmax(0, 285rem)
                           minmax(8%, 1fr);
}

.wrapper {
    display: flex;
    flex-direction: column;
    margin: 2.5% 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    /* text-wrap: balance; */
}

h1 {
    font-size: 16rem;
    line-height: 1.3;
}

h2 {
    font-size: 14rem;
    line-height: 1.25;
}

h3 {
    font-size: 5rem;
    line-height: 1.15;
}

h4 {
    font-size: 8rem;
    line-height: 1;
}

p {
    line-height: 2.2;
    font-weight: 400;
}

img,
picture,
svg,
video {
    max-width: 100%;
    display: block;
}

input,
textarea,
button,
select {
    font: inherit;
    border: none;
}

a,
button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
}

ul, ol, menu, nav {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    background: none;
    border: none;
    white-space: nowrap;

    line-height: 1.25;
}

svg      { height: auto; }

svg polygon,
svg path { 
    fill: inherit; 
}

small {
    color: inherit;
    font-size: inherit;
}

.btn {
    width: fit-content;
    
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;

    padding: 2rem 5rem;
    border-radius: 2rem;
}

.btn-primary {
    background-color: var(--color-primary-light);
}

.btn-secondary {
    font-size: 3.25rem;
    border: 2px solid;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.btn-icon svg { 
    width: 2.75rem;
    transform: translateY(-1.5px);
}

@media screen and (max-width: 1080px) {
    body {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 480px) {
    h1 { font-size: 12rem; }
    h2 { font-size: 11rem; }
}

/* ================================================================================= */
    /* Gobo */
/* ================================================================================= */

.gobo {
    width: 100vw;
    height: 100%;
    
    position: absolute;
    right: -10%;
    overflow: hidden;
    
    transform: scaleX(1.2);
    transform-origin: top;
    opacity: 40%;

    object-fit: cover;
    mix-blend-mode: multiply;

    pointer-events: none;
}

/* ===========================================
                    Header 
   ======================================== */

/* ============== 
     Main Header 
   ============== */
header {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1;

    font-size: 3.25rem;
    font-weight: 700;
    fill: var(--color-primary-dark);

    transition: transform 700ms ease-in-out;
}

header.slide-up {
    transform: translateY(-100%);
}

.header-wrapper,
.header-menu-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    margin: 4rem 0;
}

header.scrolled::after {
    content: '';

    width: 100%;
    height: 100%;

    position: absolute;
    z-index: -1;

    background-color: var(--color-secondary);
    box-shadow: 0 6rem 6rem #16161611;
}

.header-logo {
    width: clamp(22rem, 20%, 26.5rem);
}

.header-logo-services {
    width: 8rem;
}

.maoz-logo-large-svg path {
    transition: opacity 300ms;
}

.header-links ul,
.header-btns {
    display: flex;
}

.header-links ul { gap: 12rem; }
.header-btns { gap: 3rem; }

.header-btns .btn-secondary {
    padding: 1.75rem 4rem;
}

.btn-open-header-menu,
.btn-close-header-menu {
    width: 2rem;
    aspect-ratio: 1/1;

    position: relative;
}

.btn-open-header-menu svg,
.btn-close svg {
    width: 4rem;

    position: absolute;
    top: 50%; right: 50%;
    transform: translate(50%, -50%);
}

.btn-open-header-menu { display: none; }

@media screen and (max-width: 970px) {
    .header-links ul { display: none; }
    .btn-open-header-menu { display: flex; justify-content: center; }
}

/* ============== 
    Header Menu 
   ============== */

.header-menu {
    align-items: center;
    
    position: fixed;    
    top: 0; right: 0; left: 0; bottom: 0;

    font-size: 7rem;
    font-weight: 800;

    fill: var(--color-white);
    color: var(--color-white);
    background-image: var(--color-primary-light-gradient-to-right);

    transition: opacity 300ms ease-in-out;
}

.header-menu.hidden {
    opacity: 0;
    pointer-events: none;
}

.header-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: absolute;
    top: 4rem; left: 0; right: 0;

    margin: 0 8%;
}

.btn-close-header-menu {
    width: 9rem;
    aspect-ratio: 1/1;

    display: grid;
    place-content: center;

    padding: 0;
    border-color: var(--color-white);
}

.header-menu ul {
    display: grid;
    gap: 5rem;
}

/* ================================================================================= */
    /* Hero */
/* ================================================================================= */

.hero {
    height: 100svh;

    color: var(--color-light);
    fill: var(--color-light);
    
    background-image: 
        linear-gradient(to left, #232020e7 15%, #201e1eab 65%, transparent),
        url('./assets/img/avif/resistograph-2.avif');
}

.hero-wrapper {
    height: 100%;

    justify-content: flex-end;
    gap: 6rem;

    padding-bottom: clamp(15rem,20%,20rem);
    margin: 0;
}

.hero h1 { 
    width: clamp(8ch,60%,12ch);
    margin-bottom: -4rem;
}

.hero p { 
    width: clamp(35ch,60%,60ch);
    text-wrap: balance;
}

.hero p span {
    /* font-size: 1.25em;  */
    font-weight: 700;
    color: var(--color-primary-light);
}

@media screen and (max-width: 720px) {
    .hero {
        background-image: 
        linear-gradient(to left, #232020e2 15%, #201e1e97 100%),
        url('./assets/img/avif/resistograph-2.avif');
    }
}

@media screen and (max-width: 480px) {
    .hero p br { 
        display: none;
    }
}

/* ================================================================================= */
    /* Services */
/* ================================================================================= */

.services ul {
    padding: 4rem 0 8rem 0;
}

.services-item {
    min-height: fit-content;

    display: grid;
    grid-template-columns: 1fr .75fr;
    align-items: center;
    gap: clamp(12rem,5%,25rem);

    padding: clamp(12rem,5%,25rem) 0;
}

.services-item-content {
    display: grid;
    gap: 6rem;
}

.services-item-content h2 { 
    text-wrap: nowrap;
    margin-bottom: -2rem; 
}

.services-item-content p { 
    width: clamp(34ch, 100%, 55ch);
    text-wrap: balance;

    margin-bottom: clamp(4rem,5%,8rem);
}

.services-item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.services-item-features li {
    width: fit-content;

    color: var(--color-light); 
    fill: var(--color-light);

    font-size: 4rem;
    font-weight: 700;
    line-height: 1.5;
    background-image: var(--color-primary-dark-gradient);

    padding: 4rem;
    padding-left: 8rem;

    border-radius: 3rem;
    box-shadow: 0 2rem 4rem #00000016;
}

.services-item-features-n { 
    display: flex;
    align-items: center;
    gap: 1.5rem;

    margin-bottom: 3rem;

    opacity: 70%;
}

.services-item-features-n svg { 
    width: 3.5rem; 
    flex-shrink: 0;
}

.services-item-img {
    width: 100%;
    height: 100%;

    background-image: url('./assets/img/avif/resistograph-2.avif');
    background-size: cover;

    border-radius: 8rem;
    box-shadow: 0 4rem 8rem #00000020;
}

.services-item-img.services-item-img-tree-reviews {
    background-image: url('./assets/img/avif/about-projects-tree-tag.avif');
    background-position-y: center;
    background-position-x: 14%;
}

.services-item-img.services-item-img-tree-care {
    background-image: url('./assets/img/avif/yohai-and-abed-crane-basket.avif');
    background-position-y: center;
    background-position-x: 47%;
}

.services-item-img.services-item-img-agronomist {
    background-image: url('./assets/img/avif/eyal-looking-up.avif');
    background-position-x: center;
    background-position-y: 100%;
}

@media screen and (max-width: 1080px) {
    .services-item-features li {
        width: 100%;
        
        display: flex;
        align-items: flex-start;
        gap: 5rem;
    }

    .services-item-features li br {
        display: none;
    }

    .services-item-features-n { 
        margin-bottom: 0;
    }
}

@media screen and (max-width: 890px) {
    .services-item {
        display: flex;
        flex-direction: column;
        gap: 6rem;
    }

    .services-item-img {
        aspect-ratio: 8/5;
        order: -1;
    }

    .services-item-img.services-item-img-tree-reviews {
        background-size: 160%;
        background-position-x: 20%;
    }
    .services-item-img.services-item-img-agronomist {background-position-y: 60%;}
    .services-item-img.services-item-img-tree-care {
        background-size: 138%;
        background-position-x: 44%;
        background-position-y: 40%;
    }

    .services-item-content {
        gap: 5rem;
    }

    .services-item-content p {
        width: 100%;
    }
}

/* ==================== */
    /* Gobo Footer */
/* ==================== */

.gobo-footer {
    position: relative;
    background-image: 
        linear-gradient(to bottom, #0000004b 0%, transparent 25%),
        var(--color-primary-dark-gradient);
}

/* ================================================================================= */
    /* Contact */
/* ================================================================================= */

.contact {
    color: var(--color-secondary);
}

.contact-wrapper {
    margin: clamp(21rem,10%,33rem) 0;
}

/* ================================================================================= */
    /* Form */
/* ================================================================================= */

.contact-main-text {
    position: absolute;
}

.contact-main-text h2 {
    font-size: 15rem;
    text-wrap: nowrap;
    margin-bottom: 4rem;
}

.contact-main-paragraph {
    width: clamp(20ch,35vw,50ch);
}

.contact-form {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(2, 1fr) repeat(2, 1.25fr);
    grid-template-areas: 'text text message message'
                         'text text message message'
                         'name email message message'
                         'phone service submit submit';

    row-gap: 16rem;
    column-gap: 12rem;
    
    font-size: 3.5rem;
}

.input-group { position: relative; }

.input-group-name    { grid-area: name;}
.input-group-phone   { grid-area: phone; }
.input-group-email   { grid-area: email; }
.input-group-service { grid-area: service; }
.input-group-message { grid-area: message; }
.input-group-submit  { grid-area: submit; }

.input-group:not(:last-of-type) {
    display: flex;
    align-items: center;

    font-weight: 400;
}

.input-group label,
.dropdown-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-45%);
}


.input-group label {
    position: absolute;
    right: 3rem;

    opacity: 0;
    pointer-events: none;
}

.input-group input
,.input-group select
,.input-group textarea
,.input-group input::placeholder
,.input-group textarea::placeholder {
    color: inherit;
    border-color: inherit;
}

.input-group input:focus-visible
,.input-group select:focus-visible
,.input-group textarea:focus-visible
,.input-submit:focus-visible
,.close-modal:focus-visible {
    outline: 1px solid;
    outline-color: inherit;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 3rem 4rem;
    border-bottom: 2px solid;
}

.input-group select,
.input-group textarea {
    height: 100%;
    background-color: var(--color-primary-darker);
}

.input-group input {
    text-align: right;
    background: none;
    border-radius: 0;
}

.input-group select {
    appearance: none;
    cursor: pointer;

    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
}

.dropdown-arrow {
    pointer-events: none;
    left: 10%;
}

.dropdown-arrow svg {
    width: 2.5rem;
}

.dropdown-arrow svg path {
    fill: var(--color-secondary);
}

.input-group textarea {
    width: 100%;

    padding: 4rem 6rem;

    border: 2px solid;
    border-radius: 4rem;
    
    resize: none;
}

.input-group-submit {
    width: auto;
    background-color: var(--color-accent);
}

@media screen and (max-width: 1080px) {
    .contact-wrapper {
        transform: translateY(0);
    }

    .contact-form {
        grid-template-rows: repeat(2, 1fr) 5fr 1fr;
        grid-template-areas: 'text text name email'
                             'text text phone service'
                             'message message message message'
                             'submit submit submit submit';
    }
}

@media screen and (max-width: 840px) {
    .contact-main-text {
        display: flex;
        gap: 12rem;
    }
    .contact-form {
        grid-template-rows: repeat(3, 1fr) 5fr 1fr;
        grid-template-areas: 'text text text text' 
                             'name name email email'
                             'phone phone service service'
                             'message message message message'
                             'submit submit submit submit';
    }
}

@media screen and (max-width: 840px) {
    .contact-main-text {
        position: relative;

        flex-direction: column;
        gap: 0;
    }

    .contact-main-text h2 {
        margin-bottom: 3rem;
    }
    
    .contact-main-paragraph {
        width: 100%;
        margin-bottom: 6rem;
    }

    .contact-form {
        grid-template-rows: repeat(2, 1fr) 5fr 1fr;
        grid-template-areas: 'name name email email'
                             'phone phone service service'
                             'message message message message'
                             'submit submit submit submit';
        row-gap: 8rem;
    }
}

@media screen and (max-width: 480px) {
    .contact h2 {
        font-size: 11rem;
    }

    .contact-form {
        font-size: 3.25rem;
    }
}

/* ================================================================================= */
    /* Footer */
/* ================================================================================= */

footer {
    font-size: 3rem;
    color: var(--color-secondary);
}

.footer-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 6rem;

    margin-top: 0;
    margin-bottom: clamp(8rem, 10%, 33rem);
}

.footer-logo {width: 7rem;}
.footer-logo path {fill: var(--color-secondary);}