/* qaisyasir.com — personal profile site
   Palette aligned with The Accounting Guide (learn.qaisyasir.com) brand */

:root {
  --navy: #1F4E79;
  --navy-dark: #121B2A;
  --navy-light: #2E75B6;
  --gold: #B97E2B;
  --gold-light: #e8c97a;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #1E293B;
  --text-muted: #5B6B82;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
header.site-header {
  background: var(--navy-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.brand span { color: var(--gold-light); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: #E2E8F0;
  font-size: 0.95rem;
  font-weight: 500;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--gold-light);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 64px 0 56px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-photo img {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
}

.hero-text { flex: 1; min-width: 260px; }

.hero-text h1 {
  margin: 0 0 6px;
  font-size: 2rem;
}

.hero-text .role {
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.hero-text p { color: #CBD5E1; max-width: 620px; }

.badges { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

h2.section-title {
  font-size: 1.5rem;
  color: var(--navy-dark);
  margin-bottom: 6px;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 640px;
}

/* Timeline (Experience) */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--border); }
.timeline-item { margin-bottom: 36px; position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h3 { margin: 0 0 2px; font-size: 1.1rem; color: var(--navy-dark); }
.timeline-item .meta { color: var(--gold); font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; }
.timeline-item ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-muted); }
.timeline-item li { margin-bottom: 4px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.card h3 { margin: 0 0 8px; color: var(--navy-dark); font-size: 1.05rem; }
.card p { color: var(--text-muted); margin: 0 0 10px; font-size: 0.95rem; }
.card .tag {
  display: inline-block;
  background: #EFF6FF;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.card a.card-link { display: block; }
.card a.card-link:hover { text-decoration: none; }
.card a.card-link h3 { text-decoration: none; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* Contact */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
}
.contact-row .icon { color: var(--gold); font-size: 1.2rem; }

/* LMS CTA banner */
.lms-cta {
  background: var(--navy-dark);
  color: #fff;
  border-radius: 14px;
  padding: 32px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.lms-cta .lms-cta-text h3 { margin: 0 0 6px; color: #fff; font-size: 1.2rem; }
.lms-cta .lms-cta-text p { margin: 0; color: #CBD5E1; max-width: 520px; }
.lms-cta .lms-cta-action { flex-shrink: 0; }
.btn {
  display: inline-block;
  background: var(--gold);
  color: #1E293B;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--gold-light); text-decoration: none; }
.btn.btn-disabled {
  background: rgba(255,255,255,0.1);
  color: #CBD5E1;
  cursor: default;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn.btn-disabled:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.coming-soon-tag {
  display: inline-block;
  background: rgba(185,126,43,0.18);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Blog */
.post-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.post-back:hover { color: var(--navy-light); text-decoration: underline; }
.post-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.post-body { max-width: 720px; }
.post-body h2 { color: var(--navy-dark); margin-top: 32px; }
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol { margin-bottom: 16px; padding-left: 22px; }
.post-body li { margin-bottom: 6px; }
.post-cta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Lead capture modal */
.lead-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,27,42,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.lead-modal-overlay[hidden] { display: none; }
.lead-modal {
  background: var(--surface);
  border-radius: 14px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.lead-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}
.lead-modal-close:hover { color: var(--text); }
.lead-modal h3 { margin: 0 0 8px; color: var(--navy-dark); font-size: 1.2rem; padding-right: 20px; }
.lead-modal-sub { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 20px; }
.lead-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  margin-top: 14px;
}
.lead-form input, .lead-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.lead-form button[type="submit"] {
  margin-top: 20px;
  width: 100%;
  text-align: center;
}
.lead-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }
.lead-form-status { margin-top: 12px; font-size: 0.85rem; min-height: 1.2em; }
.lead-form-status.success { color: #15803d; }
.lead-form-status.error { color: #b91c1c; }

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #94A3B8;
  padding: 28px 0;
  font-size: 0.85rem;
  text-align: center;
}
footer.site-footer a { color: #CBD5E1; }

@media (max-width: 640px) {
  .hero-inner { text-align: center; justify-content: center; }
  .hero-text p { margin: 0 auto; }
  .badges { justify-content: center; }
  nav.main-nav ul { justify-content: center; }
  .lms-cta { flex-direction: column; text-align: center; }
}
