/*
Theme Name: Timmy van der Mescht CFE
Theme URI: https://timmyvdm.co.za
Author: Obscape
Author URI: https://obscape.com
Description: Custom WordPress theme for Timmy van der Mescht — Certified Fraud Examiner & Private Investigator. Navy and gold brand with blog support.
Version: 1.0
License: Private
Text Domain: timmyvdm
*/

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0D1B2A;
  --steel: #1B3A4B;
  --blue: #3D7EA6;
  --gold: #C4961A;
  --gold-light: #D4A82A;
  --light-bg: #F0F4F8;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --gray: #5A6775;
  --light-gray: #E8ECF0;
  /* Blog-specific (from blog.html) */
  --navy2: #1a2e4a;
  --navy3: #243a5e;
  --gold2: #e0a83c;
  --cream: #f5f0e8;
  --muted: #6b7a8d;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--black); line-height: 1.6; background: var(--white); -webkit-font-smoothing: antialiased; }

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 27, 42, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 150, 26, 0.3);
  transition: all 0.3s ease;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center; height: 70px;
}
.nav-brand { color: var(--white); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.05em; text-decoration: none; }
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem;
  font-weight: 400; letter-spacing: 0.02em; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.current { color: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--navy); padding: 0.5rem 1.2rem;
  border-radius: 4px; font-weight: 600; font-size: 0.85rem;
  text-decoration: none; transition: all 0.2s;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }

/* ── HERO (Homepage) ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 50%, #1a3040 100%);
  min-height: 100vh; display: flex; align-items: center; padding: 120px 2rem 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; color: var(--gold); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.5rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold);
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white); line-height: 1.15; margin-bottom: 1.5rem; max-width: 700px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,0.7); max-width: 580px;
  line-height: 1.7; margin-bottom: 2.5rem; font-weight: 300;
}
.hero-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.badge {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  padding: 0.6rem 1rem; border-radius: 6px;
  color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 500;
}
.badge-icon { color: var(--gold); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--navy); padding: 0.9rem 2rem;
  border: none; border-radius: 6px; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; text-decoration: none; transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196,150,26,0.3); }
.btn-outline {
  background: transparent; color: var(--white); padding: 0.9rem 2rem;
  border: 2px solid rgba(255,255,255,0.3); border-radius: 6px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none; transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── STATS BAR ── */
