/*
Theme Name: New Level Mechanical
Theme URI: https://newlevelmechanical.com/
Author: New Level Mechanical
Description: Professional HVAC services website with clean, light aesthetic
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.0
Version: 1.0.0
Text Domain: new-level-mechanical
*/

/* ==================================
   MODERN LIGHT PROFESSIONAL THEME
   Inspired by 770coolair.com
   ================================== */

:root {
  --nlm-primary: #0066cc;
  --nlm-primary-dark: #0052a3;
  --nlm-primary-light: #3385db;
  --nlm-accent: #ff6b35;
  --nlm-success: #28a745;
  
  --nlm-bg-white: #ffffff;
  --nlm-bg-light: #f8f9fa;
  --nlm-bg-gray: #e9ecef;
  
  --nlm-text-dark: #212529;
  --nlm-text-body: #495057;
  --nlm-text-muted: #6c757d;
  --nlm-text-light: #adb5bd;
  
  --nlm-border: #dee2e6;
  --nlm-border-light: #e9ecef;
  
  --nlm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --nlm-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --nlm-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* Base Reset & Typography */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.nlm-site {
  min-height: 100vh;
  background: var(--nlm-bg-white);
  color: var(--nlm-text-body);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.nlm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .nlm-container {
    padding: 0 1.25rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--nlm-text-dark);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.nlm-h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

.nlm-h2,
.nlm-section-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

.nlm-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--nlm-text-body);
}

.nlm-section-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--nlm-text-muted);
  max-width: 42rem;
  margin: 1rem auto 0;
}

.nlm-kicker {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nlm-primary);
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--nlm-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--nlm-primary-dark);
}

/* ==================================
   HEADER - Sticky with Glass Effect
   ================================== */

.nlm-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nlm-border-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nlm-header-wrapper.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.nlm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

@media (max-width: 1023px) {
  .nlm-header {
    padding: 0.875rem 0;
  }
}

/* Logo */
.nlm-brand-group {
  flex-shrink: 0;
}

.nlm-logo-link {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.nlm-logo-link:hover {
  opacity: 0.8;
}

.nlm-logo {
  height: 50px;
  width: auto;
}

@media (max-width: 768px) {
  .nlm-logo {
    height: 42px;
  }
}

/* Navigation Hidden in Header */
.nlm-nav {
  display: none !important;
}

.nlm-header .nlm-nav .wp-block-navigation-item,
.nlm-header .nlm-nav a,
.nlm-header .nlm-nav .wp-block-navigation-link {
  display: none !important;
}

/* Mobile Menu Overlay */
.nlm-nav.active {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 6rem 2rem 2rem;
  gap: 0;
  z-index: 999;
  animation: menuSlideIn 0.3s ease;
  overflow-y: auto;
}

.nlm-nav.active .wp-block-navigation-item,
.nlm-nav.active .wp-block-navigation-link {
  display: block !important;
  width: 100%;
  border-bottom: 1px solid var(--nlm-border-light);
}

.nlm-nav.active a {
  display: block !important;
  padding: 1.5rem 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--nlm-text-dark);
  transition: all 0.2s ease;
}

.nlm-nav.active a:hover {
  color: var(--nlm-primary);
  background: var(--nlm-bg-light);
  padding-left: 1.5rem;
}

@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hamburger Menu */
.nlm-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  z-index: 1001;
}

.nlm-menu-toggle:hover {
  opacity: 0.7;
}

.nlm-menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--nlm-text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nlm-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nlm-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nlm-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Header CTA */
.nlm-header-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 1023px) {
  .nlm-header-cta {
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .nlm-header-cta .wp-block-buttons {
    display: none;
  }
}

.nlm-phone {
  display: none;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--nlm-primary);
  margin: 0;
}

@media (min-width: 768px) {
  .nlm-phone {
    display: block;
  }
}

.nlm-phone a {
  color: var(--nlm-primary);
}

.nlm-phone a:hover {
  color: var(--nlm-primary-dark);
}

/* ==================================
   BUTTONS
   ================================== */

.nlm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.nlm-btn-primary {
  background: var(--nlm-primary);
  color: #ffffff;
  border-color: var(--nlm-primary);
}

.nlm-btn-primary:hover {
  background: var(--nlm-primary-dark);
  border-color: var(--nlm-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--nlm-shadow-md);
}

