@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800&display=swap');


/* ==========================================================
   ONE ACTIVE LIFESTYLE
   RECIPE PAGE STYLES
   ========================================================== */


/* ==========================================================
   COLOURS & VARIABLES
   ========================================================== */

:root{
    --green:#93b886;
    --coral:#ff8b63;
    --ink:#172536;
    --muted:#748095;
    --cream:#fbf8f3;
    --line:#d9dfe1;
}


/* ==========================================================
   GLOBAL STYLES
   ========================================================== */

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:"Nunito",sans-serif;
    font-weight:400;
    color:var(--ink);
    background:#ffffff;
    line-height:1.6;
}

img{
    display:block;
    max-width:100%;
    height:auto;
    border-radius:16px;
    box-shadow:0 8px 24px rgba(0,0,0,.12);
    transition:.2s ease;
}

img:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 30px rgba(0,0,0,.15);
}

/* ==========================================================
   PAGE LAYOUT
   ========================================================== */

.layout{
    display:grid;
    grid-template-columns:350px 1fr;
    min-height:100vh;
}

aside{
    position:sticky;
    top:0;
    height:100vh;
    overflow:auto;
    background:var(--cream);
    padding:34px 26px;
}

main{
    padding:20px 5vw 70px;
}


/* ==========================================================
   BRANDING
   ========================================================== */

.brand{
    margin-bottom:20px;
}

.brand-logo{
    width:240px;
    max-width:100%;
    height:auto;
    border-radius:0;
    box-shadow:none;
    transform:none !important;
    box-shadow:none !important;
}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

h1,
h2,
h3{
    font-family:"Nunito",sans-serif;
    font-weight:700;
    color:var(--green);
}

h1{
    text-align:center;
    margin:0 0 10px 0;
}

.recipe-text{
    font-size:1.05rem;
    line-height:1.9;
    color:#354052;
}

.recipe-text p{
    margin-bottom:1.2rem;
}

.recipe-info-title{
    font-weight:700;
    color:var(--green);
}


/* ==========================================================
   DIVIDERS
   ========================================================== */

.rule{
    height:5px;
    margin:15px 0 35px;
    background:var(--coral);
}

.rule.small{
    width:95px;
    height:3px;
    margin:8px 0 20px;
}


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

nav a{
    display:block;
    padding:12px 0 12px 16px;
    color:var(--ink);
    font-size:14px;
    text-transform:uppercase;
    text-decoration:none;
    border-bottom:1px solid var(--line);
    border-left:4px solid transparent;

    transition:
        color .2s ease,
        border-left-color .2s ease;
}

nav a:hover{
    color:var(--green);
    border-left-color:var(--coral);
}

.side-card{
    margin-top:40px;
    padding-top:10px;
    color:var(--muted);
    line-height:1.7;
}

.side-card a{
    color:var(--green);
    text-decoration:none;
    border-bottom:1px solid transparent;
    transition:.2s ease;
}

.side-card a:hover{
    color:var(--coral);
    border-bottom-color:var(--coral);
}

.side-card p{
    margin-bottom:16px;
}


/* ==========================================================
   SIDE MENU
   ========================================================== */
.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transition:.3s ease;
    z-index:10;
}

.overlay.show{
    opacity:1;
    visibility:visible;
}


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

.hero{
    text-align:center;
}

.hero-image{
    position:relative;
}

.hero-image img{
    width:100%;
    height:400px;
    object-fit:cover;
    border-radius:20px;
    display:block;
}

.hero-quote{
    position:absolute;

    left:30px;
    right:30px;
    bottom:30px;

    padding:20px;

    font-size:1.3rem;
    line-height:1.5;
    font-weight:600;

    color:#fff;

    background:linear-gradient(
        to right,
        rgba(0,0,0,.55),
        rgba(0,0,0,.15)
    );

    border-left:5px solid var(--coral);

    border-radius:12px;
}

.home-intro{
    background:var(--cream);
    padding:30px;
    margin:30px 0;
    border-radius:18px;
    border:1px solid #ece7de;
}

.home-intro strong{
    color:var(--green);
}

.hero-subtitle{
    text-align:center;
    color:var(--muted);
    font-size:1.1rem;
    margin-top:-10px;
    margin-bottom:20px;
}

