/* ============================================================
   JALAL AWAN — Personal Consulting Website
   style.css — Main stylesheet
   Colors: Navy #1a2744 | Teal #00b4a6 | Off-white #f8f9fa
   ============================================================ */

/* ── Variables ── */
:root {
  --navy:       #1a2744;
  --navy-mid:   #253560;
  --teal:       #00b4a6;
  --teal-light: #e6f7f6;
  --white:      #ffffff;
  --off-white:  #f8f9fa;
  --text-dark:  #1a2744;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --border:     #e2e8f0;
  --shadow:     0 4px 20px rgba(26,39,68,0.08);
  --radius:     6px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text-dark); background: var(--white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-mid); }
small { font-size: 0.82rem; color: var(--text-light); }

/* ── Layout utilities ── */
.container { max-width: 100%; margin: 0; padding: 0 40px; }
.container-center { max-width: 860px; margin: 0 auto; padding: 0 40px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark p, .section-dark small { color: rgba(255,255,255,0.72); }
.section-alt  { background: var(--off-white); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.text-center { text-align: center; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }

/* ── Section labels ── */
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-dark .label { color: var(--teal); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #009e91; color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-white  { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--off-white); color: var(--navy); }

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(26,39,68,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 64px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.18s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(0,180,166,0.18);
}
.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 7px 16px !important;
  border-radius: 4px;
}
.nav-cta:hover { background: #009e91 !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
/* Subtle grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,166,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,166,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-tag {
  display: inline-block;
  background: rgba(0,180,166,0.15);
  border: 1px solid rgba(0,180,166,0.35);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--teal); }
.hero p { font-size: 1.12rem; color: rgba(255,255,255,0.72); margin-bottom: 36px; max-width: 560px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.card h3 { margin-bottom: 8px; }
.card p  { font-size: 0.9rem; }

/* ── TAG PILLS ── */
.tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 2px;
}
.tag-dark {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -33px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline-date { font-size: 0.78rem; font-weight: 600; color: var(--teal); margin-bottom: 4px; }
.timeline-org  { font-size: 0.82rem; color: var(--text-light); margin-bottom: 10px; }

/* ── PUB ENTRIES ── */
.pub-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.pub-item:last-child { border-bottom: none; }
.pub-title { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 4px; }
.pub-meta  { font-size: 0.82rem; color: var(--text-light); margin-bottom: 8px; }
.pub-journal { color: var(--teal); font-weight: 500; }

/* ── STATUS BADGES (experience + calreg) ── */
.status-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px; white-space: nowrap;
}
.s-ongoing   { background: #f0fdf4; color: #15803d; }
.s-settled   { background: #eff6ff; color: #1d4ed8; }
.s-denied    { background: #fef2f2; color: #b91c1c; }
.s-withdrawn { background: #fefce8; color: #92400e; }
.s-aligned   { background: #f9fafb; color: #6b7280; border: 1px solid #e5e7eb; }

/* ── PROCEEDING TABLE ── */
.proc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.proc-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.proc-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.proc-table tr:last-child td { border-bottom: none; }
.proc-table tr:hover td { background: var(--off-white); }
.proc-docket { font-family: monospace; font-size: 0.82rem; color: var(--teal); }
.proc-outcome { color: #2d7a5f; font-weight: 600; font-size: 0.82rem; }

/* ── ENERGY WORLD CARDS ── */
.ew-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s;
}
.ew-card:hover { box-shadow: var(--shadow); }
.ew-card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.ew-card h4 { font-size: 0.92rem; margin-bottom: 6px; line-height: 1.4; }
.ew-card h4 a { color: var(--text-dark); }
.ew-card h4 a:hover { color: var(--teal); }
.ew-card p { font-size: 0.82rem; }

/* ── CONTACT FORM ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,180,166,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none;
  padding: 16px;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 500;
  text-align: center;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.social-icons { display: flex; gap: 12px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
.social-icon:hover { background: var(--teal); color: var(--white); }

/* ── PAGE HEADERS (non-home pages) ── */
.page-header {
  background: var(--navy);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,166,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,166,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-header .container { position: relative; }
.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-header p  { color: rgba(255,255,255,0.65); margin-top: 10px; font-size: 1.05rem; }

/* ── DIVIDER ── */
.divider { width: 48px; height: 3px; background: var(--teal); margin: 16px 0 28px; }
.divider-center { margin: 16px auto 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .proc-table { font-size: 0.78rem; }
  .proc-table th:nth-child(3), .proc-table td:nth-child(3) { display: none; } /* hide outcome col on mobile */
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-btns { flex-direction: column; }
}
