/* ============================================
   Revive & Thrive Tech - Modern Responsive CSS
   ============================================ */

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

:root {
  --primary: #b45309;
  --primary-dark: #7c2d12;
  --primary-light: #f59e0b;
  --secondary: #d97706;
  --secondary-dark: #9a3412;
  --secondary-light: #fdba74;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --danger-light: #f87171;
  --warning: #f59e0b;
  --warning-dark: #d97706;
  --warning-light: #fbbf24;
  --success: #10b981;
  --success-dark: #059669;
  --success-light: #34d399;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --text: #2f261f;
  --text-light: #5c4838;
  --bg: #fff7ed;
  --bg-dark: #ffffff;
  --border: #f1dcc6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 2%, rgba(251, 191, 36, 0.18), transparent 34%),
    radial-gradient(circle at 95% 10%, rgba(249, 115, 22, 0.12), transparent 28%),
    var(--bg);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.65rem 0.95rem;
  border-radius: 0.65rem;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

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

/* ============================================
   Header & Navigation
   ============================================ */

header {
  background: linear-gradient(130deg, #3f1608 0%, #6b2a12 45%, #b45309 100%);
  color: white;
  padding: 0.55rem 0;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.45);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(253, 186, 116, 0.35);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-brand-wrap {
  flex: 0 0 auto;
}

.site-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.brand {
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(253, 186, 116, 0.6);
  box-shadow: 0 8px 18px rgba(1, 15, 40, 0.55);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-text {
  color: #fff7ed;
  font-size: 1rem;
  font-weight: 700;
}

.brand-sub {
  color: rgba(255, 237, 213, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-link {
  color: white;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.inline-logout-form {
  display: inline-flex;
  margin: 0;
}

.nav-link-button {
  background: transparent;
  border: none;
  line-height: 1;
}

.nav-link:hover {
  background: rgba(253, 186, 116, 0.28);
  opacity: 1;
  text-decoration: none;
}

.dark-toggle {
  background: rgba(251, 191, 36, 0.2);
  color: white;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 0.75rem;
  cursor: pointer;
}

main {
  min-height: calc(100vh - 120px);
  padding: 2.2rem 0 4.5rem;
}

.hero-image {
  width: 100%;
  max-width: 1020px;
  height: auto;
  border-radius: var(--radius-xl);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(30, 64, 175, 0.28);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  font-weight: 500;
  transition: opacity 0.2s;
  font-size: 0.95rem;
}

.nav-links a:hover {
  opacity: 0.8;
  color: white;
}

/* ============================================
   Main Content
   ============================================ */

main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.section {
  margin-bottom: 3rem;
  animation: fadeIn 0.3s ease-in;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  height: clamp(420px, 72vh, 640px);
  min-height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 0.75rem 0 2.2rem;
  box-shadow: 0 24px 46px rgba(120, 53, 15, 0.26);
  background: #2e150c;
}

.hero-metro {
  border: 1px solid rgba(253, 186, 116, 0.45);
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  transform: scale(1.02);
  transform-origin: center;
}

.hero-fallback {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(38, 18, 11, 0.88), rgba(124, 45, 18, 0.58) 46%, rgba(41, 19, 10, 0.3));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 16%, rgba(253, 186, 116, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(41, 19, 10, 0.75));
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: end;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.hero-content-shell {
  max-width: 720px;
  padding: clamp(0.95rem, 2vw, 1.35rem);
  border-radius: 16px;
  border: 1px solid rgba(254, 215, 170, 0.4);
  background: linear-gradient(160deg, rgba(64, 25, 13, 0.52), rgba(124, 45, 18, 0.24));
  backdrop-filter: blur(7px);
  animation: heroRise 0.75s ease both;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffedd5;
  border: 1px solid rgba(253, 186, 116, 0.52);
  background: rgba(124, 45, 18, 0.45);
}

.hero-logo {
  width: clamp(72px, 12vw, 116px);
  height: auto;
  margin: 0 0 0.2rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.hero h1 {
  color: white;
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.02em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  max-width: 600px;
  margin: 0;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0.65rem auto 0;
  padding: 0.8rem 1.35rem;
  border-radius: 0.75rem;
  font-weight: 700;
  color: #0b2f6f;
  background: #ffffff;
  border: 1px solid rgba(219, 234, 254, 0.85);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
  background: #eff6ff;
  color: #0b2f6f;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  border-color: rgba(219, 234, 254, 0.5);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-pulse-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.55rem;
  width: min(640px, 100%);
}

.hero-pulse-strip span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.46rem 0.55rem;
  border-radius: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffedd5;
  background: rgba(41, 19, 10, 0.6);
  border: 1px solid rgba(253, 186, 116, 0.45);
}

.hero-metrics {
  display: grid;
  gap: 0.7rem;
  align-self: end;
}

.metric-card {
  border-radius: 14px;
  border: 1px solid rgba(254, 215, 170, 0.5);
  background: linear-gradient(160deg, rgba(69, 26, 12, 0.72), rgba(146, 64, 14, 0.48));
  padding: 0.8rem 0.9rem;
  box-shadow: 0 12px 30px rgba(2, 8, 23, 0.35);
  animation: metricPop 0.7s ease both;
}

.hero-metrics .metric-card:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-metrics .metric-card:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes metricPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.metric-value {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #fff7ed;
}

.metric-label {
  margin: 0.15rem 0 0;
  color: #ffedd5;
  font-size: 0.84rem;
}

.section-shell {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 14px 28px rgba(7, 42, 104, 0.1);
}

.section-narrow {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.section-banner {
  margin-bottom: 1.15rem;
}

.section-banner h1 {
  margin-bottom: 0.55rem;
}

.banner-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.quick-contact-actions {
  margin-bottom: 1rem;
}

.trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.trust-inline span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e40af;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

.before-after-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.before-after-card {
  background: linear-gradient(165deg, #ffffff 0%, #eef6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 12px 24px rgba(7, 42, 104, 0.1);
}

.before-after-card h3 {
  margin-bottom: 0.6rem;
  color: #072a68;
}

.before-after-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 12px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffedd5;
  background: rgba(41, 19, 10, 0.58);
  border: 1px solid rgba(254, 215, 170, 0.45);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f3d9bc;
  background: #fffaf4;
  box-shadow: 0 14px 30px rgba(124, 45, 18, 0.14);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center 26%;
  display: block;
}

.gallery-card figcaption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.52rem 0.65rem;
  border-radius: 10px;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  background: linear-gradient(120deg, rgba(2, 6, 23, 0.74), rgba(7, 42, 104, 0.62));
}

.gallery-grid .gallery-card:nth-child(-n+2) img {
  object-position: center 20%;
}

/* ============================================
   Cards & Stats
   ============================================ */

.card {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.cards .card img {
  width: 100%;
  height: clamp(180px, 24vw, 220px);
  object-fit: cover;
  object-position: center 22%;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  border: 1px solid #dbeafe;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.cards .card {
  position: relative;
  overflow: hidden;
}

.cards .card::before {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 169, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.card h2, .card h3 {
  margin-top: 0;
  color: var(--gray-900);
}

.card p {
  margin-bottom: 0.5rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 1rem;
  align-items: center;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

/* Card Container */
.card-container, .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ============================================
   Forms
   ============================================ */

.form {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.field-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  font-size: 0.95rem;
}

input, select, textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.auth-section {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 560px;
}

/* ============================================
   Buttons
   ============================================ */

.button, button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.button-primary, button[type="submit"] {
  background: linear-gradient(135deg, #b45309 0%, #7c2d12 100%);
  color: white;
}

.button-primary:hover, button[type="submit"]:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.button-secondary {
  background: var(--gray-200);
  color: var(--gray-900);
}

.button-secondary:hover {
  background: var(--gray-300);
}

.button-contrast {
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid rgba(30, 64, 175, 0.15);
}

.button-contrast:hover {
  background: #eff6ff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.button-danger {
  background: var(--danger);
  color: white;
}

.button-danger:hover {
  background: var(--danger-dark);
}

.button-success {
  background: var(--success);
  color: white;
}

.button-success:hover {
  background: var(--success-dark);
}

.button-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   Alerts
   ============================================ */

.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
  border-left: 4px solid var(--success);
  color: var(--success-dark);
}

.alert.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%);
  border-left: 4px solid var(--danger);
  color: var(--danger-dark);
}

.alert.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
  border-left: 4px solid var(--warning);
  color: var(--warning-dark);
}

/* ============================================
   Tables
   ============================================ */

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-dark);
}

.table thead {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--gray-900);
  border-bottom: 2px solid var(--border);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.table tbody tr {
  transition: background 0.2s;
}

.table tbody tr:hover {
  background: var(--gray-50);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   Tags & Badges
   ============================================ */

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}

.tag-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success-dark);
  border: 1px solid var(--success-light);
}

.tag-danger {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger-dark);
  border: 1px solid var(--danger-light);
}

.tag-warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning-dark);
  border: 1px solid var(--warning-light);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.badge-success {
  background: var(--success-light);
  color: white;
}

