/* ============================================================
   Wahab Advisors — Global Stylesheet
   Color Palette:
     --red:       #BC1A2A  (primary accent)
     --red-dark:  #9a1522
     --navy:      #1e2d4d
     --navy-mid:  #354261
     --white:     #ffffff
     --light-bg:  #faf9f5
     --off-white: #fcfbfb
     --text:      #161616
     --muted:     #666666
   ============================================================ */

:root {
  --red:      #BC1A2A;
  --red-dark: #9a1522;
  --navy:     #1e2d4d;
  --navy-mid: #354261;
  --white:    #ffffff;
  --light-bg: #faf9f5;
  --off-white:#fcfbfb;
  --text:     #161616;
  --muted:    #5a5a5a;
  --border:   #e0ddd6;
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif:'Georgia', 'Times New Roman', serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Utilities ──────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.text-red  { color: var(--red); }
.text-navy { color: var(--navy); }
.text-muted{ color: var(--muted); }
.text-center { text-align: center; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.btn {
  display: inline-block;
  padding: .7rem 1.75rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
}

/* Section spacing */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--light-bg); }
.section-dark { background: var(--navy); color: var(--white); }

/* Section label + title group */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.section-title { color: var(--navy); margin-bottom: 1rem; }
.section-dark .section-title { color: var(--white); }
.section-desc { color: var(--muted); max-width: 620px; }
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

/* Divider */
.divider {
  width: 50px; height: 3px;
  background: var(--red);
  margin: 1rem 0 1.5rem;
}
.center .divider { margin: 1rem auto 1.5rem; }

/* ── Header / Nav ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: .02em;
}
.nav-logo-tagline {
  font-size: .68rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: .25rem;
}
.nav-links a {
  display: block;
  padding: .45rem .85rem;
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  border-radius: 3px;
  transition: color .2s, background .2s;
  letter-spacing: .02em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav-links a.active {
  border-bottom: 2px solid var(--red);
  border-radius: 3px 3px 0 0;
}
.nav-cta { margin-left: .75rem; }
.nav-cta a {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 3px !important;
  padding: .45rem 1.1rem !important;
}
.nav-cta a:hover {
  background: var(--red-dark) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #2a3f6e 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 45%;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  opacity: .12;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--red);
}
.hero h1 { margin-bottom: 1.25rem; }
.hero p  { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 2rem;
  backdrop-filter: blur(4px);
}
.hero-stat { margin-bottom: 1.5rem; }
.hero-stat:last-child { margin-bottom: 0; }
.hero-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.hero-stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-top: .25rem;
}
.hero-stat-divider {
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 1.25rem 0;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
}
.page-hero-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.page-hero h1 { margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 580px; font-size: 1.05rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { font-size: .7rem; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  transform: translateY(-3px);
}
.card-icon {
  width: 52px; height: 52px;
  background: rgba(188, 26, 42, .08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.card h3 { color: var(--navy); margin-bottom: .5rem; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Services cards ──────────────────────────────────────── */
.service-card {
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 0 6px 6px 0;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .25s;
}
.service-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.service-card h3 { color: var(--navy); margin-bottom: .4rem; }

/* ── Testimonial ─────────────────────────────────────────── */
.testimonial-block {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 3rem;
  position: relative;
}
.testimonial-block::before {
  content: '\201C';
  position: absolute;
  top: 1rem; left: 2rem;
  font-size: 6rem;
  color: var(--red);
  font-family: var(--font-serif);
  line-height: 1;
  opacity: .6;
}
.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: rgba(255,255,255,.9);
  padding-top: 2rem;
  margin-bottom: 1.5rem;
}
.testimonial-author { font-weight: 700; color: var(--red); }
.testimonial-title  { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--red);
  color: var(--white);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label { font-size: .85rem; opacity: .85; letter-spacing: .05em; }

/* ── Client logos ────────────────────────────────────────── */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.client-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.client-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  border-color: var(--red);
}
.client-name {
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
  margin-bottom: .35rem;
}
.client-detail { font-size: .8rem; color: var(--muted); }
.client-badge {
  display: inline-block;
  margin-bottom: .75rem;
  font-size: 1.8rem;
}

/* ── Timeline ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: .6rem; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: .45rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.timeline-year {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.timeline-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.timeline-org   { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-info-icon {
  width: 44px; height: 44px;
  background: rgba(188,26,42,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .15rem;
}
.contact-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.contact-value { color: var(--text); }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .4rem;
}
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(188,26,42,.1);
}
textarea.form-control { resize: vertical; min-height: 130px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
}
.footer-main {
  padding: 4rem 0 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.footer-logo-row img { height: 36px; filter: brightness(0) invert(1); }
.footer-logo-name { font-weight: 700; font-size: .95rem; color: var(--white); }

.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-links a:hover { color: var(--red); }

.footer-contact-item { display: flex; gap: .75rem; margin-bottom: .75rem; font-size: .9rem; }
.footer-contact-item span:first-child { color: var(--red); }

.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: border-color .2s, background .2s;
  color: rgba(255,255,255,.7);
}
.social-link:hover { border-color: var(--red); background: var(--red); color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-bottom a:hover { color: var(--red); }

/* ── Resume-specific ─────────────────────────────────────── */
.resume-section { margin-bottom: 3rem; }
.resume-section-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--border);
  padding-bottom: .5rem;
  margin-bottom: 1.5rem;
}
.resume-entry { margin-bottom: 1.75rem; }
.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .25rem;
  margin-bottom: .25rem;
}
.resume-title   { font-weight: 700; color: var(--navy); }
.resume-dates   { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.resume-org     { font-size: .9rem; color: var(--red); font-weight: 600; margin-bottom: .4rem; }
.resume-bullets { list-style: none; padding: 0; }
.resume-bullets li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: .3rem;
}
.resume-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: .7rem;
  top: .2rem;
}
.tag {
  display: inline-block;
  background: rgba(188,26,42,.08);
  color: var(--red);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 20px;
  margin: .2rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-inner  { grid-template-columns: 1fr; }
  .hero-card   { display: none; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .grid-4      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem 1.5rem;
    gap: .1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .nav-links.open a { padding: .65rem .75rem; }
  .nav-cta.open { display: block; margin-left: .75rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .resume-entry-header { flex-direction: column; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .btn { padding: .65rem 1.4rem; font-size: .85rem; }
}
