@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/*
 * Finsightic Website Styles (Modern Redesign)
 *
 * This stylesheet defines a clean, modern aesthetic inspired by the brand's logo colours.
 * The palette is based on a vivid blue and neutral grey taken directly from the logo
 * and complemented with soft backgrounds and refined typography. Hover effects and
 * animations add subtle interactivity without overwhelming the user.
 */

/* Theme variables */
:root {
  /* Colour palette extracted from the brand's logo */
  --primary-color: #1E88E5;        /* Bright azure blue – core brand colour */
  --secondary-color: #707070;      /* Neutral grey – supporting colour */
  --accent-color: #64B5F6;         /* Lighter blue used for highlights */
  --background-color: #F5F7FA;     /* Very light neutral for page backgrounds */
  --dark-text: #1F2933;            /* Dark grey for primary text */
  --light-text: #6B7280;           /* Medium grey for secondary text */

  /* Layout and typography */
  --max-width: 1200px;
  --border-radius: 12px;
  --transition-duration: 0.3s;
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--dark-text);
  background-color: var(--background-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.cta {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
}

main {
    min-height: 60vh;
}

section {
    padding: 80px 20px;
}

/* Section headings across pages */
.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 50px;
  color: var(--primary-color);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Card component used for services, industries and testimonials */
.card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

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

/* Hero section: a flexible two-column layout with a gradient background and
   embedded illustration. The hero uses the primary and accent colours as
   a gradient and turns white text for strong contrast. */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 100px 20px;
  background-image: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
}

.hero-text {
  flex: 1 1 500px;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 56px;
  margin: 0 0 20px;
  color: #ffffff;
  line-height: 1.2;
}

.hero-text p {
  font-size: 20px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.hero .buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero .buttons a {
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color var(--transition-duration), color var(--transition-duration), border-color var(--transition-duration);
}

/* Primary CTA in hero becomes white button with coloured text on dark background */
.hero .buttons a.primary {
  background-color: #ffffff;
  color: var(--primary-color);
}

/* Secondary CTA is transparent with white border and text */
.hero .buttons a.secondary {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.hero .buttons a.primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.hero .buttons a.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.hero-image {
  flex: 1 1 400px;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 500px;
}

/* Fallback styles for pages that use a hero without explicit `.hero-text` container */
.hero > h1,
.hero > h2 {
  color: #ffffff;
  font-size: 48px;
  margin-bottom: 20px;
}

.hero > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
}

.process-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: var(--max-width);
    color: #ffffff;
    padding: 40px 20px;
}

footer .footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto;
}

.process-step {
    flex: 1 1 150px;
    max-width: 200px;
    text-align: center;
}

.process-step .number {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-color);
}

.testimonials {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.testimonial {
    flex: 1 1 400px;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.testimonial p {
    font-style: italic;
    color: var(--light-text);
}

footer {
    background-color: var(--primary-color);
}

footer .footer-section {
    flex: 1 1 250px;
}

footer a {
    color: #dbeafe;
    text-decoration: none;
}

footer p {
    margin: 0 0 10px;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-menu {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
    /* Stack hero content on small screens */
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-text, .hero-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .hero-image {
        margin-top: 40px;
    }
    .hero-text h1 {
        font-size: 32px;
    }
    .hero-text p {
        font-size: 16px;
    }
    .section-title {
        font-size: 32px;
    }
}