/* Premium Styling for CoreGLP - Inspired by coreglp.com */

:root {
    /* Brand Colors - Dark Teal & Bright Teal matching coreglp.com */
    --primary: #003b3e;
    --primary-rgb: 0, 59, 62;
    --secondary: #18a89e;
    --secondary-rgb: 24, 168, 158;
    --secondary-dark: #12877f;
    --accent: #e33c4c; /* Highlight pink/red for stats */
    --highlight-bg: #daf5ec; /* Light soft mint */
    
    /* Neutrals */
    --white: #ffffff;
    --bg-light: #f0fffa;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --text-dark: #001a23;
    --text-muted: #475569;
    --border-color: rgba(0, 59, 62, 0.08);

    /* Shadows & Border Radius */
    --shadow-soft: 0 10px 30px rgba(0, 59, 62, 0.04);
    --shadow-medium: 0 15px 35px rgba(0, 59, 62, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

/* Premium Layout Container */
.page-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-logo span {
    color: var(--secondary);
}

.header-badge {
    background: var(--highlight-bg);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

/* Section Wrapper (Card style for high-end look) */
.card-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-section:hover {
    box-shadow: var(--shadow-medium);
}

.card-section.hero-card {
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f7fdfb 100%);
    border-top: 5px solid var(--secondary);
}

/* Typography */
h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 4.5vw + 1rem, 42px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    margin-bottom: 16px;
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(22px, 3vw + 1rem, 30px);
    font-weight: 600;
    line-height: 1.35;
    color: var(--primary);
    margin-bottom: 16px;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 20px;
}

p strong {
    color: var(--primary);
}

.hero-subheadline {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Wrapper & Buttons with Shimmer & Hover effects */
.cta-wrapper {
    margin: 24px 0 10px 0;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 16px 24px;
    background: linear-gradient(90deg, var(--secondary) 0%, #2bd0c4 50%, var(--secondary) 100%);
    background-size: 200% 100%;
    animation: shimmer 4s infinite linear;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 2.5vw + 0.5rem, 20px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(24, 168, 158, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 25px rgba(24, 168, 158, 0.4);
}

.cta-button:active {
    transform: translateY(0) scale(0.99);
}

.cta-subtext {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
}

.cta-subtext svg {
    width: 16px;
    height: 16px;
    fill: var(--secondary);
    flex-shrink: 0;
}

/* Ingredients Grid */
.ingredients-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 600px) {
    .ingredients-detail {
        grid-template-columns: 1fr 1fr;
    }
}

.ingredient-card {
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.2s ease;
}

.ingredient-card:hover {
    background: var(--white);
    border-color: var(--secondary);
}

/* USPs Grid */
.usps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
}

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

.usp-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-md);
}

.usp-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--highlight-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.usp-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--secondary);
    stroke-width: 2.5;
    fill: none;
}

.usp-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

/* Testimonials / UGC Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px 0;
}

@media (min-width: 600px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 59, 62, 0.02);
}

.testimonial-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.testimonial-info {
    padding: 15px;
    text-align: center;
}

.testimonial-name {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.testimonial-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Stat Cards (from coreglp.com) */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
}

@media (min-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    background: var(--white);
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Images Styling */
.hero-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 20px auto;
    display: block;
    filter: drop-shadow(0 15px 25px rgba(0, 59, 62, 0.1));
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.03) rotate(1deg);
}

.section-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 24px 0;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 24px 0;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

/* Guarantee Section */
.guarantee-wrapper {
    background: var(--highlight-bg);
    border-left: 4px solid var(--secondary);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.guarantee-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.guarantee-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.badge-icon {
    width: 18px;
    height: 18px;
    fill: var(--secondary);
    flex-shrink: 0;
}

/* FAQ Accordion */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    color: var(--secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    margin-left: 10px;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 250px;
    opacity: 1;
    padding-top: 8px;
    padding-bottom: 12px;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-links a, .footer-links button {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease;
}

.footer-links a:hover, .footer-links button:hover {
    color: var(--secondary);
}

/* Accessibility & Mobile Fixes */
button:focus, a:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .card-section {
        padding: 30px 20px;
    }
    body {
        font-size: 17px;
    }
}

/* Metabolism Calculator Styles */
.calculator-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfb 100%);
    border: 2px solid var(--secondary);
    position: relative;
}

.calc-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.calc-intro {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

.calc-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.calc-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.calc-field label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.calc-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 600px) {
    .calc-options {
        grid-template-columns: 1fr 1fr;
    }
    #calc-opt-custom-age {
        grid-column: span 2;
    }
}

.calc-opt-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    text-align: left;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.calc-opt-btn:hover {
    border-color: var(--secondary);
    background: rgba(24, 168, 158, 0.02);
}

.calc-opt-btn.selected {
    border-color: var(--secondary);
    background: var(--highlight-bg);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(24, 168, 158, 0.1);
}

.calc-opt-btn::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.2s ease;
}

.calc-opt-btn.selected::after {
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: inset 0 0 0 3px var(--highlight-bg);
}

/* Navigation buttons inside calc */
.calc-next-btn, .calc-submit-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-next-btn:disabled, .calc-submit-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}

.calc-prev-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-prev-btn:hover {
    background: var(--gray-50);
}

/* Loading animation */
.calc-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    animation: fadeIn 0.3s ease;
}

.calc-loading .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--highlight-bg);
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin-bottom: 20px;
}

.calc-loading p {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    height: 24px;
}

/* Results Display */
.calc-result {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-badge {
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.score-display {
    margin-bottom: 20px;
}

.score-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.score-bar-container {
    background: #e2e8f0;
    height: 24px;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.score-bar {
    background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 100%);
    height: 100%;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
    width: 0%; /* Initial state for animation */
}

.result-text p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}