
/* =========================================================
   RECIPE WORLD
   MAGAZINE STYLE HOME PAGE
   ORANGE EDITION + ANIMATIONS
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --orange: #e87524;
    --orange-dark: #c95d12;
    --orange-light: #fff3e8;

    --black: #202020;
    --dark: #292929;

    --gray: #777777;
    --light-gray: #eeeeee;
    --lighter-gray: #f7f7f7;

    --white: #ffffff;

    --container: 1240px;
}


/* =========================================================
   RESET
   ========================================================= */

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


/* =========================================================
   HTML
   ========================================================= */

html {
    scroll-behavior: smooth;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    margin: 0;

    background: #ffffff;

    color: var(--black);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 15px;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}


/* =========================================================
   IMAGES
   ========================================================= */

img {
    display: block;
    width: 100%;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   FORM ELEMENTS
   ========================================================= */

button,
input {
    font-family: inherit;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width:
        min(
            calc(100% - 40px),
            var(--container)
        );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   GLOBAL ANIMATION
   ========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatFood {
    0%,
    100% {
        transform: translateY(0) rotate(-8deg);
    }

    50% {
        transform: translateY(-12px) rotate(-5deg);
    }
}

@keyframes pulseOrange {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(232, 117, 36, 0.15);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(232, 117, 36, 0);
    }
}


/* =========================================================
   TOP BAR
   ========================================================= */

.top-bar {
    height: 34px;

    border-bottom:
        1px solid #eeeeee;

    background:
        #ffffff;

    font-size: 10px;

    letter-spacing: .04em;

    animation:
        slideDown .5s ease both;
}


.top-bar-inner {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.top-links {
    display: flex;

    gap: 20px;
}


.top-links a {
    color:
        #777777;

    transition:
        color .25s ease,
        transform .25s ease;
}


.top-links a:hover {
    color:
        var(--orange);

    transform:
        translateY(-1px);
}


.top-right {
    color:
        #999999;

    font-size: 10px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background:
        #ffffff;

    border-bottom:
        1px solid #eeeeee;

    animation:
        fadeIn .7s ease both;
}


.header-inner {
    min-height: 82px;

    display: flex;

    align-items: center;

    gap: 40px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

    transition:
        transform .25s ease;
}


.logo:hover {
    transform:
        translateY(-2px);
}


.logo-image {
    width: 49px;

    height: 49px;

    object-fit: cover;

    border-radius: 50%;

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}


.logo:hover .logo-image {
    transform:
        rotate(-5deg)
        scale(1.05);

    box-shadow:
        0 6px 18px rgba(232, 117, 36, .20);
}


.logo-text {
    display: flex;

    flex-direction: column;

    line-height: 1;
}


.logo-text strong {
    color:
        var(--orange);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;

    transition:
        color .25s ease;
}


.logo-text small {
    margin-top: 6px;

    color:
        #999999;

    font-size: 7px;

    letter-spacing: .14em;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {
    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;
}


.main-nav a {
    position: relative;

    color:
        #303030;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        color .25s ease,
        transform .25s ease;
}


.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: -8px;

    height: 2px;

    background:
        var(--orange);

    transform:
        scaleX(0);

    transform-origin:
        center;

    transition:
        transform .3s ease;
}


.main-nav a:hover {
    color:
        var(--orange);

    transform:
        translateY(-1px);
}


.main-nav a:hover::after {
    transform:
        scaleX(1);
}


/* =========================================================
   HEADER SEARCH
   ========================================================= */

.header-search {
    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        9px 12px;

    border:
        1px solid #dddddd;

    color:
        #777777;

    font-size: 11px;

    transition:
        border-color .25s ease,
        color .25s ease,
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}


.header-search:hover {
    border-color:
        var(--orange);

    color:
        var(--orange);

    background:
        #fffaf6;

    transform:
        translateY(-2px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .05);
}


.search-icon {
    font-size: 18px;

    line-height: 1;
}


/* =========================================================
   HERO
   ========================================================= */

.home-hero {
    padding:
        55px 0
        40px;

    background:
        #ffffff;
}


.hero-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;
}


/* =========================================================
   SECTION LABEL
   ========================================================= */

.section-label {
    display: inline-block;

    color:
        var(--orange);

    font-size: 11px;

    font-weight: 800;

    letter-spacing:
        .13em;

    text-transform:
        uppercase;

    animation:
        fadeUp .6s ease .1s both;
}


/* =========================================================
   HERO HEADING
   ========================================================= */

.hero-heading h1 {
    margin-top: 10px;

    max-width: 720px;

    color:
        var(--black);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            44px,
            5vw,
            68px
        );

    font-weight:
        500;

    line-height:
        1.04;

    letter-spacing:
        -.035em;

    animation:
        fadeUp .75s ease .2s both;
}


