/*
Theme Name: HomewatchIQ
Description: Custom marketing theme for HomewatchIQ - AI-powered home watch operations platform
Version: 1.0
Text Domain: homewatchiq
*/

:root {
  --primary: #2176ff;
  --primary-dark: #1558cc;
  --primary-soft: #eff4ff;
  --ink: #0a0f1a;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50: #f8fafc;
  --border: #e5e7eb;
  --green: #10b981;
  --amber: #f59e0b;
  --purple: #7c3aed;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(36px, 5.5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 21px; }
h4 { font-size: 17px; }

p { color: var(--gray-700); margin: 0 0 16px; font-size: 16px; }
.lead { font-size: 19px; color: var(--gray-500); line-height: 1.65; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(33,118,255,.32); background: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 17px 34px; font-size: 16px; }

.icon-line { stroke: var(--primary); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-line.ink { stroke: var(--ink); }
.icon-line.white { stroke: #fff; }

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-gray { background: var(--gray-50); }

.eyebrow-none { display: none; } /* explicitly no eyebrow labels per brief */

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(10,15,26,.08); }

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.logo span { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--gray-700); }
.main-nav a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-dropdown { position: relative; padding-bottom: 20px; margin-bottom: -20px; }
.nav-dropdown-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(10,15,26,.14);
  padding: 20px; width: 560px; display: none; gap: 8px;
}
.nav-dropdown:hover .nav-dropdown-panel { display: grid; grid-template-columns: 1fr 1fr; }
.nav-dropdown-item { display: flex; gap: 12px; padding: 12px; border-radius: 10px; }
.nav-dropdown-item:hover { background: var(--gray-50); }
.nav-dropdown-item svg { flex-shrink: 0; margin-top: 2px; }
.nav-dropdown-item .t { font-weight: 700; font-size: 14px; margin-bottom: 2px; color: var(--ink); }
.nav-dropdown-item .d { font-size: 12.5px; color: var(--gray-500); line-height: 1.4; }
.mobile-toggle { display: none; }

/* Hero */
.hero { padding: 88px 0 64px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-proof .stat { }
.hero-proof .stat .num { font-size: 24px; font-weight: 800; color: var(--ink); }
.hero-proof .stat .lbl { font-size: 12.5px; color: var(--gray-500); font-weight: 600; }

/* Team signature grid */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
  background: #fff; transition: all .2s;
  position: relative; overflow: hidden;
}
.team-card:hover { border-color: var(--accent, var(--primary)); transform: translateY(-4px); box-shadow: 0 20px 44px rgba(10,15,26,.1); }
.team-card .avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-soft, var(--primary-soft));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: var(--accent, var(--primary));
  margin-bottom: 18px;
}
.team-card .name { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.team-card .role { font-size: 13px; font-weight: 700; color: var(--accent, var(--primary)); margin-bottom: 12px; }
.team-card .desc { font-size: 14px; color: var(--gray-500); line-height: 1.55; margin-bottom: 0; }
.team-card .arrow { position: absolute; top: 24px; right: 24px; opacity: 0; transition: opacity .2s; }
.team-card:hover .arrow { opacity: 1; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }
.feature-media img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 24px 64px rgba(10,15,26,.1); }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; color: var(--gray-700); }
.feature-list svg { flex-shrink: 0; margin-top: 2px; }

/* Stats band */
.stats-band { background: var(--ink); color: #fff; }
.stats-band .grid-4 { text-align: center; }
.stats-band .num { font-size: 40px; font-weight: 800; color: #fff; }
.stats-band .lbl { font-size: 14px; color: rgba(255,255,255,.6); font-weight: 600; margin-top: 6px; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.compare-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); font-weight: 700; }
.compare-table td.check { color: var(--green); }
.compare-table td.cross { color: var(--gray-300); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-us { background: var(--primary-soft); border-radius: 12px; }

/* Calculator */
.calc-box { background: var(--gray-50); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.calc-field { margin-bottom: 22px; }
.calc-field label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.calc-field input[type=range] { width: 100%; accent-color: var(--primary); }
.calc-field .val { font-size: 22px; font-weight: 800; color: var(--primary); }
.calc-result { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 32px; margin-top: 24px; }
.calc-result .big { font-size: 42px; font-weight: 800; }
.calc-result .lbl { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 600; }

/* Footer */
.site-footer { background: var(--gray-50); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--gray-700); margin-bottom: 12px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--gray-400); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy, .feature-row.reverse .feature-media { order: unset; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav, .nav-cta .btn-secondary { display: none; }
  .mobile-toggle { display: block; }
}
@media (max-width: 600px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
