/* ============================================
   ProNest — Pages Extra CSS (pages.css)
   ============================================ */

/* ── WHITE HEADER (Logo-friendly) ─────── */
#header {
  background: #ffffff !important;
  border-bottom: 3px solid var(--red);
  backdrop-filter: none !important;
}
#header.scrolled {
  background: #ffffff !important;
  backdrop-filter: none !important;
  box-shadow: 0 4px 28px rgba(0,0,0,0.12) !important;
  border-bottom: 3px solid var(--red) !important;
}
.nav-logo img {
  height: 52px;
  width: auto;
  filter: none !important;
}
.nav-logo-name {
  color: var(--blue) !important;
  font-size: 1.15rem;
}
.nav-logo-name span { color: var(--red) !important; }
.nav-logo-sub   { color: #8890b0 !important; }
.nav-links a    { color: var(--blue) !important; font-weight: 600; }
.nav-links a:hover { color: var(--red) !important; background: rgba(255,49,48,0.06); }
.nav-links a::after { background: var(--red); }
.nav-phone { color: var(--blue) !important; }
.nav-phone:hover { color: var(--red) !important; }
.hamburger span { background: var(--blue); }

/* White Header Dropdown */
.dropdown {
  position: absolute !important;
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
  flex-direction: column !important;
}
.dropdown::before {
  background: #ffffff !important;
  border-top: 1px solid rgba(0,0,0,0.1) !important;
  border-left: 1px solid rgba(0,0,0,0.1) !important;
}
.dropdown-link {
  color: var(--blue) !important;
  display: block !important;
}
.dropdown-link:hover {
  background: rgba(255,49,48,0.08) !important;
  color: var(--red) !important;
}
.caret-icon {
  color: var(--blue);
}
.nav-links li:hover .caret-icon {
  color: var(--red) !important;
}

/* ── INNER PAGE HERO BANNER ───────────── */
.page-hero {
  height: 420px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
  margin-top: 78px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.38);
  transition: transform 0.8s ease;
}
.page-hero:hover .page-hero-bg { transform: scale(1.03); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(9,9,15,0.96) 0%,
    rgba(9,9,15,0.55) 45%,
    rgba(9,9,15,0.18) 100%
  );
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; padding: 0 24px;
  width: 100%; margin: 0 auto;
}
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,49,48,0.16);
  border: 1px solid rgba(255,49,48,0.4);
  color: var(--red-light);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 5px 15px; border-radius: 50px;
  margin-bottom: 14px;
}
.page-hero-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--red); border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700; color: #fff; line-height: 1.15;
}
.page-hero-title span { color: var(--red-light); }
.page-hero-desc {
  font-size: 1rem; color: rgba(255,255,255,0.68);
  margin-top: 12px; max-width: 560px; line-height: 1.75;
}
.page-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.page-breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.page-breadcrumb a:hover { color: var(--red); }
.page-breadcrumb span { color: var(--red-light); font-weight: 600; }

/* ── GENERAL SECTION PADDING ─────────── */
.inner-section { padding: 90px 0; }
.inner-section-sm { padding: 60px 0; }

