/* ==========================================================================
   CanyonAnalytics — Corner Canyon Analytics LLC
   Data analytics site. Dark deep-navy dashboard theme with pulse-azure accents.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: #0B1424;
  color: #D5DEEB;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: #2E86C1; text-decoration: none; }
a:hover { color: #F0F5FC; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: #F0F5FC;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Chart mark (CSS bar chart: three bars) ---- */
.chart-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  width: 20px;
}
.chart-mark span {
  display: block;
  width: 4px;
  border-radius: 1px;
  background-color: #2E86C1;
}
.chart-mark span:nth-child(1) { height: 38%; }
.chart-mark span:nth-child(2) { height: 62%; }
.chart-mark span:nth-child(3) { height: 90%; }

/* ---- Rotated border-strip line-trend graphic ---- */
.trend-line {
  position: absolute;
  height: 0;
  border-top: 3px solid #2E86C1;
  pointer-events: none;
}
.trend-line::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #2E86C1;
}

/* ==========================================================================
   NAVIGATION
   .hero-nav is embedded at the top of the homepage hero.
   .site-header is the slim top bar used on secondary pages.
   Both are class-scoped; never a bare element selector.
   ========================================================================== */

.hero-nav,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0B1424;
}

.site-header { border-bottom: 1px solid #223252; }

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: #F0F5FC;
}
.nav-brand:hover { color: #2E86C1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: #D5DEEB;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: #F0F5FC; border-bottom-color: #2E86C1; }

.nav-cta {
  display: inline-block;
  background-color: #2E86C1;
  color: #0B1424;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #2E86C1;
}
.nav-cta:hover { background-color: #F0F5FC; color: #0B1424; border-color: #F0F5FC; }

.nav-toggle {
  display: none;
  background-color: #111D33;
  color: #F0F5FC;
  border: 1px solid #223252;
  font-size: 22px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* ==========================================================================
   HERO — giant background word + KPI tile strip
   ========================================================================== */

.word-hero {
  position: relative;
  background-color: #0B1424;
  padding: 40px 0 90px;
  overflow: hidden;
}

.word-hero .bg-word {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 200px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #2E86C1;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.chart-dot {
  position: absolute;
  border-radius: 50%;
  background-color: #2E86C1;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 150px 24px 40px;
  text-align: center;
}

.eyebrow-chip {
  display: inline-block;
  background-color: #2E86C1;
  color: #0B1424;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.08;
  margin-bottom: 24px;
  color: #F0F5FC;
}
.hero-title .accent { color: #2E86C1; }

.hero-sub {
  font-size: 19px;
  color: #D5DEEB;
  max-width: 720px;
  margin: 0 auto 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-azure {
  background-color: #2E86C1;
  color: #0B1424;
  border-color: #2E86C1;
}
.btn-azure:hover { background-color: #F0F5FC; color: #0B1424; border-color: #F0F5FC; }
.btn-outline {
  background-color: #0B1424;
  color: #F0F5FC;
  border-color: #F0F5FC;
}
.btn-outline:hover { background-color: #F0F5FC; color: #0B1424; }
.btn-white {
  background-color: #F0F5FC;
  color: #2E86C1;
  border-color: #F0F5FC;
}
.btn-white:hover { background-color: #D5DEEB; color: #0B1424; border-color: #D5DEEB; }

/* KPI tile chart strip */
.kpi-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kpi-tile {
  background-color: #111D33;
  border: 1px solid #223252;
  border-radius: 10px;
  padding: 26px 22px;
  text-align: left;
}

.kpi-tile .chart-mark { margin-bottom: 14px; }

.kpi-tile .kpi-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 700;
  color: #F0F5FC;
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-tile .kpi-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8FA1C0;
}

/* ==========================================================================
   SERVICE CHAPTERS — long-form editorial chapters
   ========================================================================== */

.service-chapters {
  background-color: #0B1424;
  padding: 90px 0 30px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-head .eyebrow-chip { margin-bottom: 16px; }

.section-head h2 {
  font-size: 38px;
  padding-bottom: 16px;
  border-bottom: 4px solid #2E86C1;
  display: inline-block;
}

.service-chapter {
  padding: 56px 0;
  border-top: 1px solid #223252;
}

.service-chapter .chapter-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 700;
  color: #2E86C1;
  margin-bottom: 10px;
}

.service-chapter h3 {
  font-size: 30px;
  color: #F0F5FC;
  margin-bottom: 18px;
}

.service-chapter p {
  color: #D5DEEB;
  font-size: 17px;
  max-width: 860px;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
}

.spec-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8FA1C0;
}

.spec-item::before {
  content: "";
  width: 9px;
  height: 9px;
  background-color: #2E86C1;
}

/* ==========================================================================
   TOOL STRIP — horizontal strip of tool cards
   ========================================================================== */

.tool-strip {
  background-color: #16233D;
  padding: 90px 0;
}

.tool-strip .section-head h2 { border-bottom-color: #2E86C1; }

.tool-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.tool-card {
  background-color: #111D33;
  border: 1px solid #223252;
  border-radius: 10px;
  padding: 24px 20px;
}

.tool-card .chart-mark { margin-bottom: 14px; }

.tool-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #F0F5FC;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 14px;
  color: #8FA1C0;
  margin: 0;
}

/* ==========================================================================
   DUO PANELS — sticky intro + content blocks
   ========================================================================== */

.duo-panels {
  background-color: #0B1424;
  padding: 90px 0;
}

.duo-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.duo-intro { position: sticky; top: 90px; }

.duo-intro .eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.duo-intro .eyebrow-row::before {
  content: "";
  width: 9px;
  height: 9px;
  background-color: #2E86C1;
}

.duo-intro .eyebrow-row span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8FA1C0;
}

.duo-intro h2 {
  font-size: 34px;
  color: #F0F5FC;
  margin-bottom: 18px;
}

.duo-intro p { color: #D5DEEB; }

.duo-tags {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.duo-tags li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #223252;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8FA1C0;
}

.duo-tags li::before {
  content: "";
  width: 9px;
  height: 9px;
  background-color: #2E86C1;
}

.duo-block {
  padding: 34px 0;
  border-top: 1px solid #223252;
}

.duo-block:first-child { border-top: none; }

.duo-block h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  color: #F0F5FC;
  margin-bottom: 16px;
}

.duo-block h3 .chart-mark { height: 20px; width: 24px; }

.duo-block p { color: #D5DEEB; }

.mini-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.mini-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
  color: #D5DEEB;
}

.mini-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #2E86C1;
  flex: 0 0 8px;
}

/* ==========================================================================
   CTA BAND — solid azure band
   ========================================================================== */

.cta-band {
  background-color: #2E86C1;
  padding: 84px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 40px;
  color: #0B1424;
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 18px;
  color: #0B1424;
  max-width: 640px;
  margin: 0 auto 30px;
}

/* ==========================================================================
   STACK FOOTER — single centered column
   ========================================================================== */

.stack-footer {
  background-color: #0B1424;
  border-top: 1px solid #223252;
  padding: 60px 24px 40px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: #F0F5FC;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-bottom: 28px;
}

.footer-links a {
  font-size: 15px;
  font-weight: 600;
  color: #D5DEEB;
}
.footer-links a:hover { color: #F0F5FC; text-decoration: underline; }

.footer-legal {
  font-size: 13px;
  color: #8FA1C0;
  max-width: 780px;
  margin: 0 auto 10px;
}

.footer-legal a { color: #8FA1C0; }
.footer-legal a:hover { color: #F0F5FC; }

/* ==========================================================================
   SECONDARY PAGES (services / contact)
   ========================================================================== */

.page-hero {
  background-color: #0B1424;
  padding: 70px 0 54px;
}

.page-hero .eyebrow-chip { margin-bottom: 18px; }

.page-hero h1 {
  font-size: 46px;
  color: #F0F5FC;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 18px;
  color: #D5DEEB;
  max-width: 760px;
}

/* Services detail sections */
.service-section {
  background-color: #0B1424;
  padding: 64px 0;
  border-top: 1px solid #223252;
}

.service-section .service-icon {
  display: inline-flex;
  margin-bottom: 18px;
}

.service-section .service-icon .chart-mark { height: 26px; width: 30px; }
.service-section .service-icon .chart-mark span { width: 6px; }

.service-section h2 {
  font-size: 32px;
  color: #F0F5FC;
  margin-bottom: 16px;
}

.service-section p { color: #D5DEEB; font-size: 17px; max-width: 880px; }

.process-overview {
  background-color: #16233D;
  padding: 80px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.process-step {
  background-color: #111D33;
  border: 1px solid #223252;
  border-radius: 10px;
  padding: 26px 22px;
}

.process-step .step-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  color: #2E86C1;
  margin-bottom: 8px;
}

.process-step h3 {
  font-size: 20px;
  color: #F0F5FC;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 15px;
  color: #D5DEEB;
  margin: 0;
}

/* Contact page */
.contact-section {
  background-color: #0B1424;
  padding: 70px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: start;
}

.contact-form {
  background-color: #111D33;
  border: 1px solid #223252;
  border-radius: 12px;
  padding: 36px;
}

.contact-form h2 {
  font-size: 28px;
  color: #F0F5FC;
  margin-bottom: 8px;
}

.contact-form .form-note { color: #8FA1C0; font-size: 14px; margin-bottom: 24px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8FA1C0;
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background-color: #0B1424;
  border: 1px solid #223252;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #F0F5FC;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #2E86C1;
}

.field textarea { min-height: 150px; resize: vertical; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background-color: #16233D;
  border: 1px solid #223252;
  color: #D5DEEB;
  font-size: 15px;
}
.form-status.show { display: block; }

.contact-side .info-card {
  background-color: #111D33;
  border: 1px solid #223252;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 22px;
}

.contact-side h3 {
  font-size: 20px;
  color: #F0F5FC;
  margin-bottom: 12px;
}

.contact-side p,
.contact-side li { color: #D5DEEB; }

.contact-side ul { list-style: none; padding: 0; margin: 0; }

.contact-side ul li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #223252;
  font-size: 15px;
}
.contact-side ul li:last-child { border-bottom: none; }

.contact-side ul li::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #2E86C1;
  flex: 0 0 8px;
  position: relative;
  top: -2px;
}

/* FAQ accordion */
.faq-list { margin-top: 8px; }

.faq-item {
  background-color: #111D33;
  border: 1px solid #223252;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item button.faq-q {
  width: 100%;
  text-align: left;
  background-color: #111D33;
  color: #F0F5FC;
  border: none;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item button.faq-q::after {
  content: "+";
  font-size: 22px;
  color: #2E86C1;
}

.faq-item.open button.faq-q::after { content: "-"; }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: #D5DEEB;
  font-size: 15px;
}
.faq-item.open .faq-a { display: block; }

/* ==========================================================================
   SCROLL REVEAL — safe without JS (noscript + timer fallback)
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero-title { font-size: 42px; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .tool-row { grid-template-columns: repeat(3, 1fr); }
  .duo-grid { grid-template-columns: 1fr; }
  .duo-intro { position: static; }
  .process-steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .word-hero .bg-word { font-size: 120px; top: 30px; }
  .hero-content { padding-top: 110px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: #0B1424;
    border-bottom: 1px solid #223252;
    padding: 10px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid #223252; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-cta { text-align: center; margin-top: 10px; }
  .hero-title { font-size: 34px; }
  .kpi-strip { grid-template-columns: 1fr; }
  .tool-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  .tool-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
  .process-steps { grid-template-columns: 1fr; }
  .cta-band h2 { font-size: 32px; }
  .contact-form { padding: 26px 20px; }
}
