/* ========================================
   Global Styles - iMOBii
   Flat Design System
   Blue + White + Black + Silver
   ======================================== */

:root {
    /* Brand Colors */
    --color-primary: #1B4F95;
    --color-primary-light: #2A6BC5;
    --color-primary-dark: #143D73;
    --color-dark: #252525;
    --color-dark-light: #3a3a3a;

    /* Neutrals */
    --color-white: #ffffff;
    --color-silver-50: #f7f8f9;
    --color-silver-100: #eef0f2;
    --color-silver-200: #dde1e6;
    --color-silver-300: #c1c7cd;
    --color-silver-400: #a2a9b0;
    --color-silver-500: #878d96;
    --color-silver-600: #697077;
    --color-silver-700: #4d5358;
    --color-black: #000000;

    /* Semantic */
    --color-success: #198038;
    --color-accent: #1B4F95;

    /* Typography */
    --font-heading: 'Montserrat', 'Century Gothic', 'Segoe UI', sans-serif;
    --font-body: 'Montserrat', 'Century Gothic', 'Segoe UI', sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --section-padding: 6rem 0;
    --container-max: 80%;
    --container-padding: 0 10%;

    /* Flat */
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 1px 4px rgba(0, 0, 0, 0.06);

    --radius-sm: 4px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 6px;
    --radius-2xl: 8px;
    --radius-full: 100px;

    --transition: all 0.2s ease;
    --border: 1px solid var(--color-silver-200);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; background: none; }

/* ---- Container ---- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* ---- Section ---- */
.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.875rem;
    background: var(--color-silver-100);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-silver-600);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn-secondary {
    background: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-silver-300);
}
.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

/* ---- Cards ---- */
.card {
    background: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}
.card:hover { border-color: var(--color-silver-300); }

/* ---- Grid ---- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Scroll animation ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Decorative Organic Shapes
   Reusable across sections
   ======================================== */

.deco-blob {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* Organic blob shapes using border-radius */
.deco-blob--1 {
    width: 320px;
    height: 320px;
    background: rgba(27, 79, 149, 0.04);
    border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
}

.deco-blob--2 {
    width: 240px;
    height: 240px;
    background: rgba(27, 79, 149, 0.05);
    border-radius: 44% 56% 72% 28% / 36% 64% 36% 64%;
}

.deco-blob--3 {
    width: 180px;
    height: 180px;
    background: rgba(27, 79, 149, 0.03);
    border-radius: 72% 28% 38% 62% / 52% 36% 64% 48%;
}

.deco-blob--4 {
    width: 400px;
    height: 400px;
    background: rgba(27, 79, 149, 0.03);
    border-radius: 38% 62% 56% 44% / 48% 32% 68% 52%;
}

.deco-blob--5 {
    width: 140px;
    height: 140px;
    background: rgba(27, 79, 149, 0.06);
    border-radius: 56% 44% 34% 66% / 68% 42% 58% 32%;
}

/* Organic ring shapes */
.deco-ring {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border: 2px solid rgba(27, 79, 149, 0.06);
    background: transparent;
}

.deco-ring--1 {
    width: 200px;
    height: 200px;
    border-radius: 54% 46% 62% 38% / 42% 58% 42% 58%;
}

.deco-ring--2 {
    width: 120px;
    height: 120px;
    border-radius: 68% 32% 44% 56% / 52% 38% 62% 48%;
}

/* Dot cluster */
.deco-dots {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(27, 79, 149, 0.1) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    :root {
        --container-max: 90%;
        --container-padding: 0 5%;
    }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: var(--font-size-3xl); }
    .deco-blob, .deco-ring, .deco-dots { display: none; }
}

@media (max-width: 768px) {
    :root {
        --container-max: 100%;
        --container-padding: 0 1.25rem;
    }
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 3.5rem 0; }
    .section-title { font-size: var(--font-size-2xl); }
    .section-header { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0 1rem;
    }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 2.5rem 0; }
    .section-title { font-size: var(--font-size-xl); }
    .section-subtitle { font-size: var(--font-size-sm); }
    .section-header { margin-bottom: 1.5rem; }
    .btn { padding: 0.6rem 1.25rem; font-size: var(--font-size-xs); }
}
