/* ClinCalls - Professional Clinical Call Management Platform */
/* Modern, clean design with medical/professional aesthetic */

:root {
    /* Core palette (dark → light) */
    --blue-900: #0b2240;  /* deep navy */
    --blue-800: #123e62;  /* dark steel blue */
    --blue-700: #0d5e8a;  /* ocean blue */
    --blue-600: #5f90aa;  /* muted sky */
    --blue-400: #a9c3d6;  /* pale blue */

    /* Theme mappings */
    --primary-color: var(--blue-700);
    --primary-dark: var(--blue-800);
    --primary-light: var(--blue-600);
    --secondary-color: var(--blue-900);
    --accent-color: #ff6b35; /* keep accent for CTAs/status */
    --text-dark: var(--blue-900);
    --text-light: #6c757d;
    --bg-light: #eef4f9; /* very light blue background */
    --bg-white: #ffffff;
    --border-color: #d5e2ec; /* blue-tinted border */
    --shadow-sm: 0 2px 4px 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.15);
}

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

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

/* ===== Navigation ===== */
nav {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

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

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* ===== Hero Section ===== */
#hero {
    background: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.18)), linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

#hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
}

#hero .hero-subtitle {
    font-size: 1.1rem;
    margin-top: 1rem;
    opacity: 0.98;
    color: rgba(255, 255, 255, 0.88);
}

/* ===== Sections ===== */
section {
    padding: 4rem 2rem;
}

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

section p {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

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

/* ===== Subscription Section ===== */
#subscription {
    background-color: var(--bg-light);
}

#subscription form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#subscription input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#subscription input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

#subscription button {
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#subscription button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#subscription button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ===== Features Section ===== */
#features {
    background-color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.feature-card p {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
}

/* ===== CTA Section ===== */
#cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

#cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

#cta p {
    color: white;
    opacity: 0.95;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

#cta a {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: white;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

#cta a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Calls Visualization Section ===== */
#calls-visualization-section {
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-white));
    padding: 4rem 2rem;
}

#calls-visualization-section h2 {
    margin-bottom: 1rem;
}

#calls-visualization-section > .container > p {
    margin-bottom: 3rem;
}

#calls-visualization {
    width: 100%;
    min-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#calls-visualization svg {
    display: block;
    margin: 0 auto;
}

.visualization-caption {
    margin-top: 2rem !important;
    font-size: 0.95rem !important;
    color: var(--text-light) !important;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Visualization interactive elements - Checklist */
#calls-visualization {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

#calls-visualization svg {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Checklist item animations */
#calls-visualization .checklist-item circle {
    transition: all 0.3s ease;
}

#calls-visualization .checklist-item text {
    transition: all 0.3s ease;
}

#calls-visualization .checklist-item path {
    transition: all 0.4s ease;
}

/* Table styling enhancements */
#calls-visualization .table-bg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

#calls-visualization .table-header {
    filter: drop-shadow(0 2px 4px rgba(13, 94, 138, 0.2));
}

#calls-visualization .table-row {
    transition: all 0.3s ease;
}

#calls-visualization .table-row:hover {
    filter: brightness(1.02);
}

/* Status badge animations */
#calls-visualization .status-badge rect {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

#calls-visualization .status-badge text {
    transition: all 0.4s ease;
}

/* Completion checkmark animation */
#calls-visualization .completion-check circle {
    filter: drop-shadow(0 4px 8px rgba(0, 166, 81, 0.4));
}

#calls-visualization .completion-check path {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: draw-checkmark 0.6s ease-out forwards;
}

@keyframes draw-checkmark {
    to {
        stroke-dashoffset: 0;
    }
}

/* Smooth transitions for all text elements */
#calls-visualization text {
    transition: opacity 0.3s ease, fill 0.3s ease;
}

/* Enhanced visualization container */
#calls-visualization-section {
    position: relative;
    overflow: hidden;
}

