/* Define color variables */
:root {
    --primary-color: #2C7A7B;
    --dark-orange-color: #C97D20;
    --medium-orange-color: #EFCDA3;
    --light-orange-color: #FFECD5;
    --text-color: #333;
    --dark-teal-color: #537D6F;
    --medium-teal-color: #5f9382; 
    --light-teal-color: #88C9B3;
    --bright-teal-color: #D7FFF2;
    --light-gray-color: #F1EEEE;
    --medium-gray-color: #DAD7D7;
    --bg-color: #F7F7F7;
    --dark-bg: #1E1E1E;
    --dark-text: #EDEDED;
    --gray-500: #9B9B9E;
}

/* Global Styles */
*::selection {
    background:var(--dark-orange-color);
}

*:focus {
    outline: 2px dotted var(--dark-orange-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    padding: 0;
    background: url("../images/kc-tile-bg@2X.png");
    background-size: 25%;
}

body.dark-mode {
    background: url("../images/tile-bg-dark@2X.png");
    color: var(--dark-text);
}

a,a:visited {
    color: var(--dark-teal-color);
    text-decoration: none;
}

a:hover {
    color: var(--light-teal-color);
    text-decoration: underline;
}

.left { float: left; }
.right { float: right; }
.clear { clear: both; }

button, input[type="submit"] {
    background-color: var(--dark-teal-color);
    color: var(--dark-text);
    font-weight: 500;
    border-radius: 40px;
    border: 1px solid var(--medium-teal-color);
    transition: background-color 0.3s ease;
    text-align: center;
}

button:hover, input[type="submit"]:hover {
    background-color: var(--medium-teal-color);
    cursor: pointer;
}

.btn-large {
    font-size: 2rem;
    padding: 15px 30px;
}

.btn-medium {
    font-size: 1rem;
    padding: 8px 12px;
}

.btn-small {
    font-size: .875rem;
    padding: 8px 16px;
    min-height: 36px;
}

.avatar-orange {
    background: url("../images/avatar-orange.svg") no-repeat;
    background-size: cover;
    height: 48px;
    width: 48px;
}

.avatar-green {
    background: url("../images/avatar-green.svg") no-repeat;
    background-size: cover;
    height: 48px;
    width: 48px;
}

input[type="email"] {
    background: var(--bg-color);
    border: 1px solid var(--medium-gray-color);
    border-radius: 20px;
    padding: 8px 12px 8px 26px;
    width: 85%;
    height: auto;
    position: relative;
}

input::placeholder {
    color: var(--gray-500);
}

input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    accent-color: var(--dark-text);
    width: 16px;
    height: 16px;
    border: 1px solid var(--dark-teal-color);
    border-radius: 3px;
    background: var(--bright-teal-color);
}

input[type="checkbox"]:checked {
    background: var(--dark-teal-color);
}

/* Typography */
h1 {
    font-size: 6rem;
    margin: 8px 0;
}

h2 {
    font-size: 3rem;
    text-align: center;
}

.faq h2 {
    font-size: 2rem;
    text-align: left;
    margin: 0 0 8px 0; 
}

h3 { 
    font-size: 1rem;
}

h4 {
    font-size: .875rem;
}

/* Layout Styles */
.column-small { width: 20%; }
.column-medium { width: 35%; }
.column-large { width: 60%; }

section {
    height: 100%;
    overflow-x: hidden;
}

.spacer-24 { 
    clear: both;
    width: 100%;
    height: 24px;
}

.spacer-48 { 
    clear: both;
    width: 100%;
    height: 48px;
}

.spacer-100 { 
    clear: both;
    width: 100%;
    height: 100px;
}

/* To Toggle Sections */
.benifits, .audience, .features, .testimonials, .pricing, .faq {
    display: block;
}

.integrations {
    display: none;
}

/* Theme Switch */
.theme-switch {
    position: relative;
    right: 6%;
    top: -60px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch .slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: background-color 0.4s;
}

.theme-switch .slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s;
}

/* Move the slider to the right when checked */
.theme-switch input:checked+.slider::before {
    transform: translateX(24px);
}

/* Dark mode background */
.theme-switch input:checked+.slider {
    background-color: var(--dark-orange-color);
}

