/* variables */
:root {
    --nav-h: 70px;
    --green-dark: #283618;
    --green-light: #a7c957;
    --green-bg: #edf3eb;
    --green-pale: #dcedc8;
    --white: #fffaf3;

    --text-dark: #1e2d1e;
    --text-mid: #4a5a4a;
    --text-light: #7a8a7a;

    --radius: 12px;
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

/* base */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: cornsilk;
    color: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    margin-top: 70px;
}

section {
    text-align: center;
    margin: 2em 0;
}

.container {
    width: 100%;
    margin: 40px auto;
}

/* navbar */
.navbar {
    background-color: var(--green-dark);
    color: var(--white);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    width: 96%;
    height: 97%;
}


.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: 0 !important;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

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


.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 20px 10px;
    border-radius: 4px;
    transition: background 0.2s;
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    font-weight: bold;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.15);
}

/* profile button */
.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 4px 10px;
    cursor: pointer;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--green-dark);
}

.nav-username {
    color: white;
    font-size: 0.88rem;
}

/* logout button */
.nav-logout {
    background: none;
    color: white !important;
    padding: 7px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    border: none;
    transition: all 0.2s ease;
    font-family: 'DM Serif Display', serif;
}

.nav-logout:hover {
    background: rgba(255,255,255,0.15);
    color: white !important;
}