.hero-heading h1 span {
    color:
        var(--orange);

    display: inline-block;

    transition:
        color .3s ease,
        transform .3s ease;
}


.hero-heading h1 span:hover {
    color:
        var(--orange-dark);

    transform:
        translateY(-2px);
}


/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.hero-description {
    max-width: 340px;

    padding-bottom: 6px;

    animation:
        fadeUp .7s ease .35s both;
}


.hero-description p {
    color:
        #777777;

    font-size:
        14px;

    line-height:
        1.75;
}


/* =========================================================
   HERO SEARCH
   ========================================================= */

.hero-search {
    display: flex;

    align-items: center;

    max-width: 680px;

    height: 54px;

    margin-top: 30px;

    border:
        1px solid #dcdcdc;

    background:
        #ffffff;

    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;

    animation:
        fadeUp .7s ease .45s both;
}


.hero-search:focus-within {
    border-color:
        var(--orange);

    box-shadow:
        0 8px 28px rgba(232, 117, 36, .12);

    transform:
        translateY(-2px);
}


.search-large-icon {
    padding-left:
        17px;

    color:
        #999999;

    font-size:
        22px;

    transition:
        color .25s ease,
        transform .25s ease;
}


.hero-search:focus-within .search-large-icon {
    color:
        var(--orange);

    transform:
        scale(1.08);
}


.hero-search input {
    flex: 1;

    min-width: 0;

    height: 100%;

    padding:
        0 15px;

    border: 0;

    outline: 0;

    color:
        var(--black);

    background:
        transparent;

    font-size:
        14px;
}


.hero-search input::placeholder {
    color:
        #999999;
}


.hero-search button {
    height: 100%;

    padding:
        0 26px;

    border: 0;

    background:
        var(--orange);

    color:
        #ffffff;

    cursor: pointer;

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        .08em;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}


.hero-search button:hover {
    background:
        var(--orange-dark);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.15);

    transform:
        translateX(-2px);
}


/* =========================================================
   FEATURED SECTION
   ========================================================= */

.featured-section {
    padding:
        35px 0
        60px;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom:
        24px;

    animation:
        fadeUp .65s ease both;
}


.section-heading h2 {
    margin-top: 6px;

    color:
        var(--black);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            29px,
            3vw,
            39px
        );

    font-weight:
        500;

    line-height:
        1.1;
}


.view-all {
    color:
        var(--orange);

    font-size:
        12px;

    font-weight:
        700;

    white-space:
        nowrap;

    transition:
        color .25s ease,
        transform .25s ease;
}


.view-all:hover {
    color:
        var(--orange-dark);

    transform:
        translateX(4px);
}


/* =========================================================
   FEATURED GRID
   ========================================================= */

.featured-grid {
    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        10px;
}


/* =========================================================
   FEATURED CARD
   ========================================================= */

.featured-card {
    display:
        block;

    background:
        #ffffff;

    opacity: 0;

    animation:
        fadeUp .7s ease forwards;

    transition:
        transform .35s ease;
}


.featured-card:nth-child(1) {
    animation-delay: .10s;
}

.featured-card:nth-child(2) {
    animation-delay: .18s;
}

.featured-card:nth-child(3) {
    animation-delay: .26s;
}

.featured-card:nth-child(4) {
    animation-delay: .34s;
}


