/* =============================================
   ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.placements-grid .placement-card:nth-child(2) { transition-delay: .1s; }
.placements-grid .placement-card:nth-child(3) { transition-delay: .2s; }
.why-grid .why-item:nth-child(2) { transition-delay: .08s; }
.why-grid .why-item:nth-child(3) { transition-delay: .16s; }
.why-grid .why-item:nth-child(4) { transition-delay: .24s; }
.process-steps .process-step:nth-child(2) { transition-delay: .1s; }
.process-steps .process-step:nth-child(3) { transition-delay: .2s; }
.process-steps .process-step:nth-child(4) { transition-delay: .3s; }
.blog-grid .blog-card:nth-child(2) { transition-delay: .1s; }
.blog-grid .blog-card:nth-child(3) { transition-delay: .2s; }
.stats-grid .stat-item:nth-child(2) { transition-delay: .08s; }
.stats-grid .stat-item:nth-child(3) { transition-delay: .16s; }
.stats-grid .stat-item:nth-child(4) { transition-delay: .24s; }

/* =============================================
   STICKY HEADER scrolled state
   ============================================= */
#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,31,92,.14);
}

/* =============================================
   MOBILE NAV OPEN
   ============================================= */
@media (max-width: 768px) {
  #primary-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--grey-mid);
    box-shadow: 0 8px 32px rgba(0,31,92,.12);
    padding: 8px 16px 16px;
    z-index: 999;
  }

  #primary-nav.is-open .main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #primary-nav.is-open .main-nav > li > a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--grey-mid);
    border-radius: 0;
  }

  #primary-nav.is-open .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--gold);
    padding-left: 12px;
    margin-left: 8px;
    background: var(--grey-light);
    margin-bottom: 4px;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Mobile toggle animation */
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* =============================================
   HEADER POSITION RELATIVE for mobile dropdown
   ============================================= */
.header-main {
  position: relative;
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
  #site-header,
  .hero-form-card,
  .sidebar,
  .cta-banner,
  #site-footer { display: none !important; }

  .page-layout { grid-template-columns: 1fr !important; }

  body { font-size: 12pt; color: #000; }
  a { color: #000; }
  h1, h2, h3 { color: #000; }
  .comparison-table th { background: #333 !important; }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--grey-text); }

.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-48 { margin-bottom: 48px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }

.w-full { width: 100%; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-16 { gap: 16px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   WORDPRESS ALIGNMENT CLASSES
   ============================================= */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.alignwide { max-width: 100%; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* =============================================
   WORDPRESS CORE BLOCKS
   ============================================= */
.wp-block-image { margin: 24px 0; }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-quote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.wp-block-quote p { margin: 0; font-size: 1.1rem; color: var(--navy); }
.wp-block-separator { border: none; border-top: 2px solid var(--grey-mid); margin: 32px 0; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(199,162,82,.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  font-size: .85rem;
  color: var(--grey-text);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

.contact-info-text a, .contact-info-text span {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 500;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