/* ==========================================================
   GRID HELPERS
   ========================================================== */

.grid{
    display:grid;
    gap:26px;
}

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

.grid-three{
    grid-template-columns:repeat(3,1fr);
}


/* ==========================================================
   RECIPE INTRO
   ========================================================== */

.recipe-intro{
    display:grid;
    grid-template-columns:1fr 420px;
    gap:40px;
    align-items:start;
    margin-bottom:30px;
}

.recipe-image{
    width:100%;
}


/* ==========================================================
   RECIPE CATEGORY TILES
   ========================================================== */

.recipe-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:24px;
}

.recipe-category{
    display:block;
    padding:15px;

    background:var(--cream);

    border:1px solid #e6ddd2;
    border-radius:18px;

    text-decoration:none;

    box-shadow:0 4px 12px rgba(0,0,0,.08);

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

.recipe-image-wrap{
    position:relative;
    overflow:hidden;
    border-radius:12px;
}

.recipe-category img{
    display:block;

    width:100%;
    height:220px;

    object-fit:cover;

    filter:brightness(1.05);

    transition:
        transform .4s ease,
        filter .4s ease;
}

.recipe-overlay{
    position:absolute;

    left:0;
    right:0;
    bottom:0;

    padding:20px;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.80),
        rgba(0,0,0,.45),
        rgba(0,0,0,0)
    );
}

.recipe-overlay h3{
    margin:0 0 2px;

    color:#fff;
    font-size:1.4rem;
    font-weight:700;

    text-shadow:0 2px 6px rgba(0,0,0,.6);
}

.recipe-overlay p{
    margin:0;

    color:rgba(255,255,255,.85);
    font-size:.9rem;

    text-shadow:0 2px 6px rgba(0,0,0,.6);
}

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

    border-color:#d8cdbf;

    box-shadow:0 12px 24px rgba(0,0,0,.12);
}

.recipe-category:hover img{
    transform:scale(1.05);
    filter:brightness(1.12);
}


/* ==========================================================
   RECIPE INFORMATION CARDS
   ========================================================== */

.info-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.info-card{
    background:var(--cream);
    padding:24px;
    border-radius:18px;
    border:1px solid #ece7de;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
    transition:.2s ease;
}

.info-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.info-card h3{
    margin-top:0;
    margin-bottom:16px;
    color:var(--green);
}

.info-card p,
.info-card li{
    line-height:1.8;
}


/* ==========================================================
   METHOD CARD
   ========================================================== */

.method-card{
    background:var(--cream);
    padding:30px;
    border-radius:18px;
    border:1px solid #ece7de;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.method-card ol{
    margin:0;
    padding:0;
    list-style:none;
    counter-reset:step;
}

.method-card li{
    position:relative;
    padding-left:55px;
    margin-bottom:20px;
    line-height:1.8;
}

.method-card li:last-child{
    margin-bottom:0;
}

