/* ==========================================================================
   INNOBATIS Design System
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
    /* Colors */
    --ib-primary: #1B3A5C;
    --ib-primary-light: #2a5580;
    --ib-primary-dark: #0f2440;
    --ib-accent: #C8956C;
    --ib-accent-light: #d4a885;
    --ib-accent-dark: #b07a52;

    --ib-white: #ffffff;
    --ib-black: #1a1a1a;
    --ib-gray-50: #f8fafc;
    --ib-gray-100: #f1f5f9;
    --ib-gray-200: #e2e8f0;
    --ib-gray-300: #cbd5e1;
    --ib-gray-400: #94a3b8;
    --ib-gray-500: #64748b;
    --ib-gray-600: #475569;
    --ib-gray-700: #334155;
    --ib-gray-800: #1e293b;

    --ib-success: #16a34a;
    --ib-error: #dc2626;

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

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

    /* Spacing */
    --ib-space-xs: 0.25rem;
    --ib-space-sm: 0.5rem;
    --ib-space-md: 1rem;
    --ib-space-lg: 1.5rem;
    --ib-space-xl: 2rem;
    --ib-space-2xl: 3rem;
    --ib-space-3xl: 4rem;
    --ib-space-4xl: 6rem;

    /* Layout */
    --ib-container: 1200px;
    --ib-container-narrow: 800px;
    --ib-radius-sm: 4px;
    --ib-radius: 8px;
    --ib-radius-lg: 12px;
    --ib-radius-xl: 16px;
    --ib-radius-full: 9999px;

    /* Shadows */
    --ib-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --ib-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --ib-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --ib-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --ib-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

    /* Transitions */
    --ib-transition: 0.2s ease;
    --ib-transition-slow: 0.4s ease;

    /* Header height */
    --ib-header-height: 72px;
    --ib-topbar-height: 36px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--ib-header-height) + var(--ib-topbar-height) + 1rem);
}

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

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

a {
    color: var(--ib-primary);
    text-decoration: none;
    transition: color var(--ib-transition);
}

a:hover {
    color: var(--ib-accent);
}

ul, ol {
    list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ib-font-heading);
    color: var(--ib-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: var(--ib-text-4xl); margin-bottom: var(--ib-space-lg); }
h2 { font-size: var(--ib-text-3xl); margin-bottom: var(--ib-space-md); }
h3 { font-size: var(--ib-text-2xl); margin-bottom: var(--ib-space-md); }
h4 { font-size: var(--ib-text-xl); margin-bottom: var(--ib-space-sm); }

p {
    margin-bottom: var(--ib-space-md);
}

p:last-child {
    margin-bottom: 0;
}

/* ---------- Layout ---------- */
.ib-container {
    width: 100%;
    max-width: var(--ib-container);
    margin: 0 auto;
    padding: 0 var(--ib-space-lg);
}

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

.ib-main {
    padding: var(--ib-space-3xl) 0;
    min-height: 50vh;
}

.ib-section {
    padding: var(--ib-space-4xl) 0;
}

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

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

.ib-section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--ib-space-3xl);
}

.ib-section__header h2 {
    margin-bottom: var(--ib-space-sm);
}

.ib-section__header p {
    color: var(--ib-gray-500);
    font-size: var(--ib-text-lg);
}

.ib-section--primary .ib-section__header h2 {
    color: var(--ib-white);
}

.ib-section--primary .ib-section__header p {
    color: var(--ib-gray-300);
}

/* ---------- Top Bar ---------- */
.ib-topbar {
    background: var(--ib-primary-dark);
    color: var(--ib-gray-300);
    font-size: var(--ib-text-xs);
    height: var(--ib-topbar-height);
}

.ib-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.ib-topbar__left {
    display: flex;
    align-items: center;
    gap: var(--ib-space-md);
}

.ib-topbar__link {
    color: var(--ib-gray-300);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ib-topbar__link:hover {
    color: var(--ib-white);
}

.ib-topbar__sep {
    opacity: 0.3;
}

/* ---------- Header ---------- */
.ib-header {
    background: var(--ib-white);
    height: var(--ib-header-height);
    border-bottom: 1px solid var(--ib-gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--ib-transition);
}

.ib-header.scrolled {
    box-shadow: var(--ib-shadow-md);
}

.ib-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--ib-space-xl);
}

.ib-header__logo img {
    height: 42px;
    width: auto;
}

/* ---------- Navigation ---------- */
.ib-nav__list {
    display: flex;
    align-items: center;
    gap: var(--ib-space-xl);
}

.ib-nav__list li {
    position: relative;
}

.ib-nav__list a {
    color: var(--ib-gray-700);
    font-size: var(--ib-text-sm);
    font-weight: 500;
    padding: var(--ib-space-sm) 0;
    display: block;
    position: relative;
}

.ib-nav__list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ib-accent);
    transition: width var(--ib-transition);
}

