/*
Theme Name:   Astra Child – Build Fun Crafts
Theme URI:    https://www.buildfuncrafts.com
Description:  Build Fun Crafts Child Theme
Author:       Build Fun Crafts
Template:     astra
Version:      1.0.0
*/

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

/* =============================================
   FULL WIDTH HOMEPAGE FIX
   ============================================= */
body.home .ast-separate-container,
body.home .ast-plain-container,
body.home .ast-container { padding: 0 !important; max-width: 100% !important; }
body.home #primary,
body.home .content-area,
body.home .ast-article-post,
body.home .entry-content { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; float: none !important; }
body.home #secondary,
body.home .widget-area { display: none !important; }
body.home #page { overflow-x: hidden; }

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --bfc-orange:  #FF6B35;
  --bfc-yellow:  #FFD23F;
  --bfc-green:   #06D6A0;
  --bfc-blue:    #118AB2;
  --bfc-navy:    #073B4C;
  --bfc-white:   #FFFDF7;
  --bfc-light:   #FFF8ED;
  --bfc-gray:    #f0ede6;
  --bfc-muted:   rgba(7,59,76,0.55);
}

/* =============================================
   GLOBAL
   ============================================= */
body {
  font-family: 'Nunito', sans-serif !important;
  background: var(--bfc-white);
  color: var(--bfc-navy);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  color: var(--bfc-navy);
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header,
#masthead,
.ast-primary-header {
  background: var(--bfc-navy) !important;
  box-shadow: 0 2px 20px rgba(7,59,76,0.3);
}

.site-title a,
.ast-site-name-text {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
  color: var(--bfc-yellow) !important;
  font-size: 1.45rem !important;
  letter-spacing: -0.5px !important;
}

.main-navigation a,
.ast-primary-menu > li > a,
#ast-fixed-header .ast-primary-menu > li > a {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
}

.main-navigation a:hover,
.ast-primary-menu > li > a:hover {
  color: var(--bfc-yellow) !important;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer,
#colophon,
.ast-small-footer {
  background: var(--bfc-navy) !important;
  color: rgba(255,255,255,0.4) !important;
}

.site-footer a,
#colophon a {
  color: rgba(255,255,255,0.6) !important;
}

.site-footer a:hover {
  color: #fff !important;
}

/* =============================================
   BUTTONS
   ============================================= */
.ast-btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  background: var(--bfc-orange) !important;
  color: #fff !important;
  border-radius: 50px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(255,107,53,0.35) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.ast-btn:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(255,107,53,0.5) !important;
  background: var(--bfc-orange) !important;
  color: #fff !important;
}

/* =============================================
   AD UNITS — subtle Google Ads wrappers
   ============================================= */
.bfc-ad-unit {
  background: var(--bfc-gray);
  border: 1px dashed rgba(7,59,76,0.15);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  overflow: hidden;
}

.bfc-ad-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(7,59,76,0.3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* =============================================
   PROJECT PAGE LAYOUT
   ============================================= */
.bfc-project-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.bfc-main-col { min-width: 0; }
.bfc-sidebar  { position: sticky; top: 90px; }

/* Hero */
.bfc-project-hero {
  background: linear-gradient(135deg, var(--bfc-navy) 0%, #0a4d63 100%);
  border-radius: 24px;
  padding: 44px 48px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.bfc-project-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,107,53,0.2);
  color: #FF9A6C;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.bfc-project-hero h1 {
  font-weight: 900 !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  color: #fff !important;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 520px;
}

.bfc-project-hero .bfc-intro {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
}

/* Meta badges */
.bfc-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.bfc-meta-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid rgba(7,59,76,0.1);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(7,59,76,0.06);
}

.bfc-meta-badge strong { color: var(--bfc-orange); }

/* Section heading */
.bfc-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900 !important;
  font-size: 1.3rem !important;
  margin-bottom: 18px;
  color: var(--bfc-navy) !important;
}

.bfc-sh-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Description card */
.bfc-description {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  border: 1.5px solid rgba(7,59,76,0.07);
  box-shadow: 0 2px 16px rgba(7,59,76,0.05);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(7,59,76,0.8);
}

.bfc-description p + p { margin-top: 14px; }

