/*
Theme Name: Bastet Insights
Theme URI: https://bastetinsights.com
Author: Bastet Insights
Author URI: https://bastetinsights.com
Description: A modern WordPress Block Theme (FSE) for Bastet Insights — trauma-informed safety training for digital, physical, and psychological wellbeing.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bastet-insights
Tags: full-site-editing, block-themes, one-column, custom-colors, custom-menu, editor-style, featured-images, wide-blocks
*/

/* ===================================================================
   CUSTOM STYLES — Extends theme.json for elements that need
   more control than the block editor natively provides.
   =================================================================== */

/* ===== GLOBAL ===== */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ===== NAVIGATION HEADER BAR ===== */
.site-header {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31,77,77,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ===== HEADER LOGO ===== */
.custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.custom-header-logo {
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
@media (max-width: 860px) {
  .custom-header-logo {
    height: 34px;
    max-width: 160px;
  }
}

/* ===== FOUNDER PHOTO ===== */
.founder-photo {
  width: 100%;
  max-width: 340px;
  border-radius: 20px;
  border: 3px solid rgba(168,195,176,0.25);
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
  margin-bottom: 1.5rem;
}
.site-header .wp-block-navigation a {
  transition: color 0.2s ease;
}

/* ===== NAV CTA BUTTON (last item styled as CTA) ===== */
.nav-cta-link a,
a.nav-cta-link {
  background: #B8705E !important;
  color: #fff !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.18s;
  white-space: nowrap;
}
.nav-cta-link a:hover,
a.nav-cta-link:hover {
  background: #a55e4d !important;
  transform: translateY(-1px);
}

/* ===== HERO COVER SECTIONS ===== */
.hero-section .wp-block-cover__inner-container {
  max-width: 1080px;
  margin: 0 auto;
}
.hero-section .wp-block-cover {
  min-height: 85vh !important;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero-section .wp-block-cover {
  min-height: 40vh !important;
}
.page-hero-section .wp-block-cover__inner-container {
  max-width: 1080px;
  margin: 0 auto;
}

/* ===== EYEBROW CHIP ===== */
.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  width: fit-content;
}
.eyebrow-chip--clay {
  background: #F2DDD8;
  color: #B8705E;
}
.eyebrow-chip--sage {
  background: #DCE9E1;
  color: #1F4D4D;
}
.eyebrow-chip--light {
  background: rgba(168,195,176,0.15);
  color: #A8C3B0;
}

/* ===== SECTION SPACING ===== */
.section-padded {
  padding-top: 5.5rem !important;
  padding-bottom: 5.5rem !important;
}
.section-padded-sm {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

/* ===== MARQUEE BANNER ===== */
.marquee-section {
  overflow: hidden;
  white-space: nowrap;
  padding: 0.85rem 0;
}
.marquee-track {
  display: inline-flex;
  animation: bastet-marquee 30s linear infinite;
}
.marquee-item {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(250,249,247,0.85);
  padding: 0 1.75rem;
}
.marquee-dot {
  color: rgba(250,249,247,0.4);
}
@keyframes bastet-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: #F4EDE4;
  border-radius: 24px;
  padding: 2.25rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(31,77,77,0.1);
}

/* ===== DARK CARDS ===== */
.dark-card {
  background: rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  border: 1px solid rgba(168,195,176,0.12);
  transition: background 0.25s ease, transform 0.25s ease;
}
.dark-card:hover {
  background: rgba(168,195,176,0.07);
  transform: translateY(-4px);
}

/* ===== LIGHT CARDS ===== */
.light-card {
  background: #FAF9F7;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  border: 1px solid #EAE0D4;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.light-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(31,77,77,0.09);
}

/* ===== STEP CARDS ===== */
.step-card {
  background: #EEF5F1;
  border-radius: 24px;
  padding: 2.25rem 2rem;
  border: 1px solid #DCE9E1;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(31,77,77,0.09);
}
.step-ghost-number {
  font-family: 'Lora', serif;
  font-size: 5rem;
  font-weight: 600;
  color: rgba(31,77,77,0.06);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  pointer-events: none;
}

/* ===== ICON BOXES ===== */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.icon-box--sage { background: #DCE9E1; }
.icon-box--dark { background: rgba(168,195,176,0.12); }

.icon-box svg {
  width: 22px;
  height: 22px;
  stroke: #1F4D4D;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-box--dark svg {
  stroke: #A8C3B0;
}

/* ===== FOUNDER CARD ===== */
.founder-card {
  background: rgba(255,255,255,0.05);
  border-radius: 24px;
  border: 1px solid rgba(168,195,176,0.15);
  padding: 2.5rem 2.25rem;
}
.founder-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(168,195,176,0.15);
  border: 2px solid rgba(168,195,176,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.founder-avatar span {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  color: #A8C3B0;
  font-weight: 600;
}

/* ===== CERT TAGS ===== */
.cert-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #A8C3B0;
  background: rgba(168,195,176,0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid rgba(168,195,176,0.2);
}

/* ===== TIER BADGES ===== */
.tier-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}
.tier-badge--clay {
  color: #B8705E;
  background: rgba(184,112,94,0.15);
}
.tier-badge--sage {
  color: #A8C3B0;
  background: rgba(168,195,176,0.15);
}

/* ===== RESOURCE CARD STATUS ===== */
.resource-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6B7870;
  background: #EAE0D4;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

/* ===== CONTACT FORM STYLING ===== */
.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section select,
.contact-form-section textarea {
  background: #FAF9F7;
  border: 1px solid #EAE0D4;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #252525;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.contact-form-section input:focus,
.contact-form-section select:focus,
.contact-form-section textarea:focus {
  border-color: #A8C3B0;
}
.contact-form-section textarea {
  resize: vertical;
  min-height: 90px;
}
.contact-form-section label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1F4D4D;
  display: block;
  margin-bottom: 0.4rem;
}

/* ===== CTA BAND ===== */
.cta-band-section {
  position: relative;
  overflow: hidden;
}
.cta-band-watermark {
  position: absolute;
  font-family: 'Lora', serif;
  font-size: 16rem;
  font-weight: 600;
  color: rgba(255,255,255,0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

/* ===== OUTLINE BUTTON ===== */
.wp-block-button.is-style-outline .wp-block-button__link {
  border-width: 2px;
}
.btn-outline-light .wp-block-button__link {
  color: #fff !important;
  border-color: rgba(255,255,255,0.4) !important;
  background: transparent !important;
}
.btn-outline-light .wp-block-button__link:hover {
  border-color: rgba(255,255,255,0.8) !important;
  background: rgba(255,255,255,0.08) !important;
}
.btn-white .wp-block-button__link {
  background: #fff !important;
  color: #B8705E !important;
}
.btn-white .wp-block-button__link:hover {
  transform: translateY(-2px);
}
.btn-teal .wp-block-button__link {
  background: #1F4D4D !important;
  color: #fff !important;
}

/* ===== NOTE BOX ===== */
.note-box {
  background: #FAF9F7;
  border-radius: 16px;
  border-left: 4px solid #B8705E;
  padding: 1.25rem 1.4rem;
}
.note-box p {
  font-size: 0.85rem;
  color: #6B7870;
  line-height: 1.78;
  font-style: italic;
}

/* ===== CONFIDENCE NOTE ===== */
.confidence-note {
  background: #EEF5F1;
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  border: 1px solid #DCE9E1;
}
.confidence-note p {
  font-size: 0.85rem;
  color: #1F4D4D;
  line-height: 1.7;
  margin: 0;
}

/* ===== FOOTER ===== */
.site-footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer .footer-link-list a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.5rem;
}
.site-footer .footer-link-list a:hover {
  color: rgba(255,255,255,0.65);
}
.footer-heading {
  font-size: 0.73rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.3) !important;
  margin-bottom: 0.85rem !important;
}

/* ===== STATS ROW ===== */
.stat-number {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  color: #1F4D4D;
  line-height: 1;
  font-weight: 600;
}
.stat-label {
  font-size: 0.8rem;
  color: #6B7870;
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ===== NUMBERED APPROACH STEPS ===== */
.approach-step-number {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  color: #B8705E;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}

/* ===== LEGAL PAGE ===== */
.legal-section h2 {
  padding-top: 2rem;
}
.legal-section h3 {
  margin-top: 1.5rem;
}

/* ===== ERROR 404 ===== */
.error-404-section .wp-block-cover {
  min-height: 70vh !important;
}
.error-404-number {
  font-family: 'Lora', serif;
  font-size: 8rem;
  color: rgba(168,195,176,0.15);
  line-height: 1;
  font-weight: 600;
}

/* ===== BOLD LEAD-IN TEXT ===== */
.lead-in-text strong:first-child {
  display: block;
  color: #1F4D4D;
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .hero-section .wp-block-cover {
    min-height: auto !important;
    padding: 3.5rem 1.5rem !important;
  }
  .section-padded {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  .cta-band-watermark {
    font-size: 8rem;
  }
}

@media (max-width: 480px) {
  .step-ghost-number {
    font-size: 3rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .error-404-number {
    font-size: 5rem;
  }
}
