/* ============================================
   FINORA SOLUTIONS - Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --primary: #1A20CC;
  --secondary: #0D1180;
  --accent: #3A4BFF;
  --bg-white: #FFFFFF;
  --bg-tint: #F4F6FF;
  --body-text: #07093A;
  --text-light: #5558A0;
  --text-white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 2px 8px rgba(7, 9, 58, 0.06);
  --shadow-md: 0 4px 20px rgba(7, 9, 58, 0.1);
  --shadow-lg: 0 8px 40px rgba(7, 9, 58, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-display: 'Syne', 'Clash Display', sans-serif;
  --font-body: 'DM Sans', 'Inter', sans-serif;

  /* Spacing */
  --section-pad: 100px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--body-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.2rem; }

.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { color: var(--secondary); }
.section-title p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

p { color: var(--text-light); font-size: 1rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 32, 204, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}
.nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-img {
  width: auto;
  height: 32px;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body-text);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--body-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Sections --- */
section { padding: var(--section-pad) 0; }

.bg-tint { background: var(--bg-tint); }

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--bg-tint) 0%, var(--bg-white) 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content h1 { margin-bottom: 20px; }
.hero-content p { font-size: 1.15rem; margin-bottom: 32px; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .placeholder-img {
  width: 100%;
  max-width: 520px;
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-align: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.hero-visual .placeholder-img::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  top: -40px;
  right: -40px;
}
.hero-visual .placeholder-img::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  bottom: -20px;
  left: -20px;
}

/* --- Trust Strip --- */
.trust-strip {
  background: var(--secondary);
  padding: 16px 0;
  overflow: hidden;
}
.trust-strip p {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 1px;
  font-weight: 500;
  white-space: nowrap;
  animation: scrollTrust 20s linear infinite;
}
@keyframes scrollTrust {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* --- Cards Grid --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(7, 9, 58, 0.04);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.5rem;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; margin-bottom: 16px; line-height: 1.7; }
.card-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.card-link:hover { color: var(--accent); }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--text-white);
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn {
  background: var(--text-white);
  color: var(--primary);
  border-color: var(--text-white);
}
.cta-banner .btn:hover {
  background: transparent;
  color: var(--text-white);
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  text-align: center;
  padding: 32px 20px;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 16px;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

/* --- Testimonials --- */
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(7, 9, 58, 0.04);
}
.testimonial-stars { color: #F59E0B; margin-bottom: 12px; }
.testimonial-card blockquote {
  font-style: italic;
  color: var(--body-text);
  margin-bottom: 16px;
  line-height: 1.7;
}
.testimonial-author { font-weight: 600; color: var(--body-text); }
.testimonial-role { font-size: 0.85rem; color: var(--text-light); }

/* --- Blog Cards --- */
.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(7, 9, 58, 0.04);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.blog-img {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-tint), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 0.9rem;
  opacity: 0.8;
}
.blog-body { padding: 24px; }
.blog-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-tint);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.blog-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-body p { font-size: 0.9rem; margin-bottom: 16px; }
.blog-meta { font-size: 0.8rem; color: var(--text-light); }

/* --- About Page --- */
.about-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--bg-tint), var(--bg-white));
  text-align: center;
}
.about-hero h1 { max-width: 800px; margin: 0 auto 20px; }
.about-hero p { max-width: 650px; margin: 0 auto; font-size: 1.15rem; }

.about-narrative {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.beliefs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.belief-card {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
}
.belief-card h3 { color: white; margin-bottom: 12px; }
.belief-card p { color: rgba(255,255,255,0.85); }

/* --- Services Page --- */
.services-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--bg-tint), var(--bg-white));
  text-align: center;
}

.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid rgba(7, 9, 58, 0.06);
}
.service-detail:last-child { border-bottom: none; }
.service-detail .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.service-info h2 { color: var(--secondary); margin-bottom: 16px; }
.service-info p { margin-bottom: 12px; line-height: 1.7; }
.service-info .tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--bg-tint);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.service-list { margin-top: 16px; }
.service-list li {
  padding: 8px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-light);
}
.service-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* --- Blog Listing Page --- */
.blog-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--bg-tint), var(--bg-white));
  text-align: center;
}

.blog-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.blog-filters button {
  padding: 10px 24px;
  border-radius: 24px;
  border: 1px solid rgba(7, 9, 58, 0.12);
  background: var(--bg-white);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.blog-filters button.active, .blog-filters button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.featured-img {
  height: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
}
.featured-body { padding: 40px 40px 40px 0; }
.featured-body .blog-category { margin-bottom: 16px; }
.featured-body h2 { font-size: 1.5rem; margin-bottom: 12px; }
.featured-body p { margin-bottom: 20px; }

/* --- Contact Page --- */
.contact-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--bg-tint), var(--bg-white));
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--body-text);
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(7, 9, 58, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--bg-white);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58, 75, 255, 0.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235558A0' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.contact-info-card {
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  padding: 40px;
}
.contact-info-card h3 { margin-bottom: 24px; color: var(--secondary); }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p { font-size: 0.9rem; }

/* --- Audit Page --- */
.audit-page .nav { display: none; }
.audit-hero {
  padding: 80px 0 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-tint), var(--bg-white));
}
.audit-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.audit-hero p { font-size: 1.1rem; margin-bottom: 8px; }
.audit-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.audit-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}
.audit-nav-logo .nav-logo-img {
  height: 48px;
  max-width: 200px;
}

.audit-form-section {
  padding: 48px 0 100px;
}
.audit-form-section .container {
  max-width: 700px;
}
.audit-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(7, 9, 58, 0.06);
}
.audit-form h3 { margin-bottom: 24px; text-align: center; }
.audit-form .form-group { margin-bottom: 24px; }
.audit-form .form-group label { font-weight: 500; }
.radio-group { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.radio-group label { font-weight: 400; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.radio-group input[type="checkbox"], .radio-group input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); }
.audit-divider { height: 1px; background: rgba(7, 9, 58, 0.08); margin: 32px 0; }

/* --- Footer --- */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h3, .footer h4 {
  color: var(--text-white);
  margin-bottom: 20px;
}
.footer p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--text-white); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 16px; color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--accent); }
.footer-bottom {
  background: var(--body-text);
  padding: 20px 0;
  text-align: center;
  margin-top: 0;
}
.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* --- WhatsApp FAB --- */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  :root { --section-pad: 60px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail .container { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-body { padding: 24px; }
  .beliefs-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    padding: 80px 32px 32px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    gap: 20px;
    align-items: flex-start;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .audit-form { padding: 32px 24px; }
  .blog-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .blog-filters button { flex-shrink: 0; }
  .hero-visual .placeholder-img { height: 280px; }
}
