/*
Theme Name:   Justin Richards Child
Description:  Child theme for Dr Justin Richards — Executive Coach & Board Advisor
Template:     twentytwentyfour
Version:      1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Mono:wght@300;400&display=swap');

body.page-template-jr-home .wp-site-blocks > header,
body.page-template-jr-home .wp-site-blocks > footer { display: none; }
body.page-template-jr-home { margin: 0; padding: 0; }

:root {

    --ink: #0e0e0c;
    --paper: #f5f2ec;
    --slate: #2b2e35;
    --steel: #4a5262;
    --mist: #c8c5bc;
    --accent: #8b1f1f;
    --accent-light: #b94040;
    --gold: #b89050;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --mono: 'DM Mono', monospace;
  
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --ink: #0e0e0c;
    --paper: #f5f2ec;
    --slate: #2b2e35;
    --steel: #4a5262;
    --mist: #c8c5bc;
    --accent: #8b1f1f;
    --accent-light: #b94040;
    --gold: #b89050;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --mono: 'DM Mono', monospace;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--serif);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.4rem 4rem;
    background: rgba(245, 242, 236, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 31, 31, 0.12);
  }
  .nav-brand {
    font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--steel); font-family: var(--mono); font-weight: 300;
  }
  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a {
    font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--steel); text-decoration: none;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--accent); }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
  }

  .hero-left {
    background: var(--slate);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 6rem 4rem 5rem;
    position: relative;
  }

  .hero-left::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(255,255,255,0.03) 59px,
      rgba(255,255,255,0.03) 60px
    );
  }

  .hero-eyebrow {
    font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--accent-light);
    margin-bottom: 1.5rem; position: relative; z-index: 1;
  }

  .hero-title {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 300; line-height: 1.08;
    color: #f0ede6; position: relative; z-index: 1;
    letter-spacing: -0.01em;
  }
  .hero-title em {
    font-style: italic; color: var(--gold);
  }

  .hero-rule {
    width: 48px; height: 1px;
    background: var(--accent); margin: 2rem 0;
    position: relative; z-index: 1;
  }

  .hero-sub {
    font-size: 1.05rem; font-weight: 300;
    color: var(--mist); max-width: 36ch;
    line-height: 1.7; position: relative; z-index: 1;
  }

  .hero-cta {
    display: inline-flex; align-items: center; gap: 0.75rem;
    margin-top: 2.5rem;
    font-family: var(--mono); font-size: 0.72rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: #f0ede6; text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.25rem;
    transition: color 0.2s, border-color 0.2s;
    position: relative; z-index: 1;
  }
  .hero-cta:hover { color: var(--gold); border-color: var(--gold); }
  .hero-cta::after { content: '→'; }

  .hero-right {
    background: var(--paper);
    display: flex; flex-direction: column; justify-content: center;
    padding: 8rem 4rem 5rem 5rem;
    position: relative;
  }

  .hero-stat-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem; margin-top: auto;
  }

  .stat-item { border-top: 1px solid var(--mist); padding-top: 1rem; }
  .stat-num {
    font-size: 2.6rem; font-weight: 300; color: var(--accent);
    line-height: 1; letter-spacing: -0.02em;
  }
  .stat-label {
    font-family: var(--mono); font-size: 0.65rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--steel); margin-top: 0.4rem;
  }

  .hero-portrait-label {
    position: absolute; bottom: 3rem; right: 4rem;
    font-family: var(--mono); font-size: 0.62rem;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--mist); writing-mode: vertical-rl;
  }

  /* ── SECTION COMMON ── */
  section { padding: 7rem 0; }

  .section-inner {
    max-width: 1180px; margin: 0 auto; padding: 0 4rem;
  }

  .section-tag {
    font-family: var(--mono); font-size: 0.68rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.75rem;
  }
  .section-tag::after {
    content: ''; flex: 0 0 32px; height: 1px; background: var(--accent);
  }

  .section-heading {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300; line-height: 1.15;
    letter-spacing: -0.01em;
  }

  /* ── ABOUT ── */
  .about { background: var(--ink); color: var(--paper); }
  .about .section-tag { color: var(--gold); }
  .about .section-tag::after { background: var(--gold); }

  .about-grid {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 6rem; align-items: start; margin-top: 4rem;
  }

  .about-pull {
    font-size: 1.5rem; font-weight: 300; font-style: italic;
    line-height: 1.5; color: var(--mist);
    border-left: 2px solid var(--accent);
    padding-left: 2rem;
  }

  .about-body p {
    font-size: 1.1rem; font-weight: 300;
    color: #c8c5bc; line-height: 1.85;
    margin-bottom: 1.4rem;
  }
  .about-body p strong {
    color: var(--paper); font-weight: 400;
  }

  .credentials {
    margin-top: 3rem;
    display: flex; flex-direction: column; gap: 0.8rem;
  }
  .credential-row {
    display: flex; align-items: baseline;
    gap: 1rem; border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.8rem;
  }
  .credential-year {
    font-family: var(--mono); font-size: 0.65rem;
    color: var(--accent-light); letter-spacing: 0.1em;
    flex: 0 0 3rem;
  }
  .credential-text {
    font-size: 0.9rem; color: var(--mist); font-weight: 300;
  }

  /* ── SERVICES ── */
  .services { background: var(--paper); }

  .services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; margin-top: 4rem;
    border: 1px solid var(--mist);
  }

  .service-card {
    padding: 3rem 2.5rem;
    border-right: 1px solid var(--mist);
    position: relative;
    transition: background 0.3s;
  }
  .service-card:last-child { border-right: none; }
  .service-card:hover { background: rgba(139,31,31,0.03); }

  .service-num {
    font-family: var(--mono); font-size: 0.6rem;
    letter-spacing: 0.2em; color: var(--accent);
    margin-bottom: 2rem;
  }
  .service-title {
    font-size: 1.5rem; font-weight: 300;
    line-height: 1.2; margin-bottom: 1.2rem;
  }
  .service-body {
    font-size: 0.95rem; font-weight: 300;
    color: var(--steel); line-height: 1.75;
  }
  .service-tags {
    margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem;
  }
  .tag {
    font-family: var(--mono); font-size: 0.6rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    border: 1px solid var(--mist); padding: 0.3rem 0.7rem;
    color: var(--steel);
  }

  /* ── PHILOSOPHY ── */
  .philosophy {
    background: var(--accent);
    padding: 6rem 0;
  }
  .philosophy .section-inner {
    display: grid; grid-template-columns: 1fr 2fr;
    gap: 6rem; align-items: center;
  }
  .philosophy .section-tag { color: rgba(255,255,255,0.6); }
  .philosophy .section-tag::after { background: rgba(255,255,255,0.4); }
  .philosophy .section-heading { color: #fff; }

  .philosophy-quote {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 300; font-style: italic;
    color: rgba(255,255,255,0.92);
    line-height: 1.5;
    border-left: 2px solid rgba(255,255,255,0.4);
    padding-left: 2rem;
  }

  /* ── TRACK RECORD ── */
  .track { background: #f0ede6; }

  .track-timeline {
    margin-top: 4rem;
    display: flex; flex-direction: column;
  }

  .track-item {
    display: grid; grid-template-columns: 9rem 1fr;
    gap: 2rem; padding: 2rem 0;
    border-top: 1px solid var(--mist);
    position: relative;
  }

  .track-date {
    font-family: var(--mono); font-size: 0.68rem;
    letter-spacing: 0.1em; color: var(--accent);
    padding-top: 0.2rem;
  }
  .track-content-title {
    font-size: 1.15rem; font-weight: 400;
    margin-bottom: 0.4rem;
  }
  .track-content-body {
    font-size: 0.95rem; font-weight: 300;
    color: var(--steel); line-height: 1.7;
  }

  /* ── CONTACT ── */
  .contact { background: var(--slate); color: var(--paper); }
  .contact .section-tag { color: var(--gold); }
  .contact .section-tag::after { background: var(--gold); }
  .contact .section-heading { color: #f0ede6; }

  .contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6rem; margin-top: 4rem; align-items: start;
  }

  .contact-intro {
    font-size: 1.15rem; font-weight: 300;
    color: var(--mist); line-height: 1.8;
  }

  .contact-details { display: flex; flex-direction: column; gap: 1.5rem; }

  .contact-item { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; }
  .contact-item-label {
    font-family: var(--mono); font-size: 0.62rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent-light); margin-bottom: 0.4rem;
  }
  .contact-item-value {
    font-size: 1rem; font-weight: 300; color: #f0ede6;
  }
  .contact-item-value a { color: var(--gold); text-decoration: none; }
  .contact-item-value a:hover { text-decoration: underline; }

  .contact-cta-block {
    margin-top: 3rem;
    border: 1px solid rgba(139,31,31,0.4);
    padding: 2.5rem;
  }
  .contact-cta-text {
    font-size: 1.1rem; font-style: italic;
    color: var(--mist); margin-bottom: 1.5rem; line-height: 1.6;
  }
  .btn-primary {
    display: inline-block;
    font-family: var(--mono); font-size: 0.72rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    background: var(--accent); color: #fff;
    padding: 1rem 2rem; text-decoration: none;
    transition: background 0.2s;
  }
  .btn-primary:hover { background: var(--accent-light); }

  /* ── FOOTER ── */
  footer {
    background: var(--ink);
    padding: 2.5rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .footer-left {
    font-family: var(--mono); font-size: 0.62rem;
    letter-spacing: 0.12em; color: #666;
  }
  .footer-right {
    font-family: var(--mono); font-size: 0.62rem;
    letter-spacing: 0.12em; color: #666;
  }


  /* ── IMAGES ── */
  .hero-portrait {
    position: relative;
    overflow: hidden;
  }
  .hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    mix-blend-mode: luminosity;
    filter: contrast(1.05) brightness(0.95);
    transition: transform 0.6s ease;
  }
  .hero-portrait:hover img { transform: scale(1.02); }
  .hero-portrait-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
      to bottom,
      transparent 55%,
      rgba(43, 46, 53, 0.85) 100%
    );
    pointer-events: none;
  }
  .about-photo-wrap {
    position: relative;
  }
  .about-photo-wrap img {
    width: 100%;
    max-width: 300px;
    display: block;
    border-radius: 2px;
    filter: sepia(10%) contrast(1.05);
    box-shadow: 8px 8px 32px rgba(0,0,0,0.35);
  }
  .about-photo-caption {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mist);
    margin-top: 0.75rem;
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-eyebrow { animation: fadeUp 0.8s ease 0.2s both; }
  .hero-title   { animation: fadeUp 0.8s ease 0.4s both; }
  .hero-rule    { animation: fadeUp 0.8s ease 0.55s both; }
  .hero-sub     { animation: fadeUp 0.8s ease 0.65s both; }
  .hero-cta     { animation: fadeUp 0.8s ease 0.8s both; }
  .stat-item:nth-child(1) { animation: fadeUp 0.7s ease 0.5s both; }
  .stat-item:nth-child(2) { animation: fadeUp 0.7s ease 0.65s both; }
  .stat-item:nth-child(3) { animation: fadeUp 0.7s ease 0.8s both; }
  .stat-item:nth-child(4) { animation: fadeUp 0.7s ease 0.95s both; }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    nav { padding: 1.2rem 2rem; }
    .nav-links { display: none; }
    .hero { grid-template-columns: 1fr; }
    .hero-left { padding: 7rem 2rem 4rem; min-height: 60vh; }
    .hero-right { padding: 4rem 2rem; }
    .hero-stat-grid { grid-template-columns: 1fr 1fr; }
    .section-inner { padding: 0 2rem; }
    .about-grid, .contact-grid, .philosophy .section-inner {
      grid-template-columns: 1fr; gap: 3rem;
    }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { border-right: none; border-bottom: 1px solid var(--mist); }
    .track-item { grid-template-columns: 1fr; gap: 0.5rem; }
    footer { flex-direction: column; gap: 1rem; text-align: center; }
    #problems .section-inner > div[style*="grid"] { grid-template-columns: 1fr !important; }
  }