/* ============================================================
   Kolibri Industries Incorporated — Design #21
   Colors: Deep Red #7f1d1d  |  Electric Blue #2563eb
   Text:   #0f172a  |  #334155  |  #64748b
   Neutral: #f8fafc
   Theme: Neon Glow + Industrial Precision
   ============================================================ */

/* --- Reset & Base --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{
  font-family:'Segoe UI',system-ui,-apple-system,sans-serif;
  color:#0f172a;
  background:#f8fafc;
  line-height:1.6;
  overflow-x:hidden;
}

/* --- Utility --- */
.container{max-width:1200px;margin:0 auto;padding:0 1.5rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* --- Fade-in Animation --- */
.fade-in{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .6s ease-out,transform .6s ease-out;
}
.fade-in.visible{opacity:1;transform:translateY(0)}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background:#0f172a;
  border-bottom:2px solid #7f1d1d;
  padding:.75rem 0;
}
.site-header .container{
  display:flex;align-items:center;justify-content:space-between;
}
.logo{
  display:flex;align-items:center;gap:.5rem;
  text-decoration:none;
}
.logo-icon{
  width:36px;height:36px;
  background:linear-gradient(135deg,#7f1d1d 0%,#2563eb 100%);
  border-radius:6px;
  display:flex;align-items:center;justify-content:center;
  color:#f8fafc;font-size:1.1rem;font-weight:800;
}
.logo-text{
  font-size:1.15rem;font-weight:700;
  color:#f8fafc;
  letter-spacing:-0.02em;
}
.nav-links{display:flex;align-items:center;gap:1.5rem;list-style:none}
.nav-links a{
  color:#64748b;text-decoration:none;
  font-size:.875rem;font-weight:500;
  transition:color .2s;
}
.nav-links a:hover,.nav-links a:focus{color:#2563eb}

/* Mobile nav toggle */
.nav-toggle{
  display:none;
  flex-direction:column;gap:5px;
  background:none;border:none;cursor:pointer;padding:4px;
}
.nav-toggle span{
  display:block;width:24px;height:2px;
  background:#f8fafc;border-radius:1px;
  transition:transform .3s,opacity .3s;
}

/* ============================================================
   HERO — Neon Glow
   ============================================================ */
.hero{
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;
  background:#0f172a;
  text-align:center;
  padding:6rem 1.5rem 4rem;
  position:relative;
  overflow:hidden;
}
/* Ambient background pulse */
.hero::before{
  content:'';
  position:absolute;top:50%;left:50%;
  width:600px;height:600px;
  background:radial-gradient(circle,hsla(0,70%,31%,.12) 0%,transparent 70%);
  transform:translate(-50%,-50%);
  border-radius:50%;
  animation:heroPulseAmbient 6s ease-in-out infinite;
}
@keyframes heroPulseAmbient{
  0%,100%{transform:translate(-50%,-50%) scale(1);opacity:.6}
  50%{transform:translate(-50%,-50%) scale(1.3);opacity:.9}
}

.hero-content{position:relative;z-index:1;max-width:780px}
.hero-badge{
  display:inline-block;
  padding:.25rem .85rem;
  border:1px solid #2563eb;
  border-radius:999px;
  color:#2563eb;
  font-size:.78rem;font-weight:600;letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:1.5rem;
}
.hero h1{
  font-size:clamp(2.5rem,6vw,4.5rem);
  font-weight:900;
  color:#f8fafc;
  line-height:1.1;
  margin-bottom:1.25rem;
  letter-spacing:-0.02em;
  text-shadow:
    0 0 18px #7f1d1d,
    0 0 40px #7f1d1d,
    0 0 80px #2563eb,
    0 0 120px #2563eb;
  animation:neonPulse 3s ease-in-out infinite;
}
@keyframes neonPulse{
  0%,100%{
    text-shadow:0 0 18px #7f1d1d,0 0 40px #7f1d1d,0 0 80px #2563eb,0 0 120px #2563eb;
  }
  50%{
    text-shadow:0 0 28px #7f1d1d,0 0 60px #7f1d1d,0 0 110px #2563eb,0 0 160px #2563eb;
  }
}

.hero-underline{
  width:120px;height:4px;
  margin:0 auto 1.5rem;
  background:linear-gradient(90deg,#7f1d1d,#2563eb,#7f1d1d);
  border-radius:2px;
  box-shadow:0 0 12px #7f1d1d,0 0 24px #2563eb;
  animation:glowBar 2s ease-in-out infinite;
}
@keyframes glowBar{
  0%,100%{box-shadow:0 0 12px #7f1d1d,0 0 24px #2563eb}
  50%{box-shadow:0 0 22px #7f1d1d,0 0 44px #2563eb}
}

.hero-subtitle{
  font-size:1.2rem;color:#64748b;
  margin-bottom:2.5rem;
  max-width:560px;margin-left:auto;margin-right:auto;
}

.hero-buttons{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}
.btn{padding:.75rem 1.75rem;border-radius:6px;font-weight:600;font-size:.9rem;text-decoration:none;cursor:pointer;transition:transform .15s,box-shadow .2s;display:inline-block}
.btn:hover{transform:translateY(-2px)}
.btn-primary{
  background:#7f1d1d;color:#f8fafc;
  border:2px solid #7f1d1d;
  box-shadow:0 4px 14px hsla(0,63%,30%,.35);
}
.btn-primary:hover{box-shadow:0 6px 20px hsla(0,63%,30%,.5)}
.btn-outline{
  background:transparent;color:#2563eb;
  border:2px solid #2563eb;
}
.btn-outline:hover{
  box-shadow:0 4px 14px hsla(221,83%,52%,.3);
  color:#f8fafc;background:#2563eb;
}

/* ============================================================
   SERVICES — Mega Feature Columns
   ============================================================ */
.services{
  padding:5rem 1.5rem;
  background:#f8fafc;
}
.section-label{
  display:block;text-align:center;
  font-size:.8rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:#2563eb;
  margin-bottom:.5rem;
}
.section-title{
  text-align:center;font-size:clamp(1.75rem,3.5vw,2.5rem);
  font-weight:800;color:#0f172a;
  margin-bottom:.75rem;
}
.section-subtitle{
  text-align:center;color:#64748b;font-size:1.05rem;
  margin-bottom:3rem;max-width:600px;margin-left:auto;margin-right:auto;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
  max-width:1100px;margin:0 auto;
}
.service-card{
  background:#fff;
  border-radius:10px;
  padding:2.5rem 2rem 2rem;
  text-align:center;
  box-shadow:0 1px 3px hsla(0,0%,0%,.06),0 4px 16px hsla(0,0%,0%,.04);
  position:relative;
  overflow:hidden;
  transition:transform .2s,box-shadow .2s;
}
.service-card::before{
  content:'';position:absolute;top:0;left:0;right:0;
  height:5px;
}
.service-card:nth-child(1)::before{background:#7f1d1d}
.service-card:nth-child(2)::before{background:#2563eb}
.service-card:nth-child(3)::before{background:#7f1d1d}
.service-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px hsla(0,0%,0%,.1)}
.service-icon{
  width:56px;height:56px;
  margin:0 auto 1.25rem;
  font-size:2rem;line-height:56px;
  background:#f1f5f9;border-radius:50%;
}
.service-card h3{
  font-size:1.25rem;font-weight:700;color:#0f172a;
  margin-bottom:.75rem;
}
.service-card p{
  color:#334155;font-size:.925rem;line-height:1.7;
  margin-bottom:1.5rem;
}
.service-stat{
  display:inline-block;
  padding:.35rem 1rem;
  border-radius:999px;
  font-size:.8rem;font-weight:700;
  color:#2563eb;
  background:#eff6ff;
}

/* ============================================================
   ABOUT — Mission Statement
   ============================================================ */
.about{
  padding:5rem 1.5rem;
  background:#0f172a;
  text-align:center;
}
.about .section-label{color:#2563eb}
.about .section-title{color:#f8fafc}

.about-quote-mark{
  font-size:5rem;color:#7f1d1d;
  line-height:1;margin-bottom:1rem;
  display:block;
}
.about-mission{
  font-size:1.35rem;font-weight:600;font-style:italic;
  color:#cbd5e1;
  max-width:720px;margin:0 auto 1.5rem;
  line-height:1.8;
}
.about-founded{
  font-size:.875rem;color:#64748b;
  font-weight:500;
}

/* ============================================================
   INDUSTRIES — Compact Icon Wall (4×3)
   ============================================================ */
.industries{
  padding:5rem 1.5rem;
  background:#fff;
}
.industries-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  max-width:900px;margin:0 auto;
  border:1px solid #e2e8f0;
  border-radius:8px;
  overflow:hidden;
  background:#e2e8f0;
}
.industry-tile{
  background:#fff;
  padding:1.5rem .75rem;
  text-align:center;
  cursor:default;
  transition:background .2s,transform .15s;
  display:flex;flex-direction:column;align-items:center;gap:.5rem;
}
.industry-tile:hover{
  background:#dbeafe;
  transform:scale(1.04);
}
.industry-emoji{font-size:1.5rem;line-height:1}
.industry-name{
  font-size:.75rem;font-weight:600;
  color:#334155;
  text-transform:uppercase;letter-spacing:.03em;
}

/* ============================================================
   APPROACH — Flag Milestones
   ============================================================ */
.approach{
  padding:5rem 1.5rem;
  background:#f8fafc;
}
.approach-path{
  display:flex;align-items:flex-start;justify-content:center;
  gap:0;
  max-width:1000px;margin:0 auto;
  flex-wrap:wrap;
}
.flag-wrapper{
  display:flex;flex-direction:column;align-items:center;
  flex:1;min-width:180px;max-width:240px;
  position:relative;
}
.flag-connector{
  width:100%;height:2px;
  background:#e2e8f0;
  position:absolute;top:28px;left:50%;z-index:0;
}
.flag-wrapper:last-child .flag-connector{display:none}
.flag{
  position:relative;z-index:1;
  width:80px;height:56px;display:flex;align-items:center;justify-content:center;
  margin-bottom:1.25rem;
}
.flag-triangle{
  width:0;height:0;
  border-left:40px solid #7f1d1d;
  border-top:28px solid transparent;
  border-bottom:28px solid transparent;
}
.flag-wrapper:nth-child(2) .flag-triangle{border-left-color:#2563eb}
.flag-wrapper:nth-child(3) .flag-triangle{border-left-color:#7f1d1d}
.flag-wrapper:nth-child(4) .flag-triangle{border-left-color:#2563eb}

.flag-pole{
  position:absolute;left:0;top:0;bottom:0;
  width:3px;background:#334155;border-radius:2px;
}
.flag-number{
  position:absolute;left:8px;top:50%;transform:translateY(-50%);
  font-size:.85rem;font-weight:800;color:#f8fafc;
  z-index:2;
}
.flag-step{
  text-align:center;padding:0 .5rem;
}
.flag-step h4{
  font-size:1rem;font-weight:700;color:#0f172a;
  margin-bottom:.35rem;
}
.flag-step p{
  font-size:.825rem;color:#64748b;line-height:1.5;
}

/* ============================================================
   CONTACT — QR Placeholder
   ============================================================ */
.contact{
  padding:5rem 1.5rem;
  background:#fff;
}
.contact-card{
  max-width:420px;margin:0 auto;
  background:#f8fafc;
  border-radius:12px;
  padding:2.5rem 2rem;
  text-align:center;
  box-shadow:0 1px 3px hsla(0,0%,0%,.06),0 4px 16px hsla(0,0%,0%,.04);
}

/* QR code simulation */
.qr-canvas{
  width:130px;height:130px;
  margin:0 auto 1.25rem;
  display:grid;
  grid-template-columns:repeat(9,1fr);
  grid-template-rows:repeat(9,1fr);
  gap:2px;
  background:#fff;
  padding:6px;
  border-radius:8px;
  border:2px solid #e2e8f0;
}
.qr-cell{background:#0f172a;border-radius:1px}
.qr-cell.w{background:transparent}

.contact-card h3{font-size:1.15rem;font-weight:700;color:#0f172a;margin-bottom:.35rem}
.contact-card .qr-label{font-size:.85rem;color:#64748b;margin-bottom:1.25rem}
.contact-detail{font-size:.9rem;color:#334155;margin-bottom:.3rem}
.contact-detail strong{color:#0f172a}

/* ============================================================
   CTA — Case Study Preview
   ============================================================ */
.cta{
  padding:5rem 1.5rem;
  background:#f8fafc;
}
.case-card{
  max-width:620px;margin:0 auto;
  background:#fff;
  border-radius:10px;
  padding:2.25rem 2rem;
  border-top:5px solid #2563eb;
  box-shadow:0 1px 3px hsla(0,0%,0%,.06),0 4px 16px hsla(0,0%,0%,.04);
}
.case-card .case-label{
  font-size:.78rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;color:#2563eb;
  margin-bottom:.5rem;display:block;
}
.case-card h3{
  font-size:1.4rem;font-weight:800;color:#0f172a;
  margin-bottom:.6rem;
}
.case-result{
  font-size:2rem;font-weight:900;color:#7f1d1d;
  margin-bottom:.75rem;
}
.case-desc{font-size:.95rem;color:#334155;margin-bottom:1.25rem;line-height:1.6}
.case-link{
  display:inline-flex;align-items:center;gap:.35rem;
  font-weight:700;color:#2563eb;text-decoration:none;
  font-size:.95rem;transition:gap .2s;
}
.case-link:hover{gap:.65rem}
.case-link::after{content:'→';font-size:1.1rem}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background:#0f172a;
  color:#64748b;
  padding:3rem 1.5rem 2rem;
  text-align:center;
  font-size:.875rem;
}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
  max-width:1000px;margin:0 auto 2rem;
  text-align:left;
}
.footer-col h4{color:#f8fafc;font-size:.9rem;margin-bottom:.75rem;font-weight:700}
.footer-col p,.footer-col a{color:#64748b;font-size:.825rem;text-decoration:none;display:block;line-height:1.8}
.footer-col a:hover{color:#2563eb}
.footer-bottom{
  border-top:1px solid #1e293b;
  padding-top:1.5rem;
  font-size:.8rem;
}

/* ============================================================
   LEGAL PAGES (Privacy / Terms)
   ============================================================ */
.legal-page{padding:6rem 1.5rem 4rem;background:#fff;min-height:100vh}
.legal-page .section-title{text-align:left;margin-bottom:1.5rem}
.legal-page h2{
  font-size:1.2rem;font-weight:700;color:#0f172a;
  margin:2rem 0 .75rem;
}
.legal-page p,.legal-page li{
  font-size:16px;color:#334155;line-height:1.8;margin-bottom:.75rem;
}
.legal-page ul{padding-left:1.5rem;margin-bottom:1rem}
.legal-page address{font-style:normal;color:#334155;line-height:1.7}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:900px){
  .services-grid{grid-template-columns:1fr;max-width:480px}
  .industries-grid{grid-template-columns:repeat(3,1fr)}
  .approach-path{flex-direction:column;align-items:center;gap:2rem}
  .flag-connector{display:none}
  .flag-wrapper{max-width:100%;flex-direction:row;gap:1.25rem}
  .flag-step{text-align:left}
  .footer-grid{grid-template-columns:1fr;text-align:center}
  .footer-col{text-align:center}
}

@media(max-width:640px){
  .nav-links{
    display:none;
    position:absolute;top:100%;left:0;right:0;
    background:#0f172a;flex-direction:column;
    padding:1rem 1.5rem;gap:.75rem;
    border-bottom:2px solid #7f1d1d;
  }
  .nav-links.open{display:flex}
  .nav-toggle{display:flex}
  .hero-buttons{flex-direction:column;align-items:center}
  .hero-buttons .btn{width:100%;max-width:280px;text-align:center}
  .industries-grid{grid-template-columns:repeat(2,1fr)}
  .contact-card{padding:2rem 1.25rem}
}
