/* ============================================
   Innovation Fire & Security Technologies
   Design Tokens + Component Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  background: #f9fafb;
  color: #1e293b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Typography --- */
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { color: #64748b; line-height: 1.7; max-width: 65ch; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Container --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #e85913;
  color: white;
}
.btn-primary:hover { background: #c4490b; }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: #1e293b;
  border: 1.5px solid #1e293b;
}
.btn-outline:hover { background: #1e293b; color: white; }
.btn-outline:active { transform: scale(0.98); }

/* --- Cards --- */
.card {
  background: white;
  border-radius: 2.5rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05);
  padding: 2rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover { transform: translateY(-4px); }
.card:active { transform: scale(0.98); }

.card-icon {
  width: 3rem; height: 3rem;
  border-radius: 1rem;
  background: #fff7ed;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: #e85913;
}

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.nav-logo {
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em;
}
.nav-logo span { color: #e85913; }

.nav-links {
  display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: #64748b;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #1e293b; }

.nav-cta {
  background: #e85913; color: white;
  padding: 0.6rem 1.25rem; border-radius: 9999px;
  font-size: 0.85rem; font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: #c4490b; }

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 4rem; left: 0; right: 0;
    background: white; padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    gap: 1rem;
  }
}

/* --- Sections --- */
.section { padding: 6rem 0; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }

.section-dark {
  background: #0f172a;
  color: white;
}
.section-dark p { color: #94a3b8; }
.section-dark h2 { color: white; }

/* --- Hero --- */
.hero {
  min-height: 100dvh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-eyebrow {
  color: #e85913; font-weight: 600;
  margin-bottom: 1rem; display: block;
}
.hero h1 {
  margin-bottom: 1.5rem;
  line-height: 1.05;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
}
.hero-image img {
  width: 100%; height: auto;
  object-fit: cover;
}

/* --- Bento Grid --- */
.bento {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bento {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .bento > .bento-large { grid-column: 1; grid-row: 1 / 3; }
}

/* --- Zig Zag --- */
.zigzag {
  display: grid; gap: 4rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .zigzag { grid-template-columns: 1fr 1fr; }
  .zigzag.reverse .zigzag-text { order: 2; }
}
.zigzag img {
  border-radius: 2rem; width: 100%; height: auto;
}

/* --- Trust Bar --- */
.trust-bar {
  border-top: 1px solid rgba(226,232,240,0.5);
  padding: 2.5rem 0;
}
.trust-logos {
  display: flex; gap: 2rem; flex-wrap: wrap;
  align-items: center; justify-content: center;
  opacity: 0.5;
  font-weight: 600; color: #94a3b8;
  font-size: 0.9rem;
}

/* --- Marquee --- */
.marquee {
  overflow: hidden; white-space: nowrap; position: relative;
}
.marquee-track {
  display: inline-flex; gap: 4rem;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-size: 1.1rem; font-weight: 600; color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

/* --- Service List --- */
.service-row {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  padding: 2rem 0;
  border-bottom: 1px solid #e2e8f0;
}
@media (min-width: 768px) {
  .service-row { grid-template-columns: 1.5fr 2fr auto; align-items: center; }
}
.service-row h3 { margin-bottom: 0.5rem; }
.service-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #fff7ed; color: #e85913;
  font-size: 0.75rem; font-weight: 600;
}

/* --- Timeline --- */
.timeline {
  position: relative; padding-left: 2rem;
}
.timeline::before {
  content: ''; position: absolute; left: 0.4rem; top: 0; bottom: 0;
  width: 2px; background: #e2e8f0;
}
.timeline-item {
  position: relative; padding-bottom: 2.5rem;
}
.timeline-item::before {
  content: ''; position: absolute; left: -1.7rem; top: 0.3rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: #e85913;
}
.timeline-item h4 { margin-bottom: 0.25rem; }
.timeline-item .year {
  color: #e85913; font-weight: 600; font-size: 0.85rem;
  margin-bottom: 0.25rem; display: block;
}

/* --- Cert Badges --- */
.cert-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cert-badge {
  background: white; border: 1px solid #e2e8f0;
  border-radius: 1.5rem; padding: 1.5rem;
  text-align: center;
}
.cert-badge .code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; color: #e85913; font-weight: 600;
  margin-bottom: 0.5rem;
}

/* --- Contact --- */
.contact-grid {
  display: grid; gap: 4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.5rem; color: #1e293b;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.875rem 1rem;
  border: 1.5px solid #e2e8f0; border-radius: 0.75rem;
  font-size: 0.95rem; font-family: inherit;
  background: white; color: #1e293b;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: #e85913;
}
.form-group textarea { min-height: 140px; resize: vertical; }

.contact-block h3 { margin-bottom: 1rem; }
.contact-block .contact-item {
  margin-bottom: 1.25rem;
}
.contact-block .contact-item strong {
  display: block; font-size: 0.8rem; color: #94a3b8;
  margin-bottom: 0.25rem;
}

/* --- Footer --- */
.footer {
  background: #0f172a; color: #94a3b8;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer h4 {
  color: white; font-size: 0.85rem;
  margin-bottom: 1rem;
}
.footer a { color: #94a3b8; transition: color 0.2s; }
.footer a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem; padding-top: 2rem;
  font-size: 0.8rem; color: #64748b;
}

/* --- Emergency Pulse --- */
@keyframes emergency-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,89,19,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(232,89,19,0); }
}
.emergency-pulse {
  animation: emergency-pulse 2s ease-in-out infinite;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* --- Image Gallery --- */
.gallery-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.gallery-grid img {
  border-radius: 1.5rem; width: 100%; height: 220px; object-fit: cover;
}

/* --- Page Header --- */
.page-header {
  padding-top: 8rem; padding-bottom: 4rem;
  text-align: center;
}
.page-header h1 { margin-bottom: 1rem; }
.page-header p { margin: 0 auto; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.gap-4 { gap: 2rem; }
.bg-white { background: white; }
.rounded-4xl { border-radius: 2.5rem; }
.shadow-soft { box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05); }
.border-subtle { border: 1px solid rgba(226,232,240,0.5); }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }

/* --- Missing Utilities --- */
.inline-block { display: inline-block; }
.rounded-full { border-radius: 9999px; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
