/*
 * 242 Automation & HVAC Theme Stylesheet
 * Custom built using Vanilla CSS for maximum flexibility and performance.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* System font fallbacks */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* HSL Color Palette Variables - Default Light Mode */
  --hue-primary: 215;   /* Royal Blue */
  --hue-secondary: 43;  /* Circuit Gold */
  
  --primary-color: hsl(var(--hue-primary), 85%, 45%);
  --primary-glow: hsla(var(--hue-primary), 85%, 45%, 0.15);
  --secondary-color: hsl(var(--hue-secondary), 90%, 50%);
  --secondary-glow: hsla(var(--hue-secondary), 90%, 50%, 0.2);
  
  --bg-base: hsl(210, 40%, 98%);
  --bg-card: hsl(0, 0%, 100%);
  --bg-nav: rgba(255, 255, 255, 0.75);
  --border-color: hsla(var(--hue-primary), 20%, 85%, 0.5);
  
  --text-main: hsl(220, 40%, 12%);
  --text-muted: hsl(220, 15%, 40%);
  --text-inverse: hsl(210, 30%, 98%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(27, 85, 181, 0.08);
  --shadow-lg: 0 15px 40px rgba(27, 85, 181, 0.12);
  --glow-active: 0 0 15px var(--secondary-glow);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: 16px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --scrollbar-thumb: hsl(var(--hue-primary), 30%, 75%);
  --scrollbar-track: hsl(var(--hue-primary), 10%, 92%);
}

/* Explicit Dark Mode Overrides (Automatic system theme based) */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: hsl(var(--hue-primary), 95%, 55%);
    --primary-glow: hsla(var(--hue-primary), 95%, 55%, 0.25);
    --secondary-color: hsl(var(--hue-secondary), 95%, 52%);
    --secondary-glow: hsla(var(--hue-secondary), 95%, 52%, 0.3);
    
    --bg-base: hsl(222, 25%, 8%);
    --bg-card: hsl(222, 20%, 13%);
    --bg-nav: rgba(15, 23, 42, 0.75);
    --border-color: hsla(var(--hue-primary), 20%, 25%, 0.4);
    
    --text-main: hsl(210, 30%, 96%);
    --text-muted: hsl(215, 15%, 70%);
    --text-inverse: hsl(222, 25%, 8%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.5);
    --glow-active: 0 0 20px hsla(var(--hue-secondary), 95%, 52%, 0.25);
    
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --scrollbar-thumb: hsl(var(--hue-primary), 25%, 35%);
    --scrollbar-track: hsl(var(--hue-primary), 10%, 15%);
  }
}

/* Set scrollbar style */
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

@supports not (scrollbar-color: auto) {
  html::-webkit-scrollbar {
    width: 10px;
  }
  html::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-full);
  }
  html::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance; /* legibility optimization */
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: hsla(var(--hue-secondary), 90%, 50%, 0.3);
  box-shadow: var(--shadow-lg), var(--glow-active);
}

/* Custom Typography Accents */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 30%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-bar {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), hsl(var(--hue-primary), 85%, 35%));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--secondary-color), hsl(var(--hue-secondary), 90%, 40%));
  color: hsl(220, 45%, 10%);
  box-shadow: 0 4px 15px var(--secondary-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--secondary-glow);
}

/* Navigation Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Integrated SVG Logo styles */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
}

.logo-icon svg {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}



/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(var(--hue-primary), 80%, 45%, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsla(var(--hue-secondary), 90%, 50%, 0.04) 0%, transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  z-index: 1;
  pointer-events: none;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-heading);
  font-weight: 600;
}

.badge-1 {
  top: 15%;
  left: -40px;
  animation: float 4s ease-in-out infinite alternate;
}

.badge-2 {
  bottom: 10%;
  right: -20px;
  animation: float 4s ease-in-out infinite alternate-reverse;
}

.floating-badge svg {
  width: 24px;
  height: 24px;
  color: var(--secondary-color);
}

/* Services Grid Section */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  padding: 40px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition-fast);
  position: relative;
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* Rotating Gear motif logic */
.service-icon.gear-icon svg {
  transition: transform var(--transition-slow);
}
.service-card:hover .service-icon.gear-icon svg {
  transform: rotate(180deg) scale(1.1);
}

