/* ============================================================
   Data Pulse Tech AI — Master Stylesheet
   CSS scroll-snap sections + detail pages
   ============================================================ */

/* 1. RESET & BASE
   ———————————————————————————————————————————————————————————— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', monospace;
  color: #111;
  background: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* 2. TYPOGRAPHY
   ———————————————————————————————————————————————————————————— */
.headline-xl { font-family: 'DM Serif Display', serif; font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; line-height: 1.1; }
.headline-lg { font-family: 'DM Serif Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.15; }
.headline-md { font-family: 'DM Serif Display', serif; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.2; }
.overline { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; display: block; }
.body-text { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; line-height: 1.8; color: #888; }

/* 3. NAVIGATION
   ———————————————————————————————————————————————————————————— */
.site-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.nav-logo .logo-name { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: #fff; letter-spacing: -0.01em; }
.nav-logo .logo-suffix { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: #fff; letter-spacing: -0.01em; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.72rem; color: #888; text-decoration: none; letter-spacing: 0.03em; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-burger { display: none; background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }

/* 4. MOBILE NAV OVERLAY
   ———————————————————————————————————————————————————————————— */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(10,10,10,0.98); z-index: 99;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
body.nav-open .nav-overlay { opacity: 1; pointer-events: all; }
.nav-overlay a { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: #fff; text-decoration: none; }
.nav-overlay .close-btn { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* 5. SIDE NAV DOTS
   ———————————————————————————————————————————————————————————— */
.side-nav {
  position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 1rem;
}
.side-dot {
  display: block; width: 10px; height: 10px; text-decoration: none; position: relative;
}
.side-dot span {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.25); transition: background 0.3s, transform 0.3s;
}
.side-dot.active span,
.side-dot:hover span {
  background: #fff; transform: scale(1.3);
}
.side-dot::before {
  content: attr(data-tooltip);
  position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: #fff;
  background: rgba(10,10,10,0.9); padding: 0.3rem 0.6rem; border-radius: 4px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.side-dot:hover::before { opacity: 1; }

/* 6. SECTION BASE — scroll-snap
   ———————————————————————————————————————————————————————————— */
.section {
  scroll-snap-align: start;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.section-dark { background: #0a0a0a; color: #fff; }
.section-light { background: #fafafa; color: #111; }

.section-content {
  max-width: 1100px; width: 100%;
  padding: 2rem; margin: 0 auto; text-align: center;
}

/* 7. HERO
   ———————————————————————————————————————————————————————————— */
.hero-partner { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 2rem; }
.hero-partner .dots { display: flex; gap: 5px; }
.hero-partner .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.hero-partner .label { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.15em; color: #666; }

.hero-headline {
  font-family: 'DM Serif Display', serif; font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.02em; line-height: 1.1; color: #fff; margin-bottom: 1.2rem;
}
.hero-sub { max-width: 500px; margin: 0 auto 2rem; font-size: 0.85rem; color: #666; line-height: 1.9; }

.compliance-strip { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.compliance-badge {
  font-size: 0.6rem; font-weight: 500; padding: 0.4rem 0.8rem; border-radius: 4px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #888;
}

.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; }
.scroll-indicator.hidden { opacity: 0; transition: opacity 0.4s; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* 8. SERVICES
   ———————————————————————————————————————————————————————————— */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.service-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 10px;
  padding: 1.5rem; text-align: left; text-decoration: none; color: inherit; transition: all 0.3s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.12); }
.service-card h3 { font-size: 0.82rem; font-weight: 600; color: #111; margin-bottom: 0.4rem; }
.service-card p { font-size: 0.7rem; color: #888; line-height: 1.7; }

.view-all { font-size: 0.72rem; color: #4285f4; text-decoration: none; margin-top: 1.5rem; display: inline-block; transition: color 0.3s; }
.view-all:hover { color: #2a6dd4; }

/* 9. PROOF — HORIZONTAL SLIDES
   ———————————————————————————————————————————————————————————— */
.slides-container { position: relative; max-width: 650px; margin: 0 auto; overflow: hidden; }

.slides-track { position: relative; }
.slides-track .slide {
  display: none; flex-direction: column; align-items: center; text-align: center;
  animation: fadeSlide 0.4s ease;
}
.slides-track .slide.active { display: flex; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.case-overline { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; color: #555; margin-bottom: 1rem; display: block; }
.case-metric { font-size: clamp(3rem, 8vw, 5rem); font-weight: 700; line-height: 1; margin-bottom: 0.5rem; display: block; }
.case-metric.blue  { color: #4285f4; }
.case-metric.green { color: #34a853; }
.case-metric.yellow { color: #fbbc04; }
.case-metric.red   { color: #ea4335; }
.case-desc { font-size: 0.85rem; color: #888; margin-bottom: 1.5rem; }
.case-quote { font-size: 0.82rem; font-style: italic; color: #666; line-height: 1.8; margin: 0 0 1.5rem; max-width: 400px; border: none; padding: 0; }
.case-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.5rem; }
.case-tag { font-size: 0.58rem; padding: 0.3rem 0.7rem; border-radius: 4px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: #888; }
.case-link { font-size: 0.72rem; color: #4285f4; text-decoration: none; }

.slides-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.slide-arrow {
  background: none; border: 1px solid rgba(255,255,255,0.15); color: #888;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.slide-arrow:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.slide-dots { display: flex; gap: 0.5rem; }
.slide-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.2); transition: all 0.3s; padding: 0;
}
.slide-dot.active { background: #fff; transform: scale(1.3); }

/* 10. INDUSTRIES
   ———————————————————————————————————————————————————————————— */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.industry-card { text-align: center; padding: 1.5rem 1rem; }
.industry-icon { width: 48px; height: 48px; margin: 0 auto 1rem; }
.industry-icon svg { width: 100%; height: 100%; }
.industry-card h3 { font-size: 0.82rem; font-weight: 600; color: #111; margin-bottom: 0.5rem; }
.industry-card p { font-size: 0.65rem; color: #888; line-height: 1.7; }

/* 11. CONTACT
   ———————————————————————————————————————————————————————————— */
.contact-form { max-width: 600px; margin: 0 auto; width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-row.full { grid-template-columns: 1fr; }
.form-field label { display: block; font-size: 0.6rem; color: #666; margin-bottom: 0.4rem; letter-spacing: 0.05em; text-transform: uppercase; }
.form-field input, .form-field textarea {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 0.8rem 1rem; color: #fff; font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; outline: none; transition: border-color 0.3s;
}
.form-field input:focus, .form-field textarea:focus { border-color: rgba(255,255,255,0.25); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #555; }
.form-field textarea { min-height: 120px; resize: vertical; }

.btn-submit {
  background: #c24e00; color: #fff; border: none; border-radius: 6px;
  padding: 0.8rem 2rem; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  font-weight: 600; cursor: pointer; transition: all 0.3s; width: 100%; margin-top: 0.5rem;
}
.btn-submit:hover { background: #a84200; transform: translateY(-1px); }
.btn-submit:focus { outline: 2px solid #c24e00; outline-offset: 2px; }

.contact-alt { font-size: 0.72rem; color: #666; margin-top: 1.5rem; }
.contact-alt a { color: #888; text-decoration: none; transition: color 0.3s; }
.contact-alt a:hover { color: #fff; }

.contact-footer { font-size: 0.6rem; color: #444; margin-top: 1.5rem; }
.contact-links { margin-top: 0.8rem; }
.contact-links a { font-size: 0.6rem; color: #555; text-decoration: none; }

.form-status { font-size: 0.72rem; padding: 0.8rem 1rem; border-radius: 6px; margin-top: 1rem; text-align: center; }
.form-status--success { background: rgba(52,168,83,0.1); border: 1px solid rgba(52,168,83,0.2); color: #34a853; }
.form-status--error { background: rgba(234,67,53,0.1); border: 1px solid rgba(234,67,53,0.2); color: #ea4335; }

/* 12. DETAIL PAGE STYLES
   ———————————————————————————————————————————————————————————— */
.detail-page html { scroll-snap-type: none; }
.detail-page .site-nav { background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.detail-hero {
  background: #0a0a0a; color: #fff; padding: 8rem 2rem 4rem; text-align: center;
  min-height: 40vh; display: flex; align-items: center; justify-content: center;
}
.detail-hero .overline { color: #555; }
.detail-hero h1 { font-family: 'DM Serif Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1rem; }
.detail-hero p { max-width: 600px; margin: 0 auto; color: #888; font-size: 0.85rem; line-height: 1.8; }

.detail-content { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }
.detail-content h2 { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: #111; margin: 2.5rem 0 1rem; }
.detail-content h3 { font-size: 0.9rem; font-weight: 600; color: #111; margin: 2rem 0 0.8rem; }
.detail-content p { font-size: 0.82rem; color: #555; line-height: 1.9; margin-bottom: 1.2rem; }
.detail-content ul { list-style: none; padding: 0; }
.detail-content li { font-size: 0.8rem; color: #555; line-height: 1.8; padding-left: 1.2rem; position: relative; margin-bottom: 0.5rem; }
.detail-content li::before { content: "\2014"; position: absolute; left: 0; color: #999; }

.capabilities-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.capability-item { background: #f7f8fb; border: 1px solid rgba(0,0,0,0.06); border-radius: 8px; padding: 1.2rem; text-align: left; }
.capability-item h4 { font-size: 0.78rem; font-weight: 600; color: #111; margin-bottom: 0.3rem; }
.capability-item p { font-size: 0.7rem; color: #888; line-height: 1.6; }

.tools-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.tool-pill { font-size: 0.6rem; padding: 0.35rem 0.7rem; border-radius: 4px; background: rgba(66,133,244,0.08); color: #4285f4; border: 1px solid rgba(66,133,244,0.15); }

.detail-cta { background: #0a0a0a; padding: 5rem 2rem; text-align: center; }
.detail-cta h2 { font-family: 'DM Serif Display', serif; font-size: 1.8rem; color: #fff; margin-bottom: 0.8rem; }
.detail-cta p { font-size: 0.82rem; color: #888; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.btn-primary { display: inline-block; background: #c24e00; color: #fff; padding: 0.8rem 2rem; border-radius: 6px; text-decoration: none; font-size: 0.78rem; font-weight: 600; transition: all 0.3s; }
.btn-primary:hover { background: #a84200; transform: translateY(-2px); }

.detail-footer { background: #0a0a0a; padding: 2rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); }
.detail-footer p { font-size: 0.6rem; color: #444; }
.detail-footer a { color: #555; text-decoration: none; }

.case-detail-metric { display: inline-block; font-size: 2.5rem; font-weight: 700; margin-bottom: 0.3rem; }
.case-detail-quote { border-left: 3px solid #c24e00; padding-left: 1.5rem; font-style: italic; color: #444; margin: 2rem 0; }

/* 13. SKIP LINK & ACCESSIBILITY
   ———————————————————————————————————————————————————————————— */
.skip-link { position: absolute; top: -100%; left: 1rem; background: #c24e00; color: #fff; padding: 0.5rem 1rem; border-radius: 4px; z-index: 200; font-size: 0.75rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }
*:focus-visible { outline: 2px solid #4285f4; outline-offset: 2px; }

/* 14. RESPONSIVE — 768px
   ———————————————————————————————————————————————————————————— */
@media (max-width: 768px) {
  html { scroll-snap-type: none; } /* disable snap on mobile for usability */
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .side-nav { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .capabilities-list { grid-template-columns: 1fr; }
  .hero-headline { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .case-metric { font-size: clamp(2.5rem, 12vw, 4rem); }
  .compliance-strip { gap: 0.4rem; }
  .compliance-badge { font-size: 0.55rem; padding: 0.3rem 0.6rem; }
}

/* 15. RESPONSIVE — 500px
   ———————————————————————————————————————————————————————————— */
@media (max-width: 500px) {
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .section-content { padding: 1.5rem; }
}

/* 16. REDUCED MOTION
   ———————————————————————————————————————————————————————————— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* 17. PRINT
   ———————————————————————————————————————————————————————————— */
@media print {
  .site-nav, .nav-overlay, .scroll-indicator, .side-nav, .slides-nav { display: none !important; }
  html { scroll-snap-type: none; }
  body { background: #fff; color: #000; }
  .section, .section-dark, .section-light { display: block; background: #fff; color: #000; height: auto !important; min-height: 0; page-break-inside: avoid; }
  .hero-headline, .headline-xl, .headline-lg { color: #000; }
  a { color: #000; text-decoration: underline; }
}
