/* =========================================================
   HVAC Pro Assistant — Custom Styles
   Complements TailwindCSS CDN
   ========================================================= */

:root {
  --hvac-blue:      #1e3a5f;
  --hvac-blue-dark: #152b47;
  --hvac-accent:    #1e40af;
  --hvac-orange:    #f97316;
  --hvac-orange-h:  #ea6c0a;
  --hvac-light:     #f8fafc;
  --hvac-gray:      #64748b;
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Sticky header shadow on scroll ───────────────────── */
.nav-scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.10);
}

/* ── Hero gradient background ─────────────────────────── */
.hero-bg {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 60%, #1e3a5f 100%);
  position: relative;
  overflow: hidden;
}

/* Optional: show hero image if it exists */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/hero.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  pointer-events: none;
}

/* ── CTA section background ───────────────────────────── */
.cta-bg {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-orange {
  background-color: var(--hvac-orange);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-orange:hover {
  background-color: var(--hvac-orange-h);
  transform: translateY(-1px);
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ── Feature cards ────────────────────────────────────── */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.10);
}

/* ── Brand logos ──────────────────────────────────────── */
.brand-logo {
  opacity: 0.45;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.brand-logo:hover {
  opacity: 0.75;
  filter: grayscale(30%);
}

/* ── Mobile menu drawer ───────────────────────────────── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
#mobile-menu.open {
  max-height: 480px;
  opacity: 1;
}

/* ── Scroll-reveal animations ─────────────────────────── */
.fade-in,
.section-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible,
.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Check list (green bullets) ───────────────────────── */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--hvac-orange);
  font-weight: 700;
  font-size: 1rem;
}

/* ── Nav link active state ────────────────────────────── */
.nav-link-active {
  color: #1e40af !important;
  font-weight: 600;
}

/* ── Custom scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
  background: var(--hvac-blue);
  border-radius: 4px;
}

/* ── Gradient text utility ────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #f97316, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Phone mockup shell ───────────────────────────────── */
.phone-shell {
  background: var(--hvac-blue);
  border-radius: 3rem;
  padding: 0.75rem;
  box-shadow:
    0 40px 80px rgba(30, 58, 95, 0.35),
    0 0 0 1px rgba(255,255,255,0.08);
}
.phone-screen {
  border-radius: 2.5rem;
  overflow: hidden;
  background: #111827;
}

/* ── Dashboard card ───────────────────────────────────── */
.dash-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  overflow: hidden;
}

/* ── Stat badge ───────────────────────────────────────── */
.stat-badge {
  background: #fff;
  border-radius: 0.875rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

/* ── Wave SVG divider ─────────────────────────────────── */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
}

/* ── Pulse dot ────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }
