/* ==========================================================================
   FlexGuard Custom Styles - Premium Wellness Aesthetic
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-color: #0f5132; /* Deep Trustworthy Green */
    --primary-light: #198754;
    --secondary-color: #0d6efd; /* Medical/Professional Blue */
    --accent-color: #fca311;
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --bg-main: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #212529;
    --border-color: #e9ecef;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 5rem 1rem;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-light);
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: #fff; }
.bg-gradient { 
    background: linear-gradient(135deg, #f1f8f5 0%, #e8f4f8 100%); 
}

.text-center { text-align: center; }
.text-white h2, .text-white p { color: #fff; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-muted); }

.lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.align-center {
    align-items: center;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 81, 50, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 81, 50, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    background-color: rgba(15, 81, 50, 0.1);
    color: var(--primary-color);
}

.badge-light {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.announcement-bar p {
    margin: 0;
}

/* Navigation */
.navbar {
    background-color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: radial-gradient(circle at top right, #f8f9fa, #ffffff);
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero .hook {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.hero .subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-cta-group {
    margin-bottom: 2rem;
}

.trust-indicators-small {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    opacity: 0.8;
}

.product-hero-img {
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
    max-width: 90%;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Cards */
.card {
    background: #fff;
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Problem Section */
.problem-card {
    text-align: center;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Education Section */
.education-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.lifestyle-placeholder {
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    padding: 2rem;
    text-align: center;
}
.lifestyle-placeholder h3 {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.8;
}

/* Mistakes Section */
.mistake-item {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-md);
    background: rgba(255,255,255,0.02);
}
.mistake-item h4 {
    color: var(--accent-color);
}

/* Checklist / Guide Section */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

.check-icon {
    background: var(--primary-light);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: bold;
    margin-top: 0.25rem;
}
.check-item p {
    margin: 0;
    text-align: left;
}

/* Product Intro */
.floating-image {
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
}

/* Ingredients Section */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ingredient-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.ingredient-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.ingredient-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.ingredient-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.disclaimer-text {
    color: #999;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    font-size: 2rem;
    background: var(--bg-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-text h3 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}
.benefit-text p {
    margin: 0;
    color: var(--text-muted);
}

/* Routine & Quality */
.routine-list {
    list-style: none;
}

.routine-list li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--primary-light);
}

.badges-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.badge-item img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.badge-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.faq-item p {
    margin: 0;
    color: var(--text-muted);
}

/* Offer Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-end;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    padding-top: 3.5rem;
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.package-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.package-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.main-package-img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.package-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
}

.guarantee-box {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
}

.guarantee-img {
    width: 80px;
    flex-shrink: 0;
}

.guarantee-text h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.guarantee-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cards-img {
    max-width: 300px;
    margin: 0 auto;
    opacity: 0.6;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: #adb5bd;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
}

.footer-brand h4 {
    color: #fff;
    font-size: 1.5rem;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #adb5bd;
}

.footer-links a:hover {
    color: #fff;
}

.footer-legal {
    font-size: 0.75rem;
    line-height: 1.5;
}

.affiliate-disclosure, .health-disclaimer {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius-sm);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .ingredients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .trust-indicators-small {
        justify-content: center;
    }
    
    .checklist-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile behavior */
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .guarantee-box {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}