.badge-warning {
  background: var(--warning-light);
  color: white;
}

.badge-danger {
  background: var(--danger-light);
  color: white;
}

/* ============================================
   Filters
   ============================================ */

.filters {
  margin-bottom: 2rem;
}

.filter-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-dark);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.filter-form input, .filter-form select {
  flex: 1;
  min-width: 150px;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  color: var(--text-light);
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background: linear-gradient(135deg, #01030b 0%, #031635 45%, #072a68 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin-top: 5rem;
  border-top: 1px solid rgba(103, 232, 249, 0.22);
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-inner {
  display: grid;
  gap: 0.55rem;
  place-items: center;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #cffafe;
}

.footer-copy {
  font-size: 0.95rem;
  line-height: 1.7;
}

.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin-top: 0.75rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(191, 219, 254, 0.7), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(147, 197, 253, 0.5), transparent 40%),
    linear-gradient(150deg, #dbeafe 0%, #eff6ff 35%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.16);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  position: absolute;
  z-index: 2;
  padding: 0.55rem 0.8rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  color: #1e3a8a;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.22);
  animation: floatCard 3.8s ease-in-out infinite;
}

.hero-badge-left {
  left: clamp(0.75rem, 3vw, 2rem);
  top: clamp(1rem, 4vw, 2.4rem);
}

.hero-badge-right {
  right: clamp(0.75rem, 3vw, 2rem);
  top: clamp(2rem, 8vw, 4.5rem);
  animation-delay: 0.3s;
}

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

.home-kicker {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(219, 234, 254, 0.9);
}

.home-hero-title {
  margin-top: 0.35rem;
  margin-bottom: 0.95rem;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.08;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.home-hero-subtitle {
  margin: 0 auto;
  max-width: 54ch;
  color: #334155;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.home-hero-actions {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.hero-trust-list {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-trust-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e40af;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #bfdbfe;
}

.home-section {
  margin-top: 4rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.8));
  border: 1px solid #f4decb;
  border-radius: 18px;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.home-section-title {
  margin-bottom: 0.75rem;
  color: #7c2d12;
  position: relative;
  padding-bottom: 0.35rem;
}

.home-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b45309, #f59e0b);
}

