/* ========================================
   Spear Specialist Earnings - Custom Styles
   ======================================== */

:root {
  --spear-blue: #0d56a5;
  --spear-blue-dark: #0a4282;
  --spear-blue-light: #e8f0fa;
  --spear-gray: #6c757d;
  --spear-gray-light: #f8f9fa;
  --spear-text: #333333;
}

/* ---- Global ---- */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--spear-text);
  padding-top: 76px; /* fixed navbar offset */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

a {
  color: var(--spear-blue);
}

a:hover {
  color: var(--spear-blue-dark);
}

/* ---- Navbar ---- */
.navbar.bg-primary {
  background-color: var(--spear-blue) !important;
}

.navbar-brand img {
  transition: opacity 0.2s;
}

.navbar-brand img:hover {
  opacity: 0.9;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
  opacity: 1;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 86, 165, 0.7);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p.lead {
  font-size: 1.3rem;
  font-weight: 300;
  max-width: 700px;
}

/* ---- Page Banner ---- */
.page-banner {
  position: relative;
  background-color: var(--spear-blue);
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: #ffffff;
  text-align: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 86, 165, 0.8);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-banner p {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.9;
}

/* ---- Section Spacing ---- */
.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--spear-gray-light);
}

.section-title {
  margin-bottom: 3rem;
  text-align: center;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--spear-blue);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--spear-gray);
  font-size: 1.1rem;
}

/* ---- Service Cards ---- */
.service-card {
  background: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card .icon {
  font-size: 2.5rem;
  color: var(--spear-blue);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--spear-blue);
  margin-bottom: 0.75rem;
}

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

/* ---- Team Cards ---- */
.team-card {
  background: #ffffff;
  border-left: 4px solid var(--spear-blue);
  border-radius: 0 8px 8px 0;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.team-card h3 {
  font-size: 1.3rem;
  color: var(--spear-blue);
  margin-bottom: 0.75rem;
}

.team-card .icon {
  font-size: 2rem;
  color: var(--spear-blue);
  margin-bottom: 0.75rem;
}

.team-card p {
  color: var(--spear-gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- CTA Section ---- */
.cta-section {
  background-color: var(--spear-blue);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.btn-spear {
  background-color: var(--spear-blue);
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn-spear:hover {
  background-color: var(--spear-blue-dark);
  color: #ffffff;
}

.btn-spear-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 0.75rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-spear-outline:hover {
  background-color: #ffffff;
  color: var(--spear-blue);
}

/* ---- Contact Form ---- */
.contact-form .form-control {
  border-radius: 4px;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
}

.contact-form .form-control:focus {
  border-color: var(--spear-blue);
  box-shadow: 0 0 0 0.2rem rgba(13, 86, 165, 0.15);
}

.contact-info-card {
  background: var(--spear-blue);
  color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
}

.contact-info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-info-card .info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-info-card .info-item i {
  font-size: 1.2rem;
  margin-right: 1rem;
  margin-top: 0.2rem;
}

.contact-info-card a {
  color: #ffffff;
  text-decoration: underline;
}

/* ---- SpearTV ---- */
.speartv-hero {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.speartv-hero .bi-youtube {
  font-size: 4rem;
  color: #ff0000;
  margin-bottom: 1rem;
}

/* ---- Footer ---- */
.footer h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer .social-links a:hover {
  opacity: 0.8;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .hero {
    min-height: 400px;
  }

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

  .page-banner {
    padding: 60px 0;
  }

  .page-banner h1 {
    font-size: 2rem;
  }

  .section {
    padding: 50px 0;
  }
}

@media (max-width: 575.98px) {
  .hero {
    min-height: 350px;
  }

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

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

  .page-banner h1 {
    font-size: 1.6rem;
  }
}

/* Container for logo */
.logo-container {
  position: relative;
  display: inline-block;
}

/* Semi-transparent overlay behind the logo */
.logo-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8); /* adjust color & opacity */
  border-radius: 4px; /* optional: soften edges */
  z-index: 1;
  padding: 6px;  
}

/* Ensure logo image sits above overlay */
.logo-container img {
  position: relative;
  z-index: 2;
}