.nlm-btn-secondary {
  background: transparent;
  color: var(--nlm-primary);
  border-color: var(--nlm-primary);
}

.nlm-btn-secondary:hover {
  background: var(--nlm-primary);
  color: #ffffff;
}

.nlm-btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* ==================================
   HERO SECTION
   ================================== */

.nlm-hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

@media (max-width: 768px) {
  .nlm-hero {
    padding: 3rem 0;
  }
}

.nlm-hero-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.nlm-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Feature Grid with SVG Icons - 4 Boxes for Symmetry */
.nlm-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .nlm-feature-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nlm-feature-grid {
    grid-template-columns: 1fr;
  }
}

.nlm-feature-card {
  padding: 2rem;
  background: var(--nlm-bg-white);
  border: 2px solid var(--nlm-border-light);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.nlm-feature-card:hover {
  border-color: var(--nlm-primary);
  box-shadow: var(--nlm-shadow-md);
  transform: translateY(-4px);
}

.nlm-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nlm-primary);
  border-radius: 50%;
  color: #ffffff;
  font-size: 2rem;
}

.nlm-feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nlm-text-dark);
  margin-bottom: 0.75rem;
}

.nlm-feature-sub {
  color: var(--nlm-text-muted);
  line-height: 1.6;
}

/* ==================================
   SECTIONS
   ================================== */

.nlm-services-section,
.nlm-why-section,
.nlm-testimonials-section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .nlm-services-section,
  .nlm-why-section,
  .nlm-testimonials-section {
    padding: 3rem 0;
  }
}

.nlm-why-section {
  background: var(--nlm-bg-light);
}

/* Service Cards */
.nlm-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

@media (max-width: 640px) {
  .nlm-services-grid {
    grid-template-columns: 1fr;
  }
}

.nlm-service-card {
  padding: 2.5rem;
  background: var(--nlm-bg-white);
  border: 2px solid var(--nlm-border-light);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.nlm-service-card:hover {
  border-color: var(--nlm-primary);
  box-shadow: var(--nlm-shadow-lg);
  transform: translateY(-6px);
}

.nlm-service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.nlm-service-card h3 {
  margin-bottom: 1rem;
}

.nlm-service-card h3 a {
  color: var(--nlm-text-dark);
}

.nlm-service-card h3 a:hover {
  color: var(--nlm-primary);
}

.nlm-service-card > p {
  color: var(--nlm-text-body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.nlm-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nlm-service-list li {
  padding-left: 1.75rem;
  position: relative;
  color: var(--nlm-text-body);
  margin-bottom: 0.75rem;
}

.nlm-service-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--nlm-success);
  font-weight: 700;
}

/* Benefits Grid */
.nlm-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.nlm-benefit-card {
  padding: 2rem;
  background: var(--nlm-bg-white);
  border: 2px solid var(--nlm-border-light);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.nlm-benefit-card:hover {
  border-color: var(--nlm-primary);
  transform: translateY(-4px);
}

.nlm-benefit-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--nlm-primary);
  color: #ffffff;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.nlm-benefit-card h4 {
  margin-bottom: 1rem;
}

.nlm-benefit-card p {
  color: var(--nlm-text-body);
  line-height: 1.7;
}

/* Testimonials */
.nlm-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.nlm-testimonial-card {
  padding: 2.5rem;
  background: var(--nlm-bg-white);
  border: 2px solid var(--nlm-border-light);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.nlm-testimonial-card:hover {
  border-color: var(--nlm-primary);
  box-shadow: var(--nlm-shadow-md);
}

.nlm-stars {
  color: #ffc107;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.nlm-testimonial-text {
  color: var(--nlm-text-body);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.nlm-testimonial-author {
  color: var(--nlm-text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ==================================
   LEAD CAPTURE FORM
   ================================== */

.nlm-form-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--nlm-primary) 0%, var(--nlm-primary-dark) 100%);
  color: #ffffff;
}

.nlm-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.nlm-form-section h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
}

.nlm-form-section .nlm-section-lead {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 3rem;
}

.nlm-form {
  background: #ffffff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--nlm-shadow-lg);
}

@media (max-width: 768px) {
  .nlm-form {
    padding: 2rem 1.5rem;
  }
}