/* ── CTA BANNER ──────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 20px;
  padding: 56px 50px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -70px; right: -70px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.06); border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute; bottom: -50px; right: 120px;
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.04); border-radius: 50%;
}
.cta-banner-text { position: relative; z-index: 1; }
.cta-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  color: #fff; line-height: 1.25; margin-bottom: 10px;
}
.cta-banner-sub { font-size: 1rem; color: rgba(255,255,255,0.82); }
.cta-banner-actions {
  display: flex; gap: 14px;
  flex-shrink: 0; position: relative; z-index: 1;
}
.btn-white {
  background: #fff; color: var(--red-dark); font-weight: 700;
  padding: 14px 28px; border-radius: 50px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; cursor: pointer; border: none;
  transition: all 0.35s ease;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.2); }
.btn-white-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
  padding: 13px 26px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.35s ease;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-white-outline:hover { border-color: #fff; transform: translateY(-3px); }

/* ── STATS BAR ────────────────────────── */
.stats-bar {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 42px 50px;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 16px; text-align: center;
}
.stats-bar-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px; position: relative;
}
.stats-bar-item:not(:last-child)::after {
  content: ''; position: absolute;
  right: 0; top: 10%; bottom: 10%;
  width: 1px; background: rgba(255,255,255,0.07);
}
.stats-bar-num {
  font-size: 2.4rem; font-weight: 900;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.stats-bar-label { font-size: 0.82rem; color: #8890b0; font-weight: 500; }

/* ── SERVICE DETAIL CARDS (services.html) */
.services-page-section { padding: 90px 0; background: var(--dark); }
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 55px; align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse .service-detail-img { order: 2; }
.service-detail.reverse .service-detail-content { order: 1; }

.service-detail-img {
  border-radius: 16px; overflow: hidden;
  aspect-ratio: 4/3; position: relative;
  box-shadow: 0 16px 50px rgba(0,0,0,0.4);
}
.service-detail-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.service-detail-img:hover img { transform: scale(1.06); }
.service-detail-num-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--gradient-red);
  color: #fff; font-size: 0.72rem; font-weight: 800;
  padding: 4px 13px; border-radius: 50px;
  letter-spacing: 0.08em;
}
.service-detail-icon { font-size: 2.6rem; margin-bottom: 16px; display: block; }
.service-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem; font-weight: 700;
  color: #fff; margin-bottom: 16px; line-height: 1.2;
}
.service-detail-title span { color: var(--red-light); }
.service-detail-desc {
  font-size: 0.95rem; color: #8890b0;
  line-height: 1.88; margin-bottom: 22px;
}
.service-detail-bullets {
  display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px;
}
.service-detail-bullet {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.87rem; color: #d8dced;
}
.service-detail-bullet::before {
  content: ''; width: 7px; height: 7px;
  background: var(--red); border-radius: 50%; flex-shrink: 0;
}

/* ── ABOUT PAGE ─────────────────────── */
.about-story {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 10px; border-radius: 16px; overflow: hidden;
}
.about-collage-cell { overflow: hidden; position: relative; }
.about-collage-cell:first-child { grid-row: span 2; }
.about-collage-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.about-collage-cell:hover img { transform: scale(1.06); }
.about-collage-badge {
  position: absolute; bottom: 14px; left: 14px;
  background: var(--gradient-red);
  border-radius: 12px; padding: 14px 18px;
  text-align: center; box-shadow: 0 8px 24px rgba(255,49,48,0.4);
}
.about-collage-badge-num {
  font-size: 1.7rem; font-weight: 900; color: #fff; line-height: 1;
}
.about-collage-badge-label {
  font-size: 0.68rem; font-weight: 600;
  color: rgba(255,255,255,0.8); line-height: 1.3; margin-top: 3px;
}

