/* =============================================================
   website_custom.css
   Custom styles for the Right Diet public-facing website.
   Loaded globally via website/layouts/style.blade.php.
   ============================================================= */


/* ─────────────────────────────────────────────
   NAVBAR — reduced header height
───────────────────────────────────────────── */
.navbar-nav {
    --bs-nav-link-padding-y: 0.65rem;
}

.navbar-brand img {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}


/* ─────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────── */
.hero-section { position: relative; }

.hero-bg {
    min-height: 92vh;
    background-image: url('/images/banners/banner-01.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.42) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .35rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,.85);
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* White outline button used over dark/image backgrounds */
.btn-outline-white {
    color: #fff;
    border-color: rgba(255,255,255,.7);
    background: transparent;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: #fff;
}


/* ─────────────────────────────────────────────
   STATS BAR
───────────────────────────────────────────── */
.stats-bar {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    position: relative;
    z-index: 10;
}

.stat-item {
    padding: 1.75rem 1rem;
    border-right: 1px solid #eee;
}
.stat-item:last-child { border-right: none; }

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--bs-primary, #37b5fe);
    line-height: 1;
    margin-bottom: .3rem;
}
.stat-number span { font-size: 1.4rem; }

.stat-label {
    font-size: .85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .06em;
}


/* ─────────────────────────────────────────────
   FEATURE CARDS  (Why Choose Us)
───────────────────────────────────────────── */
.feature-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    transition: box-shadow .25s, transform .25s;
}
.feature-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bs-soft-primary, rgba(55,181,254,.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: var(--bs-primary, #37b5fe);
}


/* ─────────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────────── */
.how-section { background-color: #f8f9fa; }

.step-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bs-primary, #37b5fe);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


/* ─────────────────────────────────────────────
   FOOD / MEAL SHOWCASE CARDS
───────────────────────────────────────────── */
.meal-card {
    position: relative;
    border-radius: .85rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.meal-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.meal-card:hover .meal-card__img { transform: scale(1.08); }

.meal-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: .75rem;
    opacity: 0;
    transition: opacity .3s ease;
}
.meal-card:hover .meal-card__overlay { opacity: 1; }

.meal-card__overlay span {
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.3;
}


/* ─────────────────────────────────────────────
   APP DOWNLOAD SECTION
───────────────────────────────────────────── */
.app-section { background-color: #f8f9fa; }

/* Store badge buttons */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #111;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255,255,255,.12);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    min-width: 160px;
}
.store-badge:hover {
    background: #222;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.store-badge__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: .92;
}
.store-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.store-badge__line1 {
    font-size: 0.65rem;
    letter-spacing: 0.03em;
    opacity: .78;
}
.store-badge__line2 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}


/* ─────────────────────────────────────────────
   CTA BANNER
───────────────────────────────────────────── */
.cta-banner {
    background-size: cover;
    background-position: center;
}


/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 767px) {
    .hero-bg { min-height: 80vh; }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .stat-item:last-child { border-bottom: none; }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
}