.method-card li::before{
    counter-increment:step;
    content:counter(step);

    position:absolute;
    left:0;
    top:0;

    width:34px;
    height:34px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:var(--green);
    color:#fff;

    font-size:14px;
    font-weight:700;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

button{
    padding:13px 28px;
    border:2px solid var(--coral);
    border-radius:5px;
    background:var(--coral);
    color:#fff;
    cursor:pointer;
    transition:.2s ease;
}

button:hover{
    opacity:.9;
}

.outline{
    background:var(--cream);
    color:var(--coral);
    border:2px solid var(--coral);

    transition:.25s ease;
}

.outline:hover{
    background:#fff4ef;
    color:var(--coral);
    transform:translateY(-2px);

    box-shadow:0 4px 12px rgba(255,139,99,.15);
}

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

.mobile-head{
    display:none;
}

.menu-button{
    position:fixed;
    top:20px;
    right:20px;
    z-index:9999;

    width:54px;
    height:54px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0;

    border:none;
    border-radius:12px;

    background:var(--coral);
    color:#fff;

    font-size:26px;
    line-height:1;

    box-shadow:0 4px 12px rgba(0,0,0,.15);
}


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

@media (max-width:900px){

    .layout{
        grid-template-columns:1fr;
    }

    aside{
        position:fixed;
        left:-330px;
        width:310px;
        height:100vh;
        z-index:20;
        transition:left .3s ease;
    }

    aside.open{
        left:0;
    }

    .mobile-head{
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:12px 18px;
        background:var(--cream);
    }

    main{
        padding:25px 22px 60px;
    }

    .recipe-intro{
        grid-template-columns:1fr;
        gap:30px;
    }

    .recipe-image{
        max-width:500px;
        margin:0 auto;
    }

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

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


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

@media (max-width:620px){

    h1{
        font-size:2rem;
    }

    main{
        padding:20px 15px;
    }

    .hero{
        display:block;
    }

    .hero-subtitle{
        display:none;
    }

    .hide-mobile{
        display:none;
    }

    .hero-quote{
        left:20px;
        right:20px;
        bottom:20px;

        max-width:none;

        font-size:1.25rem;

        padding:15px 20px;
    }

    .recipe-intro{
        grid-template-columns:1fr;
        gap:24px;
    }

    .recipe-image{
        order:-1;
        margin:0 auto 25px;
    }

    .recipe-image img{
        border-radius:18px;
        box-shadow:0 12px 30px rgba(0,0,0,.15);
    }

    .info-grid{
        grid-template-columns:1fr;
    }

    .info-card{
        width:100%;
    }

    .method-card{
        padding:22px;
    }

    .method-card li{
        padding-left:48px;
    }

    .mobile-head{
        display:flex;
    }

    .recipe-grid{
        grid-template-columns:1fr;
    }

}






/* ==========================================================
   RUNNING PACE CALCULATOR
   ========================================================== */

.calculator-intro{
    text-align:center;
    max-width:900px;
    margin:0 auto 40px;
}

.calculator-intro p{
    color:var(--muted);
    font-size:1.1rem;
    line-height:1.8;
    margin-top:10px;
}


/* ==========================================================
   CALCULATOR LAYOUT
   ========================================================== */

.calculator-layout{
    display:grid;
    grid-template-columns:450px 1fr;
    gap:30px;

    max-width:1200px;
    margin:0 auto;

    align-items:start;
}


/* ==========================================================
   CALCULATOR CARD
   ========================================================== */

.pace-card{
    background:var(--cream);

    padding:30px;

    border:1px solid #e6ddd2;
    border-radius:18px;

    box-shadow:0 4px 12px rgba(0,0,0,.05);
}


/* ==========================================================
   UNIT SELECTION
   ========================================================== */

.pace-options{
    display:flex;
    justify-content:center;
    gap:30px;

    margin-bottom:20px;
}

.pace-options label{
    display:flex;
    align-items:center;
    gap:8px;

    font-weight:600;
    cursor:pointer;
}

.pace-options input[type="radio"]{
    accent-color:var(--coral);
}


/* ==========================================================
   INPUT AREA
   ========================================================== */

.pace-grid{
    display:grid;
    gap:18px;

    text-align:center;
}

.pace-grid label{
    display:block;

    margin-bottom:10px;

    font-weight:600;

    color:var(--ink);

    text-align:center;
}

.pace-grid select,
.pace-grid input[type="number"]{
    width:100%;

    padding:14px;

    border:1px solid var(--line);
    border-radius:12px;

    background:#fff;

    font-family:inherit;
    font-size:1rem;

    text-align:center;
}

.pace-grid select:focus,
.pace-grid input:focus{
    outline:none;

    border-color:var(--coral);

    box-shadow:0 0 0 3px rgba(255,139,99,.15);
}


/* ==========================================================
   TIME & PACE INPUTS
   ========================================================== */

.time-group{
    display:flex;
    justify-content:center;
    align-items:center;

    gap:8px;
}

.time-group input{
    width:70px;
    padding:14px 10px;

    text-align:center;
}

.time-group span{
    color:var(--green);

    font-size:1.3rem;
    font-weight:700;
}


/* ==========================================================
   INFORMATION PANEL
   ========================================================== */

.calculator-info{
    background:var(--cream);

    padding:30px;

    border:1px solid #e6ddd2;
    border-radius:18px;

    box-shadow:0 4px 12px rgba(0,0,0,.05);
    height:auto;
}

.calculator-info h2{
    margin-top:0;
    margin-bottom:20px;
}

.calculator-info h3{
    margin-top:25px;
    margin-bottom:15px;
}

.calculator-info p{
    line-height:1.8;
    color:#354052;
}

.calculator-info ul{
    padding-left:20px;
}

.calculator-info li{
    margin-bottom:8px;
}


/* ==========================================================
   DISTANCE TAGS
   ========================================================== */

.distance-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.distance-tags span{
    padding:8px 14px;

    background:#fff;

    border:1px solid #e6ddd2;
    border-radius:30px;

    font-size:.9rem;
    color:var(--ink);
}


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

@media (max-width:900px){

    .calculator-layout{
        grid-template-columns:1fr;
    }

    .calculator-info{
        margin-top:0;
    }

}


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

@media (max-width:620px){

    .pace-card,
    .calculator-info{
        padding:20px;
    }

    .time-group input{
        width:60px;
    }

    .calculator-intro p{
        font-size:1rem;
    }

}

@media (max-width:480px){

    .time-group{
        gap:6px;
    }

    .time-group input{
        width:55px;
        padding:12px 8px;
    }

}









/* ==========================================================
   AGE GRADE CALCULATOR
   ========================================================== */

.calculator-intro{
    text-align:center;
    max-width:900px;
    margin:0 auto 40px;
}

.calculator-intro p{
    color:var(--muted);
    font-size:1.1rem;
    line-height:1.8;
    margin-top:10px;
}


/* ==========================================================
   CALCULATOR LAYOUT
   ========================================================== */

.calculator-layout{
    display:grid;
    grid-template-columns:450px 1fr;
    gap:30px;

    max-width:1200px;
    margin:0 auto;

    align-items:start;
}


/* ==========================================================
   CALCULATOR CARD
   ========================================================== */

.pace-card{
    background:var(--cream);

    padding:30px;

    border:1px solid #e6ddd2;
    border-radius:18px;

    box-shadow:0 4px 12px rgba(0,0,0,.05);
}


/* ==========================================================
   INPUT GRID
   ========================================================== */

.pace-grid{
    display:grid;
    gap:24px;

    text-align:center;
}

.pace-grid label{
    display:block;

    margin-bottom:10px;

    font-weight:600;

    color:var(--ink);
}

.pace-grid select,
.pace-grid input[type="number"]{
    width:100%;

    padding:14px;

    border:1px solid var(--line);
    border-radius:12px;

    background:#fff;

    font-family:inherit;
    font-size:1rem;

    text-align:center;
}

.pace-grid select:focus,
.pace-grid input:focus{
    outline:none;

    border-color:var(--coral);

    box-shadow:0 0 0 3px rgba(255,139,99,.15);
}


/* ==========================================================
   GENDER OPTIONS
   ========================================================== */

.pace-options{
    display:flex;
    justify-content:center;
    gap:30px;
}

.pace-options label{
    display:flex;
    align-items:center;
    gap:8px;

    margin-bottom:0;

    font-weight:600;

    cursor:pointer;
}

.pace-options input[type="radio"]{
    accent-color:var(--coral);
}


/* ==========================================================
   TIME INPUTS
   ========================================================== */

.time-group{
    display:flex;
    justify-content:center;
    align-items:center;

    gap:8px;
}

.time-group input{
    width:90px;

    padding:14px 10px;

    text-align:center;
}

.time-group span{
    color:var(--green);

    font-size:1.3rem;
    font-weight:700;
}


/* ==========================================================
   CALCULATE BUTTON
   ========================================================== */

.pace-card button{
    width:100%;

    padding:15px;

    border:2px solid var(--coral);
    border-radius:12px;

    background:var(--coral);
    color:#fff;

    font-size:1rem;
    font-weight:600;

    cursor:pointer;

    transition:.25s ease;
}

.pace-card button:hover{
    transform:translateY(-2px);

    box-shadow:0 4px 12px rgba(255,139,99,.2);
}


/* ==========================================================
   RESULTS
   ========================================================== */

#results{
    margin-top:25px;
}

.age-grade-result{
    margin-top:25px;
    padding:20px;

    background:#fff;

    border:1px solid #e6ddd2;
    border-radius:12px;

    text-align:center;
}

.age-grade-result span{
    display:block;

    margin-bottom:8px;

    color:var(--muted);

    font-size:.9rem;
}

.age-grade-result strong{
    color:var(--green);

    font-size:2rem;
    font-weight:700;
}


/* ==========================================================
   ERROR MESSAGE
   ========================================================== */

#form-error{
    margin-top:20px;

    padding:15px;

    border-radius:12px;

    background:#fff0eb;

    border:1px solid #ffd7ca;

    color:#d65f38;
}


