/* ========================================
   NutritionMD - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary-blue: #0056b8;
    --primary-dark: #003d82;
    --accent-blue: #1a73e8;
    --text-dark: #1a1a1a;
    --text-gray: #555;
    --text-light: #777;
    --bg-light: #f8f9fa;
    --bg-gray: #eaeaea;
    --white: #ffffff;
    --black: #000000;
    --font-main: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 1px 1px 1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --box-border: 1px solid #0056b82e;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 86, 184, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 184, 0.45);
}

/* ========================================
   Top Bar
   ======================================== */
.top-bar {
    background: var(--black);
    padding: 6px 0;
    text-align: center;
}

.top-bar p {
    color: var(--white);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: var(--primary-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav ul li a {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    position: relative;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.4);
}

.nav ul li:last-child a::after {
    display: none;
}

.nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    background: url('../img/hero.png') center center / cover no-repeat;
    padding-bottom: 40px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 60px;
    background: #f2f2f2;
    border-radius: 50% 50% 0 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 40, 100, 0.2) 0%,
        rgba(0, 60, 130, 0.08) 50%,
        rgba(0, 40, 100, 0.05) 100%
    );
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    padding: 40px 20px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 15px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* ========================================
   Trust Badges
   ======================================== */
.trust-badges {
    padding: 0px 0 40px 0;
    background: #f2f2f2;
    position: relative;
    z-index: 1;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: start;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.badge-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.badge-item span {
    font-size: 16px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.3;
}

/* ========================================
   Goals Section
   ======================================== */
.goals-section {
    padding: 60px 0 80px;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.section-title span {
    color: var(--primary-blue);
}

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

.goal-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.goal-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 20px;
}

.goal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.goal-card:hover .goal-image img {
    transform: scale(1.05);
}

.goal-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.goal-card .btn {
    padding: 12px 28px;
    font-size: 12px;
}

/* ========================================
   Section Divider
   ======================================== */
.section-divider {
    height: 8px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue), var(--primary-blue));
}

/* ========================================
   Promise Section
   ======================================== */
.promise-section {
    padding: 70px 0 80px;
    background: var(--bg-light);
    text-align: center;
}

.promise-subtitle {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.promise-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.promise-desc {
    font-size: 14px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.certifications {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.certifications img {
    height: 110px;
    width: auto;
    filter: grayscale(30%);
    transition: var(--transition);
}

.certifications img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-light);
    padding: 40px 0 50px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.footer .copyright {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.footer .address {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.footer .disclaimer {
    font-size: 11px;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .goals-grid {
        gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    
    .nav.active {
        max-height: 400px;
        padding: 20px;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav ul li {
        width: 100%;
    }
    
    .nav ul li a {
        display: block;
        padding: 12px 16px;
        border-radius: 0;
    }
    
    .nav ul li a::after {
        display: none;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .promise-title {
        font-size: 26px;
    }
    
    .certifications {
        gap: 20px;
    }
    
    .certifications img {
        height: 55px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .badges-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .badge-icon {
        width: 50px;
        height: 50px;
    }
    
    .badge-item span {
        font-size: 11px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .certifications img {
        height: 45px;
    }
    
    .footer .disclaimer {
        font-size: 10px;
        padding: 0 10px;
    }
    
    .about-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-list li {
        padding: 30px 20px 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.goal-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.goal-card:nth-child(1) { animation-delay: 0.1s; }
.goal-card:nth-child(2) { animation-delay: 0.2s; }
.goal-card:nth-child(3) { animation-delay: 0.3s; }

/* ========================================
   Products Section
   ======================================== */
.products-section {
    padding: 80px 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 50px;
}

.products-category {
    margin-bottom: 60px;
}

.category-title {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 20px 0;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
}

.category-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -3px;
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 86, 184, 0.3);
}

.products-category:first-child .category-title {
    background: linear-gradient(135deg, rgba(0, 86, 184, 0.08), rgba(0, 140, 255, 0.05));
    border-radius: 12px;
    margin: 0 auto 25px;
    max-width: 400px;
}

.products-category:nth-child(2) .category-title {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(0, 200, 100, 0.05));
    border-radius: 12px;
    margin: 0 auto 25px;
    max-width: 400px;
    color: #1a7f37;
}

.products-category:nth-child(2) .category-title::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.products-category:nth-child(2) .category-title::after {
    background: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.category-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

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

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: var(--box-border);
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-card.best-value {
    border: 3px solid var(--primary-blue);
}

.best-value-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.save-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #28a745;
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-image {
    width: 100%;
    padding: 20px;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.price-per {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.price-total {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.product-info .btn {
    width: 100%;
    padding: 14px;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue), var(--primary-blue));
}

.about-section .section-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.about-section .section-subtitle {
    margin-bottom: 60px;
    font-size: 20px;
}

.about-content {
    display: block;
    max-width: 100%;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 20px;
    z-index: 0;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.about-text {
    padding: 20px 0;
}

.about-text h3 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 20px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
}

.about-list {
    list-style: none;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.about-list li {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 30px 20px 20px;
    position: relative;
    text-align: center;
    background: var(--bg-light);
    border-radius: 12px;
    border: var(--box-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 86, 184, 0.3);
}

/* Responsive Products */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .about-section .section-title {
        font-size: 28px;
    }
    
    .about-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .about-list li {
        font-size: 14px;
        padding: 25px 15px 15px;
    }
    
    .about-list li::before {
        width: 32px;
        height: 32px;
        font-size: 14px;
        top: -16px;
    }
    
    .category-title {
        font-size: 22px;
        padding: 15px 10px;
    }
    
    .products-category:first-child .category-title,
    .products-category:nth-child(2) .category-title {
        max-width: 100%;
    }
}

/* ==========================================================================
   INTERIOR PAGES (Contact, Terms, Privacy, Easy Cancel, etc.)
   ========================================================================== */

/* Inner Banner */
.inner-banner {
    background: var(--primary-blue);
    padding: 40px 0;
    text-align: center;
    border-top: 3px solid #000;
}

.inner-banner h1 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

/* Content Box (used on Contact, Terms, Privacy pages) */
.page-content {
    padding: 60px 0;
    background: var(--bg-light);
}

.content-box {
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: var(--box-border);
}

.content-box p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.content-box b,
.content-box strong {
    color: var(--text-dark);
}

.content-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.content-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 25px 0 12px;
}

.content-box ul,
.content-box ol {
    margin: 15px 0;
    padding-left: 25px;
}

.content-box li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.content-box a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.content-box a:hover {
    text-decoration: none;
}

/* Contact Page Specific */
.contact-box {
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: var(--box-border);
}

.contact-box p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.contact-box b {
    color: var(--text-dark);
}

/* Easy Cancel Page */
.cancel-form {
    max-width: 500px;
    margin: 0 auto;
}

.cancel-form .intro {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: center;
}

.cancel-form .form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
}

.cancel-form .form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.cancel-form .submit-button {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cancel-form .submit-button:hover {
    background: #1a5bb0;
}

.cancel-form .invalid-feedback {
    color: #dc3545;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 15px;
    display: none;
}

.cancel-form #contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Thank You Page */
.thank-you-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 600px;
    margin: 100px auto 60px;
}

.thank-you-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.thank-you-subtext {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.thank-you-subtext a {
    color: var(--primary-blue);
}

.return-home {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.return-home:hover {
    background: #1a5bb0;
}

