/* ============================================
   Rev Care Inc. — Revives Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --ink: #0B0F1E;
  --slate: #151B33;
  --night: #1E2648;
  --mist: #2A3358;
  --steel: #3D4873;
  --frost: #8B95B8;
  --ice: #B8C0DB;
  --snow: #F0F2FA;
  --teal: #00E5A0;
  --teal-deep: #00B380;
  --coral: #FF6B6B;
  --coral-deep: #E05555;
  --gold: #FFD166;
  --gold-deep: #E6B800;
  --lavender: #A78BFA;
  --sky: #38BDF8;

  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 2px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(0,229,160,0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--snow);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--teal-deep);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--snow);
}

h1 { font-size: 3.25rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

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

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--teal);
  color: var(--ink);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,229,160,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,229,160,0.25);
}

.btn-coral {
  background: var(--coral);
  color: var(--snow);
  border-color: var(--coral);
}

.btn-coral:hover {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,107,0.25);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ink);
  border-bottom: 1px solid var(--night);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--slate);
  box-shadow: var(--shadow-card);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--snow);
  letter-spacing: -0.01em;
}

.navbar-brand .brand-mark {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--ink);
}

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

.navbar-links a {
  color: var(--ice);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.25s ease;
}

.navbar-links a:hover {
  color: var(--snow);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--snow);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navbar-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, var(--slate) 50%, var(--night) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  opacity: 0.06;
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
  opacity: 0.05;
  border-radius: 50%;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--night) 1px, transparent 1px),
    linear-gradient(90deg, var(--night) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--slate);
  border: 1px solid var(--night);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 28px;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--snow);
}

.hero-title .highlight {
  color: var(--teal);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
  opacity: 0.3;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--frost);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 600px;
  height: 600px;
}

.hero-hex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transform: rotate(15deg);
  opacity: 0.08;
}

.hero-hex {
  width: 100px;
  height: 110px;
  background: var(--steel);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hero-hex.accent {
  background: var(--teal);
}

/* --- Section Common --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: var(--slate);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--frost);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--slate);
  border: 1px solid var(--night);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--lavender));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--night);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--teal);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--snow);
}

.service-card p {
  color: var(--frost);
  font-size: 15px;
  line-height: 1.65;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--night);
  border-bottom: 1px solid var(--night);
  margin-top: 60px;
}

.stat-item {
  text-align: center;
  padding: 0 16px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 14px;
  color: var(--frost);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Process Timeline --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--night);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-number {
  width: 72px;
  height: 72px;
  background: var(--slate);
  border: 2px solid var(--night);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal);
  font-family: var(--font-mono);
  transition: all 0.3s ease;
}

.process-step:hover .process-number {
  border-color: var(--teal);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.process-step h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--snow);
}

.process-step p {
  font-size: 14px;
  color: var(--frost);
  line-height: 1.55;
}

/* --- Technology Grid --- */
.tech-showcase {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tech-item {
  background: var(--slate);
  border: 1px solid var(--night);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-item:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.tech-item .tech-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.tech-item .tech-name {
  font-size: 13px;
  color: var(--ice);
  font-weight: 500;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--ink);
  border: 1px solid var(--night);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.3;
}

.testimonial-text {
  font-size: 16px;
  color: var(--ice);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
}

.testimonial-name {
  font-weight: 600;
  color: var(--snow);
  font-size: 15px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--frost);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--slate) 0%, var(--night) 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--mist) 1px, transparent 1px),
    linear-gradient(90deg, var(--mist) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.1;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--frost);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--night);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--frost);
  font-size: 15px;
  margin-top: 16px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 14px;
  color: var(--frost);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--ice);
  font-size: 15px;
  transition: color 0.25s ease;
}

.footer-col ul li a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid var(--night);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--frost);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--frost);
  font-size: 14px;
}

.footer-legal a:hover {
  color: var(--teal);
}

/* ============================================
   Privacy & Terms Pages
   ============================================ */

.page-legal {
  padding: 140px 0 80px;
  min-height: 100vh;
}

.page-legal .container-narrow {
  max-width: 860px;
}

.page-legal-header {
  text-align: center;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--night);
}

.page-legal-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-legal-header .last-updated {
  font-size: 14px;
  color: var(--frost);
}

.legal-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--night);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 16px;
  font-weight: 700;
}

.legal-section h3 {
  font-size: 1.15rem;
  color: var(--snow);
  margin: 24px 0 12px;
}

.legal-section p {
  color: var(--ice);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  color: var(--ice);
  font-size: 16px;
  line-height: 1.75;
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-section ul li,
.legal-section ol li {
  margin-bottom: 6px;
}

.legal-section strong {
  color: var(--snow);
  font-weight: 600;
}

/* --- Section Divider --- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 80px 0;
  color: var(--frost);
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--night);
}

/* --- Contact Strip --- */
.contact-strip {
  background: var(--slate);
  border: 1px solid var(--night);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  margin-top: 60px;
}

.contact-strip .contact-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--teal);
}

.contact-strip .contact-label {
  font-size: 14px;
  color: var(--frost);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.contact-strip .contact-value {
  font-size: 16px;
  color: var(--snow);
  font-weight: 500;
  word-break: break-all;
}

/* --- Feature Banner --- */
.feature-banner {
  background: linear-gradient(135deg, var(--night) 0%, var(--slate) 100%);
  border: 1px solid var(--mist);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 60px;
}

.feature-banner h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.feature-banner p {
  color: var(--frost);
  font-size: 16px;
  line-height: 1.65;
}

.feature-banner-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ice);
}

.feature-check .check-icon {
  width: 24px;
  height: 24px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink);
  font-weight: 800;
  flex-shrink: 0;
}

/* --- Animated Elements --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 2.6rem;
  }
}

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

  .navbar-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--slate);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--night);
    box-shadow: var(--shadow-lg);
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-toggle {
    display: flex;
  }

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

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps::before {
    display: none;
  }

  .tech-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .feature-banner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .hero-visual {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .page-legal-header h1 {
    font-size: 1.8rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }
}

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

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

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