/* Values grid */
.values-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px;
}
.value-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 30px 20px;
  text-align: center; transition: all 0.35s ease;
}
.value-card:hover {
  border-color: rgba(255,49,48,0.28);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.value-card-icon { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.value-card-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.value-card-desc { font-size: 0.82rem; color: #8890b0; line-height: 1.72; }

/* Certifications */
.cert-section {
  background: var(--dark-3);
  border-radius: 16px; padding: 52px 48px;
  text-align: center;
}
.cert-grid {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: center; margin-top: 38px;
}
.cert-card {
  background: var(--dark-4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 28px 26px;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  min-width: 165px; transition: all 0.35s ease;
}
.cert-card:hover {
  border-color: rgba(255,49,48,0.3);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}
.cert-card-icon { font-size: 2.4rem; }
.cert-card-title { font-size: 1rem; font-weight: 800; color: #fff; text-align: center; }
.cert-card-sub { font-size: 0.77rem; color: #8890b0; text-align: center; line-height: 1.5; }

/* Team section */
.team-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; margin-top: 50px;
}
.team-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; overflow: hidden;
  transition: all 0.35s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,49,48,0.25);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}
.team-card-img {
  height: 240px; overflow: hidden; position: relative;
}
.team-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform 0.5s ease;
}
.team-card:hover .team-card-img img { transform: scale(1.06); }
.team-card-body { padding: 22px 20px; }
.team-card-name { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.team-card-role { font-size: 0.82rem; color: var(--red); font-weight: 600; margin-bottom: 10px; }
.team-card-desc { font-size: 0.8rem; color: #8890b0; line-height: 1.7; }

/* ── CONTACT PAGE ─────────────────────── */
.contact-methods {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-bottom: 60px;
}
.contact-method-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 36px 26px;
  text-align: center; transition: all 0.35s ease;
  text-decoration: none; display: block;
}
.contact-method-card:hover {
  border-color: rgba(255,49,48,0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.contact-method-icon { font-size: 2.6rem; margin-bottom: 16px; display: block; }
.contact-method-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.contact-method-value { font-size: 0.92rem; color: var(--red-light); font-weight: 600; }
.contact-method-desc { font-size: 0.8rem; color: #8890b0; margin-top: 6px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 40px auto 0; }
.faq-item {
  background: var(--dark-4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(255,49,48,0.22); }
.faq-question {
  display: flex; justify-content: space-between;
  align-items: center; padding: 18px 20px;
  cursor: pointer; font-size: 0.95rem;
  font-weight: 600; color: #fff; gap: 16px;
  user-select: none;
}
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,49,48,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem; color: var(--red-light);
  transition: transform 0.3s ease; font-weight: 700;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(255,49,48,0.22); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px; font-size: 0.88rem;
  color: #8890b0; line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 18px; }

/* ── RESPONSIVE ────────────────────────── */
@media (max-width: 1024px) {
  .values-grid   { grid-template-columns: repeat(2,1fr); }
  .stats-bar     { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .team-grid     { grid-template-columns: repeat(2,1fr); }
  .service-detail { grid-template-columns: 1fr; gap: 30px; }
  .service-detail.reverse .service-detail-img   { order: 0; }
  .service-detail.reverse .service-detail-content { order: 0; }
  .about-story   { grid-template-columns: 1fr; gap: 40px; }
  .about-collage { max-height: 340px; }
  .inner-section { padding: 60px 0; }
}

@media (max-width: 768px) {
  .page-hero { height: clamp(240px, 40vh, 320px); padding-bottom: 40px; margin-top: 78px; }
  .page-hero-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .page-hero-desc { font-size: 0.9rem; margin-top: 10px; }
  
  .cta-banner { flex-direction: column; padding: 40px 24px; text-align: center; border-radius: 16px; }
  .cta-banner-title { font-size: 1.6rem; }
  .cta-banner-actions { flex-wrap: wrap; justify-content: center; width: 100%; gap: 10px; }
  .cta-banner-actions .btn { width: 100%; justify-content: center; }
  
  .contact-methods { grid-template-columns: 1fr; gap: 15px; }
  .cert-grid { flex-direction: column; align-items: center; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; padding: 30px 20px; }
  .stats-bar-num { font-size: 2rem; }
  
  .inner-section { padding: 50px 0; }
  .service-detail { padding: 40px 0; }
  .service-detail-img { aspect-ratio: 16/9; }
  .service-detail-title { font-size: 1.6rem; }
  
  .cert-section { padding: 40px 20px; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; gap: 30px; }
  .stats-bar-item::after { display: none; }
  .page-hero-title { font-size: 1.5rem; }
  .page-hero-tag { font-size: 0.65rem; padding: 4px 12px; }
  
  .cta-banner-title { font-size: 1.4rem; }
  .service-detail-title { font-size: 1.4rem; }
  .service-detail-desc { font-size: 0.88rem; }
}
