/* ============================================================
   jabeshbagdy.com — style.css
   Design System: Light / Bold Typography / Professional
   ============================================================ */

/* --- Variables --- */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --text: #111111;
  --heading: #000000;
  --accent: #1982C4;
  --accent-dark: #1368a1;
  --muted: #666666;
  --border: #E5E5E5;
  --white: #FFFFFF;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --max-width: 1180px;
  --section-pad: 100px;
  --header-h: 72px;
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; object-fit: contain; }
.logo-fallback {
  display: none;
  width: 44px; height: 44px;
  background: var(--heading);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  letter-spacing: -0.5px;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--heading); }
.main-nav .nav-cta {
  color: var(--accent);
  font-weight: 600;
  border: 1.5px solid var(--accent);
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.main-nav .nav-cta:hover { background: var(--accent); color: var(--white); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 32px 24px;
  gap: 4px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 100px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, #f0f6fc 0%, #e8f3fb 100%);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 108px);
  font-weight: 800;
  line-height: 0.93;
  color: var(--heading);
  letter-spacing: -3px;
  margin-bottom: 24px;
}

.hero-credentials {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 14px;
  font-style: italic;
}

.hero-descriptor {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 44px;
  letter-spacing: 0.2px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Photo */
.hero-photo { position: relative; flex-shrink: 0; }
.photo-frame {
  width: 300px;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
  background: #dce8f0;
  position: relative;
}
.profile-img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #c8dff0, #a8c8e0);
}
.photo-placeholder span {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  letter-spacing: -4px;
}
.photo-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 4px;
}

.hero-scroll-line {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--border));
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--heading);
  color: var(--white);
  border: 2px solid var(--heading);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--heading);
  border: 2px solid var(--heading);
}
.btn-outline:hover { background: var(--heading); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 2px solid var(--border);
  padding: 14px 24px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   SECTIONS — Shared
   ============================================================ */
.section { padding: var(--section-pad) 0; }
.alt-bg { background: var(--bg-alt); }

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 60px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.about-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -2px;
  line-height: 1.05;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.about-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
}
.about-body p:last-of-type { margin-bottom: 48px; }
.about-body strong { color: var(--heading); font-weight: 600; }

.about-stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -2px;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================================
   BUSINESSES
   ============================================================ */
.businesses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.business-card {
  background: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: background 0.2s;
}
.business-card:hover { background: #fafcff; }

.biz-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 20px;
}
.biz-icon {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1;
}
.biz-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}
.biz-tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.biz-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 32px;
  flex: 1;
}
.biz-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.biz-link:hover { border-color: var(--accent); gap: 10px; }

/* ============================================================
   TALKS
   ============================================================ */
.talks-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.talks-left h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.talks-left p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}
.talks-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.event-placeholder {}
.event-card-ph {
  background: var(--bg-alt);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ph-icon { font-size: 28px; }
.event-card-ph p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.event-card-ph p em { color: var(--accent); font-style: normal; font-weight: 500; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}
.blog-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -2px;
  line-height: 1.05;
}
.view-all-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  transition: letter-spacing 0.2s;
}
.view-all-link:hover { letter-spacing: 0.5px; }

.featured-post {
  background: var(--white);
  border-radius: 8px;
  padding: 56px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.featured-post::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.post-tag {
  background: #e6f1fa;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}
.post-date {
  font-size: 13px;
  color: var(--muted);
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.post-subtitle {
  font-size: 17px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 20px;
  font-style: italic;
}
.post-excerpt {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 680px;
}
.post-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--white); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -2.5px;
  line-height: 1.0;
  margin-bottom: 32px;
}
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--accent-dark); }
.contact-note {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}
.contact-note strong { color: var(--heading); }
.social-links { display: flex; flex-direction: column; gap: 12px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f0f6fc;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--heading);
  color: var(--white);
  padding-top: 64px;
}
.footer-inner { display: flex; flex-direction: column; gap: 40px; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-footer .logo-fallback {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.logo-footer .logo-img { filter: invert(1) brightness(2); }

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
  font-style: italic;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.footer-nav a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-disclaimer {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 20px 24px;
}
.footer-disclaimer p {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
.footer-disclaimer strong {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero::before { display: none; }
  .hero-photo { display: flex; justify-content: center; order: -1; }
  .photo-frame { width: 220px; height: 280px; }

  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-heading h2 { position: static; }

  .businesses-grid { grid-template-columns: 1fr; }

  .talks-layout { grid-template-columns: 1fr; gap: 40px; }
  .talks-right { grid-template-columns: 1fr 1fr; }

  .contact-layout { grid-template-columns: 1fr; gap: 48px; }

  .footer-top { flex-direction: column; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; --header-h: 64px; }
  .container { padding: 0 20px; }

  .main-nav { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 64px; }
  .hero-name { letter-spacing: -2px; }

  .about-stats { flex-direction: column; gap: 28px; }

  .talks-right { grid-template-columns: 1fr; }

  .featured-post { padding: 32px 24px; }

  .blog-header { flex-direction: column; align-items: flex-start; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .post-actions { flex-direction: column; }
  .photo-frame { width: 180px; height: 240px; }
}
