/* ═══════════════════════════════════════════════════
   AdVanto — Templates CSS
   Blog, Services Archive, Single Service, Single Post
═══════════════════════════════════════════════════ */

/* ── Shared layout ─────────────────────────────── */
.tmpl-wrap {
  background: var(--bg);
  min-height: 100vh;
  padding-top: 100px;
}
.tmpl-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── Page hero header ──────────────────────────── */
.page-hero {
  padding: 5rem 0 4rem;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}
.page-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1rem;
  display: block;
}
.page-title {
  font-family: var(--fh);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.page-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* ── Back link ─────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 3rem;
  transition: color .25s;
}
.back-link:hover { color: var(--mint); }
.back-link svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════
   SERVICES ARCHIVE
══════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 4rem 0 6rem;
}
.srv-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.srv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110,231,183,.04), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.srv-card:hover {
  border-color: rgba(110,231,183,.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.srv-card:hover::before { opacity: 1; }
.srv-card-num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--mint);
  margin-bottom: 1.25rem;
}
.srv-card-icon {
  width: 2.75rem; height: 2.75rem;
  background: rgba(110,231,183,.1);
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.srv-card-icon svg {
  width: 22px; height: 22px;
  stroke: var(--mint); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.srv-card-title {
  font-family: var(--fh);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
  line-height: 1.3;
}
.srv-card-desc {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.srv-card-more {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--mint);
  opacity: 0;
  transform: translateY(4px);
  transition: all .3s;
}
.srv-card:hover .srv-card-more { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════
   SINGLE SERVICE PAGE
══════════════════════════════════════════════════ */
.single-srv-hero {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}
.single-srv-icon {
  width: 4rem; height: 4rem;
  background: rgba(110,231,183,.12);
  border: 1px solid rgba(110,231,183,.2);
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.single-srv-icon svg {
  width: 26px; height: 26px;
  stroke: var(--mint); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.single-srv-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
  padding-bottom: 5rem;
}
.srv-body {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.8;
}
.srv-body p { margin-bottom: 1.25rem; }
.srv-body h2, .srv-body h3 {
  font-family: var(--fh);
  color: var(--text);
  font-weight: 700;
  margin: 2rem 0 .75rem;
}
.srv-body h2 { font-size: 1.5rem; }
.srv-body h3 { font-size: 1.1875rem; }
.srv-body ul { list-style: none; padding: 0; margin-bottom: 1.25rem; }
.srv-body ul li {
  padding: .5rem 0 .5rem 1.5rem;
  position: relative;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}
.srv-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

/* Sticky sidebar card */
.srv-sidebar {
  position: sticky;
  top: 120px;
}
.srv-cta-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
}
.srv-cta-card h4 {
  font-family: var(--fh);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
}
.srv-cta-card p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.btn-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .875rem 1.5rem;
  background: var(--mint);
  color: #0a1a14;
  font-family: var(--fh);
  font-weight: 700;
  font-size: .9375rem;
  border-radius: .75rem;
  text-decoration: none;
  transition: all .25s;
  border: none;
}
.btn-mint:hover {
  background: #5ed8a8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(110,231,183,.35);
}
.srv-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.srv-feature-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: var(--muted);
}
.srv-feature-item svg {
  width: 14px; height: 14px;
  stroke: var(--mint); fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   BLOG ARCHIVE
══════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 4rem 0 2rem;
}
.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.post-card:hover {
  border-color: rgba(110,231,183,.3);
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(0,0,0,.4);
}
.post-card-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg3);
  overflow: hidden;
  position: relative;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-no-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  display: flex; align-items: center; justify-content: center;
}
.post-card-no-thumb svg {
  width: 40px; height: 40px;
  stroke: var(--muted2); fill: none;
  stroke-width: 1.5;
}
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .875rem;
}
.post-card-date {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
}
.post-card-cat {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(110,231,183,.1);
  padding: .2rem .625rem;
  border-radius: 9999px;
}
.post-card-title {
  font-family: var(--fh);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: .75rem;
  flex: 1;
}
.post-card-excerpt {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-more {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .875rem; font-weight: 600; color: var(--mint);
  margin-top: auto;
}
.post-card-more svg { width: 14px; height: 14px; transition: transform .25s; }
.post-card:hover .post-card-more svg { transform: translateX(4px); }

/* No posts */
.no-posts {
  text-align: center;
  padding: 5rem 0;
  color: var(--muted);
}
.no-posts h3 {
  font-family: var(--fh);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: .75rem;
}

/* Pagination */
.advanto-pagination {
  display: flex; justify-content: center; gap: .5rem;
  padding: 3rem 0 5rem;
}
.advanto-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: .625rem;
  font-size: .9375rem; font-weight: 600;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--muted); text-decoration: none;
  transition: all .25s;
}
.advanto-pagination .page-numbers:hover,
.advanto-pagination .page-numbers.current {
  background: rgba(110,231,183,.12);
  border-color: rgba(110,231,183,.35);
  color: var(--mint);
}