.ib-nav__list a:hover::after,
.ib-nav__list .current-menu-item a::after {
    width: 100%;
}

.ib-nav__list a:hover {
    color: var(--ib-primary);
}

.ib-nav__list .current-menu-item a {
    color: var(--ib-primary);
    font-weight: 600;
}

/* Sub-menu */
.ib-nav__list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--ib-white);
    min-width: 200px;
    box-shadow: var(--ib-shadow-lg);
    border-radius: var(--ib-radius);
    padding: var(--ib-space-sm) 0;
    z-index: 10;
}

.ib-nav__list li:hover > .sub-menu {
    display: block;
}

.ib-nav__list .sub-menu a {
    padding: var(--ib-space-sm) var(--ib-space-lg);
    font-size: var(--ib-text-sm);
}

/* Hamburger */
.ib-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.ib-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ib-primary);
    transition: all var(--ib-transition);
    border-radius: 1px;
}

.ib-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ib-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.ib-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Breadcrumb ---------- */
.ib-breadcrumb {
    background: var(--ib-gray-50);
    padding: var(--ib-space-sm) 0;
    font-size: var(--ib-text-sm);
    color: var(--ib-gray-500);
    border-bottom: 1px solid var(--ib-gray-200);
}

.ib-breadcrumb a {
    color: var(--ib-gray-500);
}

.ib-breadcrumb a:hover {
    color: var(--ib-primary);
}

.ib-breadcrumb span {
    margin: 0 var(--ib-space-xs);
}

/* ---------- CTA Section ---------- */
.ib-cta-section {
    background: linear-gradient(135deg, var(--ib-primary) 0%, var(--ib-primary-dark) 100%);
    padding: var(--ib-space-4xl) 0;
    text-align: center;
    color: var(--ib-white);
}

.ib-cta-section h2 {
    color: var(--ib-white);
    font-size: var(--ib-text-3xl);
    margin-bottom: var(--ib-space-sm);
}

.ib-cta-section p {
    color: var(--ib-gray-300);
    font-size: var(--ib-text-lg);
    margin-bottom: var(--ib-space-xl);
}

.ib-cta-section__actions {
    display: flex;
    justify-content: center;
    gap: var(--ib-space-md);
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.ib-footer {
    background: var(--ib-gray-800);
    color: var(--ib-gray-300);
    padding: var(--ib-space-4xl) 0 0;
}

.ib-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--ib-space-3xl);
    padding-bottom: var(--ib-space-3xl);
}

.ib-footer__logo {
    display: inline-block;
    margin-bottom: var(--ib-space-md);
}

.ib-footer__logo img {
    height: 36px;
    width: auto;
}

.ib-footer__desc {
    font-size: var(--ib-text-sm);
    line-height: 1.7;
    color: var(--ib-gray-400);
}

.ib-footer__social {
    display: flex;
    gap: var(--ib-space-sm);
    margin-top: var(--ib-space-lg);
}

.ib-footer__social a {
    color: var(--ib-gray-400);
    transition: color var(--ib-transition);
}

.ib-footer__social a:hover {
    color: var(--ib-accent);
}

.ib-footer__col h4 {
    color: var(--ib-white);
    font-size: var(--ib-text-base);
    margin-bottom: var(--ib-space-lg);
    font-weight: 600;
}

.ib-footer__links li {
    margin-bottom: var(--ib-space-sm);
}

.ib-footer__links a {
    color: var(--ib-gray-400);
    font-size: var(--ib-text-sm);
    transition: color var(--ib-transition);
}

.ib-footer__links a:hover {
    color: var(--ib-white);
}

.ib-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--ib-space-sm);
    margin-bottom: var(--ib-space-md);
    font-size: var(--ib-text-sm);
    color: var(--ib-gray-400);
}

.ib-footer__contact a {
    color: var(--ib-gray-400);
}

.ib-footer__contact a:hover {
    color: var(--ib-white);
}

.ib-footer__contact svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.ib-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--ib-space-lg) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: var(--ib-text-xs);
    color: var(--ib-gray-500);
}

.ib-footer__legal {
    display: flex;
    gap: var(--ib-space-lg);
}

.ib-footer__legal a {
    color: var(--ib-gray-500);
    font-size: var(--ib-text-xs);
}

.ib-footer__legal a:hover {
    color: var(--ib-white);
}

/* ---------- 404 ---------- */
.ib-404 {
    text-align: center;
    padding: var(--ib-space-4xl) 0;
}

.ib-404 h1 {
    font-size: 8rem;
    color: var(--ib-gray-200);
    line-height: 1;
    margin-bottom: 0;
}

.ib-404 h2 {
    margin-bottom: var(--ib-space-md);
}

.ib-404 p {
    color: var(--ib-gray-500);
    margin-bottom: var(--ib-space-xl);
}

.ib-404__actions {
    display: flex;
    justify-content: center;
    gap: var(--ib-space-md);
}