/* Icon styles */
.theme-switch .icon {
    font-size: 1.2rem;
    display: none;
}

.theme-switch .sun {
    display: inline;
}

.theme-switch input:checked~.sun {
    display: none;
}

.theme-switch input:checked~.moon {
    display: inline;
}

/* Hero Section */
.hero {
    color: var(--dark-text);
    text-align: center;
    background: url('../images/hero-bg-kitchen1@2X.png') center/cover fixed;
    background-repeat: no-repeat;
    height: 100vh;
    max-height: 700px;
    padding: 15% 0;
    position: relative;
    top: -65px;
}

.hero p, .hero button {
    font-size: 1.5rem;
}

.hero button {
    margin-top: 48px;
}

/* Benefits */
.benefits {
    display: flex;
    justify-content: space-around;
    padding: 24px 6%;
}

.benefit {
    width: 24%;
    text-align: center;
    min-height: 160px;
}

.benefit h3 {
    margin: 12px 0 6px 0;
}

.benefit p {
    font-size: .875rem;
    position: relative;
    left: 70px;
    top: 5px;
    width: 62%;
    text-align: left;
}

.food-waste {
    background: url("../images/card-benefit-food-waste.png") no-repeat;
    background-size: 100%;
}

.meal-planning {
    background: url("../images/card-benefit-meal-planning.png") no-repeat;
    background-size: 100%;
}

.sustainability {
    background: url("../images/card-benefit-sustainable.png") no-repeat;
    background-size: 100%;
}

.health-wellness {
    background: url("../images/card-benefit-wellness.png") no-repeat;
    background-size: 100%;
}

/* Audience */
.audience {
    padding: 48px 6%;
}

.audience-group {
    display: flex;
    gap: 40px;
    text-align: center;
    width: 80%;
    padding: 0 12%;
    align-items: center;
    justify-content: center;
}

.persona {
    text-align: center;
    max-width: 250px;
}

.persona h3 {
    font-size: 1.4rem;
    margin: 8px 0;
}

.persona img {
    -webkit-border-radius: 72px;
    -moz-border-radius: 72px;
    border-radius: 72px;
}

/* Features */
.features {
    padding: 48px 6%;
}

.features-list {
    width: 50%;
}

.features-list ul {
    list-style: none;
    padding: 0;
    text-align:left;
    overflow:visible;
}

.features-list li {
    background-color: var(--bright-teal-color);
    border: 1px solid var(--dark-teal-color);
    border-radius: 16px;
    clear: both;
    color: var(--text-color);
    list-style-type: none;
    padding: 4px 8px;
    margin: 4px;

    display: inline-flex;
    gap: 12px;
}

.features-list li.active {
    color: var(--dark-text);
    background: var(--dark-teal-color);
}

/* Social Media Post */
.social-post {
    background: var(--dark-teal-color);
    border-radius: 6px;
    color: var(--dark-text);
    font-size: .875rem;
    position: relative;
    max-width: 250px;
    min-width: 100px;
    width: 100%;
    height: 340px;
    margin: 12px;
}

.social-post .message {
    text-align: left;
    font-size: 1rem;
    line-height: 1.25rem;
    padding: 16px;
    height: 200px;

    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-metadata {
    width: 95%;
    padding: 0 16px;
    text-align: left;
    position: absolute;
    bottom: 18px;
}

.social-metadata table {
    border: 0;
    width: 100%;
}

.social-post #social_username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-post #post_age {
    color: var(--light-teal-color);
}

.social-post #media_holder {
    display: none;
    background: var(--bright-teal-color);
    border-radius: 6px 6px 0 0;
    height: 180px;
    overflow: hidden;
}

.social-post.media #media_holder {
    display: block;
}

.social-post.media .message {
    text-align: left;
    font-size: .875rem;
    line-height: 1.25rem;
    padding: 0 16px;
    height: 55%;
    width: 94%;
}

/* Integrations */
.integrations {
    padding: 48px 6% 0 6%;
}

