/*
 * BRO Digital Company Website Stylesheet
 *
 * This stylesheet defines the colour palette, typography and layout
 * for the BRO Digital website. The design follows a dark theme with
 * vibrant accent colours to convey a premium, modern feel. Sections
 * are spaced generously and adapt to different screen sizes.
 */

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

:root {
  /* Primary brand colours */
  --primary-color: #5e5fff;
  --secondary-color: #fc5c7d;
  /* Background colours */
  --dark-bg: #0a1320;
  --light-bg: #1b2541;
  /* Text and accent colours */
  --text-color: #ffffff;
  --subtle-text: #cfd6e4;
  --accent-color: #ffc107;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
}

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

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

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--dark-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

nav li {
  position: relative;
}

nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
}

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

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  color: var(--text-color);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero .content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

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

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--subtle-text);
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  margin: 0.3rem 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--secondary-color);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

.section {
  padding: 4rem 2rem;
}

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

.section-subtitle {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--subtle-text);
}

/* Services Section */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  max-width: 350px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

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

.service-card p {
  margin-bottom: 1rem;
  color: var(--subtle-text);
  flex-grow: 1;
}

.service-card .learn-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.service-card .learn-more:hover {
  color: var(--secondary-color);
}

/* Clients / Who We Serve */
.clients {
  text-align: center;
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.client-category {
  background-color: var(--light-bg);
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 260px;
  flex: 1 1 220px;
}

.client-category h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  font-size: 1.3rem;
}

.client-category p {
  color: var(--subtle-text);
  font-size: 0.95rem;
}

/* Insights / Blog section */
.insights {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.post {
  background-color: var(--light-bg);
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 300px;
  flex: 1 1 260px;
  transition: transform 0.3s ease;
}

.post:hover {
  transform: translateY(-4px);
}

.post span {
  font-size: 0.8rem;
  color: #7f8fa6;
}

.post h4 {
  margin-top: 0.5rem;
  color: var(--accent-color);
  font-size: 1.4rem;
}

.post p {
  margin-top: 0.5rem;
  color: var(--subtle-text);
}

/* Testimonials */
.testimonials {
  position: relative;
  background-image: linear-gradient(135deg, rgba(94, 95, 255, 0.8), rgba(252, 92, 125, 0.8));
  padding: 4rem 2rem;
  color: #fff;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

.testimonial {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial .author {
  font-weight: bold;
  font-size: 1.1rem;
}

/* Call to Action */
.cta {
  background-color: var(--primary-color);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.cta h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.cta p {
  margin-bottom: 1.5rem;
  color: #f5f6fa;
  font-size: 1.1rem;
}

.cta .btn-primary {
  background-color: #fff;
  color: var(--primary-color);
}

.cta .btn-primary:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

/* Footer */
footer {
  background-color: var(--light-bg);
  padding: 2rem;
  color: #a5b1c2;
  font-size: 0.9rem;
}

footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

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

footer h4 {
  margin-bottom: 0.75rem;
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 600;
}

footer a {
  color: #a5b1c2;
  font-size: 0.9rem;
}

footer a:hover {
  color: var(--primary-color);
}

.social-icons a {
  margin-right: 0.5rem;
  font-size: 1.3rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--secondary-color);
}

/* Responsive styles */
@media (max-width: 768px) {
  header nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--light-bg);
    flex-direction: column;
    gap: 0;
    padding: 1rem 2rem;
    display: none;
  }

  header nav ul.active {
    display: block;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .services, .insights, .client-list {
    flex-direction: column;
    align-items: center;
  }
}