/*
Theme Name: FinRescue Emergency Modern
Description: Modern rescue style design. Gradients, deep shadows, glassmorphism.
Version: 1.1
Author: Assistant
*/

:root {
  /* Palette: Modern Fintech - Clean & Trustworthy */
  --bg-body: #F8FAFC; /* Cool Grey Very Light */
  --bg-surface: #FFFFFF;
  --bg-dark: #0F172A; /* Deep Navy/Slate */
  
  --text-main: #1E293B; /* Slate 800 */
  --text-light: #F1F5F9;
  --text-muted: #64748B; /* Slate 500 */
  
  /* New Primary: Electric Indigo & Vivid Coral */
  --color-primary: #4F46E5; /* Indigo 600 */
  --color-primary-grad: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  
  --color-accent: #10B981; /* Emerald 500 (Success) */
  --color-alert: #EF4444; /* Red 500 (Warning) */
  
  --border-color: #E2E8F0;
  
  /* Typography */
  --font-main: 'Rubik', sans-serif;
  
  --radius: 16px;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--color-primary-grad);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-white {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* HEADER */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
.logo-svg {
  width: 32px; height: 32px;
  color: var(--color-primary);
  filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.2));
}

.main-nav ul { display: flex; gap: 2.5rem; }
.main-nav a { 
  font-weight: 500; 
  font-size: 0.95rem; 
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--color-primary); }

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}
.btn-primary-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-primary-outline:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* HERO: Modern Gradient */
.hero-section {
  background: var(--bg-dark);
  background: radial-gradient(circle at top right, #1E293B 0%, #0F172A 100%);
  color: #fff;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-icon {
  position: absolute;
  right: -10%;
  top: -20%;
  font-size: 35rem;
  opacity: 0.03;
  color: #fff;
  transform: rotate(15deg);
  pointer-events: none;
  font-weight: 900;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(79, 70, 229, 0.15); /* Indigo tint */
  backdrop-filter: blur(5px);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #818CF8; /* Lighter Indigo */
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: #94A3B8; /* Slate 400 */
  margin-bottom: 3rem;
  max-width: 550px;
  font-weight: 400;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

/* INFO BLOCKS */
.info-section {
  padding: 8rem 0;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.info-card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.info-card::before {
  /* Removed top border effect for cleaner look */
  display: none; 
}
.info-card:hover { 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.3);
}

.info-icon {
  width: 56px; height: 56px;
  background: #EEF2FF; /* Indigo 50 */
  color: var(--color-primary);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}
.info-card:hover .info-icon { 
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}
.info-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--text-main); }
.info-card p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }

/* AUDIENCE */
.audience-section {
  background: #F1F5F9; /* Slate 100 */
  padding: 6rem 0;
  position: relative;
}
.audience-item {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: all 0.3s;
}
.audience-item:hover { 
  transform: translateY(-3px); 
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.check-icon {
  width: 32px; height: 32px;
  background: #DCFCE7; /* Emerald 100 */
  color: #16A34A; /* Emerald 600 */
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 800;
}

/* BLOG */
.blog-section {
  padding: 8rem 0;
  background: var(--bg-body);
}

.blog-card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}
.blog-card:hover { 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.blog-thumb {
  height: 220px;
  background: #E2E8F0;
  position: relative;
  overflow: hidden;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }

.blog-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }

.blog-date {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.4;
  color: var(--text-main);
}

.blog-link {
  color: var(--text-main);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  transition: color 0.2s;
  font-size: 0.95rem;
}
.blog-card:hover .blog-link { color: var(--color-primary); gap: 0.75rem; }

/* PAGINATION */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-surface);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}
.page-numbers.current, .page-numbers:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* FOOTER UPDATED 2025 */
.site-footer {
  background: var(--bg-dark); /* Dark background */
  color: #fff; /* White text base */
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand-col { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-logo { 
  font-weight: 800; 
  font-size: 1.4rem; 
  color: #fff; /* White logo */
  letter-spacing: -0.03em; 
}
.footer-mission {
  font-size: 0.95rem;
  color: #94A3B8; /* Slate 400 for muted text */
  line-height: 1.6;
  max-width: 300px;
}
.footer-socials { display: flex; gap: 1rem; }
.social-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.2s;
}
.social-link:hover {
  background: #fff;
  color: var(--bg-dark);
  border-color: #fff;
}

.footer-nav-col h4, .footer-contact-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B; /* Muted slate label */
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-nav-col ul li { margin-bottom: 0.8rem; }
.footer-nav-col a { 
  font-size: 1rem; 
  font-weight: 500; 
  color: #E2E8F0; /* Light grey links */
}
.footer-nav-col a:hover { color: var(--color-primary); }

.contact-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}
.contact-label {
  font-size: 0.8rem;
  color: #64748B; /* Muted slate label */
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-val {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff; /* White contact values */
  line-height: 1.4;
}
.contact-val:hover[href] { color: var(--color-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: #64748B;
}
.legal-links { display: flex; gap: 2rem; }
.legal-links a { color: #64748B; }
.legal-links a:hover { color: #E2E8F0; text-decoration: underline; }

/* CONTENT */
.content-body h2 { color: var(--text-main); margin-top: 3rem; font-size: 2rem; }
.content-body p { margin-bottom: 1.8rem; font-size: 1.1rem; color: #4A5568; }
.content-body ul { padding-left: 1.5rem; list-style: none; margin-bottom: 2rem; }
.content-body li { 
  margin-bottom: 0.8rem; 
  padding-left: 1.5rem; 
  position: relative;
}
.content-body li::before {
  content: '•';
  color: var(--color-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.content-body blockquote {
  background: #FFF5F5;
  border-left: 5px solid var(--color-primary);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 0 12px 12px 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #2D3748;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { justify-content: center !important; margin-top: 3rem; }
  .info-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .header-contact { display: none; }
  .hero-bg-icon { top: 10%; right: -20%; }
}
@media (max-width: 768px) {
  .info-grid, .blog-grid, .audience-grid, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-title { font-size: 2.8rem; }
  .container { padding: 0 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .legal-links { justify-content: center; }
}