/* ============================================================
   tsera STRIDE — Design System
   WordPress Theme for STRIDE SEO Brand · Moving Forward Group
   ============================================================ */

/* 1. DESIGN TOKENS
   ============================================================ */
:root {
  --s-green:      #34A853;
  --s-green-dk:   #1E8E3E;
  --s-green-lt:   #E6F4EA;
  --s-blue:       #4285F4;
  --s-blue-lt:    #E8F0FE;
  --s-red:        #EA4335;
  --s-red-lt:     #FCE8E6;
  --s-yellow:     #FBBC04;
  --s-yellow-lt:  #FEF7E0;
  --s-purple:     #A855F7;
  --s-purple-lt:  #F3E8FF;

  --s-ink-1:      #202124;
  --s-ink-2:      #3C4043;
  --s-ink-3:      #5F6368;
  --s-ink-4:      #80868B;
  --s-ink-5:      #BDC1C6;
  --s-ink-6:      #DADCE0;
  --s-ink-7:      #F1F3F4;
  --s-ink-8:      #F8F9FA;
  --s-white:      #FFFFFF;

  --s-font:       'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --s-mono:       'Roboto Mono', 'Courier New', monospace;

  --s-header-h:   64px;
  --s-max-w:      1200px;
  --s-px:         24px;

  --s-shadow-sm:  0 1px 2px rgba(60,64,67,.10), 0 1px 3px rgba(60,64,67,.08);
  --s-shadow-md:  0 1px 3px rgba(60,64,67,.15), 0 4px 8px rgba(60,64,67,.08);
  --s-shadow-lg:  0 2px 6px rgba(60,64,67,.10), 0 4px 12px rgba(60,64,67,.08);

  --s-r-sm:   8px;
  --s-r-md:   12px;
  --s-r-lg:   16px;
  --s-r-pill: 9999px;

  --s-ease:   all 0.2s ease;

  --s-z-header:   1000;
  --s-z-overlay:  1100;
  --s-z-mobile:   1200;
}

/* 2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--s-font);
  background: var(--s-ink-8);
  color: var(--s-ink-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--s-font); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* 3. PAGE WRAPPER
   ============================================================ */
.stride-page-wrapper {
  min-height: calc(100vh - var(--s-header-h));
  padding-top: var(--s-header-h);
}

/* 4. APP BAR
   ============================================================ */
.stride-app-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--s-z-header);
  height: var(--s-header-h);
  background: var(--s-white);
  border-bottom: 1px solid var(--s-ink-6);
  transition: box-shadow 0.25s ease;
}
.stride-app-bar.is-scrolled { box-shadow: var(--s-shadow-sm); }

.stride-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: var(--s-max-w);
  margin: 0 auto;
  padding: 0 var(--s-px);
}

/* 5. LOGO
   ============================================================ */
.stride-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}
.stride-logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.stride-logo-icon--lg { width: 42px; height: 42px; }
.stride-logo-text { display: flex; flex-direction: column; line-height: 1; }
.stride-logo-name {
  font-weight: 500;
  font-size: 18px;
  color: var(--s-ink-1);
  letter-spacing: -.01em;
}
.stride-logo-sub {
  font-size: 10px;
  color: var(--s-ink-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Custom logo override */
.stride-logo-link .custom-logo { max-height: 40px; width: auto; }

/* 6. DESKTOP NAV
   ============================================================ */
.stride-desktop-nav { flex: 1; display: none; }
@media (min-width: 768px) {
  .stride-desktop-nav { display: flex; align-items: center; justify-content: center; }
}

.stride-nav-list { display: flex; align-items: center; gap: 2px; }
.stride-nav-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--s-r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--s-ink-3);
  transition: var(--s-ease);
  white-space: nowrap;
}
.stride-nav-list li a:hover,
.stride-nav-list li.current-menu-item > a,
.stride-nav-list li.current_page_item > a {
  background: var(--s-ink-7);
  color: var(--s-ink-1);
}

/* 7. HEADER ACTIONS
   ============================================================ */
