/* ============================================
   ASSURLEMAN DESIGN SYSTEM v4
   Warm · Premium · Multi-color · Human
   Inspired by: Arobix, Financy, Meryne, GenZ
   ============================================ */

:root {
    /* ── Brand & Primary ── */
    --primary: #0C2340;
    --primary-rgb: 12, 35, 64;
    --primary-light: #163B6A;
    --primary-lighter: #1B4D8E;

    /* ── CTA — Confident Emerald Green ── */
    --cta: #0D9F6E;
    --cta-dark: #087A54;
    --cta-light: #10B981;
    --cta-lightest: #ECFDF5;

    /* ── Accent — Warm Amber/Orange ── */
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --accent-light: #FCD34D;
    --accent-lightest: #FFFBEB;

    /* ── Teal — Stats & info sections ── */
    --teal: #0F766E;
    --teal-dark: #0D5C56;
    --teal-light: #14B8A6;
    --teal-lightest: #F0FDFA;

    /* ── Warm surface colors ── */
    --cream: #FFF8F0;
    --cream-dark: #FFF0DE;
    --warm-white: #FFFDF9;
    --white: #FFFFFF;
    --off-white: #FAFBFC;

    /* ── Neutrals — warm-tinted ── */
    --gray-50: #F9FAFB;
    --gray-100: #F0F1F3;
    --gray-200: #E2E4E9;
    --gray-300: #C8CCD4;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* ── Semantic ── */
    --success: #0D9F6E;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --error: #DC2626;
    --error-light: #FEF2F2;
    --info: #3B82F6;
    --info-light: #EFF6FF;

    /* ── Typography ── */
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);
    --text-4xl: clamp(2rem, 1.6rem + 2vw, 2.75rem);
    --text-5xl: clamp(2.5rem, 1.8rem + 3.5vw, 3.5rem);
    --text-6xl: clamp(3rem, 2rem + 5vw, 4.5rem);

    /* ── Spacing ── */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* ── Layout ── */
    --container-max: 1320px;
    --container-wide: 100%;
    --container-narrow: 720px;
    --container-padding: clamp(1.25rem, 4vw, 2.5rem);
    --header-height: 76px;

    --section-py: clamp(3rem, 4vw, 4.5rem);
    --section-py-lg: clamp(3.5rem, 5vw, 5.5rem);

    /* ── Borders ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;

    /* ── Shadows — soft, warm ── */
    --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow-sm: 0 2px 6px rgba(17, 24, 39, 0.05);
    --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
    --shadow-lg: 0 8px 24px rgba(17, 24, 39, 0.07), 0 2px 6px rgba(17, 24, 39, 0.03);
    --shadow-xl: 0 16px 48px rgba(17, 24, 39, 0.08), 0 4px 12px rgba(17, 24, 39, 0.03);
    --shadow-2xl: 0 24px 64px rgba(17, 24, 39, 0.1);
    --shadow-card: 0 2px 8px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.05);
    --shadow-card-hover: 0 8px 32px rgba(17, 24, 39, 0.1), 0 2px 6px rgba(17, 24, 39, 0.04);
    --shadow-button: 0 2px 8px rgba(13, 159, 110, 0.3);
    --shadow-input-focus: 0 0 0 3px rgba(13, 159, 110, 0.12);

    /* ── Transitions ── */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ── Z-Index ── */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--cta-dark);
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
}

h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 600;
}

h5 {
    font-size: var(--text-lg);
    font-weight: 600;
}

h6 {
    font-size: var(--text-base);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-4);
    color: var(--gray-600);
    line-height: 1.7;
}

::selection {
    background: var(--cta-lightest);
    color: var(--cta-dark);
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container--wide {
    max-width: var(--container-wide);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--section-py) 0;
}

.section--lg {
    padding: var(--section-py-lg) 0;
}

.section--sm {
    padding: var(--space-10) 0;
}

.section--alt {
    background: var(--gray-50);
}

.section--cream {
    background: var(--cream);
}

/* ── Grid ── */
.grid {
    display: grid;
    gap: var(--space-6);
}

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

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

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

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

@media (max-width: 1024px) {

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

@media (max-width: 768px) {

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

@media (max-width: 640px) {

    .grid--2,
    .grid--3,
    .grid--4,
    .grid--5 {
        grid-template-columns: 1fr;
    }
}

/* ── Flex Utilities ── */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: var(--space-1);
}

.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* ── Text Utilities ── */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.text-cta {
    color: var(--cta);
}

.text-muted {
    color: var(--gray-500);
}

.text-white {
    color: var(--white);
}

/* ── Spacing Utilities ── */
.mt-2 {
    margin-top: var(--space-2);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

/* ── Visibility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ── Animations ── */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Section Header ── */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-10);
}

.section-header h2 {
    margin-bottom: var(--space-3);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ── Labels / Badges ── */
.label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.375rem var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    line-height: 1.4;
    margin-bottom: var(--space-3);
}

.label--primary {
    background: var(--cta-lightest);
    color: var(--cta);
}

.label--accent {
    background: var(--accent-lightest);
    color: var(--accent-dark);
}

.label--cta {
    background: var(--cta-lightest);
    color: var(--cta);
}

.label--warning {
    background: var(--warning-light);
    color: #92600E;
}

.label--teal {
    background: var(--teal-lightest);
    color: var(--teal);
}