/* ============================================
   Next Level Services - Brand Stylesheet
   Brand colors derived from logo: black + cyan/blue gradient
============================================ */

:root {
  --navy-900: #0a1628;
  --navy-800: #0f2240;
  --navy-700: #15305a;
  --blue-500: #2196f3;
  --blue-400: #4ab3ff;
  --blue-300: #7dcdff;
  --cyan-300: #5bd5ff;
  --ink: #0a1220;
  --ink-2: #1a2438;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --white: #ffffff;

  --gradient-brand: linear-gradient(135deg, #2196f3 0%, #5bd5ff 100%);
  --gradient-dark: linear-gradient(135deg, #0a1628 0%, #15305a 60%, #1e3a6f 100%);

  --shadow-sm: 0 1px 2px rgba(10,22,40,.06);
  --shadow-md: 0 4px 16px rgba(10,22,40,.08);
  --shadow-lg: 0 12px 40px rgba(10,22,40,.12);
  --shadow-glow: 0 8px 32px rgba(33,150,243,.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --container: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-700); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

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

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-500);
  margin-bottom: 12px;
}
.accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.15rem; color: var(--gray-600); margin-top: 18px; max-width: 580px; }
.section-sub { font-size: 1.1rem; color: var(--gray-600); max-width: 640px; margin: 14px auto 0; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all 180ms ease;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(33,150,243,.4);
  color: white;
}
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  color: white;
}

/* TOP BAR */
.topbar {
  background: var(--navy-900);
  color: var(--gray-300);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  gap: 16px;
}
.topbar-left { display: flex; gap: 16px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--blue-300);
}
.badge::before { content: "✓"; color: var(--cyan-300); font-weight: 900; }
.topbar-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: white; font-weight: 600;
}
.topbar-phone:hover { color: var(--cyan-300); }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 200ms ease;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.logo img { height: 56px; width: auto; }
.nav { display: flex; gap: 32px; }
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 150ms ease;
}
.nav a:hover { color: var(--blue-500); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--gradient-brand);
  transition: right 200ms ease;
}
.nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: all 200ms ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: 16px 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 0;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-call {
  margin-top: 12px;
  background: var(--gradient-brand);
  color: white !important;
  text-align: center;
  border-radius: var(--radius-md);
  padding: 14px !important;
  border: none !important;
}

/* HERO */
.hero {
  position: relative;
  background: var(--gradient-dark);
  color: white;
  padding: 80px 0 140px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(33,150,243,0.35), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(91,213,255,0.2), transparent 50%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 760px; }
.hero h1 { color: white; margin-bottom: 8px; }
.hero .eyebrow { color: var(--cyan-300); }
.hero .lead { color: rgba(255,255,255,0.85); }

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 600px;
}
.stat strong {
  display: block;
  font-size: 1.05rem;
  color: var(--cyan-300);
  font-weight: 700;
  margin-bottom: 4px;
}
.stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: white;
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 60%);
}

/* SECTIONS */
.section {
  padding: 96px 0;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

/* SERVICES */
.services {
  background: var(--gray-50);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
}
.service-card {
  position: relative;
  background: white;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 250ms ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card.featured {
  background: linear-gradient(180deg, white 0%, #f0f9ff 100%);
  border-color: rgba(33,150,243,0.3);
}
.service-card.featured::before { transform: scaleX(1); }

.card-tag {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--gradient-brand);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.icon-electric {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
}
.icon-hvac {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* WHY */
.why {
  background: white;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.why-item {
  text-align: center;
  padding: 16px;
}
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  background: var(--gradient-brand);
  color: white;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: var(--shadow-glow);
}
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--gray-600); font-size: 0.95rem; }

/* AREAS */
.areas {
  background: var(--gray-50);
}
.area-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.area-list li {
  background: white;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding-left: 44px;
  transition: all 200ms ease;
}
.area-list li::before {
  content: "";
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: var(--gradient-brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(33,150,243,0.15);
}
.area-list li:hover {
  transform: translateX(4px);
  border-color: var(--blue-400);
}
.area-note {
  text-align: center;
  margin-top: 32px;
  color: var(--gray-600);
}

/* CONTACT */
.contact {
  background: var(--gradient-dark);
  color: white;
  position: relative;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 30%, rgba(33,150,243,0.2), transparent 50%);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { color: white; margin-bottom: 16px; }
.contact-info p { color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.contact-info .eyebrow { color: var(--cyan-300); }

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-method:last-of-type { border-bottom: none; }
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: rgba(33,150,243,0.15);
  border: 1px solid rgba(33,150,243,0.3);
  border-radius: var(--radius-md);
  color: var(--cyan-300);
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2px;
}
.contact-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}
a.contact-value:hover { color: var(--cyan-300); }

.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 200ms ease;
}
.fb-link:hover {
  background: rgba(33,150,243,0.2);
  border-color: var(--blue-400);
  color: white;
  transform: translateY(-2px);
}

/* CONTACT FORM */
.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: block;
  margin-bottom: 18px;
}
.contact-form label > span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: all 150ms ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: white;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(33,150,243,0.15);
}
.contact-form textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.form-note {
  font-size: 0.78rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 14px;
}
.form-success {
  margin-top: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-md);
  color: #065f46;
  font-size: 0.95rem;
}

/* FOOTER */
.footer {
  background: var(--navy-900);
  color: var(--gray-300);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img {
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  height: 48px;
  width: auto;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-400);
  max-width: 280px;
}
.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a { color: var(--gray-400); }
.footer-col a:hover { color: var(--cyan-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 12px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav, .header .btn { display: none; }
  .nav-toggle { display: flex; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .topbar-inner { height: auto; padding: 8px 24px; flex-direction: column; gap: 6px; align-items: flex-start; }
  .topbar-phone { align-self: flex-end; }
  .header-inner { height: 72px; }
  .logo img { height: 44px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 100px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}
