/* =============================================
   REEPAL SHAH — Personal Brand Website
   Design: Executive, Minimal, Credibility-first
   ============================================= */

/* ---- GOOGLE FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- DESIGN TOKENS ---- */
:root {
  --navy:        #0f172a;
  --navy-mid:    #1e293b;
  --navy-light:  #334155;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --grey-light:  #f1f5f9;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;
  --gold:        #c49a2e;
  --gold-light:  #fef3c7;
  --blue:        #1d4ed8;
  --border:      #e2e8f0;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w:       1080px;
  --radius:      4px;
  --transition:  0.2s ease;
}

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

/* ---- TYPOGRAPHY ---- */
h1 { font-family: var(--font-serif); font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-family: var(--font-serif); font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 600; line-height: 1.2; }
h3 { font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.3; }
h4 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
p { font-size: 1.05rem; line-height: 1.8; color: var(--text); }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; }

/* ---- NAVIGATION ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: all var(--transition) !important;
}
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 40%, rgba(29, 78, 216, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 80px 32px; }
.hero-eyebrow {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block; width: 32px; height: 1px;
  background: var(--gold);
}
.hero h1 { color: var(--white); max-width: 820px; margin-bottom: 28px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,0.55);
  max-width: 600px; margin-bottom: 52px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--navy);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--gold); color: var(--navy); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }

/* ---- METRICS BAR ---- */
.metrics-bar {
  background: var(--navy-mid);
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.metrics-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  divide: 1px solid rgba(255,255,255,0.06);
}
.metric {
  padding: 36px 24px;
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.metric:last-child { border-right: none; }
.metric-value {
  font-family: var(--font-serif);
  font-size: 2.2rem; font-weight: 700;
  color: var(--gold); line-height: 1;
  margin-bottom: 8px;
}
.metric-label {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ---- SECTION LABELS ---- */
.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: inline-block; width: 24px; height: 1px;
  background: var(--gold);
}

/* ---- INTRO SECTION ---- */
.intro { background: var(--white); }
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.intro-text h2 { margin-bottom: 28px; }
.intro-text p { margin-bottom: 20px; color: var(--text-muted); }
.intro-text p:first-of-type { color: var(--text); font-size: 1.1rem; }
.intro-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue); border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.intro-link:hover { border-color: var(--blue); }
.intro-aside { padding-top: 56px; }
.sector-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tag {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.05em;
  padding: 7px 14px;
  background: var(--grey-light);
  border: 1px solid var(--border);
  border-radius: 2px; color: var(--text-muted);
}
.credential-list { margin-top: 8px; }
.credential-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem; color: var(--text-muted);
}
.credential-item:last-child { border-bottom: none; }
.credential-item strong { color: var(--text); font-weight: 600; }

/* ---- ITEF SECTION ---- */
.itef-section { background: var(--off-white); }
.itef-header { max-width: 700px; margin-bottom: 64px; }
.itef-header h2 { margin-bottom: 20px; }
.itef-header p { color: var(--text-muted); font-size: 1.05rem; }
.itef-layers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.layer-card {
  background: var(--white); padding: 32px 24px;
  transition: background var(--transition);
}
.layer-card:hover { background: var(--navy); }
.layer-card:hover .layer-num,
.layer-card:hover .layer-name,
.layer-card:hover .layer-desc { color: rgba(255,255,255,0.9); }
.layer-card:hover .layer-name { color: var(--gold); }
.layer-num {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 16px;
}
.layer-name {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 600;
  color: var(--text); margin-bottom: 12px;
  line-height: 1.3;
}
.layer-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; }
.itef-cta { margin-top: 40px; }

/* ---- SERVICES SECTION ---- */
.services-section { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); margin-top: 64px; }
.service-card {
  background: var(--white); padding: 48px 36px;
  transition: background var(--transition);
}
.service-card:hover { background: var(--navy); }
.service-card:hover h3,
.service-card:hover p { color: rgba(255,255,255,0.85); }
.service-card:hover .service-icon { color: var(--gold); }
.service-icon {
  font-size: 1.5rem; color: var(--gold);
  margin-bottom: 24px;
}
.service-card h3 { margin-bottom: 16px; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }

/* ---- DARK CTA SECTION ---- */
.cta-section {
  background: var(--navy);
  text-align: center;
  padding: 96px 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 20px; }
.cta-section p { color: rgba(255,255,255,0.5); font-size: 1.05rem; max-width: 560px; margin: 0 auto 48px; }