.nlm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .nlm-form-grid {
    grid-template-columns: 1fr;
  }
}

.nlm-form-field {
  display: flex;
  flex-direction: column;
}

.nlm-form-field.full-width {
  grid-column: 1 / -1;
}

.nlm-form-field label {
  font-weight: 600;
  color: var(--nlm-text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.nlm-form-field input,
.nlm-form-field select,
.nlm-form-field textarea {
  padding: 0.875rem 1rem;
  border: 2px solid var(--nlm-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.nlm-form-field input:focus,
.nlm-form-field select:focus,
.nlm-form-field textarea:focus {
  outline: none;
  border-color: var(--nlm-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.nlm-form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.nlm-form-submit {
  text-align: center;
  margin-top: 2rem;
}

.nlm-form-submit .nlm-btn {
  min-width: 240px;
}

/* ==================================
   CTA & CONTACT SECTIONS
   ================================== */

.nlm-cta-section {
  padding: 5rem 0;
  background: var(--nlm-bg-light);
  text-align: center;
}

.nlm-contact-section {
  padding: 5rem 0;
}

.nlm-contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.nlm-contact-method {
  text-align: center;
  padding: 2.5rem;
  background: var(--nlm-bg-white);
  border: 2px solid var(--nlm-border-light);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.nlm-contact-method:hover {
  border-color: var(--nlm-primary);
  box-shadow: var(--nlm-shadow-md);
}

.nlm-contact-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

.nlm-contact-method h4 {
  margin-bottom: 1rem;
}

.nlm-contact-method a {
  font-weight: 600;
  font-size: 1.125rem;
}

.nlm-contact-note {
  font-size: 0.875rem;
  color: var(--nlm-text-muted);
  margin-top: 0.5rem;
}

/* ==================================
   FOOTER
   ================================== */

.nlm-footer {
  background: var(--nlm-text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 2rem;
  border-top: 4px solid var(--nlm-primary);
}

.nlm-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.nlm-footer h3 {
  color: #ffffff;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.nlm-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.nlm-footer a:hover {
  color: #ffffff;
}

/* Utility Classes */
.nlm-muted {
  color: var(--nlm-text-muted);
}

.nlm-text-center {
  text-align: center;
}

/* Google Reviews Badge */
.nlm-google-reviews-badge {
  max-width: 800px;
  margin: 3rem auto;
  text-align: center;
}

/* Promo Section */
.nlm-promos-section {
  padding: 4rem 0;
  background: var(--nlm-bg-light);
}

.nlm-promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.nlm-promo-card {
  padding: 2rem;
  background: var(--nlm-bg-white);
  border: 2px solid var(--nlm-border-light);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.nlm-promo-card:hover {
  border-color: var(--nlm-primary);
  transform: translateY(-4px);
}

.nlm-promo-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--nlm-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.nlm-promo-card h3 {
  margin-bottom: 1rem;
}

.nlm-promo-card p {
  color: var(--nlm-text-body);
  margin-bottom: 1.5rem;
}

.nlm-promo-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--nlm-primary);
}

.nlm-promo-link:hover {
  color: var(--nlm-primary-dark);
}

/* ==================================
   CTA BUTTON PULSE ANIMATION
   ================================== */

.nlm-btn-primary {
  animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.5);
  }
}

.nlm-btn-primary:hover {
  animation: none;
  transform: translateY(-2px) !important;
}

/* ==================================
   5-STAR REVIEW BADGE BAR
   ================================== */

.nlm-review-badge-bar {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  padding: 0.875rem 0;
  text-align: center;
  border-bottom: 2px solid #f0c000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nlm-review-badge-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nlm-review-stars {
  font-size: 1.5rem;
  color: #ff8c00;
  letter-spacing: 0.25rem;
}

.nlm-review-text {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  margin: 0;
}

.nlm-review-count {
  font-size: 0.875rem;
  color: #4a4a4a;
  font-weight: 600;
}

@media (max-width: 640px) {
  .nlm-review-badge-bar {
    padding: 0.75rem 0;
  }
  
  .nlm-review-badge-content {
    gap: 0.75rem;
  }
  
  .nlm-review-stars {
    font-size: 1.25rem;
  }
  
  .nlm-review-text {
    font-size: 0.9rem;
  }
}
