/*
Theme Name: Astra Child
Theme URI: https://chalex.us/
Description: Child theme for Astra on chalex.us
Author: Chalex
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* =========================================================
   1. ROOT VARIABLES
========================================================= */
:root {
  --chalex-navy: #0f2740;
  --chalex-navy-dark: #0a1b2d;
  --chalex-blue: #1f5f95;
  --chalex-gold: #d6a84f;
  --chalex-gold-dark: #b88b37;
  --chalex-text: #1f2937;
  --chalex-text-light: #5b6573;
  --chalex-bg: #ffffff;
  --chalex-bg-soft: #f4f7fb;
  --chalex-border: #dbe4ee;
  --chalex-shadow: 0 10px 30px rgba(15, 39, 64, 0.08);
  --chalex-radius: 18px;
  --chalex-radius-sm: 12px;
  --chalex-max: 1200px;
}

/* =========================================================
   2. GLOBAL / BASE
========================================================= */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--chalex-text);
}

.chalex-homepage,
.chalex-section,
.chalex-hero,
.chalex-strip,
.chalex-grid,
.chalex-card,
.chalex-story,
.chalex-final-cta {
  box-sizing: border-box;
}

/* =========================================================
   3. HOMEPAGE LAYOUT RESET / FULL-WIDTH BREAKOUT
========================================================= */
.home .site-content,
.home .ast-container,
.home .entry-content,
.home .site-main,
.home article,
.home .post,
.home .page,
.home article.page,
.home .site,
html,
body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.home .site-content > .ast-container,
.home .entry-content > .wp-block-group,
.home .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home .site-content > .ast-container {
  padding: 0 !important;
  margin: 0 !important;
}

.home .entry-content,
.home article,
.home .post,
.home .page {
  margin: 0 !important;
}

.home .entry-content .alignfull,
.home .entry-content [class*="wp-block"] {
  margin-left: 0;
  margin-right: 0;
}

.home .chalex-homepage {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: #fff;
}

.home .chalex-hero,
.home .chalex-strip,
.home .chalex-section {
  width: 100% !important;
  max-width: 100% !important;
}

.home .chalex-hero {
  margin-top: 0 !important;
}

/* Hide standard WP/Astra page titles */
.entry-header,
.ast-page-title {
  display: none !important;
}

/* Admin bar compensation on homepage */
.home.admin-bar .chalex-hero {
  margin-top: -32px !important;
}

@media screen and (max-width: 782px) {
  .home.admin-bar .chalex-hero {
    margin-top: -46px !important;
  }
}

/* =========================================================
   4. ASTRA HEADER / PRIMARY NAV
========================================================= */
.site-header {
  position: relative;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(15, 39, 64, 0.04);
}

.ast-primary-header-bar {
  background: #ffffff !important;
  padding: 0 !important;
}