/* ══════════════════════════════════════════════════
   SINGLE BLOG POST
══════════════════════════════════════════════════ */
.single-post-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding: 3rem 0 6rem;
  align-items: start;
}
.single-post-header { margin-bottom: 2.5rem; }
.single-post-meta {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.single-post-date { font-size: .875rem; color: var(--muted); }
.single-post-cat {
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mint); background: rgba(110,231,183,.1);
  padding: .25rem .75rem; border-radius: 9999px;
}
.single-post-title {
  font-family: var(--fh);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 1rem;
}
.single-post-excerpt {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  border-left: 3px solid var(--mint);
  padding-left: 1.25rem;
}
.single-post-thumb {
  width: 100%; border-radius: 1rem;
  overflow: hidden; margin-bottom: 2.5rem;
  border: 1px solid var(--border);
}
.single-post-thumb img { width: 100%; height: auto; display: block; }

/* Post content typography */
.post-content {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.85;
}
.post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--fh); color: var(--text);
  font-weight: 700; margin: 2.5rem 0 1rem;
}
.post-content h2 { font-size: 1.625rem; }
.post-content h3 { font-size: 1.25rem; }
.post-content p { margin-bottom: 1.375rem; }
.post-content strong { color: var(--text); font-weight: 600; }
.post-content a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol {
  padding-left: 1.5rem; margin-bottom: 1.375rem;
}
.post-content li { margin-bottom: .5rem; color: var(--muted); }
.post-content blockquote {
  border-left: 3px solid var(--mint);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg2);
  border-radius: 0 .75rem .75rem 0;
  font-style: italic;
  color: var(--text);
}
.post-content img {
  max-width: 100%; border-radius: .75rem;
  margin: 1.5rem 0; border: 1px solid var(--border);
}
.post-content code {
  background: var(--bg3); padding: .15rem .45rem;
  border-radius: .3rem; font-size: .9em;
  color: var(--mint); font-family: monospace;
}
.post-content pre {
  background: var(--bg3); padding: 1.5rem;
  border-radius: .75rem; overflow-x: auto;
  margin: 1.5rem 0; border: 1px solid var(--border);
}

/* Post sidebar */
.post-sidebar { position: sticky; top: 120px; }
.sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-family: var(--fh); font-size: 1rem;
  font-weight: 700; color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-share {
  display: flex; gap: .75rem; flex-wrap: wrap;
}
.share-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: .625rem; font-size: .8125rem; font-weight: 600;
  color: var(--muted); text-decoration: none;
  transition: all .25s;
}
.share-btn:hover {
  border-color: rgba(110,231,183,.35);
  color: var(--mint);
}
.related-post {
  display: flex; align-items: flex-start;
  gap: .875rem; padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.related-post:last-child { border-bottom: none; }
.related-post-title {
  font-size: .875rem; font-weight: 600;
  color: var(--text); line-height: 1.4;
  transition: color .25s;
}
.related-post:hover .related-post-title { color: var(--mint); }
.related-post-date { font-size: .75rem; color: var(--muted); margin-top: .25rem; }

/* ── CTA block (shared) ────────────────────────── */
.tmpl-cta {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3.5rem;
  text-align: center;
  margin: 3rem 0 5rem;
}
.tmpl-cta h3 {
  font-family: var(--fh);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: .875rem;
  letter-spacing: -.02em;
}
.tmpl-cta p {
  color: var(--muted); font-size: 1rem;
  line-height: 1.7; max-width: 48ch;
  margin: 0 auto 2rem;
}

/* ── Responsive ────────────────────────────────── */
@media(max-width:1024px) {
  .single-srv-content { grid-template-columns: 1fr; }
  .srv-sidebar { position: static; }
  .single-post-wrap { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media(max-width:768px) {
  .tmpl-inner { padding: 0 1.25rem; }
  .services-grid, .blog-grid { grid-template-columns: 1fr; }
  .tmpl-cta { padding: 2.5rem 1.5rem; }
  .page-title { font-size: 2rem; }
}