/* Fun fact */
.bfc-fun-fact {
  background: linear-gradient(135deg, #073B4C 0%, #0d5570 100%);
  border-radius: 20px;
  padding: 32px 36px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.bfc-fun-fact::before {
  content: '💡';
  position: absolute;
  right: 24px; bottom: -10px;
  font-size: 5rem;
  opacity: 0.08;
  pointer-events: none;
}

.bfc-fun-fact-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,210,63,0.15);
  color: var(--bfc-yellow);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.bfc-fun-fact h3 {
  font-weight: 900 !important;
  font-size: 1.1rem !important;
  color: #fff !important;
  margin-bottom: 10px !important;
}

.bfc-fun-fact p {
  color: rgba(255,255,255,0.72);
  font-size: 0.97rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* Materials */
.bfc-materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.bfc-material-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid rgba(7,59,76,0.08);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.bfc-material-item:hover { border-color: var(--bfc-orange); }
.bfc-material-item.checked { border-color: var(--bfc-green); background: rgba(6,214,160,0.05); }

.bfc-mat-check {
  margin-left: auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(7,59,76,0.2);
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
}

.bfc-material-item.checked .bfc-mat-check {
  background: var(--bfc-green);
  border-color: var(--bfc-green);
  color: #fff;
}

/* Steps */
.bfc-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.bfc-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid rgba(7,59,76,0.07);
  border-radius: 18px;
  padding: 20px 22px;
  transition: transform 0.2s, border-color 0.2s;
}

.bfc-step:hover {
  transform: translateX(4px);
  border-color: rgba(255,107,53,0.2);
  box-shadow: 0 4px 20px rgba(7,59,76,0.07);
}

.bfc-step-num {
  width: 38px; height: 38px;
  background: var(--bfc-orange);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.bfc-step-body h4 {
  font-weight: 900 !important;
  font-size: 0.97rem !important;
  margin-bottom: 5px !important;
  color: var(--bfc-navy) !important;
}

.bfc-step-body p {
  font-size: 0.9rem;
  color: var(--bfc-muted);
  line-height: 1.65;
}

.bfc-step-tip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,210,63,0.12);
  color: #7a5800;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  margin-top: 8px;
}

/* Sidebar cards */
.bfc-sidebar-card {
  background: #fff;
  border: 1.5px solid rgba(7,59,76,0.08);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 2px 14px rgba(7,59,76,0.05);
}

.bfc-sidebar-card h3 {
  font-weight: 900 !important;
  font-size: 0.97rem !important;
  margin-bottom: 14px !important;
  color: var(--bfc-navy) !important;
}

.bfc-qf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(7,59,76,0.06);
  font-size: 0.87rem;
}

.bfc-qf-row:last-child { border-bottom: none; }
.bfc-qf-label { color: var(--bfc-muted); font-weight: 700; }
.bfc-qf-val   { font-weight: 900; color: var(--bfc-navy); }
.bfc-qf-val.orange { color: var(--bfc-orange); }
.bfc-qf-val.green  { color: #00a077; }

/* Related projects */
.bfc-related-section { margin-top: 56px; }

.bfc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.bfc-related-card {
  background: #fff;
  border: 1.5px solid rgba(7,59,76,0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
}

.bfc-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(7,59,76,0.12);
}

.bfc-related-thumb {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.bfc-related-body { padding: 14px; }
.bfc-related-tag  { font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--bfc-orange); margin-bottom: 5px; }
.bfc-related-title {
  font-weight: 900 !important;
  font-size: 0.88rem !important;
  color: var(--bfc-navy) !important;
  line-height: 1.3;
  text-decoration: none !important;
}
.bfc-related-meta { font-size: 0.78rem; font-weight: 700; color: var(--bfc-muted); margin-top: 5px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .bfc-project-wrap {
    grid-template-columns: 1fr;
    padding: 32px 20px 60px;
  }
  .bfc-sidebar { position: static; }
  .bfc-materials-grid { grid-template-columns: 1fr; }
  .bfc-related-grid { grid-template-columns: 1fr 1fr; }
  .bfc-project-hero { padding: 28px 24px; }
}

@media (max-width: 600px) {
  .bfc-related-grid { grid-template-columns: 1fr; }
  .bfc-meta-row { gap: 8px; }
}