.section-lead {
  max-width: 64ch;
  margin-bottom: 1.25rem;
  color: #3f5172;
}

.home-features {
  margin-top: 2.6rem;
}

.feature-card {
  background: linear-gradient(170deg, #ffffff 0%, #fff4e6 100%);
  border: 1px solid #f3d3ad;
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.11);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 68%);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(7, 42, 104, 0.16);
}

.feature-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
  color: #7c2d12;
}

.feature-card p {
  margin: 0;
  color: #475569;
}

.repair-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid #f2d8ba;
  background: linear-gradient(165deg, #ffffff 0%, #fff4e6 100%);
  box-shadow: 0 12px 26px rgba(124, 45, 18, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.repair-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(7, 42, 104, 0.18);
}

.repair-card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #7c2d12;
}

.repair-card p {
  margin: 0;
  color: #455570;
}

.repair-card a {
  margin-top: 0.2rem;
  font-weight: 700;
  color: #0f4db7;
}

.repair-card a:hover {
  color: #072a68;
}

.quote-card {
  background: linear-gradient(165deg, #ffffff 0%, #fff4e8 100%);
  border: 1px solid #f4dcc0;
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: 0 10px 20px rgba(124, 45, 18, 0.1);
  height: 100%;
}

.quote-card p {
  margin: 0;
  color: #334155;
}

.quote-stars {
  margin-bottom: 0.45rem !important;
  color: #f59e0b !important;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.quote-author {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #9a3412;
}

.final-cta {
  border-radius: 18px;
  border: 1px solid #f5c893;
  background:
    radial-gradient(circle at 10% 10%, rgba(253, 186, 116, 0.26), transparent 36%),
    linear-gradient(145deg, #4a1d0f 0%, #7c2d12 48%, #b45309 100%);
  color: #ffffff;
  padding: clamp(1.3rem, 3vw, 2.1rem);
  box-shadow: 0 18px 36px rgba(2, 8, 23, 0.35);
}

.final-cta h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
}

.final-cta p {
  margin: 0.5rem 0 0;
  color: rgba(226, 232, 240, 0.95);
}

.final-cta-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.services-cta {
  margin-top: 1.2rem;
}

.final-cta-actions .button-contrast {
  border-color: rgba(255, 255, 255, 0.24);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .site-brand-wrap {
    display: flex;
    justify-content: center;
  }

  .site-nav {
    justify-content: center;
  }

  .nav-link {
    padding: 0.45rem 0.6rem;
  }

  .hero {
    height: clamp(340px, 58vh, 500px);
    min-height: 340px;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-overlay {
    padding: 1.2rem;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .hero-content-shell {
    max-width: 100%;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .hero-pulse-strip {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-card {
    min-height: 94px;
  }

  .before-after-panel {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card img {
    aspect-ratio: 5 / 4;
    object-position: center 18%;
  }

  .gallery-card figcaption {
    font-size: 0.78rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .form {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-form {
    flex-direction: column;
  }

  .filter-form input, .filter-form select {
    width: 100%;
  }

  .table {
    font-size: 0.875rem;
  }

  .table th, .table td {
    padding: 0.75rem;
  }

  .button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .home-hero {
    border-radius: 14px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
  }

  .hero-badge-right {
    top: auto;
    bottom: 1rem;
  }

  .home-section {
    margin-top: 2.8rem;
    padding: 1rem;
  }

  .section-lead {
    margin-bottom: 1rem;
  }

  footer {
    padding: 2.4rem 0;
    margin-top: 3.4rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .brand {
    font-size: 1.2rem;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-sub {
    display: none;
  }

  .site-nav {
    gap: 0.35rem;
  }

  .home-hero-title {
    font-size: 1.75rem;
  }

  .hero {
    height: clamp(300px, 52vh, 420px);
    min-height: 300px;
  }

  .btn {
    width: 100%;
    max-width: 240px;
  }

  .final-cta-actions {
    flex-direction: column;
  }

  .final-cta-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-badges {
    gap: 0.45rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .badge-chip {
    font-size: 0.76rem;
  }

  .hero-badge {
    display: none;
  }

  .home-hero-actions {
    flex-direction: column;
  }

  .home-hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .card-container, .cards {
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 0.5rem 0;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}