/* ============================================
   THE INTERNAL CONSULTANT™ — Global Stylesheet
   ============================================ */

:root {
  --navy: #0C1B2A;
  --navy-light: #142840;
  --navy-mid: #1A3355;
  --accent: #C8A860;
  --accent-light: #D4BA7A;
  --accent-dark: #A8883E;
  --cream: #F5F0E8;
  --cream-dark: #E8E0D0;
  --white: #FAFAF8;
  --text: #2A2A2A;
  --text-light: #6B6B6B;
  --text-muted: #9A9A9A;
  --max-w: 1200px;
  --max-w-narrow: 800px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); overflow-x: hidden; background: var(--white); }
::selection { background: rgba(200,168,96,0.35); color: var(--navy); }
img { max-width: 100%; display: block; }
a { text-decoration: none; transition: color 0.3s; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp { from { opacity:0; transform:translateY(32px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@keyframes float {
  0%,100% { transform:translateX(-50%) translateY(0); }
  50% { transform:translateX(-50%) translateY(8px); }
}
.anim { opacity:0; transform:translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim.vis { opacity:1; transform:translateY(0); }
.d1 { transition-delay:0.1s; } .d2 { transition-delay:0.2s; } .d3 { transition-delay:0.3s; }
.d4 { transition-delay:0.4s; } .d5 { transition-delay:0.5s; } .d6 { transition-delay:0.6s; }

/* ---- UTILITY ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 32px; }
.text-center { text-align: center; }
.section-label { font-size:11px; letter-spacing:4px; text-transform:uppercase; font-weight:500; display:block; }
.section-label-gold { color: var(--accent); }
.section-label-dark { color: var(--accent-dark); }
.section-title { font-family:'Playfair Display',Georgia,serif; font-size:clamp(32px,4vw,48px); font-weight:700; margin:16px 0 0; line-height:1.15; }
.section-title-white { color: var(--white); }
.section-title-navy { color: var(--navy); }
.section-rule { width:60px; height:2px; background:var(--accent); margin:24px auto 0; }
.section-rule-left { margin:24px 0 0; }
.arrow-svg { display:inline-block; vertical-align:middle; margin-left:4px; }
.check-icon { flex-shrink:0; margin-top:2px; color:var(--accent); }
.check-item { display:flex; align-items:flex-start; gap:12px; }
.check-item span { font-size:15px; line-height:1.5; }

/* ---- BUTTONS ---- */
.btn-gold {
  background:var(--accent); color:var(--navy); border:none;
  padding:16px 36px; font-size:13px; letter-spacing:2px; text-transform:uppercase;
  font-family:'DM Sans',sans-serif; font-weight:700; cursor:pointer;
  transition:all 0.3s; display:inline-flex; align-items:center; gap:10px;
}
.btn-gold:hover { background:var(--accent-light); }
.btn-ghost {
  background:transparent; color:var(--cream); border:1px solid rgba(250,250,248,0.2);
  padding:16px 36px; font-size:13px; letter-spacing:2px; text-transform:uppercase;
  font-family:'DM Sans',sans-serif; font-weight:500; cursor:pointer; transition:all 0.3s;
}
.btn-ghost:hover { border-color:var(--accent); color:var(--accent); }
.btn-navy {
  background:var(--navy); color:var(--accent); border:none;
  padding:16px 36px; font-size:13px; letter-spacing:2px; text-transform:uppercase;
  font-family:'DM Sans',sans-serif; font-weight:700; cursor:pointer;
  transition:all 0.3s; display:inline-flex; align-items:center; gap:10px;
}
.btn-navy:hover { background:var(--navy-light); }
.btn-outline-gold {
  background:transparent; border:1px solid var(--accent); color:var(--accent);
  padding:10px 24px; font-size:12px; letter-spacing:2px; text-transform:uppercase;
  font-family:'DM Sans',sans-serif; font-weight:600; cursor:pointer; transition:all 0.3s;
}
.btn-outline-gold:hover { background:var(--accent); color:var(--navy); }
.btn-outline-navy {
  background:transparent; border:1px solid var(--navy); color:var(--navy);
  padding:14px 32px; font-size:12px; letter-spacing:2px; text-transform:uppercase;
  font-family:'DM Sans',sans-serif; font-weight:600; cursor:pointer; transition:all 0.3s;
}
.btn-outline-navy:hover { background:var(--navy); color:var(--white); }
.btn-wide { width:100%; justify-content:center; }

/* ---- NAVBAR ---- */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:20px 0; transition:all 0.4s ease;
}
.navbar.scrolled {
  background:rgba(12,27,42,0.97); backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(200,168,96,0.15); padding:12px 0;
}
.navbar.solid { background:var(--navy); padding:12px 0; border-bottom:1px solid rgba(200,168,96,0.1); }
.navbar-inner {
  max-width:var(--max-w); margin:0 auto; padding:0 32px;
  display:flex; justify-content:space-between; align-items:center;
}
.logo { display:flex; align-items:center; gap:12px; text-decoration:none; }
.logo-icon {
  width:36px; height:36px; border:2px solid var(--accent);
  display:flex; align-items:center; justify-content:center;
  font-family:'Playfair Display',Georgia,serif; font-size:16px;
  font-weight:700; color:var(--accent); letter-spacing:1px;
}
.logo-text {
  font-family:'Playfair Display',Georgia,serif; font-size:17px;
  font-weight:600; color:var(--white); letter-spacing:0.5px; line-height:1.1;
}
.logo-sub {
  display:block; font-size:11px; letter-spacing:3px; color:var(--accent);
  font-family:'DM Sans',sans-serif; font-weight:400; margin-top:-1px;
}
.nav-links { display:flex; align-items:center; gap:36px; }
.nav-links a { color:var(--cream-dark); font-size:13px; letter-spacing:1.5px; text-transform:uppercase; font-weight:500; }
.nav-links a:hover, .nav-links a.active { color:var(--accent); }
.mobile-toggle { display:none; background:none; border:none; color:var(--white); cursor:pointer; padding:8px; }
.mobile-menu {
  display:none; position:fixed; inset:0; z-index:999;
  background:rgba(12,27,42,0.98); flex-direction:column;
  align-items:center; justify-content:center; gap:32px;
}
.mobile-menu.open { display:flex; }
.mobile-menu a { color:var(--cream); font-size:20px; letter-spacing:3px; text-transform:uppercase; }

/* ---- PAGE HERO (subpages) ---- */
.page-hero {
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-light) 50%,var(--navy-mid) 100%);
  padding:160px 32px 80px; position:relative; overflow:hidden;
}
.page-hero-circle {
  position:absolute; border:1px solid var(--accent); border-radius:50%; opacity:0.04;
}
.page-hero-circle:nth-child(1) { top:-10%; right:-5%; width:500px; height:500px; }
.page-hero-circle:nth-child(2) { bottom:-20%; left:-8%; width:600px; height:600px; }
.page-hero .container { position:relative; z-index:1; }
.page-hero h1 {
  font-family:'Playfair Display',Georgia,serif; font-size:clamp(36px,5vw,56px);
  font-weight:700; color:var(--white); margin:16px 0 0; line-height:1.1;
}
.page-hero h1 span { color:var(--accent); }
.page-hero-rule { width:80px; height:2px; background:var(--accent); margin:28px 0; }
.page-hero-desc { font-size:clamp(16px,2vw,20px); line-height:1.7; color:var(--cream-dark); max-width:640px; }

/* ---- SECTIONS ---- */
.section-cream { background:var(--cream); padding:100px 32px; }
.section-white { background:var(--white); padding:100px 32px; }
.section-navy { background:var(--navy); padding:100px 32px; }
.section-gradient {
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 100%);
  padding:100px 32px; position:relative;
}

/* ---- PILLAR CARDS ---- */
.pillar-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.pillar-card {
  background:var(--white); padding:40px 32px; border:1px solid var(--cream-dark);
  transition:all 0.4s; position:relative; overflow:hidden;
}
.pillar-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--accent); transform:scaleX(0); transform-origin:left;
  transition:transform 0.4s;
}
.pillar-card:hover { transform:translateY(-4px); box-shadow:0 16px 40px rgba(0,0,0,0.08); }
.pillar-card:hover::before { transform:scaleX(1); }
.pillar-num-lg {
  font-family:'Playfair Display',Georgia,serif; font-size:48px;
  font-weight:700; color:rgba(200,168,96,0.2); line-height:1; margin-bottom:16px;
}
.pillar-card h3 {
  font-family:'Playfair Display',Georgia,serif; font-size:22px;
  font-weight:700; color:var(--navy); margin:0 0 12px;
}
.pillar-card p { font-size:15px; line-height:1.7; color:var(--text-light); margin:0 0 20px; }
.pillar-chapters { margin-top:16px; padding-top:16px; border-top:1px solid var(--cream-dark); }
.pillar-chapters h4 {
  font-size:11px; letter-spacing:2px; text-transform:uppercase;
  color:var(--accent-dark); font-weight:600; margin-bottom:12px;
}
.pillar-chapters li {
  list-style:none; font-size:14px; color:var(--text-light);
  padding:6px 0; padding-left:16px; position:relative; line-height:1.5;
}
.pillar-chapters li::before {
  content:''; position:absolute; left:0; top:13px;
  width:6px; height:6px; background:var(--accent); border-radius:50%;
}

