/* ============================================
   QTM ORACLE — STYLES
   Mobile-first, plain CSS
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #F6F8FA;
  color: #0D1B2A;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: 1.1rem; }

p {
  color: #3D5166;
  line-height: 1.7;
}

/* --- BUTTONS --- */
.btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  min-height: 48px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: #0D1B2A;
  color: #FFFFFF;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-light {
  background-color: #FFFFFF;
  color: #0D1B2A;
}

.btn-light:hover {
  opacity: 0.9;
}

/* --- SECTION TITLES --- */
.section-title {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: #0D1B2A;
  margin-bottom: 12px;
}

.section-title-light {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: #FFFFFF;
  margin-bottom: 12px;
}

.section-intro {
  color: #3D5166;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.section-intro-light {
  color: #B8C9D9;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ============================================
   SECTIONS
   ============================================ */

/* 1. SITE HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #FFFFFF;
  border-bottom: 1px solid #D9E1E8;
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  height: 34px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Nav text links — hidden on mobile, shown on tablet+ */
.nav-link {
  display: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: #3D5166;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #0D1B2A;
  background-color: #F0F4F8;
}

/* Header CTA button — always visible */
.btn-nav {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFFFF;
  background-color: #0D1B2A;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 8px;
  min-height: 36px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  margin-left: 8px;
}

.btn-nav:hover {
  opacity: 0.85;
}

/* Anchor offset — prevent sticky header from covering section titles */
#problem, #system, #offer, #fit, #insights, #booking {
  scroll-margin-top: 68px;
}

