/*
 * Capital CFO Website Stylesheet
 *
 * This stylesheet defines the visual appearance of the Capital CFO website.
 * The design uses a professional colour palette with dark blues and warm accents
 * to convey trust, expertise and approachability. The layout is fully
 * responsive, ensuring that the site looks great on desktops, tablets and
 * smartphones. Utility classes are kept to a minimum for clarity; most
 * components are defined with semantic class names. Feel free to extend
 * these styles if you add more sections to the site.
 */

/* CSS Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0D3B66;
  background-color: #FAFAFA;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Colour Variables */
:root {
  --primary: #0D3B66;      /* dark blue */
  --secondary: #199C7D;    /* teal green accent reflecting AI & technology */
  --accent: #00A3E0;       /* bright cyan accent used sparingly */
  --light-bg: #F5F5F5;     /* light grey background */
  --dark-text: #0D3B66;    /* body text */
  --muted-text: #666F7A;   /* secondary text colour */
}

/* Header & Navigation */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: inline-block;
}

/* Logo image sizing */
.logo img {
  height: 100px;
  width: auto;
  display: block;
}



/* Optional: Align better in navbar */
.navbar .logo {
  padding: 0px 20px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: var(--dark-text);
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Highlight the active page in the navigation */
.nav-links li a.active {
  color: var(--secondary);
  font-weight: 600;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--secondary);
}

/* Hamburger for mobile */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 90vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 59, 102, 0.7);
}

.hero .overlay {
  position: relative;
  color: #fff;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.btn-primary {
  display: inline-block;
  background-color: var(--secondary);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #e49b15;
}

/* Sections */
section {
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary);
}

/* Services Overview */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Chart sections for interactive data visualisation */
.chart-section {
  margin: 2rem 0 3rem;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.chart-section h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}

.chart-section canvas {
  /* Ensure the charts scale nicely on all devices */
  width: 100% !important;
  max-width: 800px;
  height: 400px !important;
  margin: 0 auto;
  display: block;
}

.service-icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted-text);
}

.service-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.service-card a:hover {
  border-color: var(--secondary);
}

/* Why Choose Section */
.why-choose {
  background-color: var(--primary);
  color: #fff;
  padding: 4rem 2rem;
}

.why-choose .benefits-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.benefit {
  text-align: center;
  padding: 1.5rem;
}

.benefit i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.benefit h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.benefit p {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-bg);
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  background-color: #fff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}

.testimonial p {
  font-size: 1rem;
  color: var(--muted-text);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

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

/* Footer */
footer {
  background-color: var(--primary);
  color: #fff;
  padding: 2rem;
  text-align: center;
}

footer a {
  color: var(--secondary);
}

/* Page Specific Styles */
.inner-page-hero {
  height: 50vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13,59,102,0.6);
}

.inner-page-hero h1 {
  position: relative;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.content h2 {
  color: var(--primary);
  font-size: 1.7rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content p {
  margin-bottom: 1.5rem;
  color: var(--muted-text);
  line-height: 1.6;
  font-size: 1rem;
}

.service-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-item {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.service-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.service-item p {
  color: var(--muted-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact Form */
.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-info h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-info p {
  margin-bottom: 0.8rem;
  color: var(--muted-text);
}

.contact-form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Two-column layout for contact form on larger screens */
@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-form form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: var(--dark-text);
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #093258;
}

/* Responsive Behaviour */
@media (max-width: 768px) {
    /* Smaller logo on mobile to save vertical space */
  .logo img {
    height: 60px;
  }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .hamburger {
    display: block;
    color: var(--primary);
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .why-choose .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}