/* ============================================================
   ALADIVIBO — Design System
   Colors: Green, Blue, White, Red accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── Custom Properties ────────────────────────────────────── */
:root {
    /* Primary Colors */
    --green-900: #003D22;
    --green-800: #004D2B;
    --green-700: #006B3F;
    --green-600: #008A51;
    --green-500: #00A862;
    --green-400: #2EC87A;
    --green-300: #6EDDA0;
    --green-200: #B0F0CC;
    --green-100: #E0FAE9;
    --green-50: #F0FDF4;

    --blue-900: #001D3D;
    --blue-800: #002B5B;
    --blue-700: #003B73;
    --blue-600: #004E9A;
    --blue-500: #0066CC;
    --blue-400: #3388DD;
    --blue-300: #66AAEE;
    --blue-200: #99CCFF;
    --blue-100: #D6EBFF;
    --blue-50: #EBF5FF;

    --red-600: #C41E3A;
    --red-500: #DC2F4E;
    --red-400: #E8536E;
    --red-100: #FFE4E9;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8FAFB;
    --gray-100: #F1F4F8;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Semantic */
    --primary: var(--green-700);
    --primary-dark: var(--green-900);
    --primary-light: var(--green-100);
    --secondary: var(--blue-700);
    --secondary-dark: var(--blue-900);
    --secondary-light: var(--blue-100);
    --dark: #002d50;
    --accent: var(--red-600);
    --accent: var(--red-600);
    --accent-light: var(--red-100);

    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);
    --text-on-dark: var(--white);
    --text-on-primary: var(--white);

    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-dark: var(--blue-900);
    --bg-darker: #0A1628;

    --border-light: var(--gray-200);
    --border-medium: var(--gray-300);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', 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: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --section-pad-y: 100px;
    --section-pad-y-sm: 60px;

    /* Layout */
    --container-max: 1280px;
    --container-wide: 1440px;
    --nav-height: 80px;
    --top-bar-height: 40px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, .05), 0 2px 4px rgba(0, 0, 0, .04);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, .08), 0 4px 10px rgba(0, 0, 0, .04);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, .12), 0 8px 20px rgba(0, 0, 0, .06);

    /* Transitions */
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --duration-fast: 200ms;
    --duration-normal: 350ms;
    --duration-slow: 500ms;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* ── Global 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);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) ease;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* ── Container ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section Pattern ──────────────────────────────────────── */
.section {
    padding: var(--section-pad-y) 0;
    position: relative;
}

.section--gray {
    background: var(--bg-secondary);
}

.section--dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--text-on-dark);
}

.section--green {
    background: var(--primary);
    color: var(--text-on-primary);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
}

.section--dark .section-label,
.section--green .section-label {
    color: var(--green-300);
}

.section-label .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.section--dark .section-label .dot {
    background: var(--green-400);
}

.section-title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    margin-bottom: 20px;
    max-width: 800px;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.8;
}

.section--dark .section-subtitle {
    color: var(--gray-300);
}

.section-header {
    margin-bottom: 60px;
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-title,
.section-header--center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ── Typography Utilities ─────────────────────────────────── */
.text-green {
    color: var(--primary);
}

.text-blue {
    color: var(--secondary);
}

.text-red {
    color: var(--accent);
}

.text-white {
    color: var(--white);
}

.text-muted {
    color: var(--text-secondary);
}

.text-gradient-green {
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 107, 63, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--blue-800);
    border-color: var(--blue-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 59, 115, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-red {
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-red:hover {
    background: #A8182F;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
}

.btn-icon {
    transition: transform var(--duration-fast) ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: var(--text-base);
}

.btn-sm {
    padding: 10px 20px;
    font-size: var(--text-xs);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid var(--border-light);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 28px;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    background: var(--green-100);
    color: var(--green-700);
    margin-bottom: 12px;
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: 10px;
}

.card-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    margin-top: 16px;
    transition: gap var(--duration-fast) ease;
}

.card-link:hover {
    gap: 10px;
    color: var(--green-800);
}

/* ── Page Banner ──────────────────────────────────────────── */
.page-banner {
    position: relative;
    height: 350px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, var(--blue-900), var(--green-900));
    overflow: hidden;
    padding-top: calc(var(--nav-height) + var(--top-bar-height));
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner-content {
    position: relative;
    z-index: 2;
    padding: 40px 0;
    width: 100%;
}

.page-banner h1 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    color: var(--white);
    margin-bottom: 8px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    color: var(--gray-300);
}

.breadcrumb a {
    color: var(--green-300);
    transition: color var(--duration-fast) ease;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb-sep {
    color: var(--gray-500);
}

/* ── Stats Counter ────────────────────────────────────────── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-light);
}

.section--dark .stat-item:not(:last-child)::after {
    background: rgba(255, 255, 255, .15);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.section--dark .stat-number {
    color: var(--green-400);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.section--dark .stat-label {
    color: var(--gray-400);
}

/* ── Grid Utilities ───────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Animations ───────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: var(--section-pad-y-sm) 0;
    }
}

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .page-banner {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .stats-strip {
        grid-template-columns: 1fr;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .btn {
        padding: 12px 24px;
        font-size: var(--text-xs);
    }

    .container {
        padding: 0 16px;
    }
}