/* 2. HERO */
.hero {
  position: relative;
  background-image: url('./assets/qtm-splash.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(8, 16, 26, 0.62);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7DBAEE;
  margin-bottom: 16px;
}

.hero-headline {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-footnote {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 16px;
}

/* Hero CTA button — white fill, dark text for contrast over image */
.btn-hero {
  background-color: #FFFFFF;
  color: #0D1B2A;
}

.btn-hero:hover {
  opacity: 0.9;
}

/* TRUST BAR */
.trust-bar {
  padding: 14px 0;
  border-top: 1px solid #D9E1E8;
  border-bottom: 1px solid #D9E1E8;
  background: #FFFFFF;
  text-align: center;
}

.trust-line {
  font-size: 0.88rem;
  color: #7A94A8;
  margin: 0;
}

/* 3. PROBLEM SECTION */
.problem {
  padding: 56px 0;
}

.card-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: #FFFFFF;
  border: 1px solid #D9E1E8;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(13, 27, 42, 0.06);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card h3 {
  color: #0D1B2A;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.95rem;
}

/* 4. SYSTEM FLOW — DARK BAND */
.dark-band {
  background-color: #0D1B2A;
  padding: 56px 0;
}

.flow-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.flow-node {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 18px;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.flow-arrow {
  color: #2D6EA3;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.flow-tagline {
  color: #B8C9D9;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* MID-PAGE SYSTEM ZONE (sections 5–7) */
.system-zone {
  position: relative;
  isolation: isolate;
}

.system-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('./assets/pattern.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
}

/* 5. WHAT WE INSTALL */
.what-we-install {
  padding: 56px 0;
}

.install-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.install-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid #D9E1E8;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(13, 27, 42, 0.05);
}

.install-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #4D7C4A;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}

.install-item strong {
  display: block;
  color: #0D1B2A;
  font-size: 1rem;
  margin-bottom: 4px;
}

.install-item p {
  font-size: 0.93rem;
  margin: 0;
}

/* 6. OFFER / PRICING */
.offer {
  padding: 72px 0 64px;
  background: transparent;
}

.offer .container {
  background: #FFFFFF;
  border: 1px solid #D9E1E8;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
  padding: 36px 28px;
}

.offer-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.offer-card {
  background: #FFFFFF;
  border: 1px solid #D9E1E8;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(13, 27, 42, 0.07);
}

.offer-card-accent {
  border-color: #2D6EA3;
  background: #FFFFFF;
}

.offer-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #F0F4F8;
  color: #3D5166;
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.offer-badge-accent {
  background: #2D6EA3;
  color: #FFFFFF;
}

.offer-card h3 {
  color: #0D1B2A;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.offer-desc {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-list li {
  font-size: 0.93rem;
  color: #3D5166;
  padding-left: 20px;
  position: relative;
}

.offer-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #2D6EA3;
  font-weight: 700;
}

.offer-footnote {
  font-size: 0.88rem;
  color: #7A94A8;
  text-align: center;
}

/* 7. WHO THIS IS FOR */
.who-its-for {
  padding: 72px 0 56px;
}

.persona-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.persona-card {
  background: #FFFFFF;
  border: 1px solid #D9E1E8;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(13, 27, 42, 0.05);
}

.persona-role {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2D6EA3;
  margin-bottom: 8px;
}

.persona-card p {
  font-size: 0.95rem;
}

.not-for {
  background: #F0F4F8;
  border: 1px solid #D9E1E8;
  border-radius: 14px;
  padding: 20px 24px;
}

.not-for p {
  font-size: 0.93rem;
  color: #3D5166;
}

.not-for strong {
  color: #0D1B2A;
}

/* 8. BOOKING */
.booking {
  /* extends .dark-band */
}

.booking-placeholder {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.booking-note {
  color: #B8C9D9;
  font-size: 1rem;
  margin-bottom: 20px;
}

/* 9. FINAL CTA */
.final-cta {
  padding: 64px 0;
  text-align: center;
}

.final-cta .section-intro {
  margin-bottom: 32px;
}

/* 10. FOOTER */
.footer {
  background: #16324F;
  padding: 40px 0 32px;
  text-align: center;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
  opacity: 0.85;
}

.footer-tagline {
  color: #B8C9D9;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-copy {
  color: #6B8EA6;
  font-size: 0.8rem;
}

/* BLOG PREVIEW (homepage) */
.blog-preview {
  padding: 72px 0 64px;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.blog-card {
  background: #FFFFFF;
  border: 1px solid #D9E1E8;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(13, 27, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #2D6EA3;
  background: #EBF3FA;
  border-radius: 6px;
  padding: 4px 10px;
  align-self: flex-start;
}

.blog-card h3 {
  color: #0D1B2A;
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}

.blog-card p {
  font-size: 0.93rem;
  color: #3D5166;
  margin: 0;
  flex: 1;
}

.blog-read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2D6EA3;
  text-decoration: none;
  align-self: flex-start;
}

.blog-read-more:hover {
  text-decoration: underline;
}

.blog-cta-row {
  text-align: center;
}

/* Outlined button variant */
.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  min-height: 48px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #0D1B2A;
  background: transparent;
  border: 2px solid #0D1B2A;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background-color: #0D1B2A;
  color: #FFFFFF;
}

/* BLOG INDEX PAGE */
.blog-page-header {
  padding: 56px 0 48px;
  border-bottom: 1px solid #D9E1E8;
}

.blog-page-header h1 {
  color: #0D1B2A;
  margin-bottom: 12px;
}

.blog-page-header p {
  font-size: 1.05rem;
  max-width: 560px;
}

.blog-index-section {
  padding: 56px 0 72px;
}

.blog-index-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* BLOG POST PAGE */
.post-nav {
  padding: 20px 0;
  border-bottom: 1px solid #D9E1E8;
}

.post-back {
  font-size: 0.88rem;
  font-weight: 500;
  color: #3D5166;
  text-decoration: none;
}

.post-back:hover {
  color: #0D1B2A;
}

.post-header {
  padding: 48px 0 36px;
}

.post-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #2D6EA3;
  background: #EBF3FA;
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.post-title {
  color: #0D1B2A;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-meta {
  font-size: 0.85rem;
  color: #7A94A8;
}

.post-body {
  padding-bottom: 72px;
  max-width: 640px;
}

.post-body h2 {
  color: #0D1B2A;
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.post-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #3D5166;
  margin-bottom: 20px;
}

.post-body ul {
  margin: 0 0 20px 0;
  padding-left: 20px;
}

.post-body li {
  font-size: 1rem;
  line-height: 1.8;
  color: #3D5166;
  margin-bottom: 8px;
}

.post-body strong {
  color: #0D1B2A;
}

.post-cta-block {
  margin-top: 48px;
  background: #0D1B2A;
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
}

.post-cta-block h3 {
  color: #FFFFFF;
  margin-bottom: 10px;
}

.post-cta-block p {
  color: #B8C9D9;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ============================================
   TABLET (min-width: 640px)
   Multi-column layouts, button sizing
   ============================================ */
@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }

  .header-inner {
    padding: 0 32px;
  }

  .nav-link {
    display: inline-block;
  }

  .btn {
    display: inline-block;
    width: auto;
    padding: 16px 36px;
  }

  /* Hero + final CTA centered buttons */
  .hero .btn,
  .final-cta .btn {
    display: inline-block;
    width: auto;
  }

  /* Two-column offer cards */
  .offer-cards {
    flex-direction: row;
    gap: 16px;
  }

  .offer-card {
    flex: 1;
  }

  /* Two-column persona grid */
  .persona-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* ============================================
   DESKTOP (min-width: 900px)
   Wider container, scaled sections
   ============================================ */
@media (min-width: 900px) {
  /* Widen the global content column */
  .container {
    max-width: 1040px;
    padding: 0 56px;
  }

  .header-inner {
    padding: 0 56px;
  }

  /* Hero stays wide naturally — constrain text only */
  .hero {
    padding: 140px 0;
  }

  /* What we install: 2-column grid */
  .install-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Offer panel: more generous padding at wider scale */
  .offer .container {
    padding: 52px 64px;
  }

  /* Problem cards: 3 columns */
  .card-grid {
    flex-direction: row;
    align-items: stretch;
  }

  .card {
    flex: 1;
  }

  /* Blog preview: 3-column grid */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* Blog index: 3-column grid */
  .blog-index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
