/*
  style.css
  Theme: Financial Consulting in Ghana
  Design System: Creative
  Color Scheme: Split-Complementary
  Fonts: Montserrat (Headings), Merriweather (Body)
*/

/* 1. VARIABLES & ROOT STYLES
-------------------------------------------------- */
:root {
  /* Color Palette */
  --primary-color: #0A2463; /* Deep Navy Blue */
  --secondary-color: #3E92CC; /* Lighter Professional Blue */
  --accent-color: #FF9F1C; /* Vibrant Orange/Gold */
  --accent-dark-color: #e08e18; /* Darker accent for hovers */
  --text-color-dark: #222222;
  --text-color-light: #f8f9fa;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --border-color: #dee2e6;

  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;

  /* Spacing & Borders */
  --border-radius: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.8rem); }

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

a:hover {
  color: var(--accent-dark-color);
  text-decoration: underline;
}

/* 2. GLOBAL COMPONENTS
-------------------------------------------------- */
/* Global Button Styles */
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  border-width: 2px;
  border-style: solid;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--accent-dark-color);
  border-color: var(--accent-dark-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

/* Form Styles */
.form-control, .form-select {
  border-radius: var(--border-radius);
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(255, 159, 28, 0.25);
}

/* Base Card Styles */
.card {
  border: none;
  border-radius: var(--border-radius);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center; /* Center align text content */
}

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

.card-image {
  width: 100%;
  overflow: hidden;
  margin: 0 auto; /* Center the image container */
}

.card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content, .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 3. LAYOUT COMPONENTS
-------------------------------------------------- */
/* Header */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -1px;
}

.nav-link {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}


/* Footer */
.footer {
  background-color: var(--bg-dark);
}

.footer h5 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.footer p, .footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-link {
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

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

/* 4. PAGE-SPECIFIC SECTIONS
-------------------------------------------------- */
/* Hero Section */
.hero-section {
  min-height: 90vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-section h1, .hero-section p {
    color: var(--text-color-light);
}

/* Section Title */
.section-title {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 2rem !important;
  font-weight: 800;
  color: var(--text-color-dark);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* History Section */
#history .card {
    box-shadow: none;
}
#history .card:hover {
    transform: none;
}


/* Projects Section */
.project-card .card-content {
    background-color: #fff;
}
.project-card .card-image {
    height: 250px;
}
.project-card .card-image img {
    height: 100%;
}

/* Case Studies */
.case-study-item {
    background-color: #fff;
    border-left: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
}
.case-study-item:hover {
    border-left-color: var(--accent-color);
}
.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.case-study-details {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Behind the Scenes Gallery */
#behind-the-scenes .card-image {
    height: 350px; /* Consistent height for gallery images */
}
#behind-the-scenes .card-image img {
    height: 100%;
}
#behind-the-scenes .card {
    box-shadow: var(--shadow-sm);
}

/* Customer Stories (Testimonials) */
.testimonial-card {
    background-color: var(--bg-light);
}
.testimonial-card .card-image img {
  border: 4px solid var(--accent-color);
  width: 120px;
  height: 120px;
}
.testimonial-card .blockquote {
    font-size: 1rem;
    font-style: italic;
    color: #555;
}
.testimonial-card .blockquote-footer {
    margin-top: 1rem;
    font-style: normal;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

/* External Resources */
.resource-card {
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.resource-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.resource-card .card-title {
    color: var(--primary-color);
}
.resource-card .btn-outline-primary {
    margin-top: 1rem;
    align-self: flex-start;
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

.accordion-button {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary-color);
  background-color: #fff;
}

.accordion-button:not(.collapsed) {
  background-color: var(--bg-light);
  color: var(--primary-color);
  box-shadow: inset 0 -1px 0 var(--border-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230A2463'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Contact Section */
#contact .map-responsive {
    overflow: hidden;
    padding-bottom: 75%; /* Aspect ratio */
    position: relative;
    height: 0;
}
#contact .map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}
#contact p strong {
    color: var(--primary-color);
}

/* 5. SPECIAL PAGE STYLES
-------------------------------------------------- */
/* Success Page */
.success-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--bg-light);
}

.success-content {
    background: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 600px;
}
.success-content h1 {
    color: var(--primary-color);
}

/* Privacy & Terms Pages */
.legal-page-content {
    padding-top: 120px; /* Offset for sticky header */
    padding-bottom: 4rem;
}
.legal-page-content h1 {
    margin-bottom: 2rem;
}
.legal-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* 6. ANIMATIONS & UTILITIES
-------------------------------------------------- */
/* ScrollReveal initial states for JS to hook into */
.reveal-fade-in { visibility: hidden; }
.reveal-from-left { visibility: hidden; }
.reveal-from-right { visibility: hidden; }
.reveal-from-bottom { visibility: hidden; }
.reveal-zoom-in { visibility: hidden; }


/* 7. MEDIA QUERIES
-------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 70vh;
  }
  .navbar-nav {
      text-align: center;
      padding-top: 1rem;
  }
  .nav-link::after {
      display: none;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
  }
  .hero-section {
    min-height: 60vh;
    text-align: left;
  }
  .hero-section .container {
      padding: 0 2rem;
  }
  .section-title {
      font-size: 1.8rem;
  }
  .footer {
      text-align: center;
  }
  .footer .col-md-4, .footer .col-md-2, .footer .col-md-3 {
      margin-bottom: 2rem !important;
  }
}