/* ============================================================
   Inspect-Air Theme — Main Stylesheet
   ============================================================ */

/* CSS Variables — overridden by Customizer via inline style */
:root {
  --sky: #0EA5E9;
  --sky-dark: #0284C7;
  --sky-deeper: #075985;
  --sky-pale: #E0F2FE;
  --sky-palest: #F0F9FF;
  --mint: #10B981;
  --mint-pale: #D1FAE5;
  --coal: #0C1A2E;
  --slate: #334155;
  --mist: #94A3B8;
  --cloud: #F1F5F9;
  --white: #ffffff;
  --danger: #EF4444;
  --warn: #F59E0B;
  --good: #10B981;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--coal);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
.ia-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: rgba(12,26,46,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14,165,233,0.15);
  transition: background 0.3s;
}
.ia-nav.scrolled { background: rgba(6,14,26,0.98); }

.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  margin-right: auto;
}
.nav-logo-img {
  display: block;
  max-height: 44px;
  width: auto;
}
.nav-logo-mobile { display: none; }
.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 20px; height: 20px; fill: none; stroke: white; stroke-width: 2; }
.nav-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--sky); }

@media (max-width: 900px) {
  .has-mobile-logo .nav-logo-desktop { display: none; }
  .has-mobile-logo .nav-logo-mobile  { display: block; }
}

.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sky); }
.nav-links .nav-phone { color: var(--sky) !important; font-weight: 600 !important; }
.nav-links .nav-cta {
  background: var(--sky) !important;
  color: white !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav-links .nav-cta:hover { background: var(--sky-dark) !important; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; margin: 5px 0; transition: all 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(6,14,26,0.98);
  padding: 1.5rem 5vw;
  border-bottom: 1px solid rgba(14,165,233,0.15);
  z-index: 999;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 1rem; }
.nav-mobile .nav-phone { color: var(--sky) !important; font-weight: 600; }
.nav-mobile .nav-cta {
  display: inline-block;
  background: var(--sky);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--sky);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--sky-dark); transform: translateY(-1px); color: white; }
.btn-outline {
  background: transparent;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--sky); color: var(--sky); }
.btn-white {
  background: white;
  color: var(--sky-deeper);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}
.btn-white:hover { background: var(--sky-pale); color: var(--sky-deeper); }

/* ── HERO ── */
.ia-hero {
  min-height: 85vh;
  background: var(--coal);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(14,165,233,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(16,185,129,0.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--sky);
  opacity: 0;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}
.hero-content {
  position: relative; z-index: 2;
  padding: 70px 5vw 60px;
  max-width: 680px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.3);
  color: var(--sky);
  font-size: 0.8rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fade-in 0.8s ease both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--sky); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}
.ia-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: slide-up 0.8s ease 0.2s both;
}
.ia-hero h1 em { font-style: italic; color: var(--sky); }
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 500px;
  animation: slide-up 0.8s ease 0.4s both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: slide-up 0.8s ease 0.6s both;
}
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* AQI Panel */
.hero-visual {
  position: absolute; right: 5vw; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1rem;
  animation: fade-in 1s ease 0.8s both;
}
.aqi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 16px; padding: 1.25rem 1.5rem;
  backdrop-filter: blur(8px); min-width: 240px;
}
.aqi-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mist); margin-bottom: 0.5rem; }
.aqi-value { font-family: 'DM Serif Display', serif; font-size: 2.5rem; color: #fff; line-height: 1; margin-bottom: 0.25rem; }
.aqi-status { font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.aqi-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 0.75rem; overflow: hidden; }
.aqi-fill { height: 100%; border-radius: 2px; }
.sensor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.sensor-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 0.875rem 1rem; }
.sensor-name { font-size: 0.7rem; color: var(--mist); margin-bottom: 0.25rem; letter-spacing: 0.05em; text-transform: uppercase; }
.sensor-val  { font-size: 1.2rem; font-weight: 600; color: #fff; }
.sensor-unit { font-size: 0.65rem; color: var(--mist); }

/* ── FIND BAR ── */
.ia-findbar {
  background: var(--sky-palest);
  padding: 2.5rem 5vw;
  border-bottom: 1px solid rgba(14,165,233,0.1);
}
.find-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.find-icon {
  width: 48px; height: 48px;
  background: var(--sky-pale); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.find-icon svg { width: 24px; height: 24px; stroke: var(--sky-dark); fill: none; stroke-width: 2; }
.find-text h3 { font-size: 1rem; font-weight: 600; color: var(--coal); }
.find-text p  { font-size: 0.875rem; color: var(--slate); margin-top: 2px; }
.find-inner .btn-primary { margin-left: auto; }

/* ── SECTIONS COMMONS ── */
.ia-section { padding: 6rem 5vw; }
.section-label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--sky); margin-bottom: 1rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--coal);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.section-body {
  font-size: 1.05rem; color: var(--slate);
  line-height: 1.75; max-width: 580px;
}

/* ── SERVICES ── */
.ia-services { background: var(--cloud); }
.services-header { max-width: 1100px; margin: 0 auto 3rem; }
.services-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(14,165,233,0.1);
  border-radius: 16px; padding: 1.75rem;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--mint));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(14,165,233,0.12); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; background: var(--sky-pale);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--sky-dark); fill: none; stroke-width: 1.8; }
.service-card h3 { font-size: 1rem; font-weight: 600; color: var(--coal); margin-bottom: 0.5rem; }
.service-card p  { font-size: 0.85rem; color: var(--slate); line-height: 1.6; }
.service-card a  { display: inline-block; margin-top: 1rem; font-size: 0.8rem; font-weight: 600; color: var(--sky); text-decoration: none; }

