/* 
 * Promely Pediatric Clinic - Main Stylesheet
 * ------------------------------------------
 * 1. Variables & Reset
 * 2. Typography
 * 3. Components (Buttons, Cards, Inputs)
 * 4. Layout & Utilities
 * 5. Animations
 */

/* 1. Variables & Reset */
:root {
    /* Colors */
    --primary: #30abe8;
    --primary-hover: #0ea5e9;
    --bg-light: #f6f7f8;
    --bg-white: #ffffff;
    --bg-dark: #111c21;
    --text-main: #111518;
    --text-muted: #6b7280;
    --text-white: #ffffff;
    --border-light: #e5e7eb;
    
    /* Spacing */
    --container-width: 1280px;
    --header-height: 80px;
    
    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    
    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-display);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* 2. Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
}

.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-bold { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }
.text-center { text-align: center; }

/* 3. Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s var(--ease-out);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 4px 14px 0 rgba(48, 171, 232, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

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

/* Cards */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(48, 171, 232, 0.2);
    transform: translateY(-2px);
}

/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input, .select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background-color: var(--bg-light);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.input:focus, .select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-white);
}

/* 4. Layout & Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 4rem 0;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.hidden { display: none; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; top: 0; z-index: 50; }

@media (min-width: 768px) {
    .md-flex { display: flex; }
    .md-hidden { display: none; }
    .md-grid-2 { grid-template-columns: 2fr 1fr; }
}

/* Decoration */
.bg-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rounded-full { border-radius: var(--radius-full); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Material Icons Helper */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
