/* Public pages of www.shariahaudit.com (ISA-1, ISA-12, ISA-24, ISA-26). Not used by the application. */
:root {
    --brand-blue: #0c5483;
    --brand-blue-dark: #083b5c;
    --brand-green: #4caf50;
    --ink: #1f2d3a;
    --muted: #5b6b7a;
    --line: #e3e9ef;
    --soft: #f4f7fa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}
a { color: var(--brand-blue); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header img { height: 46px; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--brand-blue); }
.btn {
    display: inline-block; padding: 11px 24px; border-radius: 26px;
    font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brand-blue); color: #fff !important; }
.btn-primary:hover { background: var(--brand-blue-dark); }
.btn-outline { border-color: #fff; color: #fff !important; }
.btn-outline:hover { background: #fff; color: var(--brand-blue) !important; }

/* Hero */
.hero {
    background:
        linear-gradient(120deg, rgba(8,59,92,.94) 0%, rgba(12,84,131,.90) 55%, rgba(46,125,50,.88) 100%),
        url(/img/logo/loginbg.png);
    color: #fff; padding: 96px 0 104px;
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; opacity: .85; margin: 0 0 14px; }
.hero h1 { font-size: 46px; line-height: 1.15; margin: 0 0 20px; max-width: 760px; font-weight: 700; }
.hero p.lead { font-size: 19px; max-width: 700px; margin: 0 0 34px; opacity: .95; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-primary { background: #fff; color: var(--brand-blue) !important; }
.hero .btn-primary:hover { background: #e8f1f8; }
/* ISA-12: hero with the sign-in card */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; }
.hero h1 { font-size: 42px; }
.signin-card { background: #fff; color: var(--ink); border-radius: 12px; padding: 28px 26px; box-shadow: 0 18px 40px rgba(0,0,0,.18); scroll-margin-top: 90px; }
.signin-card h2 { margin: 0 0 4px; font-size: 22px; color: var(--brand-blue-dark); }
.signin-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.signin-card label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
.signin-input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; font-size: 15px; color: var(--ink); }
.signin-input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(12,84,131,.15); }
.signin-submit { width: 100%; margin-top: 18px; border-radius: 6px; padding: 11px 0; text-align: center; border: 0; cursor: pointer; }
.hero .signin-card .btn-primary { background: var(--brand-blue); color: #fff !important; }
.hero .signin-card .btn-primary:hover { background: var(--brand-blue-dark); }
.signin-error, .signin-error ul { color: #c8242b; font-size: 13px; margin: 0; padding: 0; list-style: none; }
.signin-error:not(:empty) { background: #fee7e8; border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; }
.validation-summary-valid.signin-error { display: none; }
.signin-field-error { display: block; color: #c8242b; font-size: 12px; margin-top: 3px; }
.signin-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin-microsoft { display: flex; align-items: center; justify-content: center; gap: 10px; height: 42px; border: 1px solid #8c8c8c; border-radius: 6px; color: #5e5e5e; font-weight: 600; font-size: 15px; text-decoration: none; background: #fff; }
.signin-microsoft:hover { background: #f3f3f3; color: #2f2f2f; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--soft); }
.section-head { max-width: 760px; margin: 0 0 44px; }
.section-head .eyebrow { color: var(--brand-green); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.section-head h2 { font-size: 32px; line-height: 1.25; margin: 0 0 14px; color: var(--brand-blue-dark); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col p { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li .fa { position: absolute; left: 0; top: 14px; color: var(--brand-green); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px;
}
.card .icon {
    width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: #e8f1f8; color: var(--brand-blue); font-size: 20px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin: 0 0 8px; color: var(--ink); }
.card p { font-size: 15px; color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
    background: var(--brand-blue); color: #fff; font-weight: 700; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 18px; margin: 0 0 8px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

.audience { display: flex; flex-wrap: wrap; gap: 12px; }
.audience span {
    background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 9px 18px; font-size: 15px;
}
.audience span .fa { color: var(--brand-green); margin-right: 8px; }

/* ISA-24: contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-grid .card h3 { display: flex; align-items: center; gap: 10px; }
.contact-grid .card h3 .fa { color: var(--brand-green); }
.contact-grid .card p { font-style: normal; }
.contact-grid address { font-style: normal; color: var(--muted); font-size: 15px; }
.contact-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-outline-dark { border-color: var(--brand-blue); color: var(--brand-blue) !important; }
.btn-outline-dark:hover { background: var(--brand-blue); color: #fff !important; }

.cta { background: var(--brand-blue-dark); color: #fff; text-align: center; padding: 72px 0; }
.cta h2 { font-size: 30px; margin: 0 0 12px; }
.cta p { opacity: .9; margin: 0 0 28px; font-size: 17px; }

.site-footer { background: #06283f; color: rgba(255,255,255,.75); font-size: 14px; padding: 26px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; }

@media (max-width: 991px) {
    .grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; gap: 28px; }
    .hero h1 { font-size: 38px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .signin-card { max-width: 440px; }
}
@media (max-width: 640px) {
    .nav a.nav-link { display: none; }
    .grid, .steps, .contact-grid { grid-template-columns: 1fr; }
    .hero { padding: 64px 0 72px; }
    .hero h1 { font-size: 30px; }
    .hero p.lead { font-size: 17px; }
    section { padding: 56px 0; }
    .section-head h2 { font-size: 26px; }
    .site-header img { height: 38px; }
}
/* ISA-26: shared by the public pages (home, features, guide) */
.nav a.active { color: var(--brand-blue); }
.page-hero { background: linear-gradient(120deg, rgba(8,59,92,.96) 0%, rgba(12,84,131,.93) 60%, rgba(46,125,50,.9) 100%); color: #fff; padding: 64px 0 60px; }
.page-hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; opacity: .85; margin: 0 0 12px; }
.page-hero h1 { font-size: 40px; line-height: 1.18; margin: 0 0 16px; max-width: 860px; font-weight: 700; }
.page-hero p.lead { font-size: 19px; max-width: 760px; margin: 0; opacity: .95; }
.breadcrumb { font-size: 14px; margin: 0 0 18px; opacity: .85; }
.breadcrumb a { color: #fff; }
.more-link { display: inline-block; margin-top: 26px; font-weight: 600; text-decoration: none; }
.more-link .fa { margin-left: 6px; }

/* features page: one block per stage of the audit cycle */
.feature-block { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); }
.feature-block:first-child { border-top: 0; padding-top: 0; }
.feature-block .stage { color: var(--brand-green); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.feature-block h2 { font-size: 26px; line-height: 1.25; margin: 0 0 10px; color: var(--brand-blue-dark); }
.feature-block .intro { color: var(--muted); font-size: 16px; margin: 0; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.feature-list li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--ink); }
.feature-list li .fa { position: absolute; left: 0; top: 4px; color: var(--brand-green); }
.feature-list li b { display: block; color: var(--ink); }
.feature-list li span { color: var(--muted); }
.tag-ai { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; background: #e7f4ea; color: #2e7d32; border-radius: 10px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }

/* guide (article) */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.article-body { max-width: 760px; font-size: 17px; }
.article-body h2 { font-size: 27px; line-height: 1.25; margin: 44px 0 14px; color: var(--brand-blue-dark); scroll-margin-top: 90px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 20px; margin: 28px 0 8px; color: var(--ink); }
.article-body p, .article-body li { color: #34414d; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin: 6px 0; }
.article-body .note { background: var(--soft); border-left: 4px solid var(--brand-green); padding: 16px 20px; border-radius: 6px; margin: 22px 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 18px 0; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { background: var(--soft); color: var(--brand-blue-dark); }
.table-scroll { overflow-x: auto; }
.toc { position: sticky; top: 96px; background: var(--soft); border-radius: 10px; padding: 20px 22px; font-size: 15px; }
.toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 6px 0; }
.toc a { text-decoration: none; }
.article-meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.cta-box { background: var(--brand-blue-dark); color: #fff; border-radius: 12px; padding: 28px 30px; margin: 40px 0 0; }
.cta-box h2 { color: #fff !important; margin: 0 0 8px !important; font-size: 24px !important; }
.cta-box p { color: rgba(255,255,255,.9) !important; margin: 0 0 18px; }
.cta-box .btn-primary { background: #fff; color: var(--brand-blue) !important; }

@media (max-width: 991px) {
    .feature-block { grid-template-columns: 1fr; gap: 18px; }
    .article { grid-template-columns: 1fr; gap: 28px; }
    .toc { position: static; order: -1; }
}
@media (max-width: 640px) {
    .feature-list { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 30px; }
    .page-hero p.lead { font-size: 17px; }
    .article-body { font-size: 16px; }
}
