/* CortanaTech Solutions — Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@700;800;900&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');
@import url('_ds/cortanatech-design-system-bb1f31c6-d264-4dcb-8e4e-e193a53ac1cd/tokens/colors.css');
@import url('_ds/cortanatech-design-system-bb1f31c6-d264-4dcb-8e4e-e193a53ac1cd/tokens/typography.css');
@import url('_ds/cortanatech-design-system-bb1f31c6-d264-4dcb-8e4e-e193a53ac1cd/tokens/spacing.css');
@import url('_ds/cortanatech-design-system-bb1f31c6-d264-4dcb-8e4e-e193a53ac1cd/tokens/shadows.css');

:root {
  /* Motion vocabulary — calm and responsive; motion reacts to input, not scroll. */
  --ease-ripple: cubic-bezier(0.22, 1, 0.36, 1);    /* smooth deceleration — default */
  --ease-drop:   cubic-bezier(0.5, 0, 0.9, 0.4);    /* acceleration — exits */
  --ease-settle: cubic-bezier(0.34, 1.3, 0.64, 1);  /* slight overshoot — landing */
  --dur-micro: 200ms;
  --dur-reveal: 600ms;
  --dur-ring: 900ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--font-body); scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
input, textarea, select { font-family: var(--font-body); }
input::placeholder, textarea::placeholder { color: rgba(120,126,140,0.65); }

/* Focus — sky blue reads on both white and navy */
:focus-visible { outline: 3px solid var(--color-blue-sky); outline-offset: 2px; }
.form-input:focus-visible, .form-input-dark:focus-visible { outline: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 56px; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section { padding: 96px 0; }
.section-warm { background: var(--color-surface-subtle); }
.section-white { background: var(--color-surface-default); }

/* Section headers */
.eyebrow { font-family: var(--font-body); font-size: 13px; font-weight: var(--font-semibold); letter-spacing: var(--tracking-wider); color: var(--color-text-accent); text-transform: uppercase; margin-bottom: 14px; }
.eyebrow-light { font-family: var(--font-body); font-size: 13px; font-weight: var(--font-semibold); letter-spacing: var(--tracking-wider); color: rgba(255,255,255,0.75); text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-family: var(--font-display); font-weight: var(--font-black); color: var(--color-primary-dark); letter-spacing: -0.015em; line-height: var(--leading-tight); font-size: clamp(28px, 4vw, 44px); }
.section-title-light { color: #fff; }
.section-sub { font-family: var(--font-body); font-size: 16px; color: var(--color-text-secondary); line-height: var(--leading-relaxed); max-width: 560px; margin-top: 16px; }
.section-head-center { text-align: center; margin-bottom: 56px; }
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* Icon boxes — circular ripple nodes */
.icon-box { width: 52px; height: 52px; background: var(--color-primary-subtle); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--color-primary); flex-shrink: 0; }
.icon-box-sm { width: 44px; height: 44px; }
.icon-box-xs { width: 36px; height: 36px; }
.icon-box-dark { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); }
.check-bullet { width: 20px; height: 20px; background: var(--color-primary-subtle); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-primary); }

/* Pills / badges */
.badge { display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: var(--font-semibold); color: var(--color-text-accent); background: var(--color-primary-subtle); padding: 6px 12px; border-radius: var(--radius-full); }
.hero-badge { display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: var(--font-semibold); letter-spacing: var(--tracking-widest); color: rgba(255,255,255,0.72); text-transform: uppercase; border: 1px solid rgba(255,255,255,0.24); padding: 7px 18px; border-radius: var(--radius-full); }

/* Image treatments — rounded, elevated, navy scrim (brand photo language) */
.img-card { position: relative; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.img-card img { width: 100%; height: 100%; object-fit: cover; }
.img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(43,57,144,0.85) 0%, transparent 55%); }
.img-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; }

/* Navigation */
.nav-link { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--color-text-secondary); transition: color 0.2s; }
.nav-link:hover { color: var(--color-primary); }
.nav-link-active { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--color-primary); }
.nav-link-white { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.82); transition: color 0.2s; }
.nav-link-white:hover { color: #fff; }
.nav-btn { background: var(--color-primary-dark); color: #fff; padding: 11px 24px; border-radius: var(--radius-full); font-family: var(--font-body); font-size: 14px; font-weight: 600; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; }
.nav-btn:hover { background: var(--color-primary); transform: translateY(-1px); box-shadow: var(--shadow-button); }
.nav-btn-active { background: var(--color-primary); color: #fff; padding: 11px 24px; border-radius: var(--radius-full); font-family: var(--font-body); font-size: 14px; font-weight: 700; }
.nav-btn-glass { color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); padding: 10px 24px; border-radius: var(--radius-full); backdrop-filter: blur(8px); font-family: var(--font-body); font-size: 14px; font-weight: 700; transition: background 0.2s; }
.nav-btn-glass:hover { background: rgba(255,255,255,0.22); }

/* Mobile nav */
.mobile-menu-btn { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; }
.mobile-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border-subtle); padding: 16px 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 99; }
.mobile-nav.open { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--color-text-secondary); padding: 10px 0; border-bottom: 1px solid var(--color-surface-subtle); transition: color 0.2s; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--color-primary); }

