/* ==========================================================================
   Vargas Irrigation LLC - Elevated Experience & Component Architecture
   Includes:
   - Live Pulse & Trust Badges
   - Interactive Estimate Calculator & Zone Stepper
   - Interactive Lawn & Zone Visualizer
   - On-Site Booking & Scheduling Wizard
   - Emergency Sprinkler Shut-off Troubleshooter
   - Admin Portal (Dashboard, Invoicing, Bookkeeping P&L, AI SEO Generator, WYSIWYG Builder)
   - Client Payment & Digital Invoice Portal
   - Local SEO Blog Hub & Article Reader
   - Floating Quick-Action Dock & Language Toggle
   ========================================================================== */

/* --- Pulse Badges & Micro-Animations --- */
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseCyan {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.live-indicator-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulseGreen 2s infinite;
  margin-right: 8px;
  vertical-align: middle;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.live-badge.cyan {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}
.live-badge.cyan .live-indicator-dot {
  background: var(--cyan-accent);
  animation: pulseCyan 2s infinite;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.dark-glass-card {
  background: rgba(16, 31, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  color: #f0fdf4;
}

/* Top Strip Language & Admin Bar */
.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1.5rem;
  background: #091410;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  color: #d1fae5;
  font-size: 0.84rem;
}

.top-strip-left, .top-strip-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch-btn, .admin-link-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}
.lang-switch-btn:hover, .admin-link-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--emerald);
  color: #fff;
}

/* Header enhancements */
.nav-links a {
  position: relative;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald);
  transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.button-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}
.button-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
}

.button-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}
.button-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.5);
}

/* --- Hero Section Refinement --- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.02);
  transition: transform 10s ease;
}
.hero:hover .hero-image {
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 17, 14, 0.92) 0%, rgba(8, 17, 14, 0.65) 55%, rgba(6, 78, 59, 0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
  padding: 4rem 1.5rem;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin: 0.8rem 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.hero-copy {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #d1fae5;
  margin-bottom: 2rem;
  max-width: 680px;
  line-height: 1.5;
}

/* ==========================================================================
   INTERACTIVE ESTIMATE CALCULATOR
   ========================================================================== */
.calc-wrapper {
  background: linear-gradient(180deg, #091411 0%, #10211a 100%);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  color: #f0fdf4;
  margin: 3rem auto;
  max-width: 1100px;
}
.calc-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}
.calc-header h2 {
  font-size: 2.2rem;
  color: #ffffff;
  margin: 0.5rem 0;
}
.calc-header p {
  color: #a7f3d0;
  font-size: 1.05rem;
  margin: 0;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
}
.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.calc-group {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.calc-group-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.calc-group-label span.highlight {
  color: var(--emerald);
  font-size: 1.15rem;
}
.calc-service-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}
.calc-tab-btn {
  padding: 0.65rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #d1d5db;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.calc-tab-btn.active, .calc-tab-btn:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.range-slider-wrap {
  position: relative;
  margin-top: 0.5rem;
}
.calc-range-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #1e3a2f;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
  cursor: pointer;
  border: 2px solid #ffffff;
}

.calc-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.calc-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.calc-toggle-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--emerald);
  cursor: pointer;
}