.stats { background: var(--white); border-bottom: 1px solid var(--light-gray); padding: 2rem 0; }
.stats-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center;
}
.stat-number { font-family: 'Playfair Display', Georgia, serif; font-size: 2.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--gray); margin-top: 0.3rem; font-weight: 500; }

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 2.2rem; color: var(--navy); margin-bottom: 1rem; }
.section-header p { color: var(--gray); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-eyebrow {
  display: inline-block; color: var(--gold); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.8rem;
}

/* ── ABOUT ── */
.about-section { background: var(--light-bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 1rem; font-weight: 700; }
.about-text p { color: var(--gray); margin-bottom: 1.2rem; line-height: 1.8; }
.about-highlight {
  background: var(--white); border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem; margin-top: 2rem; border-radius: 0 8px 8px 0;
}
.about-highlight p { color: var(--steel); font-weight: 500; margin: 0; font-style: italic; }
.credentials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.credential-card {
  background: var(--white); border-radius: 10px; padding: 1.8rem;
  border: 1px solid var(--light-gray); text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.credential-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.credential-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.credential-value { font-family: 'Playfair Display', Georgia, serif; font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.credential-label { font-size: 0.8rem; color: var(--gray); margin-top: 0.3rem; line-height: 1.4; }

/* ── SERVICES ── */
.services-section { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.service-card {
  background: var(--light-bg); border-radius: 12px; padding: 2.5rem;
  border: 1px solid transparent; transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gold); transform: scaleX(0);
  transition: transform 0.3s; transform-origin: left;
}
.service-card:hover { border-color: var(--light-gray); background: var(--white); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 0.8rem; font-weight: 700; }
.service-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 1.2rem; line-height: 1.7; }
.service-list { list-style: none; padding: 0; }
.service-list li { padding: 0.3rem 0; padding-left: 1.2rem; position: relative; color: var(--gray); font-size: 0.88rem; }
.service-list li::before { content: '\25A0'; position: absolute; left: 0; color: var(--gold); font-size: 0.6rem; top: 0.55rem; }

/* ── PROCESS ── */
.process-section { background: var(--navy); color: var(--white); }
.process-section .section-header h2 { color: var(--white); }
.process-section .section-header p { color: rgba(255,255,255,0.6); }
.process-section .section-eyebrow { color: var(--gold); }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.process-step { text-align: center; position: relative; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(196,150,26,0.15); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; font-weight: 700; color: var(--gold);
}
.process-step h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 0.5rem; font-weight: 600; }
.process-step p { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── CERTIFICATIONS ── */
.certs-section { background: var(--light-bg); }
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cert-card {
  background: var(--white); border-radius: 10px; padding: 1.5rem;
  border: 1px solid var(--light-gray); display: flex; align-items: flex-start; gap: 1rem;
  transition: transform 0.2s;
}
.cert-card:hover { transform: translateY(-2px); }
.cert-icon {
  width: 44px; height: 44px; border-radius: 8px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--gold); font-weight: 700; font-size: 0.75rem;
}
.cert-info h4 { font-size: 0.9rem; color: var(--navy); font-weight: 600; margin-bottom: 0.2rem; }
.cert-info p { font-size: 0.8rem; color: var(--gray); }

/* ── CONTACT / CTA ── */
.contact-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  padding: 5rem 2rem; text-align: center;
}
.contact-section h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 2.2rem; color: var(--white); margin-bottom: 1rem; }
.contact-section p { color: rgba(255,255,255,0.7); max-width: 550px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.contact-methods { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.contact-method { text-align: center; }
.contact-method-label { color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.contact-method-value { color: var(--gold); font-size: 1.2rem; font-weight: 600; }
.contact-method a { color: var(--gold); text-decoration: none; }
.contact-method a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.site-footer {
  background: #060d16; padding: 2rem;
  text-align: center; color: rgba(255,255,255,0.4); font-size: 0.82rem;
}
.site-footer span { color: var(--gold); }

/* ══════════════════════════════════════════
   BLOG STYLES
   ══════════════════════════════════════════ */

/* Blog hero (smaller than homepage) */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 50%, #1a3040 100%);
  padding: 140px 2rem 60px; text-align: center; position: relative; overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196,150,26,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero .hero-eyebrow { border-bottom: none; font-size: 0.75rem; letter-spacing: 0.2em; }
.blog-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--white); margin: 0 auto 1rem; }
.blog-hero h1 em { font-style: italic; color: var(--gold); }
.blog-hero p { color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; font-weight: 300; }

/* Category filter bar */
.filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; padding: 2.5rem 2rem 0; background: var(--white); }
.filter-btn {
  background: transparent; border: 1px solid var(--light-gray); color: var(--gray);
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.45rem 1.1rem; border-radius: 4px; cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold); border-color: var(--gold); color: var(--navy);
}

/* Blog grid */
.blog-grid-section { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 5rem; }

/* Featured post (latest) */
.featured-post {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--light-bg); border: 1px solid var(--light-gray);
  border-radius: 8px; overflow: hidden; margin-bottom: 3rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.featured-post:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.featured-post a { text-decoration: none; color: inherit; }
.featured-img {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  min-height: 340px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.feat-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(196,150,26,0.06) 0px, rgba(196,150,26,0.06) 1px, transparent 1px, transparent 28px);
}
.feat-badge {
  position: absolute; top: 1.5rem; left: 1.5rem;
  background: var(--gold); color: var(--navy);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 3px; font-weight: 600;
}
.feat-numeral {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 7rem; font-weight: 700; color: rgba(196,150,26,0.12); line-height: 1;
}
.featured-body { padding: 2.8rem; display: flex; flex-direction: column; justify-content: center; }

