/* ============================================
   CLARITY FINANCE - CUSTOM STYLES
   Bootstrap 5 First Approach + Minimal Custom CSS
   ============================================ */

/* CSS Variables for Colors */
:root {
  --primary-accent: #5C5CFF;
  --dark-navy: #1B1B4D;
  --light-purple: #8989F8;
  --lighter-purple: #ABABFA;
  --white-bg: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background-color: var(--white-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

/* Links */
a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--light-purple);
}

/* Header Styles */
.header {
  background-color: var(--white-bg);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-navy);
  text-decoration: none;
}

.logo:hover {
  color: var(--primary-accent);
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-accent);
}

.navbar-toggler {
  border: 1px solid var(--border-color);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Main Content Spacing */
main {
  margin-top: 76px;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 7rem 0;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #2d2d6b 100%);
  color: var(--white-bg);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
}

/* Decorative Lines */
.decorative-line {
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent), var(--light-purple), var(--lighter-purple));
  border-radius: 2px;
  margin: 3rem auto;
  max-width: 200px;
}

.decorative-line-left {
  margin-left: 0;
  margin-right: auto;
}

.decorative-line-full {
  max-width: 100%;
  height: 2px;
  opacity: 0.3;
}

/* Card Styles */
.card-custom {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s ease;
  height: 100%;
  background: var(--white-bg);
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-accent);
}

.card-custom .card-body {
  padding: 2rem;
}

.card-custom h4 {
  color: var(--dark-navy);
  margin-bottom: 1rem;
}

.card-custom p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Dark Background Sections */
.bg-dark-navy {
  background-color: var(--dark-navy);
  color: var(--white-bg);
}

.bg-dark-navy h2,
.bg-dark-navy h3,
.bg-dark-navy h4,
.bg-dark-navy h5 {
  color: var(--white-bg);
}

.bg-dark-navy p {
  color: rgba(255,255,255,0.85);
}

.bg-light-purple {
  background-color: var(--lighter-purple);
}

/* Stats/Numbers Styling */
.stat-item {
  padding: 2rem;
  border-left: 3px solid var(--primary-accent);
  background: rgba(92, 92, 255, 0.05);
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-dark);
  font-size: 1rem;
}

/* News Card Styles */
.news-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--dark-navy);
  color: var(--white-bg);
  height: 100%;
  transition: all 0.3s ease;
}

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

.news-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  opacity: 0.8;
}

.news-card-content {
  padding: 2rem;
}

.news-card h4 {
  color: var(--white-bg);
  margin-bottom: 1rem;
}

.news-card p {
  color: rgba(255,255,255,0.85);
}

/* Expert Insights Card */
.expert-card {
  text-align: center;
  padding: 2rem;
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.expert-card:hover {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-md);
}

.expert-img {
  width: 100%;
  height: 220px;
  border-radius: 4px;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
}

.expert-quote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.expert-name {
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 0.25rem;
}

.expert-role {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Testimonials Carousel */
.testimonial-item {
  background: var(--white-bg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  border-left: 4px solid var(--primary-accent);
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--dark-navy);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #2d2d6b 100%);
  color: var(--white-bg);
  padding: 4rem 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.2;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

/* Form Styles */
.form-control {
  border-radius: 4px;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(92, 92, 255, 0.1);
}

.btn-primary {
  background-color: var(--primary-accent);
  border-color: var(--primary-accent);
  color: var(--white-bg);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--light-purple);
  border-color: var(--light-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white-bg);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: var(--white-bg);
  color: var(--dark-navy);
  border-color: var(--white-bg);
}

/* Footer Styles */
.footer {
  background-color: var(--dark-navy);
  color: var(--white-bg);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer h5 {
  color: var(--white-bg);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: rgba(255,255,255,0.8);
  display: block;
  padding: 0.4rem 0;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-navy);
  color: var(--white-bg);
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  display: none;
}

.cookie-popup.show {
  display: block;
}

.cookie-popup p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.cookie-popup a {
  color: var(--lighter-purple);
  text-decoration: underline;
}

.cookie-popup .btn {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

/* Sector Cards */
.sector-card {
  background: rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  height: 100%;
}

.sector-card:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--primary-accent);
  transform: translateY(-3px);
}

.sector-card h4 {
  color: var(--white-bg);
  margin-bottom: 1rem;
}

.sector-card p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
}

/* Page Header for Secondary Pages */
.page-header {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #2d2d6b 100%);
  color: var(--white-bg);
  padding: 6rem 0 4rem;
  margin-top: 76px;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
}

/* Contact Info */
.contact-info-item {
  display: flex;
  align-items: start;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(92, 92, 255, 0.05);
  border-radius: 4px;
  border-left: 3px solid var(--primary-accent);
}

.contact-info-item .material-icons-outlined {
  font-size: 2rem;
  color: var(--primary-accent);
  margin-right: 1rem;
}

.contact-info-item div h5 {
  margin-bottom: 0.5rem;
  color: var(--dark-navy);
}

.contact-info-item div p {
  margin-bottom: 0;
  color: var(--text-light);
}

/* Map Container */
.map-container {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* Thank You Page */
.thank-you-card {
  max-width: 600px;
  margin: 4rem auto;
  padding: 4rem 3rem;
  text-align: center;
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.thank-you-card .material-icons-outlined {
  font-size: 5rem;
  color: var(--primary-accent);
  margin-bottom: 2rem;
}

/* Service Pages Content */
.service-page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 0;
}

.service-page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-navy);
}

.service-page-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-navy);
}

.service-page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.service-page-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.service-page-content li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .page-header h1 {
    font-size: 2.25rem;
  }
}

/* Material Icons Adjustments */
.material-icons,
.material-icons-outlined {
  vertical-align: middle;
}

/* Image Responsiveness */
img {
  max-width: 100%;
  height: auto;
}

/* Divider Image Sections */
.divider-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin: 3rem 0;
  border-radius: 4px;
}

/* Border Box for Text Content */
.text-border-box {
  border: 2px solid var(--primary-accent);
  padding: 2rem;
  border-radius: 4px;
  position: relative;
}

.text-border-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 20%;
  right: 20%;
  height: 4px;
  background: var(--primary-accent);
}

/* Utility Classes */
.text-accent {
  color: var(--primary-accent);
}

.bg-light-accent {
  background-color: rgba(92, 92, 255, 0.05);
}

.mb-large {
  margin-bottom: 4rem;
}

.mt-large {
  margin-top: 4rem;
}

