/* =====================================================
   iESP – Bootstrap 5 Custom Styles
   Palette: #274476 (primary blue) | #30b3d1 (cyan)
   Font: Rajdhani (400, 700)
===================================================== */

:root {
  --iesp-blue:  #274476;
  --iesp-cyan:  #30b3d1;
  --iesp-grey:  #4e4f55;
}

/* ----- Global ----- */
body {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#footer {
  margin-top: auto;
}

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

/* Override Bootstrap primary colour */
.btn-primary {
  background-color: var(--iesp-blue);
  border-color: var(--iesp-blue);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--iesp-grey);
  border-color: var(--iesp-grey);
}

/* ----- Topbar / Header ----- */
.iesp-topbar {
  background-color: #fff;
  border-bottom: 3px solid var(--iesp-blue);
}

.iesp-logo {
  max-height: 80px;
  width: auto;
}

.iesp-contact-link {
  color: var(--iesp-blue);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.iesp-contact-link:hover {
  color: var(--iesp-cyan);
}

.iesp-social-link {
  color: var(--iesp-blue);
  text-decoration: none;
  transition: color 0.2s;
}
.iesp-social-link:hover {
  color: var(--iesp-cyan);
}

/* ----- Navbar ----- */
.iesp-navbar {
  background-color: var(--iesp-blue);
}

.iesp-navbar .nav-link {
  color: #fff !important;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.2s;
  border-radius: 4px;
}
.iesp-navbar .nav-link:hover,
.iesp-navbar .nav-link:focus {
  background-color: var(--iesp-cyan);
}
.iesp-navbar .nav-link.active {
  background-color: var(--iesp-cyan);
}

.iesp-navbar .dropdown-menu {
  background-color: var(--iesp-grey);
  border: none;
  min-width: 260px;
}
.iesp-navbar .dropdown-item {
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 20px;
}
.iesp-navbar .dropdown-item:hover {
  background-color: var(--iesp-cyan);
  color: #fff;
}

/* ----- Hero / Banner ----- */
.iesp-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #000;
}

.iesp-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
}

.iesp-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
}

.iesp-hero-content h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
}

.iesp-hero-content p {
  color: #fff;
  font-size: 1.2rem;
}

.iesp-tagline {
  color: var(--iesp-cyan) !important;
}

/* ----- Section Backgrounds ----- */
.iesp-section-dark {
  background-color: var(--iesp-blue);
  color: #fff;
  padding: 60px 0;
}

.iesp-section-light {
  background-color: #f5f5f5;
  padding: 60px 0;
}

.iesp-section-white {
  background-color: #fff;
  padding: 60px 0;
}

/* ----- Service Cards (homepage) ----- */
.iesp-service-card {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: rgba(0,0,0,0.4) 4px 4px 10px 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.iesp-service-card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(0,0,0,0.55) 4px 8px 16px 0;
}

.iesp-service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s;
}
.iesp-service-card:hover .iesp-service-card-bg {
  transform: scale(1.04);
}

.iesp-service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
}

.iesp-service-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: #fff;
  text-align: center;
}

.iesp-service-card-body h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.iesp-service-card-body .btn {
  font-size: 0.85rem;
  padding: 4px 16px;
}

/* ----- Team Cards ----- */
.iesp-team-card {
  position: relative;
  height: 560px;
  max-width: 85%;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: rgba(0,0,0,0.4) 4px 4px 10px 0;
}

.iesp-team-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.iesp-team-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(39,68,118,0.92) 0%, rgba(39,68,118,0.1) 55%);
}

.iesp-team-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background-color: rgba(39, 68, 118, 0.80);
  border-top: 2px solid var(--iesp-cyan);
}

.iesp-team-card-body p {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
}

.iesp-team-card-body span {
  color: rgba(255,255,255,0.8);
  font-size: 1.3rem;
}

/* ----- Inner / Service Pages ----- */
.iesp-inner-page {
  padding: 60px 0;
  min-height: 60vh;
}

.iesp-page-label {
  font-size: 1.4rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 0;
}

.iesp-page-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--iesp-blue);
  margin-bottom: 0.5rem;
}

.iesp-page-image {
  border-radius: 6px;
  box-shadow: rgba(0,0,0,0.5) 5px 5px 10px 0;
  width: 100%;
  margin-bottom: 2rem;
}

.iesp-bullet-list {
  list-style: none;
  padding: 0;
}

.iesp-bullet-list li {
  padding: 8px 0 8px 2rem;
  position: relative;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
}

.iesp-bullet-list li::before {
  content: '\F26A';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  color: var(--iesp-cyan);
  font-weight: 700;
}

/* Team card placeholder (no photo) */
.iesp-team-card-placeholder {
  background-color: var(--iesp-grey);
}

/* ----- Gallery ----- */
.iesp-gallery-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: rgba(0,0,0,0.35) 3px 3px 8px 0;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
}
.iesp-gallery-thumb:hover {
  transform: scale(1.03);
  box-shadow: rgba(0,0,0,0.55) 4px 6px 14px 0;
}

/* ----- Footer ----- */
.iesp-footer {
  background-color: var(--iesp-blue);
  color: #fff;
}

.iesp-footer-logo {
  background-color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  max-height: 55px;
}

.iesp-footer a {
  transition: opacity 0.2s;
}
.iesp-footer a:hover {
  opacity: 0.75;
}
