/*
   Promely Dental - Framework Free
*/

/* =========================================
   1. Design System & Variables
   ========================================= */
:root {
    /* Colors */
    --primary: #308ce8;
    --primary-dark: #206bc4;
    --bg-light: #ffffff;
    --bg-soft: #f6f9fc;
    /* surface-light */
    --bg-dark: #111921;
    --surface-dark: #1a2430;

    --text-main: #0e141b;
    --text-muted: #6b7280;
    --text-light: #ffffff;

    --success: #10b981;
    /* Green for success/checks */
    --warning: #f59e0b;
    --error: #ef4444;

    /* Spacing */
    --spacing-xs: 0.25rem;
    /* 4px */
    --spacing-sm: 0.5rem;
    /* 8px */
    --spacing-md: 1rem;
    /* 16px */
    --spacing-lg: 1.5rem;
    /* 24px */
    --spacing-xl: 2rem;
    /* 32px */
    --spacing-2xl: 3rem;
    /* 48px */
    --spacing-3xl: 4rem;
    /* 64px */

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --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);

    /* Font */
    --font-main: 'Manrope', sans-serif;

    /* Layout */
    --container-width: 1280px;
    --header-height: 80px;
}

/* Dark Mode Overrides (if utilizing system preference or toggle class) */
.dark-mode {
    --bg-light: #111921;
    --bg-soft: #1a2430;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-main);
    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;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* =========================================
   3. Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    /* Manrope ExtraBold/Bold */
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

/* Mobile first */
h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
}

/* =========================================
   4. Layout Utilities
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.section {
    padding: var(--spacing-3xl) 0;
}

.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-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

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

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

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

.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: flex;
    }

    .hidden-desktop {
        display: none;
    }
}

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

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

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

.btn-outline {
    background-color: transparent;
    border: 1px solid #e5e7eb;
    color: var(--text-main);
}

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

.btn-white {
    background-color: white;
    color: var(--primary);
}

/* =========================================
   6. Component: Cards & Surfaces
   ========================================= */
.card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 1px solid #f3f4f6;
    /* Subtle border */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.bg-soft {
    background-color: var(--bg-soft);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: white;
}

.bg-primary-light {
    background-color: rgba(48, 140, 232, 0.1);
}

/* =========================================
   7. Specific Section Overrides
   ========================================= */
/* Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #f3f4f6;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

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

/* Hero */
.hero-section {
    background: linear-gradient(to bottom, #eff6ff 0%, #ffffff 100%);
}

.material-symbols-outlined {
    vertical-align: middle;
}

/* Services */
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(48, 140, 232, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
}

/* Footer */
.site-footer {
    background-color: #111827;
    /* Gray 900 */
    color: white;
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-xl);
}

.site-footer p {
    color: #9ca3af;
    /* Gray 400 */
}

.footer-link {
    color: #9ca3af;
}

.footer-link:hover {
    color: white;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 var(--spacing-md);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}