/*
Theme Name:   AI Parent
Theme URI:    https://aiparent.com
Description:  AI Parent child theme for Hello Elementor – parenting blog for the AI age.
Author:       AI Parent
Template:     hello-elementor
Version:      1.0.0
Text Domain:  ai-parent
*/

/* =====================================================
   AI PARENT – GLOBAL CSS
   ===================================================== */

:root {
  --ap-blue:       #1B4FD8;
  --ap-orange:     #F97316;
  --ap-navy:       #1A1A2E;
  --ap-cream:      #FFFBF7;
  --ap-lightblue:  #EEF4FF;
  --ap-mint:       #10B981;
  --ap-text-dark:  #1A1A2E;
  --ap-text-gray:  #6B7280;
  --ap-white:      #FFFFFF;
  --ap-radius-card: 16px;
  --ap-radius-btn:  50px;
  --ap-shadow:      0 4px 24px rgba(0,0,0,0.07);
  --ap-shadow-lg:   0 12px 40px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--ap-text-dark);
  background-color: var(--ap-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--ap-navy);
  line-height: 1.25;
}

/* ── Buttons ── */
.ap-btn-primary, a.ap-btn-primary {
  display: inline-flex; align-items: center;
  padding: 14px 28px;
  background: var(--ap-blue); color: #fff !important;
  border-radius: var(--ap-radius-btn);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.ap-btn-primary:hover { background: #1540B0; transform: translateY(-2px); }

.ap-btn-orange, a.ap-btn-orange {
  display: inline-flex; align-items: center;
  padding: 14px 28px;
  background: var(--ap-orange); color: #fff !important;
  border-radius: var(--ap-radius-btn);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.ap-btn-orange:hover { background: #EA6A00; transform: translateY(-2px); }

.ap-btn-outline, a.ap-btn-outline {
  display: inline-flex; align-items: center;
  padding: 12px 26px;
  background: transparent; color: var(--ap-blue) !important;
  border: 2px solid var(--ap-blue);
  border-radius: var(--ap-radius-btn);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all 0.25s ease;
}
.ap-btn-outline:hover { background: var(--ap-blue); color: #fff !important; }

.ap-btn-dark, a.ap-btn-dark {
  display: inline-flex; align-items: center;
  padding: 14px 32px;
  background: var(--ap-navy); color: #fff !important;
  border-radius: var(--ap-radius-btn);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.ap-btn-dark:hover { background: #0F0F20; transform: translateY(-2px); }

/* ── Cards ── */
.ap-card {
  background: var(--ap-white); border-radius: var(--ap-radius-card);
  overflow: hidden; box-shadow: var(--ap-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ap-card:hover { transform: translateY(-6px); box-shadow: var(--ap-shadow-lg); }

/* ── Category pills ── */
.ap-pill { display: inline-block; padding: 5px 12px; border-radius: 20px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.ap-pill-green  { background: #D1FAE5; color: #065F46; }
.ap-pill-blue   { background: #DBEAFE; color: #1E40AF; }
.ap-pill-amber  { background: #FEF3C7; color: #92400E; }
.ap-pill-pink   { background: #FCE7F3; color: #9D174D; }
.ap-pill-orange { background: #FFEDD5; color: #9A3412; }

/* ── Photo placeholder ── */
.ap-photo-placeholder {
  background: linear-gradient(135deg, #EEF4FF 0%, #DBEAFE 100%);
  border: 2px dashed #93C5FD; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 30px 20px;
  color: #1E40AF; font-family: 'Inter', sans-serif;
}
.ap-photo-placeholder .icon { font-size: 48px; margin-bottom: 12px; }
.ap-photo-placeholder .label { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.ap-photo-placeholder .hint { font-size: 12px; line-height: 1.6; opacity: 0.8; }

/* ── Trust bar ── */
.ap-trust-bar {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 0; background: var(--ap-blue); padding: 28px 40px;
}
.ap-trust-item {
  display: flex; align-items: center; gap: 14px;
  flex: 1; min-width: 200px; padding: 12px 24px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.ap-trust-item:last-child { border-right: none; }
.ap-trust-item .icon { font-size: 28px; opacity: 0.9; }
.ap-trust-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 28px; font-weight: 800; color: #fff; line-height: 1.1; }
.ap-trust-lbl { font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(255,255,255,0.72); margin-top: 2px; }

/* ── Guide cards ── */
.ap-guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ap-guide-card { border-radius: 16px; padding: 28px 24px; }
.ap-guide-icon-box { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }

/* ── Article cards ── */
.ap-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ap-article-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.ap-article-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.ap-article-img { background: linear-gradient(135deg, #DBEAFE 0%, #EEF4FF 100%); min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #3B82F6; font-family: 'Inter', sans-serif; padding: 20px; }
.ap-article-body { padding: 20px; }

/* ── Testimonials ── */
.ap-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ap-testimonial-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.ap-testimonial-card blockquote { font-family: 'Lora', serif; font-style: italic; font-size: 15px; color: #374151; line-height: 1.75; margin: 0 0 20px; padding: 0; border: none; }

/* ── Topic pills ── */
.ap-topic-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.ap-topic-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 50px; background: #fff; border: 1.5px solid #E5E7EB; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: #374151; text-decoration: none; transition: all 0.25s ease; }
.ap-topic-pill:hover { border-color: #1B4FD8; color: #1B4FD8; background: #EEF4FF; }

/* ── Section header ── */
.ap-section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
.ap-section-header h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: #1A1A2E; margin: 0; }
.ap-section-header .sub { font-family: 'Inter', sans-serif; font-size: 15px; color: #6B7280; margin: 4px 0 0; }
.ap-section-header .view-all { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #1B4FD8; text-decoration: none; white-space: nowrap; }
.ap-section-header .view-all:hover { text-decoration: underline; }

/* ── Footer ── */
.ap-footer { background: var(--ap-navy); padding: 64px 0 30px; }
.ap-footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 30px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 40px; }
.ap-footer h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 700; color: #fff; margin: 0 0 18px; text-transform: uppercase; letter-spacing: 0.08em; }
.ap-footer ul { list-style: none; margin: 0; padding: 0; }
.ap-footer ul li { margin-bottom: 10px; }
.ap-footer ul a { font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.ap-footer ul a:hover { color: #fff; }
.ap-footer-logo { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ap-footer-logo-icon { width: 32px; height: 32px; background: rgba(27,79,216,0.35); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ap-footer-tagline { font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.65; margin: 0 0 20px; }
.ap-footer-socials { display: flex; gap: 8px; }
.ap-footer-social { width: 34px; height: 34px; background: rgba(255,255,255,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; text-decoration: none; color: rgba(255,255,255,0.7); transition: background 0.2s, color 0.2s; }
.ap-footer-social:hover { background: #1B4FD8; color: #fff; }
.ap-footer-bottom { max-width: 1200px; margin: 28px auto 0; padding: 20px 30px 0; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(255,255,255,0.35); }
.ap-footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.ap-footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ap-guide-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .ap-trust-bar { flex-direction: column; padding: 32px 20px; }
  .ap-trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 14px 0; width: 100%; justify-content: center; min-width: unset; }
  .ap-trust-item:last-child { border-bottom: none; }
  .ap-guide-grid { grid-template-columns: 1fr; }
  .ap-articles-grid { grid-template-columns: 1fr; }
  .ap-testimonials-grid { grid-template-columns: 1fr; }
  .ap-section-header { flex-direction: column; align-items: flex-start; }
  .ap-footer-grid { grid-template-columns: 1fr 1fr; }
  .ap-footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .ap-footer-grid { grid-template-columns: 1fr; }
}
