/*
 Theme Name:   Inventiply Foundry
 Theme URI:    https://playground.inventiply.com
 Description:  Custom child theme for Inventiply Foundry with section-specific templates
 Author:       Inventiply
 Author URI:   https://inventiply.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  inventiply
*/

/* ===== HEADER & NAVIGATION ===== */

/* Dark header background */
.ast-primary-header-bar,
#ast-desktop-header .ast-primary-header-bar,
.ast-primary-header-bar .ast-builder-grid-row {
  background-color: #1a1a2e !important;
}

/* Top-level menu links: white */
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item > .ast-menu-toggle,
#ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
  color: #ffffff !important;
}
.ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-item > .menu-link {
  color: #c9a84c !important;
}

/* DROPDOWN MENUS: white bg, dark text */
.ast-builder-menu-1 .main-header-menu .sub-menu,
.ast-builder-menu-1 .main-header-menu .sub-menu .menu-item,
#ast-desktop-header .ast-builder-menu-1 .sub-menu {
  background-color: #ffffff !important;
}
.ast-builder-menu-1 .main-header-menu .sub-menu .menu-item > .menu-link,
#ast-desktop-header .ast-builder-menu-1 .sub-menu .menu-item > .menu-link {
  color: #333333 !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
}
.ast-builder-menu-1 .main-header-menu .sub-menu .menu-item:hover > .menu-link,
.ast-builder-menu-1 .main-header-menu .sub-menu .menu-item:hover,
#ast-desktop-header .ast-builder-menu-1 .sub-menu .menu-item:hover > .menu-link {
  color: #1a1a2e !important;
  background-color: #f5f5f5 !important;
}

/* Dropdown border and shadow */
.ast-builder-menu-1 .main-header-menu > .menu-item > .sub-menu {
  border-top: 3px solid #c9a84c !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
  min-width: 280px !important;
}

/* CTA button: last top-level item */
.ast-builder-menu-1 .main-header-menu > .menu-item:last-child > .menu-link {
  background: #2563eb !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 8px 20px !important;
  margin-left: 10px;
  line-height: normal !important;
}
.ast-builder-menu-1 .main-header-menu > .menu-item:last-child:hover > .menu-link {
  background: #1d4ed8 !important;
}

/* Hide site title text, show logo only */
.site-title, .site-description,
.ast-site-identity .site-title {
  display: none !important;
}

/* Logo sizing */
.site-logo-img .custom-logo,
.ast-site-identity .custom-logo {
  max-height: 60px !important;
  width: auto !important;
}

/* Sticky header shadow */
.ast-primary-sticky-header-active .ast-primary-header-bar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

/* ===== FOOTER ===== */
.site-footer,
.ast-footer-overlay,
footer.site-footer,
.site-below-footer-wrap {
  background: #1a1a2e !important;
  color: #cccccc !important;
}
.site-footer a {
  color: #c9a84c !important;
}

/* ===== CONTENT STYLES ===== */

/* Blockquotes */
.wp-block-quote {
  border-left: 4px solid #c9a84c !important;
  padding: 1.2em 1.8em !important;
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
  margin: 2em 0;
}