.integrations .logos {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Testimonials */
.testimonials {
    padding: 48px 6%;
}

.testimonial-container {
    padding: 0 16vw;
    width: 100%;
}

.testimonial {
    margin: auto 12px;
    width: 100%;
    max-width: 280px;
    min-height: 160px;
    background: var(--light-orange-color);
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    border: 1px solid var(--medium-orange-color);
    position: relative;
}

.dark-mode .testimonial {
    background: var(--dark-orange-color);
}

.testimonial p {
    text-align: left;
}

.metadata {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 100%;
}

.avatar-orange {
    margin-right: 12px;
}

.reviewer-name {
    font-weight: bold;
    margin: 0 0 5px 2px;
}

.fa-star {
    color:var(--medium-orange-color);
}

.fa-star.checked {
    color:var(--dark-orange-color);
}

/* Pricing Section */
.pricing {
    padding: 48px 6%;
}

.price-card .content {
    background: var(--bg-color);
    border: 1px solid var(--medium-gray-color);
    border-radius: 6px;
    font-size: .875rem;
    padding: 12px;
    position: relative;
    max-width: 236px;
    margin-right: 4px;
}

.dark-mode .price-card .content {
    background: var(--text-color);
}

.dark-mode .price-card.highlighted .content {
    background: var(--light-teal-color);
}

.price-card.highlighted .content {
    background: var(--bright-teal-color);
    border: 1px solid var(--dark-teal-color);
    padding: 24px 12px;
}

.price-card h3 {
    font-size: 3rem;
    margin: 0;
    text-align: center;
}
.price-card h3 span {
    color: var(--gray-500);
    font-size: 1.5rem;
}

.price-card ul {
    list-style: none !important;
    margin-left: -25px;
}

.price-card li {
    margin-bottom: 6px;
}

.price-card ul li:before {
    content: '\f058'!important;
    color: #2cba6c;
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
    margin-right: 10px;
    margin-left: -14px;
    font-size: 1.2em!important;
}

.price-card button {
    width: 100%;
}

.plans .free .content {
    top: 24px;
}

.plans .yearly .content {
    top: 14px;
}

.app-store {
    width: 26%;
}

.app-store h3 {
    font-size: 1.5rem;
    margin: 6px 0;
}

/* FAQ Section */
.faq {
    padding: 48px 6% 100px 6%;
}
details {
    background: var(--light-gray-color);
    border: 1px solid var(--medium-gray-color);
    border-radius: 4px;
    padding: 12px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.dark-mode details { background: var(--text-color); }

details summary {
    font-size: 1.25rem;
    font-weight: 700;
}

details summary:hover {
    cursor: pointer;
}

/* Our Story */
.people, .opportunities {
    padding: 48px 6% 0 6%;
}

.opportunities {
    display:none;
}

.our-story {
    background: var(--light-teal-color);
    color: var(--dark-text);
    height: 100vh;
}

.our-story h1 {
    font-size: 2rem;
    margin: 8px 0;
}

.our-story-hero {
    background: url("../images/kc-about-us-hero.png") no-repeat;
    background-size: cover;
    width: 100vw;
    height: 300px;
}

.our-story-hero .layered {
    background: var(--bright-teal-color);
    border-radius: 6px 0 0 6px;
    box-shadow: 4px 0 6px #333;
    color: var(--text-color);
    float: right;
    margin: 2% 0;
    padding: 0 6% 24px 24px;
    width: 30%;
}

.mission-vision {
    padding: 24px 6%;
}

.people { height: 100vh; }
.opportunities { height: 80vh; }

.profile-photo {
    display: block;
    background: url(../images/avatar-green.svg) no-repeat;
    width: 64px;
    height: 64px;
    border-radius: 40px;
}

.blurb {
    width: 40vw;
}

.blurb .name, .blurb .role {
    margin: 0 0 4px 12px;
}

h3.name { font-size: 2rem; }
h4.role { font-size: 1rem; }

/* Legal Page */
#tos, #privacy {
    padding: 48px 6%;
}

#tos h1, #privacy h1 {
    font-size: 2rem;
}

#tos h2, #privacy h2 {
    font-size: 1.5rem;
    text-align: left;
}

