/* Global styles */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  color: #333;
  background-color: #f8f9fb;
}

/* Header */
header {
  background-color: #0a2a43;
  color: #ffffff;
  padding: 30px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 32px;
}

header p {
  margin-top: 8px;
  font-size: 16px;
  opacity: 0.9;
}

/* Navigation */
nav {
  background-color: #ffffff;
  padding: 12px 0;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

nav a {
  margin: 0 18px;
  text-decoration: none;
  color: #0a2a43;
  font-weight: 600;
}

nav a:hover {
  color: #0077b6;
}

/* Main content section */
section {
  max-width: 1000px;
  margin: 40px auto;
  background-color: #ffffff;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Headings */
section h2 {
  color: #0a2a43;
  margin-bottom: 20px;
  border-left: 4px solid #0077b6;
  padding-left: 12px;
}

section h3 {
  color: #0077b6;
  margin-top: 30px;
  margin-bottom: 10px;
}

/* Paragraphs */
section p {
  margin-bottom: 18px;
  font-size: 15.5px;
}

/* Footer */
footer {
  background-color: #0a2a43;
  color: #ffffff;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

article {
  margin-bottom: 30px;
}

article h3 {
  margin-bottom: 5px;
}

article p em {
  color: #666;
  font-size: 14px;
}

article a {
  color: #0077b6;
  text-decoration: none;
  font-weight: 600;
}

article a:hover {
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* Blog featured images */
/* article img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
}

section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
} */

/* The image style for article and section image are overlapping. So I am giving the article a class .blog-listing and the section a class .blog-post */

.blog-listing img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.blog-post img {
  width: 100%;
  height: auto;
  margin: 25px 0;
}

/* Hero Section */
.hero {
  position: relative;
  background-image: url("../images/hero/consulting.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 20px;
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 68, 0.75);
}

.hero-content {
  position: relative; /* VERY IMPORTANT */
  max-width: 1000px;
  margin: auto;
  text-align: center;

  /* This one line (position: relative) ensures text stays above the overlay. */
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  max-width: 850px;
  margin: 0 auto 35px;
  color: #e6eef6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

.btn-primary {
  background-color: #f0b429;
  color: #0f2a44;
}

.btn-primary:hover {
  background-color: #d9a21f;
}

.btn-secondary {
  border: 2px solid #ffffff;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: #0f2a44;
}

/* Trust Indicators */
.trust-indicators {
  margin-top: 40px;
}

.trust-title {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 15px;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.trust-items span {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
}
/* Hero Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  animation: fadeUp 0.8s ease forwards;
}

.hero-description {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-actions {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

/* Mobile Hero Optimization */
@media (max-width: 768px) {
  .hero {
    padding: 70px 15px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .trust-items {
    gap: 10px;
  }

  .trust-items span {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Clients Section */
.clients {
  padding: 70px 20px;
  background-color: #f7f9fc;
  text-align: center;
}

.clients h2 {
  font-size: 28px;
  margin-bottom: 40px;
  color: #0f2a44;
}

.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.client-logos img {
  max-height: 50px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.client-logos img:hover {
  opacity: 1;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}

.testimonials h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: #0f2a44;
}

/* Carousel Layout */
.testimonial-wrapper {
    overflow: hidden;
    max-width: 100%;
    position: relative;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    animation: scrollTestimonials 10s linear infinite;
}

.testimonial {
    min-width: 320px;
    max-width: 320px;
    background: #f7f9fc;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    flex-shrink: 0;
}

/* Pause on hover */
.testimonial-wrapper:hover .testimonial-track {
    animation-play-state: paused;
}

/* Animation */
@keyframes scrollTestimonials {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Mobile optimisation for testimonial */

@media (max-width: 768px) {
    .testimonial {
        min-width: 280px;
        max-width: 280px;
    }

    .testimonial-track {
        animation-duration: 25s;
    }
}

/* Portfolio Hero */
.portfolio-hero {
    padding: 70px 20px;
    text-align: center;
    background-color: #f7f9fc;
}

.portfolio-hero h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #0f2a44;
}

.portfolio-hero p {
    max-width: 800px;
    margin: auto;
    font-size: 17px;
}

/* Case Studies */
.case-studies {
    max-width: 1000px;
    margin: auto;
    padding: 60px 20px;
}

.case-study {
    background: #ffffff;
    border-left: 4px solid #0f2a44;
    padding: 30px;
    margin-bottom: 40px;
}

.case-study h3 {
    margin-top: 0;
    color: #0f2a44;
}

.case-meta {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 15px;
}

.case-study h4 {
    margin-bottom: 5px;
    color: #333;
}

.case-study p {
    margin-bottom: 15px;
}


/* Services Hero */
.services-hero {
    padding: 70px 20px;
    background-color: #0f2a44;
    color: #ffffff;
    text-align: center;
}

.services-hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.services-hero p {
    max-width: 800px;
    margin: auto;
    font-size: 17px;
    line-height: 1.6;
}
/* Services Grid */
.services-grid {
    max-width: 1100px;
    margin: auto;
    padding: 70px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f7f9fc;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.service-card h3 {
    margin-top: 0;
    color: #0f2a44;
}

.service-card p {
    line-height: 1.6;
}

/* Who We Serve */
.who-we-serve {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.who-we-serve h2 {
    margin-bottom: 30px;
    color: #0f2a44;
}

.who-we-serve ul {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: auto;
}

.who-we-serve li {
    padding: 10px 0;
    font-size: 16px;
}

/* How We Work */
.how-we-work {
    padding: 70px 20px;
    background-color: #f7f9fc;
    text-align: center;
}

.process {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.process div {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 20px;
    font-size: 14px;
}

/* Services CTA */
.services-cta {
    padding: 80px 20px;
    background-color: #0f2a44;
    color: #ffffff;
    text-align: center;
}

.services-cta h2 {
    margin-bottom: 15px;
}

.services-cta p {
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Service Detail Pages */
.service-detail-hero {
    padding: 70px 20px;
    background-color: #f7f9fc;
    text-align: center;
}

.service-detail-hero h2 {
    font-size: 32px;
    color: #0f2a44;
    margin-bottom: 10px;
}

.service-detail-hero p {
    max-width: 800px;
    margin: auto;
    font-size: 16px;
}

.service-detail-content {
    max-width: 900px;
    margin: auto;
    padding: 60px 20px;
}

.service-detail-content h3 {
    color: #0f2a44;
    margin-top: 30px;
}

.service-detail-content ul {
    padding-left: 20px;
}

.service-detail-content li {
    margin-bottom: 8px;
}

.service-detail-cta {
    padding: 70px 20px;
    background-color: #0f2a44;
    color: #ffffff;
    text-align: center;
}

/* Contact Hero */
.contact-hero {
    padding: 70px 20px;
    background-color: #f7f9fc;
    text-align: center;
}

.contact-hero h1 {
    font-size: 36px;
    color: #0f2a44;
    margin-bottom: 10px;
}

.contact-hero p {
    max-width: 700px;
    margin: auto;
    font-size: 17px;
}

/* Contact Info */
.contact-info {
    max-width: 1000px;
    margin: auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.contact-info h3 {
    color: #0f2a44;
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form-section {
    padding: 70px 20px;
    background-color: #ffffff;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    font-size: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.contact-form button {
    margin-top: 10px;
}

/* What Happens Next */
.contact-next {
    padding: 60px 20px;
    background-color: #f7f9fc;
    text-align: center;
}

.contact-next ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: auto;
}

.contact-next li {
    padding: 10px 0;
    font-size: 16px;
}

.contact-disclaimer {
    font-size: 13px;
    color: #666;
    text-align: center;
    padding: 20px;
}

/* Global mobile base */
* {
    box-sizing: border-box;
     font-size: 16px;
}

img {
    max-width: 100%;
}


@media (max-width: 768px) {

    /* General spacing */
    section {
        padding: 40px 20px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    p {
        font-size: 16px;
    }

    /* Navigation */
    nav ul {
        flex-direction: column;
        gap: 12px;
    }

    /* Buttons */
    button,
    .btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
}

.navbar {
    position: relative;
}

.nav-links {
    display: flex;
    justify-content: center; /* CENTER MENU */
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 10px 20px;
}

/* Mobile navigation */
/* Mobile-only behavior (hamburger) */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        background: #ffffff;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 12px 0;
    }
}


.navbar {
    position: relative;
    z-index: 1000;
}

@media (max-width: 768px) {
    .nav-links {
        z-index: 1100;
    }
}

.hero {
    z-index: 1;
    position: relative;
}

.blog-category,
.blog-meta {
    margin: 8px 0;
    font-size: 14px;
}

.blog-meta a,
.blog-category a {
    color: #0077b6;
    font-weight: 600;
    text-decoration: none;
}

.blog-meta a:hover,
.blog-category a:hover {
    text-decoration: underline;
}

.cat-label {
    color: #555;
}