/* ---- BOOK PAGE ---- */
.book-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin:48px 0; }
.book-stat { text-align:center; padding:24px 16px; background:rgba(200,168,96,0.06); }
.book-stat-num {
  font-family:'Playfair Display',Georgia,serif; font-size:36px;
  font-weight:700; color:var(--accent); display:block;
}
.book-stat-label { font-size:12px; letter-spacing:1.5px; text-transform:uppercase; color:var(--text-light); margin-top:4px; display:block; }

.toc-section { margin:32px 0; }
.toc-part {
  padding:24px 0; border-bottom:1px solid var(--cream-dark);
  display:grid; grid-template-columns:80px 1fr; gap:24px; align-items:start;
}
.toc-part-num {
  font-family:'Playfair Display',Georgia,serif; font-size:14px;
  font-weight:700; color:var(--accent); letter-spacing:1px;
}
.toc-part-title {
  font-family:'Playfair Display',Georgia,serif; font-size:20px;
  font-weight:700; color:var(--navy); margin:0 0 8px;
}
.toc-part-desc { font-size:14px; line-height:1.7; color:var(--text-light); margin:0 0 12px; }
.toc-chapters { display:flex; gap:16px; flex-wrap:wrap; }
.toc-chapter {
  font-size:13px; color:var(--text-light); padding:4px 12px;
  background:var(--cream); border-radius:2px;
}

