/* ============================================
   ERA INVESTMENT — SERVICES PAGE
   Maersk-inspired dark theme
   Grid cards + full descriptions + textures
   ============================================ */

/* === PAGE === */
.svc-page {
  background: #0b1121;
  min-height: 100vh;
  color: #fff;
  width: 100%;
  float: left;
}

/* === HERO === */
.svc-hero {
  position: relative;
  width: 100%;
  float: left;
  height: 55vh;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.svc-hero video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.svc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11,17,33,0.3) 0%,
    rgba(11,17,33,0.15) 35%,
    rgba(11,17,33,0.5) 70%,
    rgba(11,17,33,1) 100%
  );
  z-index: 1;
}

.svc-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.svc-hero h1 {
  font: 700 52px/1.15 'Open Sans', sans-serif;
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
}

.svc-hero .svc-subtitle {
  font: 400 16px/1.5 'Open Sans', sans-serif;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
  letter-spacing: 0.5px;
}

/* === INTRO === */
.svc-intro {
  max-width: 780px;
  margin: 0 auto !important;
  padding: 55px 30px 45px;
  text-align: center !important;
  float: none !important;
  clear: both;
  display: block;
}

.svc-intro p {
  font: 400 15px/28px 'Open Sans', sans-serif !important;
  color: rgba(255,255,255,0.65) !important;
  margin: 0 auto 14px !important;
  text-align: center !important;
}

.svc-intro .svc-highlight {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.svc-intro .svc-credentials {
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font: 400 12px/20px 'Open Sans', sans-serif;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  text-align: center;
  max-width: 700px;
}

/* === CATEGORY SECTION === */
.svc-category {
  padding: 0 0 50px;
  position: relative;
}

.svc-cat-label {
  padding: 30px 40px 20px;
}

.svc-cat-label h2 {
  font: 700 11px/1 'Open Sans', sans-serif;
  color: rgba(200,180,160,0.7);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: categoryShimmer 3s ease-in-out infinite;
}

@keyframes categoryShimmer {
  0%, 100% {
    color: rgba(200,180,160,0.5);
    text-shadow: 0 0 2px rgba(200,170,140,0.1);
  }
  50% {
    color: rgba(220,200,180,0.85);
    text-shadow: 0 0 8px rgba(200,170,140,0.3), 0 0 16px rgba(139,0,0,0.15);
  }
}

.svc-cat-label h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

/* === CARD GRID === */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 0 40px;
}

/* === INDIVIDUAL CARD === */
.svc-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #8b0000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,0,0,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.05);
}

.svc-card:hover::before {
  transform: scaleX(1);
}

.svc-card.active {
  border-color: rgba(139,0,0,0.4);
  background: rgba(139,0,0,0.04);
}

.svc-card.active::before {
  transform: scaleX(1);
}

/* Card inner */
.svc-card-inner {
  padding: 28px 24px 24px;
}

.svc-card-number {
  font: 700 11px/1 'Open Sans', sans-serif;
  color: rgba(139,0,0,0.6);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.svc-card h3 {
  font: 700 16px/1.35 'Open Sans', sans-serif;
  color: rgba(255,255,255,0.9);
  margin: 0 0 12px;
  transition: color 0.3s;
}

.svc-card:hover h3 {
  color: #fff;
}

.svc-card-summary {
  font: 400 13px/21px 'Open Sans', sans-serif;
  color: rgba(255,255,255,0.45);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.svc-card-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font: 600 11px/1 'Open Sans', sans-serif;
  color: #8b0000;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.svc-card:hover .svc-card-toggle {
  color: #c0392b;
}

.svc-card-toggle-arrow {
  transition: transform 0.3s;
  font-size: 10px;
}

.svc-card.active .svc-card-toggle-arrow {
  transform: rotate(90deg);
}

/* === EXPANDED DETAIL === */
.svc-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background: rgba(11,17,33,0.6);
  border-top: 1px solid rgba(255,255,255,0);
}

.svc-card.active .svc-detail {
  max-height: 3000px;
  border-top-color: rgba(255,255,255,0.04);
}

.svc-detail-content {
  padding: 24px 24px 28px;
}

.svc-detail-content p {
  font: 400 14px/26px 'Open Sans', sans-serif;
  color: rgba(255,255,255,0.7);
  margin: 0 0 14px;
}

.svc-detail-content p:last-of-type {
  margin-bottom: 0;
}

.svc-detail-cta {
  display: flex;
  gap: 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.svc-detail-cta a {
  font: 600 11px/1 'Open Sans', sans-serif;
  color: #8b0000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.svc-detail-cta a:hover {
  color: #c0392b;
}

/* === BACKGROUND TEXTURE STRIPS === */
.svc-texture {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
}

.svc-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11,17,33,0.95), rgba(11,17,33,0.85)),
    url('../images/Pictures - all about ships/pexels-julius-silver-753331.jpg') center/cover;
  z-index: 0;
}

.svc-texture > * {
  position: relative;
  z-index: 1;
}

.svc-texture-alt::before {
  background:
    linear-gradient(135deg, rgba(11,17,33,0.93), rgba(11,17,33,0.88)),
    url('../images/Pictures - Ware houses and Cargoes/pexels-elevate-1267325.jpg') center/cover;
}

/* === BOTTOM CTA === */
.svc-bottom-cta {
  text-align: center;
  padding: 65px 30px;
  background: linear-gradient(180deg, #0b1121 0%, #0f1729 100%);
}

.svc-bottom-cta p {
  font: 400 15px/24px 'Open Sans', sans-serif;
  color: rgba(255,255,255,0.4);
  margin: 0 0 20px;
}

.svc-bottom-cta .svc-btn {
  display: inline-block;
  padding: 14px 42px;
  background: transparent;
  border: 1px solid #8b0000;
  color: #fff;
  font: 700 12px/1 'Open Sans', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.svc-bottom-cta .svc-btn:hover {
  background: #8b0000;
  box-shadow: 0 6px 20px rgba(139,0,0,0.3);
}

/* === HEADER FIX === */
.svc-page .header1 {
  position: relative;
  z-index: 100;
}

/* === FOOTER === */
.svc-page .footer1 {
  position: relative;
  margin-top: 0;
  float: left;
  width: 100%;
}

/* Force all sections to float properly */
.svc-intro,
.svc-category,
.svc-bottom-cta {
  width: 100%;
  float: left;
}

/* === RESPONSIVE === */
@media screen and (max-width: 991px) {
  .svc-hero h1 { font-size: 38px; }
  .svc-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); padding: 0 25px; }
  .svc-cat-label { padding: 25px 25px 15px; }
}

@media screen and (max-width: 767px) {
  .svc-hero { height: 40vh; min-height: 280px; }
  .svc-hero h1 { font-size: 30px; }
  .svc-hero .svc-subtitle { font-size: 14px; }
  .svc-intro { padding: 35px 20px 30px; }
  .svc-intro p { font-size: 14px; line-height: 24px; }
  .svc-grid { grid-template-columns: 1fr; padding: 0 16px; gap: 12px; }
  .svc-cat-label { padding: 22px 16px 12px; }
  .svc-card-inner { padding: 22px 18px 20px; }
  .svc-detail-content { padding: 18px 18px 22px; }
  .svc-bottom-cta { padding: 45px 20px; }
}

@media screen and (max-width: 480px) {
  .svc-hero h1 { font-size: 24px; }
  .svc-card h3 { font-size: 15px; }
}