/* ==========================================================
   INFORMATION PANEL
   ========================================================== */

.calculator-info{
    background:var(--cream);

    padding:30px;

    border:1px solid #e6ddd2;
    border-radius:18px;

    box-shadow:0 4px 12px rgba(0,0,0,.05);

    height:auto;
}

.calculator-info h2{
    margin-top:0;
    margin-bottom:20px;
}

.calculator-info h3{
    margin-top:25px;
    margin-bottom:15px;
}

.calculator-info p{
    line-height:1.8;
    color:#354052;
}

.calculator-info ul{
    padding-left:20px;
}

.calculator-info li{
    margin-bottom:8px;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width:900px){

    .calculator-layout{
        grid-template-columns:1fr;
    }

}

@media (max-width:620px){

    .pace-card,
    .calculator-info{
        padding:20px;
    }

    .calculator-intro p{
        font-size:1rem;
    }

    .time-group input{
        width:70px;
    }

}

@media (max-width:480px){

    .time-group{
        gap:6px;
    }

    .time-group input{
        width:60px;
        padding:12px 8px;
    }

}


/* ==========================================================
   RACE TIME PREDICTOR
   ========================================================== */

.prediction-results{
    margin-top:25px;

    background:#fff;

    border:1px solid #e6ddd2;
    border-radius:12px;

    padding:20px;
}