/* Post card shared styles */
.post-category {
  display: inline-block; color: var(--gold); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.8rem;
}
.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem; font-weight: 700; line-height: 1.25;
  margin-bottom: 1rem; color: var(--navy);
}
.post-excerpt { font-size: 0.92rem; color: var(--gray); line-height: 1.75; margin-bottom: 1.6rem; font-weight: 300; }
.post-meta { display: flex; align-items: center; gap: 0.8rem; font-size: 0.8rem; color: var(--gray); }
.post-meta .dot { color: var(--gold); font-size: 0.5rem; }
.read-more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; color: var(--gold);
  text-decoration: none; margin-top: 1.5rem; transition: gap 0.2s;
}
.read-more:hover { gap: 0.85rem; }

/* Post cards grid */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card {
  background: var(--light-bg); border: 1px solid var(--light-gray);
  border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.post-card a { text-decoration: none; color: inherit; }
.card-img {
  height: 160px; background: linear-gradient(135deg, var(--navy), var(--steel));
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.card-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(196,150,26,0.06) 0px, rgba(196,150,26,0.06) 1px, transparent 1px, transparent 22px);
}
.card-accent { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body .post-title { font-size: 1.05rem; margin-bottom: 0.7rem; }
.card-body .post-excerpt { font-size: 0.84rem; margin-bottom: auto; }
.card-footer { padding: 0 1.5rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.tag {
  background: rgba(196,150,26,0.12); color: var(--gold);
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 3px; font-weight: 600;
}
.card-read { font-size: 0.78rem; color: var(--gray); }

/* Single post */
.single-post-content {
  max-width: 760px; margin: 0 auto; padding: 3rem 2rem 5rem;
}
.single-post-content h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; color: var(--navy); margin: 2.5rem 0 1rem; }
.single-post-content h3 { font-size: 1.25rem; color: var(--navy); margin: 2rem 0 0.8rem; font-weight: 700; }
.single-post-content p { color: var(--gray); line-height: 1.9; margin-bottom: 1.3rem; font-size: 1.02rem; }
.single-post-content ul, .single-post-content ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--gray); }
.single-post-content li { padding: 0.3rem 0; line-height: 1.8; font-size: 0.95rem; }
.single-post-content blockquote {
  border-left: 4px solid var(--gold); padding: 1.2rem 1.5rem; margin: 2rem 0;
  background: var(--light-bg); border-radius: 0 8px 8px 0;
}
.single-post-content blockquote p { color: var(--steel); font-style: italic; font-weight: 500; margin-bottom: 0; }
.single-post-content strong { color: var(--navy); }

/* Author box */
.author-box {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--light-bg); border-radius: 8px; padding: 1.5rem;
  margin-top: 3rem; border: 1px solid var(--light-gray);
}
.author-avatar {
  width: 56px; height: 56px; background: var(--navy); border-radius: 50%;
  border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 700;
}
.author-info h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 0.2rem; }
.author-info p { font-size: 0.82rem; color: var(--gray); margin: 0; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 2rem 0 4rem; }
.pagination a, .pagination span {
  padding: 0.5rem 1rem; border: 1px solid var(--light-gray); border-radius: 4px;
  font-size: 0.85rem; color: var(--gray); text-decoration: none; transition: all 0.2s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 600; }

/* Newsletter CTA */
.newsletter {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  border-top: 1px solid rgba(196,150,26,0.25); padding: 4rem 2rem; text-align: center;
}
.newsletter h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 0.7rem; }
.newsletter p { color: rgba(255,255,255,0.5); font-size: 0.92rem; margin-bottom: 2rem; font-weight: 300; }

/* ── RESPONSIVE ── */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 70px; left: 0; right: 0; background: var(--navy);
    padding: 1.5rem 2rem; gap: 1rem; border-bottom: 1px solid rgba(196,150,26,0.3);
  }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps > :last-child { grid-column: span 2; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { min-height: 200px; }
}
@media (max-width: 600px) {
  .hero { padding: 100px 1.5rem 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-badges { gap: 0.8rem; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps > :last-child { grid-column: span 1; }
  .contact-methods { flex-direction: column; gap: 1.5rem; }
  .credentials-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 120px 1.5rem 40px; }
}
