/* ==========================================================================
   ProstataVive Landing Page Stylesheet
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties (Design System) */
:root {
    /* Color Palette */
    --color-primary: #0a1931;       /* Deep Navy Blue */
    --color-primary-light: #15305b; /* Slate Blue */
    --color-secondary: #1b493e;     /* Deep Forest Green */
    --color-accent: #27a770;        /* Vivid Mint Green (High Contrast CTA) */
    --color-accent-hover: #1e8759;  /* Darker Mint Green */
    --color-gold: #ffd700;          /* Bright Gold (Stars/Trust) */
    --color-gold-dark: #d4af37;     /* Metallic Gold */
    --color-text-dark: #1e293b;     /* Charcoal Black for high contrast body */
    --color-text-muted: #64748b;    /* Slate Gray for secondary body */
    --color-bg-light: #f8fafc;      /* Soft Off-White */
    --color-bg-white: #ffffff;      /* Pure White */
    --color-border: #e2e8f0;        /* Border color */
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(10, 25, 49, 0.08), 0 4px 6px -2px rgba(10, 25, 49, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(10, 25, 49, 0.12), 0 10px 10px -5px rgba(10, 25, 49, 0.04);
    
    /* Borders & Transitions */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
}

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

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

p {
    margin-bottom: 1.25rem;
}

/* Utilities */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1200px) { .container { max-width: 1200px; } }

.text-center { text-align: center; }
.section-padding { padding: 4.5rem 0; }
.bg-dark { background-color: var(--color-primary); color: var(--color-bg-white); }
.bg-white { background-color: var(--color-bg-white); }

/* Decorative line under section titles */
.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 650px;
    margin: 0 auto 3rem auto;
}
.bg-dark .section-title { color: var(--color-bg-white); }
.bg-dark .section-subtitle { color: #e2e8f0; }

/* Buttons & Interactive Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    box-shadow: 0 4px 14px 0 rgba(39, 167, 112, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(39, 167, 112, 0.6);
}

.btn-primary:active {
    transform: translateY(1px);
}

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

/* Micro-animations / Glow Effect */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(39, 167, 112, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(39, 167, 112, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 167, 112, 0); }
}

.btn-pulse {
    animation: pulseGlow 2s infinite;
}

/* ==========================================================================
   Header / Navigation Section (Brand representation & trust)
   ========================================================================== */
.header {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
}

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

