/* ============================================
   ADVERA GROUP – INNER PAGES SHARED CSS
   ============================================ */

/* ---- Page Hero Banner ---- */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
  padding-top: 80px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,8,15,0.93) 0%,
    rgba(8,8,15,0.75) 60%,
    rgba(8,8,15,0.5) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 50px;
  width: 100%;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--red-light); }
.breadcrumb .sep { color: rgba(255,255,255,0.2); }
.breadcrumb .current { color: var(--white); }
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero-desc {
  font-size: 1.05rem;
  color: rgba(232,230,240,0.75);
  max-width: 560px;
  line-height: 1.7;
}
.page-hero-line {
  width: 60px; height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ---- General Page Section ---- */
.page-section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}
.page-section + .page-section {
  border-top: 1px solid var(--border);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-story-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.about-story-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.about-story-img:hover img { transform: scale(1.04); }
.about-story-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.about-story-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(8,8,15,0.85);
  border: 1px solid rgba(230,46,46,0.3);
  border-radius: var(--radius);
  padding: 14px 20px;
  backdrop-filter: blur(12px);
}
.about-story-badge .badge-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.about-story-badge .badge-txt {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.value-card:hover {
  border-color: var(--border-2);
  transform: translateY(-5px);
}
.value-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.value-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.team-card:hover {
  border-color: var(--border-2);
  transform: translateY(-5px);
}
.team-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.team-info { padding: 20px; }
.team-info h3 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.team-info p { font-size: 0.82rem; color: var(--red-light); }

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.service-page-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.service-page-card:hover {
  border-color: var(--border-2);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(230,46,46,0.1);
}
.service-page-card:hover::before { transform: scaleX(1); }
.service-page-icon {
  width: 60px; height: 60px;
  background: rgba(230,46,46,0.1);
  border: 1px solid rgba(230,46,46,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-page-card:hover .service-page-icon {
  background: rgba(230,46,46,0.2);
  transform: scale(1.08);
}
.service-page-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.service-page-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-page-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red-light);
}
.service-page-arrow svg { width: 14px; height: 14px; transition: transform 0.3s; }
.service-page-card:hover .service-page-arrow svg { transform: translateX(4px); }

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}
.service-detail-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.service-detail-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.service-detail-lead {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
}
.service-detail-content {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 24px;
}
.service-detail-content h2,
.service-detail-content h3,
.service-detail-content h4 {
  color: var(--white);
  margin: 28px 0 12px;
}
.service-detail-content p {
  margin-bottom: 14px;
}
.service-detail-content ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.service-detail-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail-content ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.service-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 24px 0 32px;
}
.service-detail-gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.service-detail-gallery__item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.service-detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.service-detail-bottom-cta {
  text-align: center;
}
.sidebar-form-card .contact-form {
  margin-top: 4px;
}
.sidebar-form-card .btn-primary.full-width {
  width: 100%;
  justify-content: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.service-detail-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  margin-top: 36px;
}
.service-detail-body h2:first-child { margin-top: 0; }
.service-detail-body p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.service-detail-body ul {
  list-style: none;
  margin-bottom: 24px;
}
.service-detail-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail-body ul li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.detail-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.detail-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.detail-feature:hover { border-color: var(--border-2); }
.detail-feature-icon { font-size: 1.5rem; margin-bottom: 10px; }
.detail-feature h4 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.detail-feature p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* Sidebar */
.service-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.sidebar-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-service-list { display: flex; flex-direction: column; gap: 4px; }
.sidebar-service-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}
.sidebar-service-link:hover, .sidebar-service-link.active {
  background: rgba(230,46,46,0.08);
  color: var(--white);
}
.sidebar-service-link.active { color: var(--red-light); font-weight: 600; }
.sidebar-service-link span { font-size: 1rem; }

.sidebar-cta {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-light) 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.sidebar-cta h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.sidebar-cta p { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-bottom: 20px; line-height: 1.5; }
.sidebar-cta a {
  display: block;
  padding: 12px 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.sidebar-cta a:hover { background: rgba(255,255,255,0.25); }

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  padding: 9px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.project-card:hover {
  border-color: var(--border-2);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.project-img {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.project-card:hover .project-img img { transform: scale(1.06); }
.project-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(230,46,46,0.15);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.project-card:hover .project-img-overlay { opacity: 1; }
.project-info { padding: 22px; }
.project-tag {
  display: inline-block;
  background: rgba(230,46,46,0.12);
  border: 1px solid rgba(230,46,46,0.2);
  color: var(--red-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.project-info h3 { font-size: 0.97rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.project-info p { font-size: 0.85rem; color: var(--text-muted); }

.projects-bottom-cta {
  text-align: center;
  background: rgba(14, 14, 26, 0.5);
}
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}
.contact-info-block { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.contact-info-item:hover { border-color: var(--border-2); }
.contact-info-icon {
  width: 50px; height: 50px;
  background: rgba(230,46,46,0.1);
  border: 1px solid rgba(230,46,46,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-info-text h4 { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.contact-info-text p, .contact-info-text a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.3s;
}
.contact-info-text a[href^="tel:"],
.contact-info-text a[href*="wa.me"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.contact-info-text a:hover { color: var(--red-light); }

.contact-page-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.contact-page-form h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.contact-page-form > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ============================================
   RESPONSIVE INNER PAGES
   ============================================ */
@media (max-width: 1024px) {
  .about-story-grid,
  .service-detail-grid,
  .contact-page-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-page-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { min-height: 280px; }
  .page-hero-title { font-size: 2rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .services-page-grid, .projects-page-grid { grid-template-columns: 1fr; }
  .detail-features-grid { grid-template-columns: 1fr; }
  .contact-page-form { padding: 24px; }
}
