/* =======================================================
   PREMIUM UI UPGRADE (2026 SEO STANDARDS)
   ======================================================= */

:root {
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --premium-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --gradient-primary: linear-gradient(135deg, #0b74da 0%, #38bdf8 100%);
  --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --text-dark: #0f172a;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f4f7f6; /* Modern off-white */
  color: var(--text-dark);
}

/* Glassmorphism Hero */
.hero {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  padding: 5rem 1rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--premium-shadow);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* Calculator Specific UI */
.calculator-container {
  max-width: 800px;
  margin: -3rem auto 3rem auto;
  position: relative;
  z-index: 10;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-input-group {
  margin-bottom: 1.5rem;
}

.calc-input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.calc-input-group select, .calc-input-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.calc-input-group select:focus, .calc-input-group input:focus {
  outline: none;
  border-color: #0b74da;
  box-shadow: 0 0 0 3px rgba(11, 116, 218, 0.2);
}

.calc-result {
  background: var(--gradient-primary);
  color: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result h3 {
  margin-top: 0;
  color: white;
  font-size: 1.25rem;
  opacity: 0.9;
}

.calc-savings-amount {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 1rem 0;
  line-height: 1;
}

/* Micro Animations on Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary-modern {
  background: var(--gradient-secondary);
  color: #1e293b;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary-modern:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* EEAT Section */
.eeat-box {
  border-left: 5px solid #10b981;
  background: #ecfdf5;
  padding: 1.5rem 2rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}

.eeat-box h4 {
  color: #047857;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =======================================================
   LIGHTHOUSE 100/100 FIXES (Accessibility, SEO, Best Practices)
   ======================================================= */

/* 1. Best Practices: Global Image & Video Responsiveness */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 2. SEO: Tap Target Sizing for Mobile (Footer & Meta links) */
.tap-target {
  display: inline-block;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
  align-content: center;
  box-sizing: border-box;
}

/* 3. Accessibility: Color Contrast Adjustments */
/* Override potentially low-contrast blues on white to darker shades */
a {
  color: #084d94; /* Darker blue for >= 4.5:1 contrast on white */
}

a:hover, a:focus {
  color: #042f5e;
}

/* The hero gradient needs its own text override since it's dark text on dark gradient? 
   Wait, the primary gradient is blue/cyan, so text-dark (#0f172a) has good contrast there.
   Let's just ensure .text-dark is extremely dark. */
:root {
  --text-dark: #000000;
}

.meta, .page-eeat {
  color: #475569; /* Darkened from #64748b */
}

/* Ensure header nav links have large enough tap targets */
.nav a { padding: 12px; min-height: 48px; display: inline-block; box-sizing: border-box; align-content: center; }

/* === WOW FACTOR UPGRADES === */
body { background-color: #e0f2fe; background-image: radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.4) 0px, transparent 50%), radial-gradient(at 0% 50%, hsla(333, 100%, 76%, 0.4) 0px, transparent 50%), radial-gradient(at 80% 100%, hsla(22, 100%, 77%, 0.4) 0px, transparent 50%), radial-gradient(at 0% 0%, hsla(243, 100%, 76%, 0.4) 0px, transparent 50%); background-attachment: fixed; }
.site-header { background: rgba(255, 255, 255, 0.65) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important; position: sticky; top: 0; z-index: 1000; }
.glass-card { background: rgba(255, 255, 255, 0.6) !important; border: 1px solid rgba(255, 255, 255, 0.8) !important; box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1) !important; }
.btn-modern { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-modern:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
