@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --brand: #4f46e5;
    --brand-2: #0ea5e9;
    --brand-soft: rgba(79, 70, 229, 0.1);
}

@layer components {
    .btn {
        @apply inline-flex items-center justify-center gap-2 font-semibold transition-all duration-200 px-5 py-3 text-sm rounded-lg;
    }
    .btn-rounded { @apply rounded-lg; }
    .btn-pill { @apply rounded-full; }
    .btn-square { @apply rounded-none; }

    .btn-primary {
        background-color: var(--brand);
        color: #fff;
        @apply shadow-lg;
    }
    .btn-primary:hover { @apply opacity-90 -translate-y-0.5; }

    .btn-outline {
        border: 1px solid var(--brand);
        color: var(--brand);
        @apply bg-transparent;
    }
    .btn-outline:hover { background-color: var(--brand); color: #fff; }

    .btn-ghost { @apply bg-white/10 text-white; }
    .btn-ghost:hover { @apply bg-white/20; }

    .container-x { @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8; }
    .section { @apply py-16 sm:py-24; }
    .card { @apply rounded-2xl border border-gray-200 bg-white; }
    .eyebrow {
        color: var(--brand);
        background-color: var(--brand-soft);
        @apply inline-flex items-center gap-2 text-xs font-bold uppercase tracking-wider px-3 py-1 rounded-full;
    }
}

/* Brand colour utilities (CSS-var backed so admin appearance settings apply live) */
.text-brand { color: var(--brand); }
.bg-brand { background-color: var(--brand); }
.bg-brand-soft { background-color: var(--brand-soft); }
.border-brand { border-color: var(--brand); }
.ring-brand { --tw-ring-color: var(--brand); }

/* Dark-mode card override */
.dark .card { @apply border-gray-800 bg-gray-900; }

html { scroll-behavior: smooth; }