.ast-primary-header-bar .site-primary-header-wrap,
.ast-primary-header-bar .ast-builder-grid-row-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ast-primary-header-bar .ast-builder-grid-row {
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-branding {
  display: flex;
  align-items: center;
  margin-right: 20px;
  margin-bottom: 0 !important;
}

.site-header .custom-logo-link,
.site-header .site-logo-img {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.site-header .custom-logo {
  display: block;
  max-height: 42px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}

.main-header-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.main-header-menu > li {
  margin: 0 !important;
}

.main-header-menu > li > a {
  color: #0b1f33 !important;
  padding: 0 10px !important;
  height: 52px !important;
  line-height: 52px !important;
  font-weight: 500;
  font-size: 14px;
}

.main-header-menu > li > a:hover {
  color: var(--chalex-blue) !important;
}

/* Menu CTA */
.menu-cta {
  margin-left: 10px !important;
}

.menu-cta a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 14px !important;
  white-space: nowrap;
  background: #f5b942;
  color: #0b1f33 !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1 !important;
  box-shadow: 0 8px 18px rgba(214, 168, 79, 0.18);
}

.menu-cta a:hover {
  background: #e0a52e;
  transform: translateY(-1px);
}

@media (max-width: 921px) {
  .ast-primary-header-bar .ast-builder-grid-row {
    grid-template-columns: 1fr auto !important;
    min-height: 48px !important;
  }

  .site-header .custom-logo {
    max-height: 36px !important;
  }

  .main-header-menu > li > a {
    height: 48px !important;
    line-height: 48px !important;
  }

  .menu-cta {
    margin-left: 0 !important;
  }

  .menu-cta a {
    min-height: 30px !important;
    height: 30px !important;
    font-size: 12px;
  }
}

/* =========================================================
   5. GENERIC SECTION SYSTEM
========================================================= */
.chalex-section {
  padding: 28px 20px;
}

.chalex-container {
  max-width: var(--chalex-max);
  margin: 0 auto;
}

.chalex-section.light {
  background: #fff;
}

.chalex-section.soft {
  background: linear-gradient(180deg, #f5f7fb 0%, #edf2f8 100%);
}

.chalex-section.dark {
  background: linear-gradient(135deg, var(--chalex-navy-dark) 0%, var(--chalex-navy) 100%);
  color: #fff;
  padding-top: 36px;
  padding-bottom: 36px;
}

.chalex-homepage > .chalex-section.soft,
.chalex-homepage > .chalex-section.light {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* =========================================================
   6. TYPOGRAPHY / INTRO ELEMENTS
========================================================= */
.chalex-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalex-gold);
}

.chalex-section-intro {
  max-width: 760px;
  margin: 0 auto 16px auto;
  text-align: center;
}

.chalex-section-intro h2 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: inherit;
}

.chalex-section-intro p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: inherit;
  opacity: 0.92;
}

/* =========================================================
   7. BUTTONS
========================================================= */
.chalex-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.chalex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.chalex-btn.primary {
  background: var(--chalex-gold);
  color: #10233a;
  box-shadow: 0 8px 18px rgba(214, 168, 79, 0.22);
}

.chalex-btn.primary:hover {
  background: var(--chalex-gold-dark);
  color: #10233a;
  transform: translateY(-1px);
}

.chalex-btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.chalex-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* =========================================================
   8. HERO
========================================================= */
.chalex-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 42px 20px 32px;
  background: linear-gradient(135deg, var(--chalex-navy-dark) 0%, var(--chalex-navy) 55%, #163a5d 100%);
  color: #fff;
}

.chalex-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 168, 79, 0.18) 0%, rgba(214, 168, 79, 0) 68%);
}

.chalex-hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
}

.chalex-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  max-width: var(--chalex-max);
  margin: 0 auto;
}

.chalex-hero-copy {
  max-width: 680px;
}

.chalex-hero h1 {
  max-width: 640px;
  margin: 0 0 10px;
  font-size: 50px;
  line-height: 1.02;
  color: #fff;
}

.chalex-hero p.chalex-hero-sub {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.chalex-hero p.chalex-hero-micro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

/* =========================================================
   9. HERO VISUAL PANEL
========================================================= */
.chalex-hero-visual {
  position: relative;
  min-height: 240px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
  overflow: hidden;
}

.chalex-hero-visual .icon-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chalex-hero-visual .icon-mark img {
  max-width: 180px;
  width: 44%;
  height: auto;
  opacity: 0.14;
}

.chalex-hero-visual .stat-card {
  position: absolute;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--chalex-text);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--chalex-shadow);
}

.chalex-hero-visual .stat-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: var(--chalex-navy);
}

.chalex-hero-visual .stat-card span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--chalex-text-light);
}

.chalex-hero-visual .stat-1 {
  top: 14px;
  left: 14px;
}

.chalex-hero-visual .stat-2 {
  top: 58px;
  right: 14px;
}

.chalex-hero-visual .stat-3 {
  left: 40px;
  bottom: 14px;
}

/* =========================================================
   10. POSITIONING STRIP
========================================================= */
.chalex-strip {
  background: #fff;
  border-top: 1px solid var(--chalex-border);
  border-bottom: 1px solid var(--chalex-border);
  padding: 6px 20px;
}

.chalex-strip .chalex-container {
  max-width: 1200px;
  margin: 0 auto;
}

.chalex-strip p {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: var(--chalex-text);
}