/* Footer */
footer {
    padding: 24px 6%;
    height: 100%;
    min-height: 250px;
    background-color: var(--light-teal-color);
    border-top: 2px solid var(--medium-teal-color);
    color: var(--dark-text);
    font-size: .875rem;
    position: relative;
}

footer a, footer a:visited {
    color: var(--dark-text);
}

footer a:hover {
    color: var(--dark-teal-color);
}

footer .right {
    width: 55%;
}

footer .logo {
    margin: 14px 0 0 0;
    position: relative;
}

footer .logo .tagline {
    position: absolute;
    top: 70px;
    left: 22px;
    font-size: 1.05rem;
}

footer li {
    list-style-type: none;
}

footer h3 {
    color: var(--dark-teal-color);
    margin: 0 0 8px 0;
    font-size: 1.25rem;
}

ul.social {
    margin: 0 0 0 -40px;
    position: absolute;
    bottom: 60px;
}

ul.social li {
    display: inline;
    list-style-type: none;
    margin: 0 12px 0 0;
}

ul.social a, ul.social a:visited {
    color: var(--dark-teal-color);
}

.copyright {
    color: var(--medium-teal-color);
    font-size: .875rem;
    position: absolute;
    bottom: 20px;
}

.links-legal, .links-navigation {
    width: 20%;
}

#registration_form {
    width: 45%;
    margin-top: 15px;
}

#registartion_form table, #registration_form td {
    width: 100%;
}

#registration_form button {
    max-height: 36px;
}

.email-capture {
    position: relative;
}

.email-capture .fa-solid {
    color: var(--gray-500);
    position: absolute;
    top: 10px;
    left: 8px;
    z-index: 2;
} 

.mobile-information {
    display: none;
}

/* Media QUeries */

/* Mobile Web 480px Breakpoint */
@media screen and (max-width: 480px) {
    body {
        background-size: 60%;
        width: 100vw;
        max-width: 480px;
        overflow-x: hidden;
    }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2rem; }

    section {
        width: 100vw;
        max-width: 480px;
    }

    .hero {
        background-size: 100%;
        height: 100vh;
        height: calc(var(--vh, 2vh) * 100);
        padding: 20vh 7vw 0 2vw;
    }

    .benefits {
        display: list-item;
        gap: 24px;
    }

    .benefit {
        background-size: 80%;
        clear: both;
        width: 100%;
        max-width: 325px;
        margin: 0 auto 12px auto;
    }

    .features-list {
        width: 100%;
    }

    .testimonial {
        max-width: unset;
        width: 100%;
        margin-bottom: 24px;
    }

    #pricing {
        height: 100vh;
        background-size: cover;
        background-position: center;
        padding: 0;
        transition: background-image 0.5s ease-in-out;
    }

    #pricing h2 {
        display: none;
    }

    .plans {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        width: 100%;
        height: 100vh;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .plans::-webkit-scrollbar {
        display: none;
    }

    .price-card {
        bottom: 0;
        top:unset; 
        height: 100vh;
        width: 100vw;
        margin: 0 24px;

        flex: 0 0 100vw;
        scroll-snap-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .price-card.highlighted .content { max-height: 250px; }
    .price-card ul { display: none; }

    .plans .price-card:first-child {
        position: relative;
        top: 0px;
    }

    /*.plans .price-card[data-background]:nth-child(1) {
        background: url("../images/plan-sous-chef-bg@2X.png") no-repeat;
        background-size: cover;
    }

    .plans .price-card[data-background]:nth-child(2) {
        background: url("../images/plan-head-chef-bg@2X.png") no-repeat;
        background-size: cover;
    }*/

    .app-store {
        display: none;
    }

    .faq .column-medium {
        width: 100%;
    }

    .faq .column-large {
        clear: left;
        width: 100%;
    }

    footer {
        width: 100vw;
        height: 100%;
        min-height: 550px;
    }

    .social-media, .logo {
        clear: left;
        width: 100%;
    }

    .touchpoints {
        width: 100% !important;
        clear: left;
    }

    .links-legal, .links-navigation {
        width: 35% !important;
    }

    #registration_form {
        width: 100%;
    }

    .company-information .social, .company-information .copyright {
        display: none;
    }

    .mobile-information {
        display: block;
        position: relative;
        top: 125px;
    }
}