.calc-output-card {
  background: linear-gradient(145deg, #0d271e 0%, #061812 100%);
  border: 1px solid var(--emerald);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 100px;
  text-align: center;
}
.calc-output-card .badge-special {
  background: #f59e0b;
  color: #0b1311;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.calc-range-display {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0.5rem 0;
  font-family: var(--font-display);
}
.calc-range-display span {
  color: var(--emerald);
}
.calc-savings-badge {
  background: rgba(16, 185, 129, 0.18);
  border: 1px dashed var(--emerald);
  color: #6ee7b7;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  margin: 1.2rem 0;
}
.calc-recommendation-text {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   INTERACTIVE YARD ZONE VISUALIZER
   ========================================================================== */
.yard-planner-section {
  padding: 4rem 1.5rem;
  background: #0d1b16;
  color: #f1f5f9;
}
.yard-planner-container {
  max-width: 1100px;
  margin: 0 auto;
}
.yard-diagram {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  background: #09130f;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
@media (max-width: 850px) {
  .yard-diagram { grid-template-columns: 1fr; }
}
.yard-canvas-mock {
  position: relative;
  background: #132b20;
  border-radius: 16px;
  min-height: 380px;
  border: 2px dashed rgba(16, 185, 129, 0.35);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
}
.zone-cell {
  position: relative;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 0;
}
.zone-cell:hover, .zone-cell.active {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--emerald);
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.3);
}
.zone-cell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.zone-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}
.zone-spray-icon {
  width: 24px;
  height: 24px;
  color: var(--cyan-accent);
}
.zone-inspector-panel {
  background: #11231c;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.zone-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}
.zone-stat-row span:last-child {
  font-weight: 700;
  color: var(--emerald);
}

/* ==========================================================================
   ON-SITE SCHEDULING WIZARD
   ========================================================================== */
.scheduler-section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.scheduler-wizard-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.wizard-progress {
  display: flex;
  background: #09130f;
  color: #fff;
  padding: 1.25rem 2rem;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}
.wizard-step-node {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
}
.wizard-step-node.active {
  color: #ffffff;
}
.wizard-step-node.active .step-num {
  background: var(--emerald);
  color: #fff;
}
.wizard-step-node .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}
.wizard-body {
  padding: 2.5rem;
}
.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.time-slot-btn {
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}
.time-slot-btn:hover, .time-slot-btn.selected {
  border-color: var(--emerald);
  background: #ecfdf5;
}
.time-slot-btn strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
}
.time-slot-btn span {
  font-size: 0.82rem;
  color: #64748b;
}

/* ==========================================================================
   EMERGENCY SHUT-OFF GUIDE & BANNER
   ========================================================================== */
