/* Alliance Investment Management Limited — aimlpk.com
   Designed and maintained by Tech Solutions (techsolutions.com.pk) */

:root {
  --brand: #E8621C;
  --bg: #FFFFFF;
  --surface: #F7F5F3;
  --text: #262422;
  --muted: #5A5550;
  --line: #E8E3DE;
  --logo: #3A3A3A;
  --accent-text: #B4470F;
  --chip: #FCEBDF;
  --btn: #C2510F;
  --btn-hover: #A8450C;
  --band: #2B2826;
  --band-muted: #D8D1C9;
  --band-line: #4E4844;
  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131211; --surface: #1C1A19; --text: #F2EEEA; --muted: #B5AEA7;
    --line: #302C29; --logo: #F2EEEA; --accent-text: #F59A63; --chip: #3A2417;
    --band: #7A300A; --band-muted: #F3D9C7; --band-line: #A2481A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131211; --surface: #1C1A19; --text: #F2EEEA; --muted: #B5AEA7;
  --line: #302C29; --logo: #F2EEEA; --accent-text: #F59A63; --chip: #3A2417;
  --band: #7A300A; --band-muted: #F3D9C7; --band-line: #A2481A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  transition: background-color .2s, color .2s;
}
img, svg { max-width: 100%; }
a { color: inherit; }
a:hover { opacity: .85; }
p { text-align: justify; hyphens: auto; margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; color: var(--logo); text-decoration: none; }
.logo svg { width: 120px; height: 40px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a.active { color: var(--accent-text); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle, .menu-toggle {
  font: inherit; font-size: 14px; cursor: pointer; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 22px; padding: 10px 16px; min-height: 44px;
  display: inline-flex; align-items: center; gap: 8px;
}
.menu-toggle { display: none; border-radius: 8px; }
.btn {
  display: inline-block; text-decoration: none; background: var(--btn); color: #fff !important;
  padding: 13px 22px; border-radius: 6px; font-weight: 500; border: 0; font: inherit; font-weight: 500; cursor: pointer;
}
.btn:hover { background: var(--btn-hover); opacity: 1; }
.link-arrow { color: var(--accent-text); text-decoration: none; font-weight: 500; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; }
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.section-border { border-top: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--accent-text); margin-bottom: 14px; text-transform: uppercase; }
.chip { display: inline-block; font-size: 13px; font-weight: 500; color: var(--accent-text); background: var(--chip); padding: 6px 12px; border-radius: 20px; margin-bottom: 28px; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 64px); line-height: 1.08; letter-spacing: -1px; max-width: 900px; margin-bottom: 28px; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.5px; }
.lead { font-size: 19px; line-height: 1.7; color: var(--muted); }
.muted { color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.section-head p { max-width: 460px; margin: 0; color: var(--muted); }

/* Hero */
.hero { padding: 100px 0 72px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.hero-row .lead { flex: 2 1 420px; margin: 0; }
.hero-actions { flex: 1 1 260px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.brand-band { height: 300px; border-radius: 12px; overflow: hidden; background: var(--band); position: relative; margin-bottom: 88px; }
.brand-band svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.page-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .h1 { margin-bottom: 18px; }
.page-hero p { max-width: 760px; }

/* Grids & cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 28px; background: var(--bg); }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }
.card .num { font-size: 14px; color: var(--accent-text); font-weight: 600; margin-bottom: 20px; }
.statement { font-family: var(--serif); font-size: 24px; line-height: 1.55; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 32px; }
.facts div { background: var(--bg); padding: 22px; }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.facts span { font-size: 14px; color: var(--muted); }

/* People */
.person .initials {
  width: 72px; height: 72px; border-radius: 50%; background: var(--chip); border: 2px solid var(--accent-text);
  color: var(--accent-text); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px; margin-bottom: 20px;
}
.person .role { font-size: 14px; color: var(--accent-text); margin-bottom: 12px; }
.person ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.person li { margin-bottom: 6px; text-align: justify; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.check-list li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; background: var(--brand); transform: rotate(45deg); }

.doc-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.doc-list a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; text-decoration: none; border-bottom: 1px solid var(--line); background: var(--bg); }
.doc-list a:last-child { border-bottom: 0; }
.doc-list a span:last-child { color: var(--accent-text); font-weight: 500; white-space: nowrap; }

/* Download categories */
.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.doc-tabs a { text-decoration: none; font-size: 14px; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 22px; background: var(--bg); }
.doc-tabs a.active { background: var(--btn); border-color: var(--btn); color: #fff; }
.cat-card { text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s; }
.cat-card:hover { border-color: var(--accent-text); opacity: 1; }
.cat-card p { margin-bottom: 14px; }
.cat-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; margin-bottom: 16px; flex-grow: 1; }
.year-head { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 36px 0 14px; }
.year-head:first-of-type { margin-top: 0; }
.doc-title { display: flex; flex-direction: column; gap: 2px; }
.doc-title small { font-size: 13px; color: var(--muted); }

/* Band */
.band { background: var(--band); color: #fff; }
.band .container { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: center; }
.band .band-text { flex: 2 1 420px; }
.band p { color: var(--band-muted); margin: 0; }
.band .h2 { margin-bottom: 14px; }
.band-links { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.band-links a { text-decoration: none; border: 1px solid var(--band-line); border-radius: 6px; padding: 14px 18px; display: flex; justify-content: space-between; }

/* Contact */
.form { display: grid; gap: 18px; }
.form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; min-height: 44px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.contact-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item strong { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.map { width: 100%; height: 320px; border: 0; border-radius: 10px; margin-top: 32px; }
.notice { padding: 14px 18px; border-radius: 6px; background: var(--chip); color: var(--text); margin-bottom: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 28px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.footer-grid h4 { margin: 0 0 8px; font-size: 15px; color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 32px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer-bottom a { font-weight: 700; color: var(--accent-text); text-decoration: none; }

/* WhatsApp */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #0B2E1C; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 20px 12px 14px; border-radius: 30px; min-height: 44px; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.whatsapp:hover { opacity: 1; background: #1EBE5A; }
@media (max-width: 520px) { .whatsapp span { display: none; } .whatsapp { padding: 12px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } body { transition: none; } }