/* Interactive Dashboard Section */
.dashboard-section {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

/* Dashboard Mockup Panel styling */
.db-panel {
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 30px;
  background: hsl(222, 25%, 10%); /* Dark interface is premium */
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.db-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.db-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #a0aec0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  box-shadow: 0 0 10px var(--secondary-color);
}

.status-dot.active {
  animation: pulse 1.5s infinite alternate;
}

.db-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.db-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}

.thermostat-dial-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.thermostat-radial {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d3748 50%, #1a202c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 10px 20px rgba(0,0,0,0.3);
  border: 4px solid #4a5568;
}

.thermostat-glow {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--secondary-color);
  transform: rotate(45deg);
  pointer-events: none;
  transition: transform 0.5s ease;
}

.thermostat-temp {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.temp-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.temp-unit {
  font-size: 1.5rem;
  position: relative;
  top: -15px;
}

.temp-label {
  font-size: 0.8rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dial-controls {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.dial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2d3748;
  color: #fff;
  border: 1px solid #4a5568;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.dial-btn:hover {
  background: #4a5568;
}

/* Zone Selection and System Readout */
.db-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #718096;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.zone-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zone-option {
  padding: 12px 16px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  background: #2d3748;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}

.zone-option.active {
  background: #1a365d;
  border-color: var(--primary-color);
}

.zone-temp {
  font-weight: 600;
  color: var(--secondary-color);
}

.hvac-readout {
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #1a202c;
  border: 1px solid #2d3748;
}

.readout-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 4px 0;
}

.readout-row span:last-child {
  font-weight: 600;
}

.readout-row .highlight-text {
  color: #48bb78;
}

.readout-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #2d3748;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4a5568;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #48bb78;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Why Choose Us Grid */
.features-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.feature-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-glow);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-dot svg {
  width: 20px;
  height: 20px;
}

.feature-item-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-item-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.features-visual {
  position: relative;
  padding: 20px;
}

.features-circle-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border: 2px dashed var(--border-color);
  border-radius: 50%;
  z-index: 1;
  animation: float-rotate 30s linear infinite;
}

.features-badge-panel {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 40px;
}

.features-badge-panel svg {
  width: 80px;
  height: 80px;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.features-badge-panel h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* Contact / Lead Form Section */
.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-panel h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.contact-info-panel p.intro {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-method-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
}

.contact-method-text h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-method-text p {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-form-panel {
  padding: 48px;
}

.contact-form-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

/* Modern Accessible Form inputs using :user-valid validation */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group-full {
  grid-column: span 2;
}

.form-control-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-control-wrapper label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Using native CSS validation features */
.form-input:user-valid {
  border-color: #48bb78;
}

.form-input:user-invalid {
  border-color: #e53e3e;
}

/* Footer styling */
.site-footer {
  background-color: hsl(222, 25%, 7%);
  color: #a0aec0;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 80px 0 30px 0;
}



.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.footer-about p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-logo {
  color: #fff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a0aec0;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  color: var(--secondary-color);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
  top: 2px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--primary-color);
}

.newsletter-form button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--secondary-color);
  color: #000;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #718096;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

@keyframes float-rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
  0% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid, .dashboard-grid, .features-container, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    background: var(--bg-nav);
  }
  .nav-menu {
    display: none; /* Controlled by mobile drawer */
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-actions {
    gap: 12px;
  }
  .nav-actions .btn {
    display: none; /* Hide desktop button, rely on drawer button */
  }
  .section {
    padding: 50px 0;
  }
  .hero {
    padding-top: 120px;
    padding-bottom: 50px;
    min-height: auto;
  }
  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-stats {
    gap: 20px;
    justify-content: space-between;
  }
  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .hero-visual::before {
    display: none; /* Hide legacy dashed border under stacked content */
  }
  .floating-badge {
    position: static;
    margin-top: 0;
    display: inline-flex;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    animation: none !important;
  }
  .db-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .thermostat-dial-wrapper {
    margin-bottom: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Slide-in Mobile Menu Drawer styling */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: right var(--transition-normal);
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 8px;
}

.drawer-close svg {
  width: 24px;
  height: 24px;
}

.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-menu a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modern CSS Scroll-driven entry/exit animations (Baseline 2025/2026 support) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-in {
      from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    
    @keyframes reveal-out {
      to {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
      }
    }

    .scroll-reveal {
      animation: 
        reveal-in auto linear backwards,
        reveal-out auto linear forwards;
      animation-timeline: view();
      animation-range: entry 5% entry 40%, exit 0% exit 20%;
    }
  }
}
