/* --- Global Resets & Base --- */
:root {
    --primary-color: #0D3D56; /* Deep, trustworthy blue */
    --secondary-color: #1A759F; /* Brighter, engaging blue */
    --accent-color: #00E0C6; /* Vibrant teal for CTAs and highlights */
    --accent-hover-color: #00B8A2;
    --light-accent-color: #E0F7FA; /* Very light teal for backgrounds */
    --neutral-dark: #2c3e50; /* Dark grey for text */
    --neutral-medium: #7f8c8d; /* Medium grey for secondary text */
    --neutral-light: #ecf0f1; /* Light grey for backgrounds/borders */
    --white-color: #FFFFFF;
    --black-color: #000000;
    --danger-color: #e74c3c;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.8rem;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 15px 45px rgba(0,0,0,0.15);
    --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.06);
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: var(--font-secondary);
    color: var(--neutral-dark);
    background-color: var(--white-color);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px; /* Base font size */
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75em;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; line-height: 1.25; }
h3 { font-size: 1.8rem; line-height: 1.3; }
h4 { font-size: 1.4rem; line-height: 1.35; }
h5 { font-size: 1.15rem; line-height: 1.4; }

p {
    margin-bottom: 1rem;
    color: var(--neutral-medium);
}
p.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--neutral-dark);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}
a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.highlight { /* For hero section text highlight */
    color: var(--accent-color);
    font-weight: 700;
}

/* --- Navigation Bar --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.97) !important; /* Slight transparency for modern feel */
    backdrop-filter: blur(8px);
    padding: 0.8rem 1rem;
    box-shadow: var(--shadow-md);
}
.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}
.navbar-brand i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    transform: translateY(-2px); /* Fine-tune icon alignment */
}
.navbar .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--neutral-dark) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 0.8rem !important;
    border-radius: var(--border-radius-sm);
    transition: color 0.3s ease, background-color 0.3s ease;
}
.navbar .nav-link:hover,
.navbar .nav-item.active .nav-link,
.navbar .nav-item .nav-link.active { /* Ensure dropdown active state also styles parent */
    color: var(--accent-color) !important;
    background-color: var(--light-accent-color);
}
.navbar-toggler {
    border: none;
    color: var(--primary-color);
}
.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}
.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    margin-top: 0.5rem; /* Space from toggle */
}
.navbar .dropdown-item {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--neutral-dark);
    padding: 0.6rem 1.2rem;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
    background-color: var(--light-accent-color);
    color: var(--accent-color);
}
.navbar .btn-login { /* distinct styling for login button */
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 1.2rem;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
}
.navbar .btn-login:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* --- Buttons --- */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    border-radius: 50px; /* Pill shaped buttons */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease-in-out;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent; /* For consistent sizing */
}
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--accent-color), 0.25); /* Focus ring with accent */
}
.btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    border-color: transparent; /* Gradient handles it */
    color: var(--white-color);
}
.btn-primary:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color)); /* Shift gradient */
    color: var(--white-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
}
.btn-outline-light { /* Often used on dark backgrounds */
    border-color: var(--white-color);
    color: var(--white-color);
}
.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--primary-color); /* Contrast with dark bg */
    transform: translateY(-3px) scale(1.02);
}
.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}
.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px) scale(1.02);
}
.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}
.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
}

/* --- Hero Section --- */
.hero-section-new {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    padding: 120px 0 80px; /* More top padding due to fixed nav */
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* For pseudo-elements */
}
.hero-section-new::before { /* Subtle background pattern or shape */
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: rotate(45deg);
}
.hero-section-new::after { /* Another shape */
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: transparent;
    border: 20px solid rgba(255,255,255,0.07);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Organic shape */
    animation: morphShape 10s infinite alternate ease-in-out;
}
@keyframes morphShape {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) scale(1); }
    50% { border-radius: 60% 40% 30% 70% / 70% 50% 50% 30%; transform: rotate(180deg) scale(1.1); }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(360deg) scale(1); }
}

.hero-section-new h1 {
    font-size: 3.2rem; /* Larger for impact */
    font-weight: 700;
    color: var(--white-color);
}
.hero-section-new .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px; /* Constrain width for readability */
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.85);
}
.hero-section-new .btn {
    margin: 0.5rem;
}

/* --- Product Page Hero Section --- */
.hero-section-product {
    padding: 100px 0 60px; /* Adjusted for fixed nav */
    background-color: var(--light-accent-color); /* Light, welcoming color */
}
.hero-section-product h1 {
    color: var(--primary-color);
}
.hero-section-product .lead {
    color: var(--neutral-dark);
}
.hero-section-product img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

