/* ══════════════════════════════════════════════
   KREOVIX — subpage.css
   Styles for all service, location, industry & blog pages
   ══════════════════════════════════════════════ */

/* ─── Reset for subpages ─── */
body.subpage {
  padding-top: 72px;
  background: #fff;
  color: #0a0a0a;
}

/* ─── Nav Dropdowns ─── */
.nav-links .has-dropdown { position: relative; }
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 8px 0;
  min-width: 240px;
  z-index: 200;
  white-space: nowrap;
}
.nav-links .dropdown li { list-style: none; }
.nav-links .dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: #0a0a0a;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  font-weight: 400;
}
.nav-links .dropdown li a:hover {
  background: #f5f5f7;
  color: #6A1012;
}

/* ─── Hero ─── */
.sp-hero {
  background: #0a0a0a;
  color: #fff;
  padding: 80px 0 72px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sp-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.sp-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.sp-breadcrumb a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}
.sp-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.sp-hero h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 20px;
  color: #fff;
}
.sp-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0 0 36px;
  max-width: 680px;
}

/* ─── Sections ─── */
.sp-section {
  padding: 72px 0;
}
.sp-section.sp-alt {
  background: #f5f5f7;
}
.sp-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.sp-inner h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  margin: 0 0 20px;
  line-height: 1.2;
}
.sp-inner p {
  font-size: 1.05rem;
  line-height: 1.72;
  color: #333;
  max-width: 760px;
  margin: 0 0 24px;
}

/* ─── Stats Row ─── */
.sp-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding: 40px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.07);
}
.sp-section.sp-alt .sp-stats-row {
  background: #fff;
}
.sp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.sp-stat-num {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: #6A1012;
  line-height: 1;
}
.sp-stat-label {
  font-size: 0.82rem;
  color: #666;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Card Grid ─── */
.sp-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.sp-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.sp-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-color: rgba(106,16,18,0.2);
}
.sp-section.sp-alt .sp-card {
  background: #fff;
}
.sp-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: #0a0a0a;
}
.sp-card p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 16px;
}
.sp-card a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #6A1012;
  text-decoration: none;
  transition: opacity 0.15s;
}
.sp-card a:hover { opacity: 0.7; }

/* ─── Checklist ─── */
.sp-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.sp-check {
  background: #f5f5f7;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: #1a1a1a;
  border-left: 3px solid #6A1012;
  line-height: 1.5;
  font-weight: 500;
}

/* ─── Industry Chips ─── */
.sp-industry-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: #0a0a0a;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}
.sp-industry-chip:hover {
  border-color: #6A1012;
  color: #6A1012;
  background: #fef8f8;
  transform: translateY(-1px);
}

/* ─── CTA Block ─── */
.sp-cta-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.sp-cta-block h2 {
  margin-bottom: 12px;
}
.sp-cta-block p {
  max-width: 100%;
  margin-bottom: 28px;
  color: #555;
}

/* ─── Blog Cards ─── */
.blog-card {
  position: relative;
}
.blog-tag {
  display: inline-block;
  background: rgba(106,16,18,0.08);
  color: #6A1012;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.blog-read {
  display: inline-block;
  margin-top: 4px;
}

/* ─── Footer override for subpages ─── */
body.subpage .footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.65);
  padding: 72px 0 32px;
}
body.subpage .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
body.subpage .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
body.subpage .footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 16px 0 20px;
  color: rgba(255,255,255,0.5);
}
body.subpage .footer-social {
  display: flex;
  gap: 14px;
}
body.subpage .footer-social a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
body.subpage .footer-social a:hover { color: #fff; }
body.subpage .footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0 0 14px;
}
body.subpage .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
body.subpage .footer-col ul li {
  margin-bottom: 9px;
}
body.subpage .footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
body.subpage .footer-col ul li a:hover { color: #fff; }
body.subpage .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
body.subpage .footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  margin: 0;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .sp-hero { padding: 56px 0 52px; }
  .sp-section { padding: 52px 0; }
  body.subpage .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .sp-stats-row { grid-template-columns: 1fr 1fr; padding: 24px; }
  .sp-grid-3 { grid-template-columns: 1fr; }
  .nav-links .has-dropdown .dropdown { display: none !important; }
  body.subpage .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  body.subpage .footer-grid { grid-template-columns: 1fr; }
  .sp-checklist { grid-template-columns: 1fr; }
}