.prediction-results h3{
    margin:0 0 15px;
    text-align:center;
    color:var(--green);
}

.prediction-row{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:12px 0;

    border-bottom:1px solid #ece7de;
}

.prediction-row:last-child{
    border-bottom:none;
}

.prediction-row span{
    color:var(--ink);
}

.prediction-row strong{
    color:var(--green);
    font-size:1.1rem;
}

.prediction-card{
    padding:18px;

    background:#fff;

    border:1px solid #e6ddd2;
    border-radius:12px;

    text-align:center;
}

.prediction-card span{
    display:block;

    margin-bottom:6px;

    color:var(--muted);
}

.prediction-card strong{
    color:var(--green);

    font-size:1.3rem;
    font-weight:700;
}




/* ==========================================================
   RUNNING PACE CONVERTOR
   ========================================================== */

.pace-inputs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;

    text-align:center;

    margin-bottom:25px;
}

.pace-inputs label{
    display:block;
    margin-bottom:8px;
    font-size:1rem;
}

.pace-inputs .time-group input{
    width:65px;
}

.time-group input{
    width:70px;
    padding:12px 8px;
}

.prediction-results{
    background:#fff;

    border:1px solid #e6ddd2;
    border-radius:12px;

    padding:20px;
}

.prediction-results h3{
    margin:0 0 15px;

    text-align:center;

    color:var(--green);
}

.prediction-row{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:10px 0;

    border-bottom:1px solid #ece7de;
}

.prediction-row:last-child{
    border-bottom:none;
}

.prediction-row strong{
    color:var(--green);
    font-weight:700;
}

@media (max-width:620px){

    .pace-inputs{
        grid-template-columns:1fr;
        gap:20px;
    }

}


/* ==========================================================
   CALCULATORS PAGE GRID
   ========================================================== */

.calculator-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(280px,1fr));

    gap:24px;
}

.calculator-card{
    display:flex;
    flex-direction:column;

    padding:30px;

    background:var(--cream);

    border:1px solid #e6ddd2;
    border-radius:18px;

    text-decoration:none;
    color:var(--ink);

    box-shadow:0 4px 12px rgba(0,0,0,.05);

    transition:.25s ease;
}

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

    box-shadow:0 12px 24px rgba(0,0,0,.08);

    border-color:var(--coral);
}

.calculator-icon{
    font-size:2rem;
    margin-bottom:15px;
}

.calculator-card h3{
    margin:0 0 10px;
}

.calculator-card p{
    margin:0 0 20px;
    color:var(--muted);
}

.calculator-link{
    margin-top:auto;

    color:var(--coral);
    font-weight:700;
}