/* =========================================================
   11. GRID / CARDS
========================================================= */
.chalex-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.chalex-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chalex-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chalex-card,
.chalex-audience-item,
.chalex-value-item {
  height: 100%;
}

.chalex-card {
  background: #fff;
  border: 1px solid var(--chalex-border);
  border-radius: var(--chalex-radius);
  padding: 22px;
  box-shadow: var(--chalex-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chalex-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 39, 64, 0.12);
}

.chalex-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--chalex-navy);
}

.chalex-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--chalex-text-light);
}

.chalex-card .mini-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalex-gold-dark);
}

.chalex-card .card-btn {
  margin-top: 14px;
}

/* =========================================================
   12. AUDIENCE / VALUE ITEMS
========================================================= */
.chalex-audience-list,
.chalex-value-list {
  display: grid;
  gap: 14px;
}

.chalex-audience-item,
.chalex-value-item {
  background: #fff;
  border: 1px solid var(--chalex-border);
  border-radius: var(--chalex-radius-sm);
  padding: 18px 16px;
  box-shadow: var(--chalex-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chalex-audience-item:hover,
.chalex-value-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 39, 64, 0.12);
}

.chalex-audience-item strong,
.chalex-value-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--chalex-navy);
}

.chalex-audience-item span,
.chalex-value-item span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--chalex-text-light);
}

/* =========================================================
   13. STORY / ABOUT SECTION
========================================================= */
.chalex-story-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.chalex-story-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 36px;
}

.chalex-story-panel h2 {
  margin: 0 0 16px;
  font-size: 38px;
  line-height: 1.15;
  color: #fff;
}

.chalex-story-panel p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.chalex-story-panel p:last-child {
  margin-bottom: 0;
}

.chalex-story-box {
  background: #fff;
  color: var(--chalex-text);
  border-radius: 26px;
  padding: 36px;
  box-shadow: var(--chalex-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chalex-story-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 39, 64, 0.12);
}

.chalex-story-box h3 {
  margin: 0 0 14px;
  font-size: 24px;
  color: var(--chalex-navy);
}

.chalex-story-box ul {
  margin: 0;
  padding-left: 20px;
}

.chalex-story-box li {
  margin-bottom: 12px;
  line-height: 1.65;
  color: var(--chalex-text-light);
}

/* =========================================================
   14. LOGO / EXPERIENCE PILLS
========================================================= */
.chalex-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.chalex-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 14px 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--chalex-border);
  box-shadow: var(--chalex-shadow);
  font-weight: 700;
  color: var(--chalex-navy);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chalex-logo-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 39, 64, 0.12);
}

/* =========================================================
   15. FINAL CTA SECTION
========================================================= */
.chalex-final-cta {
  text-align: center;
}

.chalex-final-cta h2 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.12;
  color: #fff;
}

.chalex-final-cta p {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

/* =========================================================
   16. RESPONSIVE
========================================================= */
@media (min-width: 1440px) {
  .chalex-hero-grid,
  .chalex-container,
  .ast-primary-header-bar .site-primary-header-wrap,
  .ast-primary-header-bar .ast-builder-grid-row-container,
  .ast-primary-header-bar .ast-builder-grid-row {
    max-width: 1280px !important;
  }
}

@media (max-width: 1024px) {
  .chalex-hero-grid,
  .chalex-story-wrap,
  .chalex-grid.cols-3,
  .chalex-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .chalex-hero h1 {
    font-size: 46px;
  }

  .chalex-hero-visual {
    min-height: 320px;
  }

  .chalex-section-intro h2,
  .chalex-story-panel h2,
  .chalex-final-cta h2 {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .chalex-section,
  .chalex-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .chalex-hero {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .chalex-hero h1 {
    font-size: 38px;
  }

  .chalex-hero p.chalex-hero-sub,
  .chalex-strip p,
  .chalex-section-intro p,
  .chalex-final-cta p {
    font-size: 17px;
  }

  .chalex-card,
  .chalex-story-panel,
  .chalex-story-box {
    padding: 24px;
  }

  .chalex-hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 90px;
  }

  .chalex-hero-visual .stat-card {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin: 14px;
  }
}