/* ---- FOOTER ---- */
footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px 0;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem; color: var(--white);
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ---- INNER PAGES ---- */
.page-hero {
  background: var(--navy);
  padding: 160px 0 80px;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.page-hero h1 { color: var(--white); max-width: 720px; margin-bottom: 24px; }
.page-hero p { color: rgba(255,255,255,0.55); font-size: 1.15rem; max-width: 600px; line-height: 1.75; }
.page-content { padding: 80px 0; }
.page-content-inner { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.page-content-inner p { margin-bottom: 24px; color: var(--text-muted); }
.page-content-inner p:first-of-type { font-size: 1.15rem; color: var(--text); }
.page-content-inner h3 { margin: 48px 0 16px; }
.page-content-inner hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ---- ITEF FULL PAGE ---- */
.itef-full-layer {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.itef-full-layer:last-of-type { border-bottom: none; }
.layer-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 16px; }
.layer-badge {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-light);
  padding: 4px 12px; border-radius: 2px;
  white-space: nowrap;
}
.failure-mode {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--grey-light);
  border-left: 3px solid var(--gold);
  font-size: 0.88rem; color: var(--text-muted);
  font-style: italic;
}

/* ---- CONTACT PAGE ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h3 { margin-bottom: 24px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }
.contact-detail { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; }
.contact-item-value { font-size: 0.95rem; color: var(--text); }
.contact-item-value a { color: var(--blue); }
.availability-box { background: var(--navy); color: var(--white); padding: 48px 40px; }
.availability-box h3 { color: var(--white); margin-bottom: 20px; }
.availability-box p { color: rgba(255,255,255,0.55); margin-bottom: 12px; font-size: 0.92rem; }

/* ---- ABOUT PAGE ---- */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; }
.profile-photo-block { margin-bottom: 48px; }
.profile-photo-block img {
  width: 100%;
  max-width: 260px;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15,23,42,0.10);
}
.chapter-list { margin-top: 48px; }
.chapter {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 24px; padding: 28px 0;
  border-top: 1px solid var(--border);
}
.chapter-period { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-light); padding-top: 4px; }
.chapter-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.chapter-detail { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ---- TESTIMONIALS ---- */
.testimonials-section { background: var(--navy); padding: 96px 0; }
.testimonials-header { margin-bottom: 64px; }
.testimonials-header h2 { color: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255,255,255,0.05); }
.testimonial-card { background: var(--navy-mid); padding: 40px 32px; display: flex; flex-direction: column; }
.testimonial-quote {
  font-family: var(--font-serif); font-size: 1rem; line-height: 1.8;
  color: rgba(255,255,255,0.7); margin-bottom: 32px; font-style: italic;
  flex: 1;
}
.testimonial-quote::before { content: '\201C'; font-size: 2rem; color: var(--gold); line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.testimonial-author { font-size: 0.88rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.testimonial-role { font-size: 0.75rem; color: rgba(255,255,255,0.4); line-height: 1.5; }
.testimonial-full { padding: 80px 0; background: var(--white); }
.testimonial-full-card {
  padding: 56px 0; border-bottom: 1px solid var(--border);
}
.testimonial-full-card:last-child { border-bottom: none; }
.testimonial-full-text {
  font-size: 1.05rem; line-height: 1.85; color: var(--text-muted);
  margin-bottom: 32px; font-style: italic;
  border-left: 3px solid var(--gold); padding-left: 28px;
}
.testimonial-full-author { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.testimonial-full-role { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ---- CASE STUDIES ---- */
.case-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); margin: 40px 0 56px;
}
.case-meta-item { background: var(--off-white); padding: 24px 20px; }
.case-meta-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); margin-bottom: 8px; }
.case-meta-value { font-size: 0.92rem; color: var(--text); font-weight: 500; line-height: 1.4; }
.case-results {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); margin: 40px 0;
}
.case-result { background: var(--navy); padding: 32px 28px; }
.case-result-num { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; line-height: 1; }
.case-result-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }
.itef-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-light);
  padding: 5px 12px; border-radius: 2px; margin: 4px 4px 4px 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .itef-layers { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-aside { padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .chapter { grid-template-columns: 100px 1fr; }
}
@media (max-width: 640px) {
  .container, .nav-inner, .hero-inner, .footer-inner { padding: 0 20px; }
  .metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .itef-layers { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
  .hero { padding-top: 64px; }
  .hero-inner { padding: 60px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
