/*
Theme Name: Joy Chukwu Personal Site
Theme URI: https://joychukwu.com/
Author: Joy Chukwu
Author URI: https://joychukwu.com/
Description: A custom one-page personal brand site theme — IT Consultant, Founder, Mentor. Manage Current/Past Roles, Services, and Projects as easy post types, and edit all headline text from the Customizer.
Version: 1.1.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joy-chukwu
*/

/* ==========================================================
   Design tokens
   ========================================================== */
:root{
  --blush:        #F5DFDA;
  --blush-deep:   #F0CDC4;
  --card:         #F9E9E7;
  --ink:          #2E2420;
  --ink-soft:     #6B5A55;
  --gold:         #D88566;
  --gold-deep:    #D47956;
  --terracotta:   #A25C43;
  --white:        #FFFBF8;
  --line:         rgba(46,36,25,0.12);

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;

  --maxw: 1180px;
}

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

html{ scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--blush);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.eyebrow{
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  display: block;
}

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ---------- Nav ---------- */
header.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(245,223,218,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.main-nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo{
  font-family: var(--font-display);
  font-size: 22px;
}
.logo span{ color: var(--gold-deep); }
.nav-links{
  display:flex;
  gap: 28px;
  list-style:none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a{ position: relative; padding: 4px 0; }
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height: 1px;
  background: var(--gold-deep); transition: width 0.25s ease;
}
.nav-links a:hover::after{ width:100%; }

.btn{
  display:inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 13px 26px;
  border-radius: 2px;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.25s ease;
  border: 1px solid var(--gold-deep);
  cursor:pointer;
}
.btn-solid{ background: var(--gold-deep); color: var(--white); }
.btn-solid:hover{ background: var(--terracotta); border-color: var(--terracotta); }
.btn-outline{ background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover{ border-color: var(--gold-deep); color: var(--gold-deep); }

.menu-toggle{ display:none; background:none; border:none; cursor:pointer; font-size:22px; color:var(--ink); }

/* ---------- Hero ---------- */
.hero{ position: relative; overflow: hidden; padding: 72px 0 86px; }
.hero-inner, .hero > .wrap{ position: relative; z-index: 1; text-align: center; }
.hero .eyebrow{ margin-bottom: 22px; }
.hero h1{ font-size: clamp(40px, 6vw, 74px); line-height: 1.06; max-width: 920px; margin: 0 auto 18px; }
.hero h1 em{ font-style: italic; color: var(--gold-deep); }
.hero p.sub{ font-size: 18px; color: var(--ink-soft); max-width: 560px; margin: 0 auto 30px; }
.hero-ctas{ display:flex; gap: 18px; justify-content:center; flex-wrap: wrap; }

/* ---------- Section shell ---------- */
section{ position: relative; padding: 54px 0; }
.section-head{ max-width: 640px; margin-bottom: 26px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.divider{ width: 46px; height: 1px; background: var(--gold-deep); margin: 16px 0; }
.center .divider{ margin-left:auto; margin-right:auto; }
.band{ background: var(--blush-deep); }
.band-white{ background: var(--white); }

/* ---------- Who I Work With cards ---------- */
.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card{ background: var(--card); border: 1px solid var(--line); padding: 28px 24px; border-radius: 3px; position: relative; }
.card .num{ font-family: var(--font-display); font-style: italic; color: var(--gold-deep); font-size: 15px; margin-bottom: 18px; display:block; text-align:center; }
.card h3{ font-size: 22px; margin-bottom: 14px; text-align:center; }
.card p{ color: var(--ink-soft); font-size: 15px; text-align: justify; }

/* ---------- CTA banner ---------- */
.cta-banner{ text-align:center; padding: 44px 0; }
.cta-banner h2{ font-size: clamp(28px,4vw,42px); max-width: 700px; margin: 0 auto 26px; }

/* ---------- About ---------- */
.about-grid{ display:block; }
.about-grid::after{ content:''; display:table; clear:both; }
.about-photo{
  float: left; width: 450px; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--blush-deep), var(--card));
  border: 1px solid var(--line); border-radius: 3px; position: relative; overflow:hidden;
  margin: 4px 32px 20px 0;
}
.about-photo img{ width:100%; height:100%; object-fit:cover; object-position:center top; display:block; }
.about-body .eyebrow{ display:block; margin-bottom: 20px; }
.about-body p{ color: var(--ink-soft); margin-bottom: 18px; font-size: 16.5px; line-height: 1.65; text-align: justify; }

/* ---------- Timeline (Current / Past Roles) ---------- */
.timeline{ list-style:none; margin-top: 10px; }
.timeline li{ display:grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 22px 40px 22px 0; border-top: 1px solid var(--line); position:relative; }
.timeline li:last-child{ border-bottom: 1px solid var(--line); }
.timeline.timeline-reverse li{ grid-template-columns: 1fr 190px; padding: 22px 0 22px 40px; }
.timeline.timeline-reverse .role-meta{ order: 2; text-align: right; }
.timeline.timeline-reverse .role-body{ order: 1; }
.timeline.timeline-reverse .role-org{ justify-content: flex-end; }
.role-title{ font-family: var(--font-display); font-size: 15px; color: var(--gold-deep); font-style: italic; margin-bottom: 6px; }
.role-dates{ font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 4px; }
.role-org{ font-size: 14px; color: var(--ink-soft); display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.role-logo{ display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:7px; background:var(--gold-deep); color:var(--white); font-family:var(--font-display); font-style:italic; font-weight:600; font-size:11px; flex-shrink:0; }
.role-logo-img{ height:22px; width:auto; display:block; }
.current-badge{ display:inline-block; font-size:10px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--white); background:var(--gold-deep); padding:3px 9px; border-radius:20px; margin-bottom:10px; }
.role-body p{ color: var(--ink-soft); font-size: 15px; text-align: justify; }

/* ---------- Services ---------- */
.services{ display:grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service{ background: var(--white); padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display:flex; flex-direction:column; position:relative; }
.service h3{ font-size: 21px; margin-bottom: 18px; }
.service ul{ list-style:none; margin-bottom: 22px; flex-grow:1; }
.service ul li{ font-size: 14px; color: var(--ink-soft); padding: 7px 0 7px 18px; position: relative; }
.service ul li::before{ content:''; position:absolute; left:0; top:16px; width:5px; height:1px; background: var(--gold-deep); }
.service .desc p{ font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }

/* ---------- Press links (inline list in Contact) ---------- */
.press-links a{ border-bottom: 1px solid var(--line); }
.press-links a:hover{ color: var(--gold-deep); border-color: var(--gold-deep); }
.press-links .sep{ margin: 0 6px; color: var(--ink-soft); }

/* ---------- Projects ---------- */
.projects-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card{ background: var(--white); border: 1px solid var(--line); padding: 24px 20px; display:flex; flex-direction:column; transition: border-color .25s ease; }
.project-card:hover{ border-color: var(--gold-deep); }
.project-tag{ font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold-deep); font-weight:600; margin-bottom:14px; }
.project-card h3{ font-size:19px; margin-bottom:10px; line-height:1.25; }
.project-card p{ color:var(--ink-soft); font-size:14px; flex-grow:1; margin-bottom:18px; }
.project-link{ font-size:13px; font-weight:600; letter-spacing:0.02em; color:var(--ink); display:flex; align-items:center; gap:10px; }
.project-link:hover{ color: var(--gold-deep); }
.project-link .arrow{ color: var(--gold-deep); margin-left: 4px; }
.project-shot{ width:100%; height:auto; display:block; border-radius:3px; border:1px solid var(--line); margin-bottom:16px; aspect-ratio: 16/10; object-fit: cover; }

/* ---------- Press ---------- */
.press-list a{ border-bottom: 1px solid var(--line); }
.press-list a:hover{ color: var(--gold-deep); border-color: var(--gold-deep); }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-info p{ color: var(--ink-soft); margin-bottom: 12px; font-size: 15px; }
.contact-info h3{ font-size: 15px; text-transform:uppercase; letter-spacing:0.08em; margin: 16px 0 8px; color: var(--ink); }
.form-group{ margin-bottom: 14px; }
label{ display:block; font-size:12px; letter-spacing:0.06em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:8px; }
input, select, textarea{ width:100%; padding:13px 14px; background:var(--white); border:1px solid var(--line); border-radius:2px; font-family:var(--font-body); font-size:15px; color:var(--ink); }
input:focus, select:focus, textarea:focus{ outline:none; border-color:var(--gold-deep); }
textarea{ resize:vertical; min-height:110px; }

/* ---------- Contact Form 7 (restyled to match the design) ---------- */
.contact-form .wpcf7-form-control-wrap{ display:block; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea{ width:100%; }
.contact-form .wpcf7-submit{ width:100%; font-family:var(--font-body); }
.contact-form .wpcf7-spinner{ display:block; margin:10px auto 0; }
.contact-form .wpcf7-not-valid{ border-color: var(--terracotta); }
.contact-form .wpcf7-not-valid-tip{ color: var(--terracotta); font-size:12px; margin-top:6px; display:block; }
.contact-form .wpcf7 form .wpcf7-response-output{
  margin: 16px 0 0; padding: 12px 14px; font-size: 14px; border: 1px solid var(--gold-deep);
  background: var(--white); border-radius: 2px; color: var(--ink);
}
.contact-form .wpcf7 form.sent .wpcf7-response-output{ border-color: #4f8a5b; }
.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.failed .wpcf7-response-output,
.contact-form .wpcf7 form.spam .wpcf7-response-output{ border-color: var(--terracotta); }
.contact-form-fallback p{ color: var(--ink-soft); font-size: 15px; margin-bottom: 12px; }
.jc-admin-only{ font-size: 13px !important; padding: 10px 12px; background: var(--white); border: 1px dashed var(--gold-deep); }

/* ---------- Footer ---------- */
footer.site-footer{ background: var(--ink); color: var(--blush); padding: 40px 0 24px; }
.footer-top{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:22px; padding-bottom:24px; border-bottom:1px solid rgba(245,223,218,0.15); }
.footer-logo{ font-family: var(--font-display); font-size: 22px; }
.footer-links{ display:flex; gap:20px; list-style:none; font-size:14px; }
.footer-bottom{ display:flex; justify-content:space-between; padding-top:18px; font-size:13px; color:rgba(245,223,218,0.5); flex-wrap:wrap; gap:10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .grid3, .services, .about-grid, .contact-grid, .projects-grid{ grid-template-columns: 1fr; }
  .timeline li{ grid-template-columns: 1fr; gap: 10px; }
  .timeline.timeline-reverse li{ padding: 22px 0; }
  .timeline.timeline-reverse .role-meta{ order:1; text-align:left; }
  .timeline.timeline-reverse .role-body{ order:2; }
  .timeline.timeline-reverse .role-org{ justify-content:flex-start; }
  .nav-links{ display:none; }
  .menu-toggle{ display:block; }
  .menu-btn{ display:block; }
  section{ padding: 48px 0; }
  .hero{ padding: 56px 0 64px; }
  .about-photo{ float:none; width:100%; margin:0 auto 24px; }
}
@media (max-width: 640px){
  .wrap{ padding: 0 20px; }
  nav.site-nav{ padding: 14px 20px; }
  .logo{ font-size: 19px; }
  section{ padding: 40px 0; }
  .hero{ padding: 40px 0 48px; }
  .hero-ctas{ flex-direction: column; align-items: stretch; }
  .footer-top{ flex-direction: column; align-items: flex-start; }
}

/* ---------- Layout polish for WordPress-rendered content ---------- */
.service .desc{ flex-grow:1; margin-bottom: 22px; }
.service .desc ul{ list-style:none; margin: 0 0 16px; }
.service .desc p{ margin-bottom: 14px; }
.project-card .project-desc{ flex-grow:1; margin-bottom: 18px; }
.project-card .project-desc p{ color: var(--ink-soft); font-size: 14px; margin: 0; }
.role-body p{ margin-bottom: 0; }
.logo a{ color: inherit; }
.logo img{ max-height: 38px; width: auto; }
.nav-links li{ list-style:none; }