.stride-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* 8. BUTTONS
   ============================================================ */
.stride-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--s-r-pill);
  background: var(--s-green);
  color: var(--s-white) !important;
  font-family: var(--s-font);
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: var(--s-ease);
  box-shadow: var(--s-shadow-sm);
  white-space: nowrap;
}
.stride-btn-primary:hover {
  background: var(--s-green-dk);
  box-shadow: var(--s-shadow-md);
}
.stride-btn-primary.is-full { width: 100%; }

.stride-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--s-r-pill);
  background: var(--s-white);
  color: var(--s-green) !important;
  font-family: var(--s-font);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--s-ink-6);
  cursor: pointer;
  text-decoration: none !important;
  transition: var(--s-ease);
}
.stride-btn-secondary:hover {
  background: var(--s-ink-8);
  border-color: var(--s-ink-5);
}

/* 9. AVATAR
   ============================================================ */
.stride-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--s-green);
  color: var(--s-white);
  font-weight: 500; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; user-select: none;
}

/* 10. MOBILE TOGGLE
    ============================================================ */
.stride-menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--s-ink-3);
  transition: var(--s-ease);
  flex-shrink: 0;
}
.stride-menu-toggle:hover { background: var(--s-ink-7); }
@media (min-width: 768px) { .stride-menu-toggle { display: none; } }

/* 11. OVERLAY
    ============================================================ */
.stride-overlay {
  position: fixed; inset: 0;
  background: rgba(32,33,36,.5);
  z-index: var(--s-z-overlay);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.stride-overlay.is-open { opacity: 1; visibility: visible; }
@media (min-width: 768px) { .stride-overlay { display: none; } }

/* 12. MOBILE MENU DRAWER
    ============================================================ */
.stride-mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--s-white);
  z-index: var(--s-z-mobile);
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.stride-mobile-menu.is-open { transform: translateX(0); }
@media (min-width: 768px) { .stride-mobile-menu { display: none; } }

.stride-mobile-inner { display: flex; flex-direction: column; height: 100%; padding: 20px; }

.stride-mobile-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}

.stride-menu-close {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--s-ink-3);
  transition: var(--s-ease);
}
.stride-menu-close:hover { background: var(--s-ink-7); }

.stride-mobile-nav { flex: 1; }
.stride-mobile-nav-list { display: flex; flex-direction: column; gap: 2px; }
.stride-mobile-nav-list li a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--s-r-pill);
  font-size: 16px; font-weight: 500;
  color: var(--s-ink-1);
  transition: var(--s-ease);
}
.stride-mobile-nav-list li a:hover,
.stride-mobile-nav-list li.current-menu-item > a,
.stride-mobile-nav-list li.current_page_item > a {
  background: var(--s-green-lt);
  color: var(--s-green-dk);
}

.stride-mobile-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--s-ink-6);
}

/* 13. MAIN CONTENT
    ============================================================ */
.stride-main {
  width: 100%;
  min-height: calc(100vh - var(--s-header-h) - 340px);
}

/* 14. FOOTER
    ============================================================ */
.stride-footer {
  background: var(--s-white);
  border-top: 1px solid var(--s-ink-6);
}

/* Color bar */
.stride-colorbar { display: flex; height: 4px; }
.stride-colorbar span { flex: 1; }
.stride-colorbar .cb-blue   { background: var(--s-blue); }
.stride-colorbar .cb-red    { background: var(--s-red); }
.stride-colorbar .cb-yellow { background: var(--s-yellow); }
.stride-colorbar .cb-green  { background: var(--s-green); }

.stride-footer-inner {
  max-width: var(--s-max-w);
  margin: 0 auto;
  padding: 48px var(--s-px) 32px;
}

/* Footer top grid */
.stride-footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--s-ink-6);
}
@media (min-width: 768px) {
  .stride-footer-top { grid-template-columns: 260px 1fr; gap: 64px; }
}