/* --- Section Styling --- */
.section-padding {
    padding: 80px 0;
}
.section-padding-sm {
    padding: 50px 0;
}
.bg-light {
    background-color: var(--neutral-light) !important;
}
.bg-lighter { /* Even lighter than Bootstrap's bg-light */
    background-color: #fbfcfd !important;
}
.bg-primary-subtle {
    background-color: var(--light-accent-color);
}
.section-title {
    margin-bottom: 50px;
    text-align: center;
}
.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title h2::after { /* Underline accent */
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- Card Styles --- */
.card {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 100%; /* Ensure cards in a row align nicely */
    overflow: hidden; /* For image zoom effects if any */
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card-img-top {
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
    object-fit: cover; /* Ensure images cover the area nicely */
}
.card .card-body {
    padding: 1.8rem;
}
.card .card-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.card .card-title a {
    color: inherit;
}
.card .card-title a:hover {
    color: var(--accent-color);
}
.card .card-text {
    color: var(--neutral-medium);
    font-size: 0.95rem;
}

/* How It Works Cards / Feature Cards */
.icon-feature-card {
    background-color: var(--white-color);
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius-lg);
}
.icon-feature-card .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); /* Shadow with primary color */
    transition: transform 0.3s ease;
}
.icon-feature-card:hover .icon-box {
    transform: scale(1.1) rotate(10deg);
}
.icon-feature-card h4, .icon-feature-card h5 {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Specific Section Elements --- */
/* Cross-Cutting Considerations / Why Us Section */
.advantage-item {
    display: flex;
    align-items: flex-start; /* Align icon and text top */
    margin-bottom: 2rem;
}
.advantage-item .icon-box-sm {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-right: 1rem;
    min-width: 30px; /* Ensure consistent spacing */
    padding-top: 0.2em;
}
.advantage-item h5 {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

/* CTA Sections */
.cta-section-new {
    background: var(--primary-color) url('../img/cta-bg-pattern.png') repeat; /* Subtle pattern */
    background-blend-mode: overlay;
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
    border-radius: var(--border-radius-lg); /* If used within a container, or apply to inner div */
    margin: 2rem 0; /* Example margin */
}
.cta-section-new h2 {
    color: var(--white-color);
    font-weight: 700;
}
.cta-section-new .lead {
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

/* --- Forms (Contact & Demo Modal) --- */
.form-group label {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--neutral-dark);
    font-size: 0.9rem;
}
.form-control {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--neutral-light);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-color), 0.15), var(--shadow-inset);
}
.form-control.is-invalid:focus {
     box-shadow: 0 0 0 0.2rem rgba(var(--danger-color), 0.15), var(--shadow-inset);
     border-color: var(--danger-color);
}
.invalid-feedback {
    font-size: 0.85rem;
}
textarea.form-control {
    min-height: 120px;
}

/* --- Modal Styling (Bootstrap provides base) --- */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}
.modal-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    padding: 1.2rem 1.5rem;
}
.modal-header .modal-title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--white-color);
}
.modal-header .close {
    color: var(--white-color);
    opacity: 0.8;
    text-shadow: none;
}
.modal-header .close:hover {
    opacity: 1;
}
.modal-body {
    padding: 2rem 1.5rem;
}
.modal-footer {
    background-color: var(--neutral-light);
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
}

/* --- Footer --- */
.footer-new {
    background-color: var(--neutral-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
    font-size: 0.9rem;
}
.footer-new small {
    display: block;
    margin-bottom: 0.5rem;
}
.footer-new a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.footer-new a:hover {
    color: var(--accent-color);
}
.footer-new .social-icons a { /* If you add social icons */
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

/* --- Utilities & Animations --- */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-neutral-dark { color: var(--neutral-dark) !important; }
.text-neutral-medium { color: var(--neutral-medium) !important; }
.text-neutral-light { color: var(--neutral-light) !important; } /* Use carefully for text */

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* You would add a class like 'in-view' with JS to trigger this */
.in-view.animate-fade-in-up {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }


/* Specific for ClinicFlow AI Caution Box */
.caution-box {
    background-color: #fff3cd; /* Bootstrap warning background */
    border-left: 5px solid #ffc107; /* Bootstrap warning border color */
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-sm);
}
.caution-box h5 {
    color: #856404; /* Bootstrap warning text color */
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.caution-box p {
    color: #856404;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.9rem; }
    .hero-section-new { padding: 100px 0 60px; min-height: auto; }
    .hero-section-new h1 { font-size: 2.8rem; }
    .hero-section-new .lead { font-size: 1.1rem; }
    .navbar-nav { margin-top: 1rem; }
    .navbar .nav-link { margin: 0.3rem 0; }
}
@media (max-width: 767.98px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.5rem; }
    .section-padding { padding: 60px 0; }
    .hero-section-new h1 { font-size: 2.4rem; }
    .hero-section-new .btn { width: 100%; margin-bottom: 0.5rem; display: block; }
    .hero-section-new .btn + .btn { margin-left: 0;}
    .product-card .card-body { padding: 1.5rem; }
    .advantage-item { flex-direction: column; align-items: center; text-align: center; }
    .advantage-item .icon-box-sm { margin-right: 0; margin-bottom: 0.5rem; }
}

/* Add this to your CSS for the image in How It Works section on home page */
.how-it-works-img {
    max-height: 120px; /* Or desired height */
    width: auto;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-sm); /* Optional: consistent rounding */
    box-shadow: var(--shadow-sm); /* Optional: subtle shadow */
}