/* Insaf Legal – components */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: .97rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 14px 28px; font-size: 1.04rem; }
.btn--block { display: flex; width: 100%; }
.btn--accent { background: var(--red-600); color: #fff; box-shadow: 0 4px 14px rgba(189, 0, 40, .28); }
.btn--accent:hover { background: var(--red-700); color: #fff; }
.btn--primary { background: var(--navy-700); color: #fff; }
.btn--primary:hover { background: var(--navy-800); color: #fff; }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .5); background: transparent; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* Icons */
.icon { width: 24px; height: 24px; flex: none; }

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 4px 16px rgba(7, 26, 53, 0.04);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.28s ease,
                background-color 0.28s ease;
    overflow: hidden;
    isolation: isolate;
}
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-700) 0%, var(--red-600) 100%);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 2;
}
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at 95% 5%, rgba(189, 0, 40, 0.07), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
    pointer-events: none;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 42px -10px rgba(0, 52, 101, 0.16),
                0 10px 20px -6px rgba(189, 0, 40, 0.08);
    border-color: rgba(189, 0, 40, 0.42);
    color: var(--ink);
}
.card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}
.card:hover::after {
    opacity: 1;
}
.card h3, .card__h {
    font-size: 1.32rem;
    margin: 14px 0 8px;
    color: var(--navy-800);
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
}
.card:hover h3, .card:hover .card__h {
    color: var(--navy-700);
}
.card p {
    color: var(--muted);
    margin: 0;
    flex: 1;
    font-size: 0.98rem;
    line-height: 1.62;
    transition: color 0.25s ease;
}
.card:hover p {
    color: #1e293b;
}
.card__icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(0, 52, 101, 0.05);
    color: var(--navy-700);
    border: 1px solid rgba(0, 52, 101, 0.10);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card__icon .icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card__icon {
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--red-600) 100%);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 22px rgba(189, 0, 40, 0.32), 0 3px 8px rgba(0, 52, 101, 0.20);
}
.card:hover .card__icon .icon {
    transform: scale(1.08);
}
.card__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--navy-700);
    transition: color 0.25s ease, gap 0.25s ease;
}
.card__more .icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 50%;
    background: rgba(0, 52, 101, 0.06);
    color: var(--navy-700);
    border: 1px solid rgba(0, 52, 101, 0.08);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card__more {
    color: var(--red-600);
    gap: 14px;
}
.card:hover .card__more .icon {
    background: var(--red-600);
    color: #ffffff;
    border-color: var(--red-600);
    transform: translateX(4px) scale(1.08);
    box-shadow: 0 4px 12px rgba(189, 0, 40, 0.35);
}

.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: 0 4px 14px rgba(7, 26, 53, 0.04);
    border-top: 3px solid var(--red-600);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(7, 26, 53, 0.08);
    border-top-color: var(--navy-700);
}
.feature h3 {
    font-size: 1.22rem;
    color: var(--navy-800);
    margin: 0 0 10px;
}
.feature p {
    color: var(--muted);
    margin: 0;
    line-height: 1.62;
    font-size: 0.96rem;
}