/* ---- COURSE PAGE ---- */
.courses-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.course-card {
  background:var(--white); padding:40px 32px; border:1px solid var(--cream-dark);
  display:flex; flex-direction:column; transition:transform 0.3s,box-shadow 0.3s;
}
.course-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,0.06); }
.course-card.featured {
  background:var(--navy); border:none; padding:48px 32px;
  transform:scale(1.04); box-shadow:0 24px 48px rgba(12,27,42,0.2); position:relative;
}
.course-card.featured::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,var(--accent),var(--accent-light));
}
.course-card.featured:hover { transform:scale(1.06); }
.course-label { font-size:10px; letter-spacing:4px; text-transform:uppercase; font-weight:600; }
.course-name { font-family:'Playfair Display',Georgia,serif; font-size:24px; font-weight:700; margin:12px 0 8px; }
.course-price { font-family:'Playfair Display',Georgia,serif; font-size:32px; font-weight:700; color:var(--accent); margin:0 0 16px; }
.course-desc { font-size:14px; line-height:1.7; margin:0 0 24px; }
.course-features { flex:1; display:flex; flex-direction:column; gap:12px; margin-bottom:28px; }
.course-features .check-item span { font-size:14px; }
.course-btn {
  width:100%; padding:14px; font-size:12px; letter-spacing:2px;
  text-transform:uppercase; font-family:'DM Sans',sans-serif; font-weight:700;
  cursor:pointer; transition:all 0.3s; border:none;
}
.course-btn-gold { background:var(--accent); color:var(--navy); }
.course-btn-gold:hover { background:var(--accent-light); }
.course-btn-outline { background:transparent; color:var(--navy); border:1px solid var(--navy); }
.course-btn-outline:hover { background:var(--navy); color:var(--white); }