.featured-card:hover {
    transform:
        translateY(-6px);
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.featured-image {
    position:
        relative;

    height:
        315px;

    overflow:
        hidden;

    background:
        #eeeeee;
}


.featured-image img {
    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform .65s cubic-bezier(.2,.7,.2,1),
        filter .4s ease;
}


.featured-card:hover
.featured-image img {
    transform:
        scale(1.07);

    filter:
        brightness(.94);
}


/* =========================================================
   IMAGE LABEL
   ========================================================= */

.image-label {
    position:
        absolute;

    left:
        12px;

    bottom:
        12px;

    padding:
        6px 9px;

    background:
        #ffffff;

    color:
        var(--orange);

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        .08em;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}


.featured-card:hover .image-label {
    background:
        var(--orange);

    color:
        #ffffff;

    transform:
        translateY(-2px);
}


/* =========================================================
   FEATURED INFO
   ========================================================= */

.featured-info {
    padding:
        12px 5px
        17px;
}


.recipe-category {
    color:
        var(--orange);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        .09em;

    text-transform:
        uppercase;
}


.featured-info h3 {
    margin-top:
        6px;

    color:
        var(--black);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        20px;

    font-weight:
        600;

    line-height:
        1.2;

    transition:
        color .25s ease;
}


.featured-card:hover .featured-info h3 {
    color:
        var(--orange);
}


.featured-info p {
    margin-top:
        7px;

    color:
        #888888;

    font-size:
        12px;

    line-height:
        1.55;
}


/* =========================================================
   DESSERT PLACEHOLDER
   ========================================================= */

.dessert-image {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        linear-gradient(
            135deg,
            #fff0df,
            #fff8ed
        );
}


.dessert-placeholder {
    font-size:
        88px;

    filter:
        drop-shadow(
            0 10px 10px
            rgba(0,0,0,.10)
        );

    transition:
        transform .4s ease;
}


.featured-card:hover .dessert-placeholder {
    transform:
        translateY(-8px)
        rotate(4deg)
        scale(1.05);
}


/* =========================================================
   CATEGORY SECTION
   ========================================================= */

.category-section {
    padding:
        55px 0
        60px;

    border-top:
        1px solid #eeeeee;

    border-bottom:
        1px solid #eeeeee;

    background:
        #fafafa;
}


/* =========================================================
   CATEGORY ROW
   ========================================================= */

.category-row {
    display:
        flex;

    align-items:
        flex-start;

    gap:
        28px;

    overflow-x:
        auto;

    padding:
        6px 3px
        14px;

    scrollbar-width:
        none;
}


.category-row::-webkit-scrollbar {
    display:
        none;
}


/* =========================================================
   CATEGORY CARD
   ========================================================= */

.category-card {
    flex:
        0 0 86px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    text-align:
        center;

    transition:
        transform .3s ease;
}


.category-card:hover {
    transform:
        translateY(-4px);
}


/* =========================================================
   CATEGORY IMAGE
   ========================================================= */

.category-image {
    width:
        82px;

    height:
        82px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    border:
        3px solid #ffffff;

    box-shadow:
        0 4px 13px
        rgba(0,0,0,.10);

    font-size:
        36px;

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s ease;
}


.category-card:hover
.category-image {
    transform:
        translateY(-7px)
        scale(1.06);

    box-shadow:
        0 10px 24px
        rgba(232,117,36,.22);

    animation:
        pulseOrange 1s ease;
}


.category-card > span {
    margin-top:
        10px;

    color:
        #333333;

    font-size:
        10px;

    font-weight:
        800;

    text-transform:
        uppercase;

    transition:
        color .25s ease;
}


.category-card:hover > span {
    color:
        var(--orange);
}


/* =========================================================
   CATEGORY COLORS
   ========================================================= */

.breakfast {
    background:
        #fff1d6;
}

.chicken {
    background:
        #ffe5d6;
}

.pasta {
    background:
        #f8dfbf;
}

.pizza {
    background:
        #ffe0e5;
}

.salad {
    background:
        #ddf0d9;
}

.seafood {
    background:
        #dceff5;
}

.dessert {
    background:
        #f5dded;
}

.soup {
    background:
        #f4e5cf;
}

.burger {
    background:
        #eadbc8;
}

.cake {
    background:
        #f7e0e7;
}


/* =========================================================
   DISCOVERY SECTION
   ========================================================= */

.discovery-section {
    padding:
        60px 0;
}


/* =========================================================
   DISCOVERY BOX
   ========================================================= */

.discovery-box {
    position:
        relative;

    min-height:
        270px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    padding:
        48px 62px;

    overflow:
        hidden;

    background:
        var(--orange-light);

    animation:
        fadeUp .7s ease both;
}


/* =========================================================
   DISCOVERY CONTENT
   ========================================================= */

.discovery-content {
    position:
        relative;

    z-index:
        2;

    max-width:
        570px;
}


.discovery-content h2 {
    margin-top:
        8px;

    color:
        var(--black);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        42px;

    font-weight:
        500;

    line-height:
        1.1;
}


.discovery-content p {
    max-width:
        500px;

    margin:
        12px 0
        22px;

    color:
        #777777;

    font-size:
        14px;

    line-height:
        1.7;
}


/* =========================================================
   DISCOVERY BUTTON
   ========================================================= */

.discovery-button {
    display:
        inline-flex;

    align-items:
        center;

    min-height:
        43px;

    padding:
        0 20px;

    background:
        var(--orange);

    color:
        #ffffff;

    font-size:
        10px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        .05em;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}


.discovery-button:hover {
    background:
        var(--orange-dark);

    transform:
        translateY(-3px);

    box-shadow:
        0 8px 20px
        rgba(201,93,18,.22);
}


/* =========================================================
   DISCOVERY FOOD
   ========================================================= */

.discovery-food {
    position:
        absolute;

    right:
        70px;

    bottom:
        -35px;

    font-size:
        190px;

    opacity:
        .12;

    transform:
        rotate(-8deg);

    animation:
        floatFood 4s ease-in-out infinite;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background:
        #202020;

    color:
        #ffffff;

    padding:
        45px 0
        22px;
}


.footer-inner {
    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        35px;
}


.footer-inner strong {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color:
        #ffffff;

    font-size:
        23px;
}


.footer-inner p {
    margin-top:
        7px;

    color:
        #999999;

    font-size:
        11px;

    line-height:
        1.6;
}


.footer-links {
    display:
        flex;

    gap:
        22px;
}


.footer-links a {
    color:
        #bbbbbb;

    font-size:
        11px;

    transition:
        color .25s ease,
        transform .25s ease;
}


.footer-links a:hover {
    color:
        var(--orange);

    transform:
        translateY(-2px);
}


.footer-bottom {
    margin-top:
        32px;

    padding-top:
        16px;

    border-top:
        1px solid #333333;

    color:
        #777777;

    font-size:
        10px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap:
            17px;
    }


    .main-nav a {
        font-size:
            10px;
    }


    .featured-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap:
            14px;
    }


    .featured-image {
        height:
            310px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .container {
        width:
            calc(100% - 24px);
    }


    /* TOP BAR */

    .top-bar {
        display:
            none;
    }


    /* HEADER */

    .header-inner {
        min-height:
            66px;

        gap:
            15px;
    }


    .logo-image {
        width:
            40px;

        height:
            40px;
    }


    .logo-text strong {
        font-size:
            17px;
    }


    .logo-text small {
        font-size:
            5px;
    }


    .main-nav {
        display:
            none;
    }


    .header-search {
        margin-left:
            auto;
    }


    .header-search span:first-child {
        display:
            none;
    }


    /* HERO */

    .home-hero {
        padding:
            36px 0
            32px;
    }


    .hero-heading {
        display:
            block;
    }


    .hero-heading h1 {
        font-size:
            44px;
    }


    .hero-description {
        max-width:
            100%;

        margin-top:
            17px;
    }


    .hero-description p {
        font-size:
            13px;
    }


    .hero-search {
        margin-top:
            22px;

        height:
            52px;
    }


    .hero-search input {
        font-size:
            13px;
    }


    .hero-search button {
        padding:
            0 17px;
    }


    /* SECTIONS */

    .featured-section,
    .category-section,
    .discovery-section {
        padding:
            38px 0;
    }


    .section-heading {
        align-items:
            flex-start;
    }


    .section-heading h2 {
        font-size:
            29px;
    }


    /* FEATURED */

    .featured-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap:
            8px;
    }


    .featured-image {
        height:
            230px;
    }


    .featured-info {
        padding:
            9px 3px
            16px;
    }


    .featured-info h3 {
        font-size:
            17px;
    }


    .featured-info p {
        font-size:
            10px;
    }


    /* CATEGORY */

    .category-row {
        gap:
            20px;
    }


    .category-card {
        flex-basis:
            75px;
    }


    .category-image {
        width:
            70px;

        height:
            70px;

        font-size:
            30px;
    }


    .category-card > span {
        font-size:
            9px;
    }


    /* DISCOVERY */

    .discovery-box {
        min-height:
            270px;

        padding:
            38px 25px;
    }


    .discovery-content h2 {
        font-size:
            33px;
    }


    .discovery-content p {
        font-size:
            13px;
    }


    .discovery-food {
        right:
            -10px;

        font-size:
            135px;
    }


    /* FOOTER */

    .footer-inner {
        flex-direction:
            column;
    }


    .footer-links {
        flex-wrap:
            wrap;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .hero-heading h1 {
        font-size:
            39px;
    }


    .hero-description p {
        font-size:
            12px;
    }


    .featured-image {
        height:
            195px;
    }


    .featured-info h3 {
        font-size:
            14px;
    }


    .featured-info p {
        display:
            none;
    }


    .category-row {
        gap:
            16px;
    }


    .discovery-content h2 {
        font-size:
            29px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
            auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;
    }
}