/* Footer brand column */
.stride-footer-brand .stride-logo-link { margin-bottom: 14px; }
.stride-footer-tagline {
  font-size: 14px; color: var(--s-ink-3); line-height: 1.6;
  margin-bottom: 16px; max-width: 240px;
}
.stride-footer-parent {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500;
  color: var(--s-green);
  transition: var(--s-ease);
}
.stride-footer-parent:hover { color: var(--s-green-dk); text-decoration: underline; }

/* Brands section */
.stride-brands-label {
  font-size: 11px; font-weight: 500;
  color: var(--s-ink-4);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 14px;
}
.stride-brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 500px) { .stride-brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .stride-brands-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stride-brands-grid { grid-template-columns: repeat(3, 1fr); } }

/* Brand card */
.stride-brand-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 14px 12px;
  border-radius: var(--s-r-md);
  border: 1px solid var(--s-ink-6);
  background: var(--s-white);
  text-decoration: none; color: inherit;
  transition: var(--s-ease);
}
.stride-brand-card:hover {
  border-color: transparent;
  box-shadow: var(--s-shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.stride-brand-card--current { opacity: .6; pointer-events: none; border-style: dashed; }

.stride-brand-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.stride-brand-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.stride-brand-arrow { color: var(--s-ink-4); transition: var(--s-ease); }
.stride-brand-card:hover .stride-brand-arrow { color: var(--s-ink-1); transform: translate(2px,-2px); }
.stride-brand-name { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stride-brand-desc { font-size: 11px; color: var(--s-ink-3); }

/* Brand color tokens */
.stride-brand-card--vault  .stride-brand-icon { background: var(--s-blue-lt); }
.stride-brand-card--vault  .stride-brand-name  { color: var(--s-blue); }
.stride-brand-card--reach  .stride-brand-icon  { background: var(--s-red-lt); }
.stride-brand-card--reach  .stride-brand-name  { color: var(--s-red); }
.stride-brand-card--lens   .stride-brand-icon  { background: var(--s-yellow-lt); }
.stride-brand-card--lens   .stride-brand-name  { color: #F9AB00; }
.stride-brand-card--craft  .stride-brand-icon  { background: var(--s-purple-lt); }
.stride-brand-card--craft  .stride-brand-name  { color: var(--s-purple); }
.stride-brand-card--stride .stride-brand-icon  { background: var(--s-green-lt); }
.stride-brand-card--stride .stride-brand-name  { color: var(--s-green); }
.stride-brand-card--group  .stride-brand-icon  { background: var(--s-ink-7); }
.stride-brand-card--group  .stride-brand-name  { color: var(--s-ink-3); }

/* Footer bottom */
.stride-footer-bottom {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center;
}
@media (min-width: 768px) {
  .stride-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.stride-footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
@media (min-width: 768px) { .stride-footer-nav ul { justify-content: flex-start; } }
.stride-footer-nav ul li a {
  font-size: 13px; color: var(--s-ink-3);
  padding: 4px 10px; border-radius: var(--s-r-pill);
  transition: var(--s-ease);
}
.stride-footer-nav ul li a:hover { color: var(--s-green); background: var(--s-green-lt); }

.stride-footer-copy {
  font-size: 12px; color: var(--s-ink-4); white-space: nowrap;
}

/* 15. ANIMATIONS
    ============================================================ */
@keyframes stride-pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.stride-pulse { animation: stride-pulse 2s ease-in-out infinite; }

/* 16. ELEMENTOR ADJUSTMENTS
    ============================================================ */
.stride-main .elementor-section:first-child { margin-top: 0 !important; }
.stride-main .e-con:first-child,
.stride-main .elementor-container:first-child { padding-top: 0 !important; }
.stride-main ul, .stride-main ol { list-style: revert; }

/* 17. WP ADMIN BAR OFFSET
    ============================================================ */
.admin-bar .stride-app-bar { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .stride-app-bar { top: 46px; }
}

/* 18. ACCESSIBILITY
    ============================================================ */
:focus-visible {
  outline: 2px solid var(--s-green);
  outline-offset: 3px;
  border-radius: 3px;
}
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