/* Course detail sections */
.curriculum-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.module-card {
  padding:32px; background:var(--white); border:1px solid var(--cream-dark); transition:all 0.3s;
}
.module-card:hover { border-color:var(--accent); }
.module-num { font-size:11px; letter-spacing:3px; color:var(--accent); text-transform:uppercase; font-weight:600; }
.module-title { font-family:'Playfair Display',Georgia,serif; font-size:18px; font-weight:700; color:var(--navy); margin:8px 0 12px; }
.module-desc { font-size:14px; line-height:1.7; color:var(--text-light); }

/* FAQ */
.faq-item { border-bottom:1px solid var(--cream-dark); padding:24px 0; cursor:pointer; }
.faq-question {
  font-family:'Playfair Display',Georgia,serif; font-size:18px;
  font-weight:600; color:var(--navy); display:flex; justify-content:space-between;
  align-items:center; gap:16px;
}
.faq-answer {
  font-size:15px; line-height:1.8; color:var(--text-light);
  max-height:0; overflow:hidden; transition:max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer { max-height:300px; padding-top:16px; }
.faq-toggle { font-size:24px; color:var(--accent); transition:transform 0.3s; flex-shrink:0; }
.faq-item.open .faq-toggle { transform:rotate(45deg); }

/* ---- BLOG ---- */
.blog-grid-full { display:grid; grid-template-columns:repeat(2,1fr); gap:32px; }
.blog-card {
  border:1px solid var(--cream-dark); transition:all 0.3s; background:var(--white); overflow:hidden;
}
.blog-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,0.06); border-color:var(--accent); }
.blog-card-img {
  height:200px; background:var(--navy); display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.blog-card-img-pattern {
  position:absolute; inset:0; opacity:0.06;
  background:repeating-linear-gradient(45deg,transparent,transparent 20px,var(--accent) 20px,var(--accent) 21px);
}
.blog-card-img span {
  font-family:'Playfair Display',Georgia,serif; font-size:48px;
  font-weight:700; color:rgba(200,168,96,0.15); position:relative;
}
.blog-card-body { padding:28px; }
.blog-card-meta { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.blog-cat { font-size:10px; letter-spacing:3px; color:var(--accent-dark); text-transform:uppercase; font-weight:600; }
.blog-time { font-size:12px; color:var(--text-muted); }
.blog-card h3 {
  font-family:'Playfair Display',Georgia,serif; font-size:20px;
  font-weight:600; color:var(--navy); line-height:1.4; margin:0 0 12px;
}
.blog-card p { font-size:14px; line-height:1.7; color:var(--text-light); margin:0; }
.blog-featured {
  grid-column:span 2; display:grid; grid-template-columns:1fr 1fr;
}
.blog-featured .blog-card-img { height:100%; min-height:300px; }

/* Blog sidebar */
.blog-layout { display:grid; grid-template-columns:1fr 320px; gap:48px; }
.sidebar-box { background:var(--cream); padding:32px; margin-bottom:32px; }
.sidebar-box h4 {
  font-family:'Playfair Display',Georgia,serif; font-size:18px;
  font-weight:700; color:var(--navy); margin:0 0 16px;
}
.sidebar-topics { display:flex; flex-wrap:wrap; gap:8px; }
.sidebar-topic {
  padding:6px 14px; font-size:12px; letter-spacing:1px; text-transform:uppercase;
  border:1px solid var(--cream-dark); color:var(--text-light); background:var(--white);
  cursor:pointer; transition:all 0.3s;
}
.sidebar-topic:hover { border-color:var(--accent); color:var(--accent); }

/* ---- ABOUT PAGE ---- */
.about-hero-grid { display:grid; grid-template-columns:1fr 1.5fr; gap:64px; align-items:center; }
.about-portrait {
  background:var(--navy); aspect-ratio:3/4; display:flex;
  align-items:center; justify-content:center; flex-direction:column; gap:16px;
  box-shadow:24px 24px 0 rgba(200,168,96,0.12); position:relative;
}
.about-portrait::before {
  content:''; position:absolute; top:16px; left:16px; right:16px; bottom:16px;
  border:1px solid rgba(200,168,96,0.2);
}
.about-avatar-lg {
  width:120px; height:120px; border-radius:50%; border:2px solid var(--accent);
  display:flex; align-items:center; justify-content:center;
  font-family:'Playfair Display',Georgia,serif; font-size:40px;
  color:var(--accent); font-weight:700; position:relative;
}
.timeline { position:relative; padding-left:32px; }
.timeline::before {
  content:''; position:absolute; left:7px; top:8px; bottom:8px;
  width:1px; background:var(--cream-dark);
}
.timeline-item { position:relative; padding:0 0 40px 0; }
.timeline-item:last-child { padding-bottom:0; }
.timeline-item::before {
  content:''; position:absolute; left:-29px; top:8px;
  width:11px; height:11px; border-radius:50%; background:var(--accent); border:2px solid var(--white);
}
.timeline-year {
  font-size:12px; letter-spacing:2px; color:var(--accent-dark);
  text-transform:uppercase; font-weight:600; margin-bottom:4px;
}
.timeline-title {
  font-family:'Playfair Display',Georgia,serif; font-size:18px;
  font-weight:700; color:var(--navy); margin-bottom:6px;
}
.timeline-desc { font-size:14px; line-height:1.7; color:var(--text-light); }

.credentials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.credential-card { padding:32px; background:var(--white); border:1px solid var(--cream-dark); text-align:center; }
.credential-card h4 {
  font-family:'Playfair Display',Georgia,serif; font-size:18px;
  font-weight:700; color:var(--navy); margin:0 0 8px;
}
.credential-card p { font-size:14px; color:var(--text-light); line-height:1.6; }
.credential-card .cred-abbr {
  display:block; font-size:11px; letter-spacing:2px; color:var(--accent);
  text-transform:uppercase; font-weight:600; margin-bottom:12px;
}

/* ---- CTA SECTION ---- */
.cta-bg { position:absolute; top:20%; left:50%; width:500px; height:500px; border:1px solid var(--accent); border-radius:50%; transform:translate(-50%,-50%); opacity:0.03; }
.cta-form { display:flex; gap:12px; max-width:480px; margin:0 auto; }
.cta-input {
  flex:1; padding:16px 20px; background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15); color:var(--white);
  font-family:'DM Sans',sans-serif; font-size:14px; outline:none; transition:border-color 0.3s;
}
.cta-input:focus { border-color:var(--accent); }
.cta-input::placeholder { color:var(--text-muted); }

/* ---- FOOTER ---- */
.footer { background:var(--navy); border-top:1px solid rgba(255,255,255,0.06); padding:60px 32px 40px; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:48px; margin-bottom:48px; }
.footer-brand p { font-size:13px; color:var(--text-muted); line-height:1.7; max-width:280px; margin-top:16px; }
.footer-col h4 { font-size:11px; letter-spacing:3px; color:var(--accent); text-transform:uppercase; margin:0 0 20px; font-weight:600; }
.footer-col a { display:block; font-size:14px; color:var(--text-muted); margin-bottom:12px; }
.footer-col a:hover { color:var(--cream-dark); }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.06); padding-top:24px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
}
.footer-bottom span { font-size:12px; color:var(--text-muted); }
.footer-bottom-links { display:flex; gap:24px; }
.footer-bottom-links a { font-size:12px; color:var(--text-muted); }
.footer-bottom-links a:hover { color:var(--accent); }

/* ---- RESPONSIVE ---- */
@media (max-width:1024px) {
  .pillar-grid { grid-template-columns:repeat(2,1fr); }
  .curriculum-grid { grid-template-columns:1fr; }
  .blog-featured { grid-column:span 1; grid-template-columns:1fr; }
  .blog-layout { grid-template-columns:1fr; }
}
@media (max-width:900px) {
  .nav-links { display:none; }
  .mobile-toggle { display:block; }
  .about-hero-grid { grid-template-columns:1fr; }
  .about-portrait { max-width:320px; }
  .courses-grid { grid-template-columns:1fr; }
  .course-card.featured { transform:none; }
  .course-card.featured:hover { transform:translateY(-4px); }
  .blog-grid-full { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .cta-form { flex-direction:column; }
  .book-stats { grid-template-columns:repeat(2,1fr); }
  .credentials-grid { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  .pillar-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .book-stats { grid-template-columns:1fr; }
  .toc-part { grid-template-columns:1fr; }
}