/* ── ABOUT ── */
.ia-about { padding: 7rem 5vw; }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; max-width: 1100px; margin: 0 auto; align-items: center;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.stat-card {
  background: var(--sky-palest);
  border: 1px solid rgba(14,165,233,0.12);
  border-radius: 12px; padding: 1.5rem;
}
.stat-number { font-family: 'DM Serif Display', serif; font-size: 2.2rem; color: var(--sky); line-height: 1; margin-bottom: 0.25rem; }
.stat-label  { font-size: 0.85rem; color: var(--slate); font-weight: 500; }
.report-mockup {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px; padding: 2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.1);
}
.report-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.report-title { font-weight: 700; font-size: 0.9rem; color: var(--coal); }
.report-date  { font-size: 0.75rem; color: var(--mist); }
.reading-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.625rem 0; border-bottom: 1px solid var(--cloud);
}
.reading-row:last-child { border-bottom: none; }
.reading-name { font-size: 0.8rem; color: var(--slate); flex: 1; }
.reading-bar-wrap { flex: 2; height: 6px; background: var(--cloud); border-radius: 3px; overflow: hidden; }
.reading-bar { height: 100%; border-radius: 3px; }
.reading-val  { font-size: 0.8rem; font-weight: 600; color: var(--coal); min-width: 60px; text-align: right; }
.status-badge { font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; }
.status-good { background: #D1FAE5; color: #065f46; }
.status-warn { background: #FEF3C7; color: #92400E; }
.status-bad  { background: #FEE2E2; color: #991B1B; }
.about-overall {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--cloud);
  display: flex; align-items: center; justify-content: space-between;
}
.about-overall span:first-child { font-size: 0.8rem; color: var(--slate); }

/* ── CAREERS / HIRE ── */
.ia-hire { background: var(--coal); color: white; }
.hire-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.ia-hire .section-title { color: white; }
.ia-hire .section-body  { color: rgba(255,255,255,0.6); }
.ia-hire .section-label { color: var(--sky); }
.team-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 16px; padding: 2rem;
}
.team-card-label { font-size: 0.85rem; color: var(--mist); margin-bottom: 0.5rem; }
.team-roles { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.role-item { display: flex; align-items: flex-start; gap: 1rem; }
.role-dot { width: 10px; height: 10px; background: var(--sky); border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.role-name { font-size: 0.9rem; font-weight: 500; color: white; }
.role-loc  { font-size: 0.8rem; color: var(--mist); }

/* ── FOUNDATION ── */
.ia-foundation { background: var(--sky-palest); }
.foundation-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.foundation-img {
  background: linear-gradient(135deg, var(--sky-pale) 0%, rgba(16,185,129,0.1) 100%);
  border-radius: 20px; height: 320px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.foundation-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.foundation-img-placeholder { text-align: center; padding: 2rem; }
.foundation-img-placeholder svg { width: 80px; height: 80px; stroke: var(--sky); fill: none; stroke-width: 1; opacity: 0.5; }
.foundation-img-placeholder p { color: var(--sky-dark); font-weight: 600; margin-top: 1rem; }

/* ── BLOG ── */
.ia-blog { background: #fff; }
.blog-header {
  max-width: 1100px; margin: 0 auto 3rem;
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.blog-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.blog-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px; overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none; display: block; color: inherit;
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-2px); }
.blog-img {
  height: 160px;
  background: linear-gradient(135deg, var(--sky-pale), var(--mint-pale));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-img svg { width: 48px; height: 48px; stroke: var(--sky-dark); fill: none; stroke-width: 1.5; opacity: 0.5; }
.blog-content  { padding: 1.25rem; }
.blog-category { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sky); margin-bottom: 0.5rem; }
.blog-title    { font-size: 0.9rem; font-weight: 600; color: var(--coal); line-height: 1.4; margin-bottom: 0.75rem; }
.blog-date     { font-size: 0.75rem; color: var(--mist); }
.blog-read     { display: inline-block; margin-top: 0.75rem; font-size: 0.8rem; font-weight: 600; color: var(--sky); text-decoration: none; }

/* ── CTA ── */
.ia-cta {
  background: linear-gradient(135deg, var(--sky-deeper) 0%, #0C1A2E 100%);
  color: white; text-align: center; padding: 6rem 5vw;
}
.ia-cta .section-label { display: block; text-align: center; }
.ia-cta .section-title { color: white; max-width: 600px; margin: 0 auto 1rem; }
.ia-cta .section-body  { color: rgba(255,255,255,0.65); margin: 0 auto 2.5rem; text-align: center; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── FOOTER ── */
.ia-footer {
  background: #060E1A;
  color: rgba(255,255,255,0.6);
  padding: 4rem 5vw 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; margin-top: 1rem; }
.footer-address { font-size: 0.85rem; line-height: 1.8; margin-top: 1rem; }
.footer-address strong { color: rgba(255,255,255,0.75); }
.footer-address a { color: var(--sky); text-decoration: none; }
.footer-col h4 { color: white; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a  { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--sky); }
.footer-cta-col { display: flex; flex-direction: column; gap: 1rem; }
.footer-social { display: flex; gap: 10px; margin-top: 1rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover { background: var(--sky); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-visual { display: none; }
  .about-inner, .hire-inner, .foundation-inner { grid-template-columns: 1fr; gap: 3rem; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .ia-section { padding: 4rem 5vw; }
}

/* ── WP ADMIN BAR OFFSET ── */
.admin-bar .ia-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .ia-nav { top: 46px; }
}

/* ── WP BLOCK EDITOR COMPATIBILITY ── */
.wp-block-image img { max-width: 100%; height: auto; }
