:root {
    font-size: 4px;
    
    --color-dark: #664c3e;
    --color-primary-dark: #546d5a;
    --color-primary-dark-2: #5d7560;
    --color-primary-light: #74B77F;
    --color-secondary: #F5F3EE;
    --color-light: #f0f0f0;
    --color-white: #FFF;
    --color-accent: #F8B15F;

    --color-primary-darker: #596a5b;
    --color-secondary-text: #fcfae5;
    --color-dark-backdrop: #37312e6d;

    --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-image: linear-gradient(to bottom left,var(--color-secondary-text),#fcf3ea);
}

body, section {
    position: relative;

    background-size: cover;
    background-position: center;
}

header,
.header-menu,
main,
section,
footer {
    display: grid;
    grid-template-columns: minmax(8%, 1fr)
                           minmax(0, 320rem)
                           minmax(8%, 1fr);
}

.wrapper {
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    /* text-wrap: balance; */
}

h1 { 
    font-size: 14rem; 
    line-height: 1.25;
    text-wrap: balance;
}

h2 { font-size: 6rem; }

.section-h2 {
    display: flex;
    align-items: center;
    gap: 4rem;

    margin-bottom: 2rem;

    opacity: 50%;
}

.section-h2-desktop {display: visible;}
.section-h2-mobile {display: none;}

@media screen and (max-width: 970px) {
    .section-h2-desktop { display: none; }
    .section-h2-mobile  { display: flex; width: 100%; }
}

.section-h2 svg {
    width: 10rem;
    transform: translateY(-2px);
}

h3 {
    font-size: 5rem;
    line-height: 1.15;
}

.article-read-time h3 {
    font-size: 3.5rem;
}

h4 {
    font-size: 4rem;
    line-height: 1.25;
}

h5 {
    font-size: 3rem;
}

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,
svg rect,
svg line { 
    fill: inherit;
    stroke: inherit;
}

small {
    color: inherit;
    font-size: inherit;
}

@media screen and (max-width: 1080px) {
    body { font-size: 3.75rem; }
    h1 { font-size: 12rem; }
}

@media screen and (max-width: 480px) {    
    .section-h2 {
        gap: 3rem;
    }

    .section-h2 svg {
        width: 8rem;
    }
}

/* ============================================= */
                /* Components */
/* ============================================= */

.btn {
    width: fit-content;
    
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;

    padding: 2rem 5rem;
    border-radius: 2rem;
}

.btn-secondary {
    font-size: 3.25rem;
    border: 2px solid;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 2rem;
}

hr {
    margin: 8rem 0;
    border-color: var(--color-primary-dark);
    opacity: 35%;
}

/* ================================================================================= */
    /* 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;
}

.gobo-story,
.gobo-workers {
    opacity: 17.5%;
}

@media screen and (max-width: 480px) {
    .gobo-story {
        opacity: 20%;
    }
}

/* ===========================================
                    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,
                color 350ms ease-in-out,
                fill 350ms ease-in-out,
                stroke 350ms 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: clamp(11rem, 8%, 19rem) 0;
}

.header-scrolled-bg {
    content: '';

    width: 100%;
    height: 100%;

    position: absolute;
    z-index: -1;

    background-color: var(--color-secondary-text);
    box-shadow: 0 6rem 6rem #16161611;

    transform: translateY(-100%);
}

.header-scrolled-bg,
.header-wrapper,
.header-menu-header {
    transition: transform 700ms ease-in-out;
}

.header-logo {
    display: grid;
    align-items: center;
}

.header-logo-link {
    grid-row: 1;
    grid-column: 1;

    width: clamp(26.5rem, 20%, 30.5rem);
    transform: translateY(2px);
}

.header-logo-large path {
    transition: opacity 300ms;
}

.header-logo-small {
    width: 12rem;

    opacity: 0;
}

.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;

    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: 0; left: 8%; right: 8%;
    

    margin: clamp(10.9rem, 6.75%, 16rem) 0;
}

.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 */
/* ================================================================================= */

.article-img {
    width: 100%;
    height: 50vh;

    object-fit: cover;
    object-position: center;
}

.article-img-backdrop {
    position: absolute;
    width: 100%;
    height: 50vh;
    top: 0;

    background-image: linear-gradient(to bottom, var(--color-dark-backdrop), transparent 85%);
}

/* ================================================================================= */
    /* Main */ /* Article */ /* Aside */
/* ================================================================================= */

main {
    fill: var(--color-primary-dark);
}

.main-wrapper {
    display: grid;
    grid-template-columns: 3.5fr 1fr;
    gap: 12%;

    margin-top: 16rem;
}

article {
    color: var(--color-primary-dark-2);
    fill: var(--color-primary-dark);
}

.article-intro,
.article-body {
    display: flex;
    flex-direction: column; 
}

.article-intro { gap: 5rem; }

.article-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;

    margin-top: 3rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.article-author-image {
    width: 8rem;
    aspect-ratio: 1/1;

    object-fit: cover;
    
    background-color: #aaa;
    border-radius: 10rem;
}

.article-author h3 {
    transform: translateY(1px);
}

.article-read-time {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.article-read-time-icon {
    width: 3.5rem;
    transform: translateY(-1px);
}

.article-body {
    gap: 6rem;
    margin-bottom: 12rem;
}

.article-body-p:first-of-type::first-letter {
    float: right;
    
    font-size: 40rem;
    font-weight: 700;
    
    line-height: .9;
    margin-left: 6rem;
}

.article-body-img-group { margin: 4rem 0; }

.article-body-img {
    object-fit: cover;
    object-position: center;

    border-radius: 3rem;
    margin-bottom: 3rem;
}

.article-body-img-lg {
    width: 100%;
    aspect-ratio: 8/3;
}

.article-body-img-caption {
    display: flex;
    gap: 3rem;

    font-size: 3rem;
    color: var(--color-primary-dark)
}

aside {
    display: flex;
    flex-direction: column;
    gap: 12rem;
}

aside h3,
.author-article h3 {
    margin-bottom: 2rem;
}

.aside-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.aside-tags-list li { margin: 1rem 0; }

.aside-tags-list a {
    font-size: 3.5rem;
    font-weight: 500;

    color: var(--color-light);
    background-color: var(--color-primary-dark-2);

    padding: 1.5rem 3rem;
    border-radius: 2rem;
}

.btn-copy-link,
.aside-tags-list a {
    transition: color 300ms, background-color 300ms, border 300ms;
    pointer-events: auto;
}

.btn-copy-link:hover,
.aside-tags-list a:hover {
    color: var(--color-secondary);
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.btn-copy-link.copied {
    color: var(--color-white);
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    pointer-events: none;
}

.aside-share {
    display: grid;
    gap: 4rem;
}

.aside-share-social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.aside-share-social h3 {margin: 0;}

.aside-share-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.aside-share-links a {
    display: block;
    width: 5rem;

    transition: fill 300ms;
}

.aside-share-links a:hover {
    fill: var(--color-primary-light);
}

.aside-share-facebook svg { transform: translateX(-2px) scale(1.13); }
.aside-share-linkedin svg { scale: 1.28; }

.aside-share-copy-link {
    padding: 3rem 0;
    border: 2px solid var(--color-primary-dark);
    border-radius: 2rem; 
}

.aside-index {
    display: flex;
    justify-content: space-between;
}

.aside-index a {
    font-size: 3.25rem;

    text-decoration: underline;
    white-space: nowrap;
}

.aside-articles-list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.aside-article-item { 
    scale: 1;
    transition: scale 250ms var(--easing);
}

.aside-article-item:hover { scale: 97%; }

.aside-article-image {
    width: 100%;
    aspect-ratio: 4/2.5;

    object-fit: cover;

    background-color: #ccc;
    border-radius: 3rem;
    margin-bottom: 3rem;
}

.aside-articles-list .article-author-image { width: 6rem; }
.aside-articles-list .article-read-time-icon { width: 2.5rem; }

aside hr { display: none; }

@media screen and (max-width: 1120px) {
    .aside-articles-list .article-read-time {
        display: none;
    }
}

@media screen and (max-width: 980px) {
    .article-body-p:first-of-type::first-letter {
        font-size: 32rem;
    }
    
    .aside-share-social {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .aside-index {
        flex-direction: column;
        gap: 8rem;
    }

    .aside-index-group ul {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            column-gap: 10%;
    }
}

@media screen and (max-width: 720px) {
    .main-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    aside {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        grid-template-areas: 'tags index'
                             'share index'
                             'articles articles'
                             'hr hr';
    }

    .aside-tags { grid-area: tags; }
    .aside-share { grid-area: share; }
    .aside-index { grid-area: index; }
    .aside-articles { grid-area: articles; }
    
    aside hr { 
        grid-area: hr; 
        display: block; 
        margin: 4rem 0 10rem 0;
    }

    .aside-share-social {
        flex-direction: row;
    }

    .aside-articles-list .article-read-time {
        display: flex;
    }
}

@media screen and (max-width: 465px) {
    aside {
        grid-template-columns: 1fr;
        grid-template-areas: 'tags'
                             'share'
                             'index'
                             'articles'
                             'hr';
    }

    .aside-index {
        flex-direction: row;
        justify-content: flex-start;
        gap: 13%;
    }
}

/* ============================================= */
                  /* Author */
/* ============================================= */

.author {
    fill: var(--color-primary-dark);
}

.author-wrapper {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 12%;

    margin: 4rem 0 18rem 0;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 12rem;
}

.author-image {
    width: clamp(25rem, 30%, 60rem);
    aspect-ratio: 1/1;

    object-fit: cover;

    background-color: #aaa;
    border-radius: 50rem;
}

.author-image-mini {
    display: none;
}

.author-heading {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.author-info-about {
    font-size: .75em;
    opacity: 55%;
}

.author-info-name {
    font-size: 3em;
    line-height: 1.05;
}

.author-info-bio {
    /* text-wrap: balance; */
    margin: 2rem 0;
}

@media screen and (max-width: 1080px) {
    .author-info-name { font-size: 2.25em; }
    .author-info-about { font-size: 3rem; }
    .author-info-bio { font-size: 3.5rem; }
}

@media screen and (max-width: 980px) {
    .author-wrapper {
        grid-template-columns: 1fr;
        gap: 8rem;
    }

    .author-info-bio { font-size: inherit; }
}

@media screen and (max-width: 640px) {
    .author-image-regular { display: none; }
    
    .author-image-mini {
        width: clamp(16rem, 15%, 30rem);
        display: block; 
    }

    .author-heading {
        margin-bottom: 4rem;
    }
}

/* ==================== */
    /* 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);
    text-wrap: balance;
}

.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: 870px) {
    .contact-main-paragraph {
        text-wrap: wrap;
    }
}

@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);}