/*
Theme Name: TheDigitalAjay Child
Template: kadence
Description: Child theme for TheDigitalAjay with custom homepage design
Version: 1.0
*/

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@400;600;700;800&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --brand:  #1159AF;
  --hover:  #F7630C;
  --bg:     #FFFFFF;
  --bg-2:   #F4F7FC;
  --bg-3:   #E8EEF8;
  --text:   #0D1117;
  --text-2: #374151;
  --muted:  #6B7280;
  --border: #E2E8F0;
  --radius: 14px;
  --max:    1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 1.2rem;
  color: var(--text); text-decoration: none;
}
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff;
  padding: 10px 22px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--hover); }

/* ─── SHARED SECTION STYLES ─── */
section { padding: 96px 24px; }
.container { max-width: var(--max); margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.2;
  color: var(--text); margin-bottom: 16px;
}
.section-sub {
  color: var(--muted); font-size: 1.05rem;
  max-width: 540px; line-height: 1.7;
}
.section-header { margin-bottom: 56px; }

/* ─── HERO ─── */
#hero {
  padding: 120px 24px 100px;
  background: radial-gradient(ellipse 70% 60% at 70% 40%, rgba(17,89,175,0.07) 0%, transparent 70%), var(--bg);
}
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(17,89,175,0.08);
  border: 1px solid rgba(17,89,175,0.2);
  color: var(--brand); border-radius: 100px;
  padding: 6px 16px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px;
  background: var(--brand); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.12;
  color: var(--text); margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #1159AF, #1A7FD4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.1rem; color: var(--muted);
  line-height: 1.75; margin-bottom: 40px; max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--brand); color: #fff;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border: 1.5px solid var(--border);
  color: var(--text-2); padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: border-color .2s, color .2s, transform .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem; font-weight: 800; color: var(--text);
}
.stat-num span { color: var(--brand); }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.hero-visual { display: flex; flex-direction: column; gap: 16px; }
.result-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 2px 16px rgba(17,89,175,0.07);
}
.result-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.result-card .card-meta { flex: 1; }
.result-card .card-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.result-card .card-value { font-weight: 700; font-size: 1rem; color: var(--text); }
.result-card .badge { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.badge-green  { background: rgba(16,185,129,0.1); color: #059669; }
.badge-blue   { background: rgba(17,89,175,0.1);  color: var(--brand); }
.badge-orange { background: rgba(247,99,12,0.1);  color: var(--hover); }

/* ─── STRENGTHS ─── */
#strengths { background: var(--bg-2); }
.strengths-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.strength-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: border-color .25s, transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.strength-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0; transition: opacity .25s;
}
.strength-card:hover { border-color: rgba(17,89,175,0.3); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(17,89,175,0.1); }
.strength-card:hover::before { opacity: 1; }
.s-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(17,89,175,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.s-title { font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.s-desc  { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.s-tags  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.s-tag   { font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--border); }

/* ─── RESOURCES ─── */
#resources { background: var(--bg); }
.resources-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.resource-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(17,89,175,0.12); }
.resource-cover {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.rc-blue   { background: linear-gradient(135deg, #1159AF, #1A7FD4); }
.rc-orange { background: linear-gradient(135deg, #F7630C, #FF9A5C); }
.rc-teal   { background: linear-gradient(135deg, #0E7490, #06B6D4); }
.resource-type {
  position: absolute; top: 12px; right: 12px;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(255,255,255,0.25); color: #fff;
}
.resource-body { padding: 24px; }
.resource-title { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.resource-desc  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.resource-link  { font-size: 0.85rem; font-weight: 700; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.resource-link:hover { color: var(--hover); }

/* ─── FREE TOOLS ─── */
#tools { background: var(--bg-2); }
.tools-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.tools-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.tool-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
}
.tool-card:hover { border-color: rgba(17,89,175,0.35); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(17,89,175,0.09); }
.tool-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(17,89,175,0.08); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.tool-body {}
.tool-title { font-weight: 700; font-size: 0.95rem; color: var(--text); margin-bottom: 6px; }
.tool-desc  { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }
.tool-arrow { margin-top: 14px; font-size: 0.8rem; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.tool-card:hover .tool-arrow { color: var(--hover); }
.free-pill  { display: inline-block; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; background: rgba(16,185,129,0.1); color: #059669; margin-left: 8px; vertical-align: middle; }

/* ─── BLOG ─── */
#blog { background: var(--bg); }
.blog-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.blog-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.post-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(17,89,175,0.1); }
.post-thumb { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card.featured .post-thumb { height: 260px; }
.pt-1 { background: linear-gradient(135deg, #EEF4FF, #C7D9F5); }
.pt-2 { background: linear-gradient(135deg, #F0FDF4, #BBF7D0); }
.pt-3 { background: linear-gradient(135deg, #FFF7ED, #FED7AA); }
.post-body    { padding: 24px; }
.post-cat     { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand); margin-bottom: 10px; }
.post-title   { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 10px; }
.post-card.featured .post-title { font-size: 1.2rem; }
.post-excerpt { font-size: 0.83rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.post-meta    { font-size: 0.75rem; color: var(--muted); display: flex; gap: 16px; align-items: center; }
.read-more    { font-size: 0.82rem; font-weight: 700; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; transition: color .2s; }
.read-more:hover { color: var(--hover); }
.view-all-link { font-size: 0.875rem; font-weight: 600; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.view-all-link:hover { color: var(--brand); }

/* ─── CTA STRIP ─── */
#cta { background: linear-gradient(135deg, #1159AF, #1A7FD4); padding: 80px 24px; text-align: center; }
#cta .section-title { color: #fff; margin-bottom: 12px; }
#cta p { color: rgba(255,255,255,0.8); margin-bottom: 36px; font-size: 1.05rem; }
.btn-white {
  background: #fff; color: var(--brand);
  padding: 14px 32px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: background .2s, color .2s, transform .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-white:hover { background: var(--hover); color: #fff; transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; }
footer p { color: var(--muted); font-size: 0.85rem; }
footer a { color: var(--brand); text-decoration: none; }
footer a:hover { color: var(--hover); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .strengths-grid  { grid-template-columns: 1fr 1fr; }
  .resources-grid  { grid-template-columns: 1fr 1fr; }
  .blog-grid       { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .strengths-grid,
  .resources-grid,
  .tools-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .nav-links  { display: none; }
}
