/* basic styles */


body {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #82696b;
    margin: 0;
    background-color: #e5d8d8;
}

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

.container {
    max-width: 1158px;
    margin: 0 auto;
    padding: 0 32px;
}

ul,
ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

section {
    padding: 32px 0;
}

.section-title {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    color: #82696b;
    text-align: center;
    margin-bottom: 32px;
}

/* header styles */
.header {
    padding: 16px 0;
}

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

.nav {
    display: flex;
    align-items: center;
}

.logo {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    line-height: 1.2;
    letter-spacing: 0.03em;
    color: #82696b;
    font-size: 18px;
    text-transform: uppercase;
}

.nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 18px;
    color: #82696b;
    padding: 24px 0;
    display: block;
}

.nav-link:hover {
    color: #d4b6b7;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f8f4f4;
    border-radius: 24px;
    padding: 8px 16px;
}

.search-input {
    border: none;
    background: transparent;
    font-size: 16px;
    color: #82696b;
    outline: none;
    flex-grow: 1;
}

.search-input::placeholder {
    color: #82696b;
    opacity: 0.6;
}

.search-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.search-button svg {
    width: 24px;
    height: 24px;
    fill: #82696b;
}

.search-button:hover svg {
    fill: #d4b6b7;
}

/* hero section styles */

.hero {
    max-width: 1440px;
    margin: 0 auto;
    background-image: url('/images/herobg/bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 250px 0;
    margin-bottom: 32px;

}

.hero-title {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 16px;
}

.hero-text {
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    max-width: 600px;
    margin: 0 auto 44px;
}

.hero-button {
    background-color: #d4b6b7;
    color: #171212;
    padding: 0x 20px;
    width: 165px;
    height: 48px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: #c49a9b;
}

/* recipes section styles */
.recipes {
    max-width: 1440px;
    margin: 0 auto;
}

.recipe-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.recipe-card {
    max-width: 240px;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #e5d8d8;
}

.recipe-card:hover {
    box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
            0px 1px 1px rgba(46, 47, 66, 0.16), 0px 2px 1px rgba(46, 47, 66, 0.08);
}

.recipe-image-wrap {
    position: relative;
    overflow: hidden;
    background-color: #e5d8d8;
}

.recipe-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
}

.recipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 16px;
    transform: translate(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-image-wrap:hover .recipe-overlay {
    transform: translate(0);
}

.recipe-card-content {
    padding: 16px;
    background-color: #fff;
    border-radius: 8px;
    background-color: #e5d8d8;
}

.recipe-title {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: #82696b;
    margin-bottom: 8px;
}

/* categories section styles */
.categories {
    max-width: 1440px;
    margin: 0 auto;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
    column-gap: 24px;
    row-gap: 48px;
}


.categories-card {
    max-width: calc((100% - 48px) / 3);
    text-align: left;
    margin-bottom: 32px;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.categories-card:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.categories-icon {
    margin-bottom: 16px;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.categories-text {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: #82696b;
    display: block;
}

.categories-card a {
    text-decoration: none;
    color: inherit;
}

/*about section styles */
.about {
    max-width: 1440px;
    margin: 0 auto;
}

.about-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.about-item video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-text {
    font-size: 16px;
    line-height: 1.5;
    color: #82696b;
    max-width: 600px;
    margin: 0 auto;
}

/* footer styles */
.footer {
    color: #82696b;
    padding: 16px 64px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.footer-container .socials {
    display: flex;
    gap: 16px;
}

.social-item {
    display: inline-block;
    width: 24px;
    height: 24px;
}

.social-icon {
    width: 100%;
    height: 100%;
    fill: #82696b;
}

.social-icon:hover {
    fill: #d4b6b7;
}