.emergency-strip {
  background: linear-gradient(90deg, #991b1b 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.emergency-strip a.help-link {
  background: #ffffff;
  color: #991b1b;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.emergency-modal-content {
  max-width: 650px;
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem;
  color: #1e293b;
}
.emergency-step-box {
  display: flex;
  gap: 1.2rem;
  margin: 1.2rem 0;
  padding: 1rem;
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
}
.emergency-step-box .step-digit {
  font-size: 1.8rem;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
}

/* ==========================================================================
   ADMIN PORTAL STYLES (ENTERPRISE GRADE)
   ========================================================================== */
.admin-body {
  background: #09120e;
  color: #f1f5f9;
  font-family: var(--font-body);
  margin: 0;
}
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
@media (max-width: 950px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
.admin-sidebar {
  background: #060d0a;
  border-right: 1px solid rgba(16, 185, 129, 0.18);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-brand img {
  height: 38px;
  width: auto;
}
.admin-brand span {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}
.admin-main {
  padding: 2.5rem;
  overflow-y: auto;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}
.admin-header h1 {
  font-size: 1.85rem;
  color: #ffffff;
  margin: 0;
}
.admin-header p {
  color: #64748b;
  margin: 0.25rem 0 0 0;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.kpi-card {
  background: #10211a;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--cyan-accent) 100%);
}
.kpi-card .kpi-label {
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.kpi-card .kpi-value {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0.4rem 0;
  font-family: var(--font-display);
}
.kpi-card .kpi-trend {
  font-size: 0.82rem;
  color: #6ee7b7;
}

/* Admin Data Tables */
.admin-table-card {
  background: #0e1b15;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.admin-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-search-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  color: #fff;
  font-size: 0.88rem;
  min-width: 250px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.admin-table th {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.9rem 1.25rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}
.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}
.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.status-pill.confirmed, .status-pill.paid {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}
.status-pill.pending {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}
.status-pill.overdue, .status-pill.cancelled {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

/* AI Blog Generator Card in Admin */
.ai-generator-box {
  background: linear-gradient(145deg, #10291e 0%, #081611 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.ai-generator-box h3 {
  margin: 0 0 0.5rem 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ai-generator-box h3 svg {
  color: var(--cyan-accent);
}

/* WYSIWYG Building Block Customizer in Admin */
.block-item-card {
  background: #11221b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}
.block-item-card:hover {
  border-color: var(--emerald);
}
.block-info h4 {
  margin: 0;
  color: #ffffff;
}
.block-info p {
  margin: 0.25rem 0 0 0;
  color: #94a3b8;
  font-size: 0.85rem;
}
.block-actions {
  display: flex;
  gap: 0.5rem;
}

/* ==========================================================================
   CLIENT PAYMENT & DIGITAL INVOICE PORTAL
   ========================================================================== */
.portal-card {
  max-width: 800px;
  margin: 3rem auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  color: #0f172a;
}
.portal-invoice-header {
  background: #08130f;
  color: #ffffff;
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 3px solid var(--emerald);
}
.portal-invoice-header img {
  height: 48px;
  margin-bottom: 0.5rem;
}
.portal-invoice-body {
  padding: 2.5rem;
}
.portal-line-items {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.portal-line-items th {
  border-bottom: 2px solid #e2e8f0;
  padding: 0.75rem 0;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #64748b;
}
.portal-line-items td {
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.portal-line-items td.amount {
  text-align: right;
  font-weight: 700;
}
.portal-totals-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 1rem;
}
.portal-totals-box .grand-total {
  font-size: 1.8rem;
  font-weight: 900;
  color: #047857;
  font-family: var(--font-display);
}
.portal-payment-actions {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   LOCAL SEO BLOG HUB & READER
   ========================================================================== */
.blog-hero {
  background: linear-gradient(135deg, #07120e 0%, #10261e 100%);
  color: #ffffff;
  padding: 5rem 1.5rem 3.5rem 1.5rem;
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin: 0.5rem 0;
}
.blog-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.blog-filter-pill {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d1fae5;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.blog-filter-pill.active, .blog-filter-pill:hover {
  background: var(--emerald);
  color: #ffffff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2rem;
  max-width: 1180px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}
.blog-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  border-color: var(--emerald);
}
.blog-card-thumb {
  height: 200px;
  width: 100%;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}
.blog-card h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 0 0.75rem 0;
  color: #0f172a;
}
.blog-card p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1.5rem 0;
  flex: 1;
}

/* Single Post Reader Modal / View */
.post-detail-shell {
  max-width: 820px;
  margin: 3rem auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}
.post-detail-shell h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 1rem;
}
.post-detail-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #64748b;
}

/* ==========================================================================
   FLOATING ACTION DOCK (CONVERSION OPTIMIZED)
   ========================================================================== */
.floating-dock {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  gap: 0.75rem;
  background: rgba(9, 20, 16, 0.94);
  backdrop-filter: blur(14px);
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  animation: floatGentle 4s ease-in-out infinite;
}
@media (max-width: 600px) {
  .floating-dock {
    bottom: 10px;
    right: 10px;
    left: 10px;
    justify-content: space-around;
    border-radius: 12px;
  }
}
.dock-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.dock-action-btn.book {
  background: var(--emerald-dark);
  color: #ffffff;
}
.dock-action-btn.book:hover {
  background: #34d399;
  color: #064e3b;
}
.dock-action-btn.call {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.dock-action-btn.call:hover {
  background: rgba(255, 255, 255, 0.25);
}
.dock-action-btn.emergency {
  background: #dc2626;
  color: #ffffff;
}

/* Keep emergency help visible without stacking promotional banners. */
.emergency-strip { background: #10291e; padding: 0.45rem 1rem; gap: 0.8rem; flex-wrap: wrap; border-bottom: 1px solid #2a4c3b; font-size: 0.82rem; }
.emergency-strip a.help-link { background: #f7dfb2; color: #40260c; text-transform: none; font-size: 0.78rem; }
.calc-group-label { align-items: center; gap: 1rem; }
.calc-group-label .highlight { white-space: nowrap; }
@media (max-width: 480px) {
  .emergency-strip > a:last-child { display: none; }
  .emergency-strip { justify-content: space-between; gap: 0.5rem; }
  .calc-group-label { font-size: 0.95rem; }
  .hero-content > .hero-copy { width: 100%; max-width: 100%; min-width: 0; }
  .yard-diagram { padding: 1rem; grid-template-columns: minmax(0, 1fr); }
  .yard-canvas-mock { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, minmax(110px, auto)); }
  .zone-cell, .zone-inspector-panel { min-width: 0; }
  .zone-cell-header { gap: 0.5rem; }
}