/* Cards */
.service-card { background: #fff; border: 1.5px solid var(--color-border-subtle); border-radius: var(--radius-xl); padding: 32px 24px; transition: all 0.2s; display: block; color: inherit; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--color-blue-100); }

.team-card { background: #fff; border: 1.5px solid var(--color-border-subtle); border-radius: 20px; padding: 36px 28px; display: flex; flex-direction: column; align-items: flex-start; transition: all 0.2s; }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(28,117,188,0.1); border-color: var(--color-blue-100); }

.blog-card { display: block; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow 0.2s; color: inherit; }
.blog-card:hover { box-shadow: var(--shadow-card-hover); }

.hero-blog-card { display: block; background: rgba(255,255,255,0.09); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-xl); padding: 28px; transition: background 0.2s; color: inherit; }
.hero-blog-card:hover { background: rgba(255,255,255,0.15); }

/* Buttons — pills */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--color-primary-dark); color: #fff; padding: 13px 28px; border-radius: var(--radius-full); font-family: var(--font-body); font-size: 14px; font-weight: 600; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--color-primary); transform: translateY(-1px); box-shadow: var(--shadow-button); }
.btn-primary-lg { display: inline-flex; align-items: center; gap: 8px; background: var(--color-primary-dark); color: #fff; padding: 15px 34px; border-radius: var(--radius-full); font-family: var(--font-body); font-size: 15px; font-weight: 700; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; white-space: nowrap; flex-shrink: 0; }
.btn-primary-lg:hover { background: var(--color-primary); transform: translateY(-1px); box-shadow: var(--shadow-button); }
.btn-white { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--color-primary-dark); padding: 15px 34px; border-radius: var(--radius-full); font-family: var(--font-body); font-size: 15px; font-weight: 700; transition: background 0.2s, transform 0.2s; white-space: nowrap; flex-shrink: 0; }
.btn-white:hover { background: var(--color-primary-subtle); transform: translateY(-1px); }
.btn-outline-white { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--color-primary-dark); padding: 13px 28px; border-radius: var(--radius-full); font-family: var(--font-body); font-size: 14px; font-weight: 700; transition: background 0.2s, transform 0.2s; }
.btn-outline-white:hover { background: var(--color-primary-subtle); transform: translateY(-1px); }

/* Footer */
.footer-link { font-family: var(--font-body); font-size: 14px; color: var(--color-text-secondary); font-weight: 500; transition: color 0.2s; }
.footer-link:hover { color: var(--color-primary); }
.footer-link-active { font-family: var(--font-body); font-size: 14px; color: var(--color-primary); font-weight: 700; }