.panel { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.panel__title { font-size: 1.25rem; }
.plain-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.plain-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.notice { margin-top: 1.2em; padding: 14px 16px; background: #fff; border-left: 4px solid var(--red-600); border-radius: 6px; font-size: .95rem; color: var(--ink); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.checklist .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--ok); padding: 3px; background: #e5f4ec; border-radius: 50%; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2em 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; counter-reset: s; }
.step { position: relative; }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-700); color: #fff; font-weight: 800; font-family: var(--font-head); margin-bottom: 14px; box-shadow: 0 0 0 6px rgba(0, 52, 101, .1); }
.step p { color: var(--muted); }

/* Enhanced Process Flow Cards */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 40px 0 0; list-style: none; padding: 0; }
.step-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden; }
.step-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy-700), var(--red-600)); }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c4cfe2; }
.step-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.step-card__badge { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px; background: var(--tint); color: var(--navy-700); font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-body); border: 1px solid rgba(0, 52, 101, .1); }
.step-card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--red-600); }
.step-card__icon .icon { width: 22px; height: 22px; }
.step-card h3 { font-size: 1.28rem; color: var(--navy-800); margin: 0 0 12px; }
.step-card p { color: var(--muted); font-size: .98rem; line-height: 1.6; margin: 0 0 20px; flex: 1; }
.step-card__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 9px; }
.step-card__list li { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.step-card__list .icon { width: 17px; height: 17px; color: var(--ok); flex: none; }
.process-cta { margin-top: 44px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.process-cta p { margin: 0; font-size: 1.05rem; color: var(--muted); }
.process-cta__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }

/* Accordion (native <details>, works without JS) */
.accordion { display: grid; gap: 12px; }
.accordion__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.accordion__item[open] { border-color: #b9c6dd; box-shadow: var(--shadow-sm); }
.accordion__item summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 700; color: var(--navy-800); position: relative; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--red-600); border-bottom: 2px solid var(--red-600); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.accordion__item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.accordion__body { padding: 0 20px 6px; color: var(--muted); }

/* Chips & link cards */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chip { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; background: #fff; }
.chip:hover { border-color: var(--red-600); }
.link-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.link-cards li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.link-cards a { font-weight: 700; }
.link-cards p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 22px; font-size: .9rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.breadcrumbs a { color: rgba(255, 255, 255, .85); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: #fff; font-weight: 600; }

/* CTA band */
.cta { background: var(--navy-800); color: #fff; padding: clamp(40px, 6vw, 64px) 0; border-top: 4px solid var(--red-600); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; max-width: 56ch; color: rgba(255, 255, 255, .85); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Forms */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy-800); font-size: .97rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b7c2d6; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(0, 52, 101, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-600); }
.field__error { color: var(--red-700); font-size: .9rem; margin: 6px 0 0; font-weight: 600; }
.req { color: var(--red-600); }
.opt, .hint { color: var(--muted); font-weight: 400; font-size: .88rem; }
.hint { margin: 6px 0 0; }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--navy-700); }
.field--check label { font-weight: 400; margin: 0; font-size: .93rem; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 18px 20px; border-radius: var(--radius); margin-bottom: 24px; border: 1px solid; }
.alert p, .alert ul { margin: .4em 0 0; }
.alert--success { background: #e7f5ed; border-color: #9bd1b2; color: #0a4d29; }
.alert--error { background: #fdecef; border-color: #f0a7b5; color: #7a0019; }
.alert:focus { outline: 3px solid var(--navy-700); }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 8px 0; display: grid; gap: 2px; }
.contact-list__k { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.panel .contact-list li { border-bottom: 1px solid var(--line); }
.panel .contact-list li:last-child { border: 0; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); padding-top: 56px; font-size: .96rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer__h { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 14px; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { padding: 5px 0; }
.brand--plate { background: #fff; border-radius: 10px; padding: 8px 14px; margin-bottom: 16px; }
.brand--plate img { height: 46px; }
.footer__licence { font-weight: 600; color: #fff; }
.site-footer .contact-list__k { color: rgba(255, 255, 255, .75); }
.footer__social { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; }
.social-link { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; transition: background .15s, transform .15s, color .15s; text-decoration: none !important; }
.social-link:hover { background: var(--red-600); color: #fff; transform: translateY(-2px); }
.social-link .icon { width: 20px; height: 20px; }

/* Founder Spotlight */
.split--founder { grid-template-columns: 1fr 1.6fr; align-items: start; gap: clamp(32px, 5vw, 64px); }
.founder-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.founder-card__media { width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--tint); box-shadow: 0 4px 18px rgba(7, 26, 53, .08); }
.founder-card__img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 28%; display: block; }
.founder-card__meta { margin-top: 18px; text-align: center; }
.founder-card__name { font-size: 1.5rem; margin: 0 0 4px; color: var(--navy-800); }
.founder-card__role { font-size: .95rem; font-weight: 700; color: var(--red-600); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
.founder-card__badges { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; display: grid; gap: 8px; }
.founder-card__badges li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink); font-weight: 600; padding: 8px 12px; background: var(--tint); border-radius: 8px; }
.founder-card__badges .icon { width: 18px; height: 18px; color: var(--navy-700); flex: none; }
.founder-quote { margin: 2em 0; padding: 22px 28px; background: var(--tint); border-left: 4px solid var(--red-600); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--navy-900); }
.founder-quote p { margin: 0 0 .6em; }
.founder-quote cite { display: block; font-style: normal; font-family: var(--font-body); font-weight: 700; font-size: .9rem; color: var(--red-600); text-transform: uppercase; letter-spacing: .06em; }
.site-footer .contact-list li { padding: 6px 0; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 22px 30px; font-size: .86rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer__legal p { margin: 0; max-width: 70ch; }
.footer__legal a { text-decoration: underline; }

/* Scroll reveal (progressive enhancement: only hidden when JS is active) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* WhatsApp floating button */
.wa-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 150; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); transition: transform .2s, box-shadow .2s, background .2s; }
.wa-float:hover { background: #1ebe5b; color: #fff; transform: scale(1.07); box-shadow: 0 8px 24px rgba(0, 0, 0, .32); }
.wa-float:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 3px; }

/* Compact contact list (footer): icon + value, one row each */
.contact-list--compact li { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; }
.contact-list--compact .contact-list__k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-list--compact .contact-list__ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .09); color: #f1b9c4; }
.contact-list--compact .icon { width: 17px; height: 17px; }
.contact-list--compact .contact-list__v { line-height: 1.45; padding-top: 4px; font-size: .93rem; overflow-wrap: anywhere; }

/* WhatsApp call-to-action (home) */
.btn--wa { background: #128c7e; color: #fff; box-shadow: 0 4px 14px rgba(18, 140, 126, .38); }
.btn--wa:hover { background: #0e6f64; color: #fff; }
.btn--wa .icon { width: 22px; height: 22px; }
.hero__card--wa { border-top: 5px solid #25d366; text-align: center; }
.hero__card-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #25d366; color: #fff; margin-bottom: 14px; }
.hero__card-icon .icon { width: 36px; height: 36px; }
.hero__card-num { margin: 0 0 16px; font-size: 1.5rem; font-weight: 800; font-family: var(--font-head); }
.hero__card-num a { color: var(--navy-800); text-decoration: none; }
.hero__card-num a:hover { color: #128c7e; }

/* Header: compact once the page is scrolled */
.site-header, .site-header__inner, .brand img { transition: min-height .25s ease, height .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled .site-header__inner { min-height: 60px; }
.site-header.is-scrolled .brand img { height: 42px; }
.site-header.is-scrolled .nav__link { padding-block: 7px; }
.site-header.is-scrolled .btn { padding-block: 8px; }
.hero__wa { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.hero__wa .icon { width: 18px; height: 18px; }
