/* ============================================
   DR. ABID FAHEEM — CONSULTANT WEBSITE
   Design: Deep navy + warm slate + gold accent
   Type: DM Serif Display (headings) + Inter (body)
   ============================================ */

/* ---------- TOKENS ---------- */
:root {
  --navy:    #0f2340;
  --navy-md: #1a3456;
  --slate:   #f4f2ee;
  --white:   #ffffff;
  --gold:    #c8972a;
  --gold-lt: #e8b84b;
  --ink:     #1c2b3a;
  --muted:   #5a6a7a;
  --border:  #ddd8d0;
  --radius:  10px;
  --wrap:    1140px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 400; }
h4 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; }
p { color: var(--ink); }
.lede { font-size: 1.1rem; color: var(--muted); line-height: 1.75; max-width: 640px; }
.eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

/* ---------- LAYOUT ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.section-head { margin-bottom: 48px; }
.section-head h2 { margin-top: 4px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; max-width: 560px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}
.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--slate); border-color: var(--slate); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-full { width: 100%; text-align: center; }

/* ---------- NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 400;
}
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color 0.15s;
  position: relative; padding-bottom: 2px;
}
.site-nav a:hover, .site-nav a.active { color: var(--navy); }
.site-nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.2s; }

/* ---------- HERO ---------- */
.hero { background: var(--slate); padding: 80px 0 0; }
.hero-wrap {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 60px; align-items: flex-end;
}
.hero-text { padding-bottom: 80px; }
.hero-text h1 { margin-top: 8px; margin-bottom: 20px; max-width: 580px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-photo {
  align-self: flex-end;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--border);
}
.hero-photo img { width: 100%; height: 420px; object-fit: cover; object-position: top; }

/* ---------- TOOLS STRIP ---------- */
.tools-strip {
  background: var(--navy);
  padding: 16px 0;
}
.tools-strip .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.tools-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); white-space: nowrap; }
.tools-list { display: flex; gap: 12px; flex-wrap: wrap; }
.tools-list span {
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  padding: 4px 12px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* ---------- SERVICES GRID (HOME) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--slate);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.18s, box-shadow 0.18s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.service-icon {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy); }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- TESTIMONIALS ---------- */
.testi-section { background: var(--navy); }
.testi-section .section-head h2 { color: var(--white); }
.testi-section .section-head .eyebrow { color: var(--gold); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
}
.testi-card p { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.75; font-style: italic; }
.testi-author { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.testi-author strong { display: block; font-size: 14px; font-weight: 600; color: var(--white); }
.testi-author span { font-size: 13px; color: var(--gold); }

/* ---------- CLIENTS ---------- */
.clients-section { background: var(--slate); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
.client-logo {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  min-height: 90px;
}
.client-logo img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(20%); transition: filter 0.2s; }
.client-logo:hover img { filter: grayscale(0%); }

/* ---------- CTA SECTION ---------- */
.cta-section { background: var(--navy-md); padding: 64px 0; }
.cta-box { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-box h2 { color: var(--white); margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 28px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero { background: var(--slate); padding: 72px 0 64px; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-top: 8px; max-width: 680px; }
.page-hero .lede { margin-top: 16px; }

/* ---------- ABOUT PAGE ---------- */
.about-section { padding: 80px 0; }
.about-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.about-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.about-photo img { width: 100%; height: 400px; object-fit: cover; object-position: top; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.about-text strong { color: var(--navy); font-weight: 600; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.skills-section { background: var(--slate); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skill-block {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border);
}
.skill-block h3 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.skill-block p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.skill-tags span {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--navy); color: var(--gold);
  padding: 3px 10px; border-radius: 50px;
}

.edu-list { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--gold); padding-left: 32px; }
.edu-item { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.edu-item:last-child { border-bottom: none; }
.edu-year {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  background: var(--navy); color: var(--gold);
  padding: 4px 12px; border-radius: 50px; white-space: nowrap;
  margin-top: 2px;
}
.edu-item strong { display: block; font-size: 1rem; color: var(--navy); margin-bottom: 4px; font-weight: 600; }
.edu-item p { font-size: 14px; color: var(--muted); }

/* ---------- SERVICES DETAIL PAGE ---------- */
.services-detail { padding: 0 0 80px; }
.service-row {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:first-child { padding-top: 56px; }
.service-row-header { position: sticky; top: 88px; align-self: start; }
.service-num {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem; color: var(--border);
  line-height: 1; margin-bottom: 8px;
}
.service-row-header h2 { font-size: 1.3rem; }
.service-row-body p { color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.service-row-body ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.service-row-body li {
  font-size: 14px; color: var(--muted);
  padding-left: 18px; position: relative;
}
.service-row-body li::before {
  content: '—'; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}
.analysis-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 4px; }
.analysis-block {
  background: var(--slate); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border);
}
.analysis-block h4 { margin-bottom: 12px; color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.analysis-block ul { gap: 6px; margin-bottom: 14px; }
.analysis-block li { font-size: 13px; }

.work-cta-section { background: var(--slate); padding: 56px 0; }
.work-cta-wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.work-cta-wrap h2 { margin-bottom: 8px; }
.work-cta-wrap p { color: var(--muted); font-size: 15px; max-width: 540px; }

/* ---------- CONTACT PAGE ---------- */
.contact-section { padding: 72px 0; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info h2 { margin-bottom: 10px; }
.contact-info > p { color: var(--muted); margin-bottom: 32px; }
.contact-channels { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.contact-channel {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
}
.contact-channel:hover { border-color: var(--gold); background: var(--slate); }
.channel-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--navy); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.channel-icon svg { width: 18px; height: 18px; stroke: var(--gold); }
.contact-channel strong { display: block; font-size: 14px; font-weight: 600; color: var(--navy); }
.contact-channel span { font-size: 13px; color: var(--muted); }
.availability-note { background: var(--slate); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.availability-note h3 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 12px; color: var(--navy); }
.availability-note li { font-size: 14px; color: var(--muted); padding: 5px 0 5px 18px; position: relative; border-bottom: 1px solid var(--border); }
.availability-note li:last-child { border-bottom: none; }
.availability-note li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

.contact-form-wrap h2 { margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a7a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.hidden { display: none; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy); padding: 56px 0 0; }
.footer-wrap {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--white); font-size: 1rem; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 6px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-bottom { padding: 20px 0; }
.footer-bottom span { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 40px; }
  .hero-photo { max-width: 360px; }
  .hero-photo img { height: 300px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; gap: 16px; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .about-wrap { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .about-photo img { height: 300px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; gap: 20px; }
  .service-row-header { position: static; }
  .analysis-blocks { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .work-cta-wrap { flex-direction: column; align-items: flex-start; }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr; }
  .burger { display: flex; }
  .site-nav {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 24px; border-radius: 0; font-size: 15px; }
  .site-nav a.active::after { display: none; }
  .site-header { position: relative; }
}
