
/* --- CSS Variables & Reset --- */
:root {
    /* Light Theme Palette */
    --bg-body: #ffffff;
    --bg-body-secondary: #fefefe;
    --accent-color: #5e6ad2;
    --bg-nav: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.9);
    --bg-hover: #f3f4f6;
    --bg-menu: #ffffff;


    --medical-teal: #24A3A2;
    --medical-teal-dark: #1D8C8B;
    --shadow-color: rgba(36, 163, 162, 0.25);
    
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --text-tertiary: #a1a1aa;
    
    --border-color: #e4e4e7;

 

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);



    --btn-bg-primary: #18181b;
    --btn-bg-secondary: white;
    --btn-bg-gradient:linear-gradient(90deg, #2563eb, #0ea5e9);
    --btn-bg-stack-gradient: linear-gradient(180deg, var(--medical-teal) 0%, var(--medical-teal-dark) 100%);

    --btn-text: #ffffff;
    --btn-border-radius: 6px;
    --btn-pd-sm: 8px 16px;
    --btn-pd-md: 12px 24px;
    --btn-pd-lg: 16px 32px;


    --container-width: 1440px;
    --side-padding: 24px;
    --header-height: 64px;
    --transition: all 0.2s ease;  
    
    /* Typography Variables */
    /* Headings: distinct steps up */
    --size-h1:      clamp(2.5rem, 5vw + 1rem, 4rem);
    --size-h2:      clamp(2rem, 3.5vw + 1rem, 3rem);
    --size-h3:      clamp(1.5rem, 2vw + 1rem, 2rem);

    /* Copy: Starts at 1rem (16px) on mobile so it's never too small. 
        Grows slightly on desktop for better readability at a distance. */
    --size-body:    clamp(1rem, 1vw + 0.75rem, 1.125rem);
    --size-lead:    clamp(1.125rem, 1vw + 1rem, 1.35rem);
    --size-small:   0.875rem; 

    /* SPACING */
    /* 'ch' is the width of the "0" character. 
        60ch is widely cited as the perfect reading width. */
    --measure-standard: 60ch; 
    --measure-narrow:   45ch; /* Better for lead text or large font sizes */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--size-body);
    /* Placeholder height to allow scrolling */
    min-height: 300vh;
    /* padding-top: var(--header-height); */
}

::selection{
    background-color: #333;
    color: #f5f5f5;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }


/* --- Typography --- */

h1, h2, h3 {
  color: var(--text-primary);
  line-height: 1.1; /* Tighter line height for headings looks professional */
  /* margin-top: 2.5em; Breathing room above new sections */
  margin-bottom: 0.75em;
  font-weight: 700;
  max-width: 25ch; /* Prevents titles from stretching too wide */
}

h1 { font-size: var(--size-h1); letter-spacing: -0.02em;}
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }

.eyebrow {
  display: block; /* Ensures it sits on its own line */
  font-size: var(--size-small);
  color: var(--medical-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em; /* Wide spacing improves uppercase readability */
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.5em; /* Paragraph spacing */
  max-width: var(--measure-standard); /* Enforces the 7-11 words per line rule */
}

/* The "Lead" paragraph (First paragraph of an article) */
.lead {
  font-size: var(--size-lead);
  color: var(--text-heading); /* Slightly darker to stand out */
  max-width: var(--measure-narrow); /* Narrower width because text is bigger */
  margin-bottom: 2em;
}



/* --- Utilities --- */



.relative{ position: relative;}
.column{ flex-direction: column;}
.reverse {flex-direction: row-reverse;}

.container {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 0 var(--side-padding);
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
}

section {
     padding: 100px 0;
}


/* --- Basic Components --- */

.btn-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.btn-text:hover { color: var(--text-primary); }



.btn {
    color: var(--btn-text);
    border-radius: var(--btn-border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    /* box-shadow: var(--shadow-md); */
    /* transition: transform 0.1s ease, background-color 0.2s; */
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255,255,255,0.1), 
        rgba(255,255,255,0.5), 
        rgba(255,255,255,0.1), 
        transparent
    );
    transform: skewX(-20deg);
    pointer-events: none;
}

.btn:hover::after {
    animation: sheen-sweep 1.2s ease-out;
}



.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    /* transform: translateY(0); */
    transform: scale(0.97) translateY(1px);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.1),
        0 2px 6px var(--shadow-color);
}

.btn:active::after {
            opacity: 0;
            transition: opacity 0.1s;
        }

.med-btn:focus-visible {
    outline: 2px solid var(--medical-teal);
    outline-offset: 4px;
}

.btn-primary {background-color: var(--btn-bg-primary);} /*.btn-primary:hover{ background-color: #000;}*/
.btn-secondary {background: var(--btn-bg-secondary);} /*.btn-secondary:hover {background-color: #000;}*/
.btn-gradient {background: var(--btn-bg-gradient);} /*.btn-gradient:hover { background-color: #000;}*/

.btn-stack {
    background: var(--btn-bg-stack-gradient); 
    box-shadow: 
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 4px 12px var(--shadow-color),
                0 8px 24px -4px rgba(36, 163, 162, 0.15);
} 
.btn-stack:hover { 
    
    box-shadow: 
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 8px 20px var(--shadow-color),
                0 12px 32px -4px rgba(36, 163, 162, 0.2);
}

.btn-sm {padding: var(--btn-pd-sm);}
.btn-md {padding:var(--btn-pd-md);}
.btn-lg {padding: var(--btn-pd-lg);}


.btn-video {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
    transition: opacity 0.2s ease;
}

.btn-video:hover { opacity: 0.8; }

input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px 16px;
    color: #fff;
    flex-grow: 1;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: #2563eb;
    background: rgba(255, 255, 255, 0.08);
}



        
        

/* --- Basic Animations --- */


/* ANIMATION KEYFRAMES
    Simple 0 to 200% sweep.
*/
@keyframes sheen-sweep {
    0% { 
        left: -100%; 
        opacity: 0; 
    }
    10% { 
        opacity: 1; /* Fade in quickly */
    }
    100% { 
        left: 200%; 
        opacity: 0; /* Fade out at the end */
    }
}