/* Form inputs */
.form-input { width: 100%; padding: 13px 16px; border: 1.5px solid var(--color-border-default); border-radius: 10px; background: #fff; color: var(--color-text-primary); font-size: 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-family: var(--font-body); }
.form-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(28,117,188,0.1); }
.form-input-dark { width: 100%; padding: 12px 15px; border: 1.5px solid rgba(255,255,255,0.14); border-radius: 10px; background: rgba(255,255,255,0.07); color: #fff; font-size: 14px; outline: none; font-family: var(--font-body); transition: border-color 0.2s, box-shadow 0.2s; }
.form-input-dark:focus { border-color: var(--color-blue-sky); box-shadow: 0 0 0 3px rgba(41,171,226,0.25); }
.form-label { font-family: var(--font-body); font-size: 11px; font-weight: 600; color: #6B7280; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.form-label-dark { font-family: var(--font-body); font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.68); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 8px; }

/* Animation */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.6s var(--ease-ripple) both; }

/* Scroll reveal (driven by enhance.js).
   Hidden state applies ONLY when JS adds `js-anim` to <html>, so content
   stays visible if JS is disabled or fails. */
.js-anim .reveal { opacity: 0; transform: translateY(18px); }
/* Hidden state must be instant even on components that carry `transition: all`. */
.js-anim .reveal:not(.reveal-in) { transition: none; }
/* Reveal via a one-shot animation so the component's own hover transition survives. */
.js-anim .reveal.reveal-in { animation: fadeUp 0.6s var(--ease-ripple) both; }
/* Stagger children of a revealed grid/row */
.js-anim .reveal-stagger > *:nth-child(2) { animation-delay: 0.08s; }
.js-anim .reveal-stagger > *:nth-child(3) { animation-delay: 0.16s; }
.js-anim .reveal-stagger > *:nth-child(4) { animation-delay: 0.24s; }

/* "Viewing as" role chip (injected into nav by role.js) */
.role-chip-wrap { position: relative; display: inline-flex; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 12.5px; font-weight: 500; color: var(--color-text-secondary); background: var(--color-primary-subtle); border: 1px solid var(--color-blue-100); border-radius: var(--radius-full); padding: 7px 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.role-chip strong { font-weight: 700; color: var(--color-primary); }
.role-chip:hover { border-color: var(--color-primary); }
.role-chip-dark { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.role-chip-dark strong { color: #fff; }
.role-chip-dark:hover { border-color: rgba(255,255,255,0.6); }
.role-chip-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 200; background: #fff; border: 1px solid var(--color-border-subtle); border-radius: 14px; box-shadow: var(--shadow-xl); padding: 6px; min-width: 180px; display: flex; flex-direction: column; }
.role-chip-option { font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--color-text-primary); background: transparent; border: none; border-radius: 9px; padding: 10px 14px; text-align: left; cursor: pointer; transition: background 0.15s; }
.role-chip-option:hover { background: var(--color-primary-subtle); }
.role-chip-option[aria-selected="true"] { font-weight: 700; color: var(--color-primary); }
.mobile-nav .role-chip-wrap { margin-top: 4px; }

/* Chat demo widget (chat-demo.js — homepage + services) */
.chat-panel { background: #fff; border-radius: 24px; box-shadow: var(--shadow-2xl); overflow: hidden; display: flex; flex-direction: column; max-height: 560px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--color-border-subtle); background: #fff; }
.chat-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; flex-shrink: 0; }
.chat-head-label { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--color-text-secondary); }
.chat-log { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; max-height: 360px; background: var(--color-surface-subtle); }
.chat-row { display: flex; }
.chat-row-bot { justify-content: flex-start; }
.chat-row-user { justify-content: flex-end; }
.chat-bubble { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-family: var(--font-body); font-size: 14px; line-height: 1.55; }
.chat-bubble-bot { background: #fff; color: var(--color-text-primary); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-bubble-user { background: var(--color-primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px 20px; background: #fff; border-top: 1px solid var(--color-border-subtle); min-height: 68px; }
.chat-chip { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--color-primary); background: var(--color-primary-subtle); border: 1.5px solid transparent; border-radius: 100px; padding: 10px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s; min-height: 44px; }
.chat-chip:hover { border-color: var(--color-primary); background: #fff; }
.chat-typing { display: flex; gap: 4px; align-items: center; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-muted); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes typingBlink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
  .chat-typing i { animation: typingBlink 1s infinite; }
  .chat-typing i:nth-child(2) { animation-delay: 0.2s; }
  .chat-typing i:nth-child(3) { animation-delay: 0.4s; }
}
@media (max-width: 900px) {
  .chat-log { max-height: 300px; }
}

/* Role-aware callout on inner pages ("For your church: ...").
   Hidden until the visitor has chosen a role on the homepage. */
.role-note { display: flex; gap: 10px; align-items: baseline; background: var(--color-primary-subtle); border-left: 3px solid var(--color-primary); border-radius: 10px; padding: 14px 18px; margin-bottom: 28px; font-family: var(--font-body); font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }
.role-note strong { color: var(--color-primary-dark); white-space: nowrap; }
html:not([data-role]) .role-note { display: none; }

/* "Picked for you" badge on role-matched cards; per-page CSS reveals the match */
.role-pick-badge { display: none; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: var(--color-primary); padding: 5px 10px; border-radius: 100px; }

/* Blog read more */
.read-more { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--color-primary); transition: color 0.2s; }
.read-more:hover { color: var(--color-primary-dark); }

/* Blog view-all link (on dark bg) */
.view-all { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 2px; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.view-all:hover { color: #fff; border-color: rgba(255,255,255,0.7); }
/* Light-bg variant */
.view-all-dark { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--color-primary); border-bottom: 1px solid var(--color-blue-100); padding-bottom: 2px; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.view-all-dark:hover { color: var(--color-primary-dark); border-color: var(--color-primary); }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: 80px 0 88px; overflow: hidden; background: linear-gradient(148deg, #1d6db0 0%, #1f3882 42%, #19235a 100%); }

/* Portfolio image link */
.port-link { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--color-primary); padding: 13px 12px; transition: color 0.2s; }
.port-link:hover { color: var(--color-primary-dark); }

/* Testimonial blog read-more underline */
.blog-read-more { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.94); border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 1px; transition: color 0.2s; }
.blog-read-more:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.7); }

/* Responsive */
@media (max-width: 900px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-btn { display: flex !important; align-items: center; justify-content: center; }
  .container { padding-left: 24px !important; padding-right: 24px !important; }
  .split-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .footer-inner { flex-direction: column; align-items: flex-start !important; }
  .cta-inner { flex-direction: column; align-items: flex-start !important; }
  .services-grid { grid-template-columns: 1fr !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .stats-row { flex-direction: column; gap: 24px !important; padding-top: 28px !important; }
  .team-grid { grid-template-columns: 1fr !important; }
  .process-grid { grid-template-columns: 1fr !important; }
  .details-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .hero-email { flex-direction: column; border-radius: 10px !important; }
  .hero-email input, .hero-email button { border-radius: 10px !important; }
  .hero-email button { width: 100%; }
}