/* profile dropdown */
.profile-dropdown {
    position: absolute;
    top: var(--nav-h);
    right: 0;
    width: 240px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.profile-dropdown.open {
    display: flex;
}

.pd-item {
    padding: 12px 16px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
}

.pd-item:hover {
    background-color: var(--green-bg);
}

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* hero */
.hero-bg {
    position: relative;
    height: 80vh;
    background: url('./Images/healthyplatter.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    background-color: rgba(0,0,0,0.5);
    padding: 40px 20px;
    border-radius: 10px;
    max-width: 600px;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-overlay p {
    font-size: 1.2rem;
}

.hero-overlay a.homebtn {
    display: inline-block;
    background-color: green;
    color: white;
    width: 200px;
    padding: 5px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    margin: 5px;
}

.hero-overlay a.homebtn:hover {
    background-color: antiquewhite;
    color: green;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* login form */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.form-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
    text-align: center;
}

.header-title {
    font-size: 28px;
    margin-bottom: 30px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    outline: none;
}

.forgot-pwd {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-pwd a {
    color: var(--green-dark);
    text-decoration: none;
    font-size: 14px;
}

.action-btn {
    background-color: var(--green-dark);
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    cursor: pointer;
}

/* ready meals */
.meals {
    margin: 40px auto;
}

.meals h2 {
    text-align: center;
    margin-bottom: 30px;
}
.meals-page {
    margin-top: 0 !important;
}

.meal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

.meal-item {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.meal-item img {
    width: 100%;
    height: 230px;
    border-radius: 10px;
    display: block;
}

.meal-item h3 {
    margin-top: 10px;
    font-size: 1.1rem;
    text-align: center;
}

/* footer */
footer {
    background-color: var(--green-dark);
    color: white;
    text-align: center;
    padding: 1em;
    margin-top: auto;
}

/* media queries */
@media (max-width: 900px) {
    .meal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    body {
        overflow-x: hidden;
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar,
    footer,
    .hero-bg,
    .how-it-works,
    .features-cta,
    .signup-cta {
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
    }

    .nav-right {
        position: absolute;
        top: calc(var(--nav-h) + 10px);
        left: 0;
        width: 100%;
        display: none;
        gap: 20px;
        background-color: var(--green-dark);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .nav-right.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        width: 100%;
        padding: 20px 10px;
    }
}

@media (max-width: 600px) {
    .meal-grid {
        grid-template-columns: 1fr;
    }

}

/* hero updates */
.hero-bg {
    height: 75vh !important;
    background: url('./Images/healthyplatter.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    margin-top: -65px;
    padding-top: 70px;
}

.hero-overlay {
    background: rgba(40, 54, 24, 0.72);
    padding: 48px 40px;
    border-radius: 16px;
    max-width: 620px;
    backdrop-filter: blur(2px);
}

.hero-overlay h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-overlay p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 8px;
}

.hero-overlay a.homebtn {
    display: inline-block;
    background: white;
    color: var(--green-dark);
    width: auto;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    margin: 5px;
    transition: all 0.2s;
}

.hero-overlay a.homebtn:hover {
    background: var(--green-bg);
    color: var(--green-dark);
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* shared section styles */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 8px;
}
.section-sub {
    color: var(--text-mid);
    font-size: 1rem;
    margin-bottom: 36px;
}

/* how it works */
.how-it-works {
    background: #FEFAE0;
    padding: 60px 24px;
    text-align: center;
    margin: 0 !important;
}

.steps-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 860px;
    margin: 0 auto;
}

.step-card {
    background: white;
    border-radius: 14px;
    padding: 32px 24px;
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    box-shadow: 0 2px 12px rgba(40,54,24,0.08);
    border-top: 4px solid var(--green-dark);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(40,54,24,0.12);
}

.step-num {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-dark);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.step-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    margin-top: 8px;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.step-divider {
    font-size: 1.8rem;
    color: #d8e8d4;
    flex-shrink: 0;
}

/* features cta */
.features-cta {
    background: var(--green-bg);
    padding: 56px 24px;
    text-align: center;
    margin: 0 !important;
    border-top: 1px solid #d8e8d4;
    border-bottom: 1px solid #d8e8d4;
}

.features-cta-inner {
    max-width: 560px;
    margin: 0 auto;
}

.features-cta h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.features-cta p {
    color: var(--text-mid);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cta-btn {
    display: inline-block;
    background: var(--green-dark);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.cta-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    color: white;
}

/* sign up cta */
.signup-cta {
    background: var(--green-dark);
    padding: 60px 24px;
    text-align: center;
    margin: 0 !important;

}

.signup-cta h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.signup-cta p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.signup-btn {
    display: inline-block;
    background: white;
    color: var(--green-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.signup-btn:hover {
    background: var(--green-bg);
    transform: translateY(-2px);
}

/* signup page */


.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}


.form-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
    text-align: center;
}

.header-title {
    font-size: 28px;
    margin-bottom: 30px;
}


.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    outline: none;
}


.action-btn {
    background-color: var(--green-dark);
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}


.footer-links {
    margin-top: 20px;
    font-size: 16px;
}

.footer-links a {
    color: var(--green-dark);
    font-weight: bold;
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* profile page */
#profile-information .profile-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.info-section {
    flex: 1;
}

.stats-section {
    flex: 1.5;
}

.card {
    background-color: var(--green-dark);
    color: white;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

/* responsive */
@media (max-width: 768px) {
    .steps-row { flex-direction: column; align-items: center; }
    .step-divider { transform: rotate(90deg); }
    .step-card { max-width: 100%; width: 100%; }
    .section-title { font-size: 1.5rem; }
    .features-cta h2, .signup-cta h2 { font-size: 1.4rem; }
}
/* dropdown */
.nav-dropdown {
    position: relative;
    list-style: none;
}
.dropdown-btn {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 20px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    font-family: 'DM Serif Display', serif;
}

.dropdown-btn:hover {
    background: rgba(255,255,255,0.15);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    border: 1px solid #e8f0e8;
}
.dropdown-menu a {
    color: var(--green-dark);
    padding: 11px 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
}
.dropdown-menu a:hover {
    background: var(--green-bg);
    color: var(--green-dark);
}

.dropdown-menu a span {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.dropdown-menu a + a {
    border-top: 1px solid #f0f5f0;
}


.nav-dropdown:hover .dropdown-menu {
    display: flex;
}

/* platebot */
.platebot-container {
    margin-top: 70px !important;
    padding-top: 24px !important;
}