/* PureVia Health - Modern Redesign Styles */

/* CSS Variables for consistent theming */
:root {
    --primary-emerald: #10b981;
    --primary-teal: #0d9488;
    --accent-emerald: #059669;
    --accent-teal: #0f766e;
    --light-emerald: #ecfdf5;
    --light-teal: #f0fdfa;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-gray: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(16, 185, 129, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: var(--primary-emerald);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-emerald);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-teal));
    border: none;
    color: var(--white);
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-teal));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-teal));
    border: none;
    color: var(--white);
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-block;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-emerald));
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-emerald);
    color: var(--primary-emerald);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary-emerald);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--primary-emerald);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-ghost:hover {
    background: var(--light-emerald);
    color: var(--accent-emerald);
}

/* Navigation Styles */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--light-emerald);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i {
    -webkit-text-fill-color: var(--primary-emerald);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-emerald);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-emerald) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-emerald) !important;
    background: var(--light-emerald);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 12px 0;
}

.dropdown-item {
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 12px 20px;
}

.dropdown-item:hover {
    background: var(--light-emerald);
    color: var(--primary-emerald);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-emerald) 0%, var(--light-teal) 100%);
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: 1.8;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.4s both;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

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

/* Card Styles */
.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    /* height: 100%; */
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-emerald), var(--primary-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--light-emerald);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-teal));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Section Styles */
.section-padding {
    padding: 100px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.section-accent {
    color: var(--primary-emerald);
    font-weight: 700;
}

/* Why Choose Us Section */
.why-choose-section {
    background: linear-gradient(135deg, var(--light-emerald) 0%, var(--white) 100%);
}

.why-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.why-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.why-content p {
    color: var(--text-light);
    margin: 0;
}

/* Success Stories Section */
.success-section {
    background: var(--white);
}

.testimonial-card {
    background: var(--light-emerald);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-emerald);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-emerald);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.testimonial-author {
    font-weight: 700;
    color: var(--primary-emerald);
    font-size: 1.1rem;
}

.testimonial-role {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.testimonial-metrics {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(16, 185, 129, 0.2);
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-emerald);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Health Tips Section */
.tips-section {
    background: linear-gradient(135deg, var(--light-teal) 0%, var(--light-emerald) 100%);
}

.tip-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-emerald), var(--primary-teal));
}

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

.tip-category {
    display: inline-block;
    background: var(--light-emerald);
    color: var(--primary-emerald);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.tip-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.tip-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.tip-read-more {
    color: var(--primary-emerald);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.tip-read-more:hover {
    gap: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--primary-teal) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-input {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
}

.cta-input::placeholder {
    color: var(--text-light);
}

.cta-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Trust Section */
.trust-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.trust-item {
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.trust-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-teal));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: var(--shadow-md);
}

.trust-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--text-light);
    margin: 0;
}

/* Footer Styles */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.75rem;
}

.footer a:hover {
    color: var(--primary-emerald);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Form Styles */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .why-item {
        gap: 1.5rem;
    }
    
    .cta-form {
        flex-direction: column;
    }
    
    .cta-input {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .hero-section {
        padding: 120px 0 80px;
        margin-top: 70px;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-emerald);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 10px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
        --shadow-lg: 0 10px 25px rgba(0,0,0,0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