/* Buttons */
.wp-block-button__link {
  border-radius: 4px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Cover block */
.wp-block-cover h1 {
  font-weight: 800 !important;
}

/* Plan card hover */
.wp-block-column[style*="border"]:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Separators */
.wp-block-separator {
  border-color: #e5e7eb !important;
  margin: 3em auto !important;
}

/* Contact Form 7 */
.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 4px;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.wpcf7 label {
  display: block;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 6px;
  color: #374151;
}
.wpcf7 input[type=submit] {
  background: #2563eb !important;
  color: #fff !important;
  padding: 14px 32px !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  cursor: pointer;
  margin-top: 24px;
}
.wpcf7 input[type=submit]:hover {
  background: #1d4ed8 !important;
}

/* Images never larger than native */
.entry-content img,
.wp-block-image img {
  max-width: 100% !important;
  height: auto !important;
}

/* ===== SECTION HERO BANNERS ===== */
.inventiply-hero {
  padding: 60px 40px 50px;
  margin-bottom: 40px;
  position: relative;
}
.inventiply-hero .hero-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.inventiply-hero h1 {
  color: #ffffff;
  font-size: 2.4em;
  font-weight: 800;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.inventiply-hero .hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.1em;
  max-width: 700px;
}
.inventiply-hero .hero-breadcrumb {
  font-size: 13px;
  margin-top: 20px;
}
.inventiply-hero .hero-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.inventiply-hero .hero-breadcrumb a:hover {
  color: #ffffff;
}
.inventiply-hero .hero-breadcrumb span {
  color: rgba(255,255,255,0.4);
  margin: 0 8px;
}

/* Plan banner - Navy + Gold */
.inventiply-hero--plan {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 4px solid #c9a84c;
}
.inventiply-hero--plan .hero-label {
  color: #c9a84c;
}

/* Module banner - Dark Blue + Blue */
.inventiply-hero--module {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  border-bottom: 4px solid #2563eb;
}
.inventiply-hero--module .hero-label {
  color: #60a5fa;
}

/* Blog banner - Charcoal + Gold */
.inventiply-hero--blog {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border-bottom: 4px solid #c9a84c;
}
.inventiply-hero--blog .hero-label {
  color: #c9a84c;
}
.inventiply-hero--blog .hero-meta {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-top: 8px;
}

/* Resource banner - Slate */
.inventiply-hero--resource {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-bottom: 4px solid #6b7280;
}
.inventiply-hero--resource .hero-label {
  color: #9ca3af;
}

/* ===== TWO-COLUMN LAYOUT ===== */
.inventiply-layout {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.inventiply-layout__content {
  flex: 1;
  min-width: 0;
}
.inventiply-layout__sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* ===== SIDEBAR BOXES ===== */
.sidebar-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}
.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-box ul li {
  margin-bottom: 8px;
}
.sidebar-box ul li a {
  color: #374151;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.15s ease;
}
.sidebar-box ul li a:hover {
  background: #eef2ff;
  color: #2563eb;
}
.sidebar-box ul li.current a {
  background: #1a1a2e;
  color: #ffffff;
  font-weight: 600;
}

/* Plan sidebar - module inclusion badges */
.sidebar-box .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-left: 6px;
}
.badge--included {
  background: #dcfce7;
  color: #166534;
}
.badge--addon {
  background: #fef3c7;
  color: #92400e;
}
.badge--available {
  background: #dbeafe;
  color: #1e40af;
}

/* Sidebar CTA */
.sidebar-cta {
  display: block;
  background: #2563eb;
  color: #ffffff !important;
  text-align: center;
  padding: 14px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  margin-top: 20px;
  transition: all 0.2s ease;
}
.sidebar-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* ===== BLOG SIDEBAR ===== */
.sidebar-author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.sidebar-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.sidebar-author-name {
  font-weight: 700;
  font-size: 15px;
}
.sidebar-author-title {
  font-size: 13px;
  color: #6b7280;
}

/* Related posts */
.related-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.related-post-item:last-child {
  border-bottom: none;
}
.related-post-item a {
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.related-post-item a:hover {
  color: #2563eb;
}

/* ===== RESOURCE GRID ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.resource-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.resource-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.resource-card__image {
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
}
.resource-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-card__body {
  padding: 20px;
}
.resource-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.resource-card__title a {
  color: #1a1a2e;
  text-decoration: none;
}
.resource-card__title a:hover {
  color: #2563eb;
}
.resource-card__excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}
.resource-card__meta {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .inventiply-layout {
    flex-direction: column;
  }
  .inventiply-layout__sidebar {
    width: 100%;
  }
  .inventiply-hero h1 {
    font-size: 1.8em;
  }
  .resource-grid {
    grid-template-columns: 1fr;
  }
}
