/* company-service-static.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: #334155;
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Page Content Body */
.detail-body {
  max-width: var(--content-width);
  margin: 4rem auto;
  padding: 0 1.5rem;
  min-height: 50vh;
}

.sv-page-title {
  font-weight: 800;
  text-align: center;
  color: var(--dark, #0f172a);
  margin: 0 0 2rem;
}

/* Category Tab controls */
.sv-cat-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.sv-cat-tab {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.sv-cat-tab:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.sv-cat-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: none;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: #f8fafc;
  border-radius: 0;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.empty-state .material-icons {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.empty-state p {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Layout 1: Grid (4 cols / 3 cols) */
.sv-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(4, 1fr);
}

/* Layout 2: 2 columns layout */
.sv-2col {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.sv-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.sv-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: var(--primary);
}

.sv-img-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.sv-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

.sv-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
}

.sv-no-img .material-icons {
  font-size: 3rem;
  color: #94a3b8;
}

.sv-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sv-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.sv-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.sv-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
}

/* Layout 3: Rows layout */
.sv-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.sv-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 1.25rem 2rem;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s;
}

.sv-row:hover {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: var(--primary);
}

.sv-row-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sv-row-img {
  width: 110px;
  height: 75px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.sv-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sv-row-body {
  text-align: left;
  flex: 1;
}

.sv-row-body .sv-title {
  margin-bottom: 0.25rem;
}

.sv-row-body .sv-desc {
  margin-bottom: 0;
  -webkit-line-clamp: 2;
}

/* Layout 4: Featured layout */
.sv-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.sv-feat-main {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}

.sv-feat-main:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: var(--primary);
}

.sv-title.lg {
  font-size: 1.35rem;
}

.sv-feat-rest {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sv-card.sm {
  flex-direction: row;
  align-items: center;
  padding: 1rem;
  gap: 1.25rem;
}

.sv-card.sm .sv-img-wrap {
  width: 120px;
  height: auto;
  min-height: 85px;
  flex-shrink: 0;
  border-radius: 0;
}

.sv-card.sm .sv-body {
  padding: 0;
}

.sv-card.sm .sv-title {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.sv-card.sm .sv-desc {
  margin-bottom: 0;
  -webkit-line-clamp: 2;
}

/* ── Single Service Detail Styles ── */
.service-single {
  max-width: 800px;
  margin: 0 auto;
}

.service-single-img {
  width: 100%;
  height: auto;
  object-fit: unset;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  margin-bottom: 2.5rem;
  display: block;
}

.service-single-desc {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #334155;
  text-align: left;
  margin-bottom: 3rem;
}

/* Scroll Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0;
  pointer-events: none;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
}

/* Responsive Design options */
@media (max-width: 1000px) {
  .sv-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sv-featured {
    grid-template-columns: 1fr;
  }

  .sv-feat-rest {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .navbar-hamburger {
    display: block;
  }

  .sv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sv-row {
    gap: 1.25rem;
    padding: 1rem;
  }

  .sv-row-num {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .sv-row-img {
    width: 90px;
  }

  .service-single-img {
    height: auto;
  }
}

@media (max-width: 550px) {

  .sv-grid,
  .sv-2col {
    grid-template-columns: 1fr;
  }

  .sv-card.sm {
    flex-direction: column;
    align-items: flex-start;
  }

  .sv-card.sm .sv-img-wrap {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .sv-card.sm .sv-body {
    padding: 1rem;
  }
}