/* ==========================================================================
   CSS Variables & Configuration
   Theme: Medical, Trustworthy, Premium SaaS
   ========================================================================== */
:root {
    --primary: #0B7A5B;       /* Dark Green - Trust, Medical */
    --primary-hover: #085e45;
    --secondary: #EAF7F2;     /* Light Mint - Backgrounds, Soft accents */
    --accent: #34C759;        /* Bright Green - Calls to action, Highlights */
    --bg-color: #FFFFFF;      /* Pure White */
    --bg-alt: #F9FAFB;        /* Off-white for sections */
    --text-dark: #1F2937;     /* Dark Gray for headings */
    --text-muted: #4B5563;    /* Medium Gray for body text */
    --border-color: #E5E7EB;
    
    --shadow-sm: 0 2px 8px rgba(11, 122, 91, 0.05);
    --shadow-md: 0 8px 24px rgba(11, 122, 91, 0.08);
    --shadow-lg: 0 16px 40px rgba(11, 122, 91, 0.12);
    
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-muted);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(11, 122, 91, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 122, 91, 0.35);
    color: #FFFFFF;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 0.875rem 5%;
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span:not(.material-symbols-outlined) {
    color: var(--accent);
}

.logo .material-symbols-outlined {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:not(.btn):hover,
.nav-links a.active:not(.btn) {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7rem 5% 4rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-color) 100%);
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background-color: var(--bg-color);
    border-radius: 40px;
    border: 10px solid var(--primary);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background-color: var(--primary);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.icon-large {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.mockup-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100px;
}

.mockup-chart .bar {
    width: 16px;
    background-color: var(--secondary);
    border-radius: 4px;
    transition: var(--transition);
}

.mockup-chart .bar.active {
    background-color: var(--accent);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 6rem 5%;
    background-color: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background-color: var(--secondary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon .material-symbols-outlined {
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 0.95rem;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #064e3b 100%);
    color: #FFFFFF;
}

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

.cta h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: var(--secondary);
}

.cta .btn-primary {
    background-color: var(--accent);
    color: var(--text-dark);
}

.cta .btn-primary:hover {
    background-color: #2fb14f;
    color: #FFFFFF;
}

/* ==========================================================================
   Legal Pages (Privacy & Terms)
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #064e3b 100%);
    padding: 8rem 5% 4rem;
    text-align: center;
    color: #FFFFFF;
}

.page-header h1 {
    color: #FFFFFF;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--secondary);
    opacity: 0.9;
}

.content-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 5%;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 5%;
}

.contact-info h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.info-icon {
    color: var(--primary);
    background-color: var(--secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 1.5rem;
}

.info-details h4 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.info-details a {
    color: var(--primary);
    font-weight: 500;
}

.info-details a:hover {
    color: var(--accent);
}

.contact-form-card {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form-card h2 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    color: var(--text-dark);
}

.form-control::placeholder {
    color: #9CA3AF;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 122, 91, 0.1);
}

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

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    display: block;
    background-color: var(--secondary);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.form-message.error {
    display: block;
    background-color: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--text-dark);
    color: #FFFFFF;
    padding: 4rem 5% 1.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-brand h2 {
    color: var(--bg-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand h2 .material-symbols-outlined {
    color: var(--accent);
}

.footer-brand p {
    color: #9CA3AF;
    max-width: 300px;
}

.footer-links h3 {
    color: var(--bg-color);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9CA3AF;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6B7280;
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    .hero {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .footer-brand {
        grid-column: span 2;
        text-align: center;
    }
    
    .footer-brand h2 {
        justify-content: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .page-header {
        padding: 6rem 5% 3rem;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 1;
    }

    .footer-brand h2 {
        justify-content: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
    
    .phone-mockup {
        transform: scale(0.9) rotateY(-5deg) rotateX(5deg);
    }
    
    .phone-mockup:hover {
        transform: scale(0.9) rotateY(0deg) rotateX(0deg) translateY(-10px);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .phone-mockup {
        transform: scale(0.75) rotateY(-5deg) rotateX(5deg);
        margin-top: -3rem;
        margin-bottom: -3rem;
    }
    
    .phone-mockup:hover {
        transform: scale(0.75) rotateY(0deg) rotateX(0deg) translateY(-10px);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}