.trust-badge-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
    background: #eefdf7;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: radial-gradient(circle at 10% 20%, var(--color-primary-light) 0%, var(--color-primary) 90%);
    color: var(--color-bg-white);
    padding: 4rem 0 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--color-bg-light), transparent);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.badge-new {
    display: inline-block;
    background: rgba(39, 167, 112, 0.2);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.15;
    color: var(--color-bg-white);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

@media (min-width: 640px) {
    .hero-title { font-size: 3rem; }
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta-wrapper {
    margin-bottom: 2.5rem;
}

.hero-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

@media (min-width: 1024px) {
    .hero-guarantee {
        justify-content: flex-start;
    }
}

.hero-guarantee svg {
    color: var(--color-gold);
    width: 20px;
    height: 20px;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    background: radial-gradient(circle, rgba(21, 48, 91, 0.6) 0%, rgba(10, 25, 49, 0) 70%);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.hero-image {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    transition: var(--transition-smooth);
}

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

/* ==========================================================================
   Problem Section
   ========================================================================== */
.problem {
    background-color: var(--color-bg-white);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.problem-card {
    background: var(--color-bg-light);
    border-left: 4px solid #ef4444; /* Alert red */
    padding: 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    margin-bottom: 1.25rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.problem-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Solution / Product Intro Section
   ========================================================================== */
.solution {
    background-color: var(--color-bg-light);
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .solution-grid {
        grid-template-columns: 0.8fr 1.2fr;
    }
}

.solution-image-container {
    display: flex;
    justify-content: center;
}

.solution-image-container img {
    max-width: 340px;
    filter: drop-shadow(0 15px 25px rgba(10, 25, 49, 0.15));
}

.solution-content {
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.solution-tagline {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.solution-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.solution-bullets {
    list-style-type: none;
    margin: 1.5rem 0 2rem 0;
}

.solution-bullets li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.solution-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2327a770'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ==========================================================================
   Benefits Section (Premium Cards)
   ========================================================================== */
.benefits {
    background-color: var(--color-bg-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.benefit-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(39, 167, 112, 0.4);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: #eefdf7;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.benefit-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

.benefit-card p {
    color: var(--color-text-muted);
    font-size: 0.975rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Special styling for the center or last benefit card in 5-card layout or standard 3-grid */
.benefit-card.highlight {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-bg-white);
    border: none;
}

.benefit-card.highlight h3 {
    color: var(--color-bg-white);
}

.benefit-card.highlight p {
    color: #cbd5e1;
}

.benefit-card.highlight .benefit-icon {
    background-color: rgba(39, 167, 112, 0.25);
    color: var(--color-accent);
}

/* ==========================================================================
   How It Works
   ========================================================================== */
.how-it-works {
    background-color: var(--color-bg-light);
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

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

.step-card {
    background-color: var(--color-bg-white);
    padding: 2.25rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(39, 167, 112, 0.3);
}

.step-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.step-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
    background-color: var(--color-bg-white);
}

.compliance-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.testimonial-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    display: flex;
    gap: 0.25rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-dark);
    font-size: 0.975rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.125rem;
    border: 2px solid var(--color-accent);
}

.author-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Why Choose ProstataVive
   ========================================================================== */
.why-choose {
    background-color: var(--color-bg-light);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.why-card {
    background-color: var(--color-bg-white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.why-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background-color: #eefdf7;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    font-size: 1.25rem;
}

.why-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.why-card p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   FAQ Section (Accordion style)
   ========================================================================== */
.faq {
    background-color: var(--color-bg-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    background-color: var(--color-bg-light);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.faq-toggle-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background-color: var(--color-bg-white);
}

.faq-answer-inner {
    padding: 1.25rem 1.5rem;
    font-size: 0.975rem;
    color: var(--color-text-dark);
    line-height: 1.6;
    border-top: 1px solid var(--color-border);
}

/* Active FAQ Class via JS */
.faq-item.active {
    border-color: rgba(39, 167, 112, 0.4);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Allow expansion */
    transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
}

/* ==========================================================================
   Final Call To Action
   ========================================================================== */
.final-cta {
    background: radial-gradient(circle at 50% 50%, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: var(--color-bg-white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.final-cta-content {
    max-width: 750px;
    margin: 0 auto;
}

.final-cta h2 {
    color: var(--color-bg-white);
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.final-cta p {
    color: #e2e8f0;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.final-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 215, 0, 0.15);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Mobile Sticky Bottom CTA Bar
   ========================================================================== */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 25, 49, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.sticky-cta-bar.visible {
    transform: translateY(0);
}

.sticky-product-info {
    display: none; /* Hide product text on very small viewports */
}

@media (min-width: 480px) {
    .sticky-product-info {
        display: block;
    }
}

.sticky-title {
    color: var(--color-bg-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.sticky-stars {
    display: flex;
    color: var(--color-gold);
    font-size: 0.75rem;
}

.sticky-cta-bar .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    box-shadow: none;
    width: 100%;
}

@media (min-width: 480px) {
    .sticky-cta-bar .btn {
        width: auto;
    }
}

/* Hide on large desktop layout as it may clutter the screen */
@media (min-width: 1200px) {
    .sticky-cta-bar {
        display: none !important;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #050b16;
    color: #94a3b8;
    padding: 4rem 0 6rem 0; /* Extra bottom padding for mobile sticky bar */
    font-size: 0.85rem;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 1200px) {
    .footer {
        padding-bottom: 4rem; /* Standard padding on desktop where sticky bar is hidden */
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-disclosure {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
    text-align: justify;
}

.footer-copyright {
    text-align: center;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}