#calls-visualization-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    opacity: 0.3;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

/* ===== Contact Page ===== */
#contact-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

#contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#contact-header p {
    font-size: 1.2rem;
    color: white;
    opacity: 0.95;
}

#contact-form-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

#contact-form-section form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

#contact-info {
    background-color: var(--bg-light);
    text-align: center;
}

#contact-info h2 {
    margin-bottom: 1.5rem;
}

#contact-info p {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* ===== Form Styling ===== */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ===== Message Styling ===== */
.success-message {
    padding: 1.25rem;
    margin-top: 1.5rem;
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    font-weight: 500;
}

.error-message {
    padding: 1.25rem;
    margin-top: 1.5rem;
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    border-radius: 8px;
    font-weight: 500;
}

.hidden-message {
    display: none;
}

/* ===== Footer ===== */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Feedback Loop Section ===== */
#feedback-section {
    background-color: var(--bg-white);
    padding: 4rem 2rem;
}

#feedback-section h2 {
    margin-bottom: 1rem;
}

#feedback-section > .container > p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.feedback-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.feedback-explanation h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: left;
}

.feedback-explanation > p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: left;
}

.feedback-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.benefit-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    text-align: left;
    line-height: 1.6;
}

.feedback-visualization-container {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#feedback-visualization {
    width: 100%;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#feedback-visualization svg {
    display: block;
    margin: 0 auto;
}

/* Feedback visualization animations */
.feedback-node circle {
    transition: all 0.3s ease;
}

.feedback-node:hover circle {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.feedback-arrow {
    transition: all 0.3s ease;
}

.feedback-center circle {
    transition: all 0.3s ease;
}

/* ===== Deployment Flexibility Section ===== */
#deployment-section {
    background: linear-gradient(to bottom, var(--bg-white), var(--bg-light));
    padding: 4rem 2rem;
}

#deployment-section h2 {
    margin-bottom: 1rem;
}

#deployment-section > .container > p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.deployment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.deployment-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.deployment-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: grayscale(0%);
    transition: all 0.3s ease;
}

.deployment-card:hover .deployment-icon {
    transform: scale(1.1);
}

.on-premise-card {
    border-top: 4px solid var(--primary-dark);
}

.on-premise-card:hover {
    border-top-color: var(--primary-color);
}

.cloud-card {
    border-top: 4px solid var(--primary-light);
}

.cloud-card:hover {
    border-top-color: var(--primary-color);
}

.lightweight-card {
    border-top: 4px solid var(--accent-color);
}

.lightweight-card:hover {
    border-top-color: var(--primary-color);
}

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

.deployment-card > p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.deployment-benefits {
    list-style: none;
    text-align: left;
    width: 100%;
    padding: 0;
    margin-top: auto;
}

.deployment-benefits li {
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.deployment-benefits li:last-child {
    border-bottom: none;
}

.deployment-benefits li:hover {
    padding-left: 0.5rem;
    color: var(--primary-color);
}

.deployment-cta {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.deployment-cta p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.deployment-cta strong {
    color: var(--primary-color);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero p {
        font-size: 1.2rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    #subscription form {
        flex-direction: column;
    }
    
    #subscription input[type="email"],
    #subscription button {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    nav .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    #calls-visualization {
        min-height: 550px;
        padding: 1rem;
    }
    
    #calls-visualization-section {
        padding: 3rem 1rem;
    }

    .feedback-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feedback-explanation h3,
    .feedback-explanation > p,
    .benefit-item p {
        text-align: center;
    }

    .feedback-visualization-container {
        min-height: 500px;
        padding: 1rem;
    }

    #feedback-visualization {
        min-height: 500px;
    }

    #deployment-section {
        padding: 3rem 1rem;
    }

    .deployment-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .deployment-card {
        padding: 2rem;
    }

    .deployment-icon {
        font-size: 3rem;
    }

    .deployment-cta {
        padding: 1.5rem;
    }
}

