/**
 * PositionMySite brand layer — aligns site with editorial display type + cyan→indigo accent.
 * Loaded via @import from styles.css / styles.min.css or as extra link on key pages.
 */
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap");

:root {
  --pms-ink: #0f172a;
  --pms-ink-soft: #1e293b;
  --pms-body: #475569;
  --pms-muted: #64748b;
  --pms-font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --pms-gradient-text: linear-gradient(102deg, #0369a1 0%, #0ea5e9 38%, #4f46e5 95%);
  --pms-mesh-1: rgba(14, 165, 233, 0.12);
  --pms-mesh-2: rgba(99, 102, 241, 0.09);
}

/* Marketing / layout headings (not article body copy) */
.section-header .section-title,
section.section > .container > .section-header .section-title,
.hero-title,
.contact-title,
.about-title,
.expertise-title,
.cta-title,
.process-section .section-title,
.clients-section .section-title,
.schedule-header .section-title,
.ai-page-hero h1 {
  font-family: var(--pms-font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--pms-ink);
  line-height: 1.14;
}

.section-header .section-title,
section.section > .container > .section-header .section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  margin-bottom: 1rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero-title__line--display {
  font-family: var(--pms-font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--pms-ink);
  line-height: 1.12;
  font-size: clamp(1.85rem, 4.5vw, 3.15rem);
}

.hero-title__line--accent {
  display: block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 40rem;
  background: var(--pms-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .hero-title {
    gap: 0.35rem;
  }

  .hero-title__line--display {
    font-size: clamp(1.7rem, 5.4vw, 2.45rem);
  }

  .hero-title__line--accent {
    font-size: clamp(0.92rem, 3.6vw, 1.15rem);
  }
}

.section-description,
.contact-subtitle,
.cta-description {
  color: var(--pms-body);
}

/* Optional second line: gradient sans accent under a display title */
.pms-gradient-accent {
  display: block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  font-size: 0.52em;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 0.4em;
  line-height: 1.2;
  background: var(--pms-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dark bands: keep light text, still use serif for weight */
.cta-section .section-title,
.cta-section .section-header .section-title {
  font-family: var(--pms-font-display);
  color: #f8fafc;
  -webkit-text-fill-color: #f8fafc;
  background: none;
  background-clip: border-box;
}

/* Blog listing titles stay readable (slightly tighter) */
.blog-title,
.featured-header h2 {
  font-family: var(--pms-font-display);
  font-weight: 400;
  color: var(--pms-ink);
  letter-spacing: -0.02em;
}

/*
 * High-specificity marketing headings — wins over styles.css and page bundles
 * (about-us.css, build-your-app.css, why-work-with-us.css, get-to-know-us.css).
 */
html body h2.section-title,
html body .section-title {
  font-family: var(--pms-font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--pms-ink);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.2;
}

html body h1.contact-title,
html body .contact-title {
  font-family: var(--pms-font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--pms-ink);
  line-height: 1.15;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

html body h1.about-hero-title,
html body .about-hero-title,
html body h1.app-hero-title,
html body .app-hero-title,
html body h1.ai-hero-title,
html body .ai-hero-title,
html body h1.why-hero-title,
html body .why-hero-title,
html body h1.team-hero-title,
html body .team-hero-title {
  font-family: var(--pms-font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--pms-ink);
  line-height: 1.12;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
}

html body h2.video-title,
html body .video-title {
  font-family: var(--pms-font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--pms-ink);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.2;
}

html body .content-overlay h2 {
  font-family: var(--pms-font-display);
  font-weight: 400;
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

html body h2.metrics-title,
html body .metrics-title {
  font-family: var(--pms-font-display);
  font-weight: 400;
  color: var(--pms-ink);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.28;
}

html body h2.cta-title,
html body .cta-title {
  font-family: var(--pms-font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--pms-ink);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.2;
}

html body .about-cta h2.cta-title,
html body .about-cta .cta-title {
  color: #f8fafc;
  -webkit-text-fill-color: #f8fafc;
  background: none;
  background-clip: border-box;
}

html body h2.philosophy-title,
html body .philosophy-title,
html body h2.option-title,
html body .option-title {
  font-family: var(--pms-font-display);
  font-weight: 400;
  color: var(--pms-ink);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.22;
}

html body h2.ai-cta-title,
html body .ai-cta-title {
  font-family: var(--pms-font-display);
  font-weight: 400;
  color: var(--pms-ink);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.2;
}

html body .hero-title {
  font-family: var(--pms-font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--pms-ink);
  line-height: 1.12;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

html body .reviews-hero-title {
  font-family: var(--pms-font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

/* Blog index (/blog/) — same visual language as /ai hero: light gradient, no background video */
html body .blog-page-hero {
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
  padding: calc(50px + 4rem) 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
html body .blog-page-hero .container {
  position: relative;
  z-index: 1;
}
html body .blog-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.375rem 0.85rem;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 1.75rem;
  text-transform: none;
}
html body .blog-page-hero .blog-page-hero__headline {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}
html body .blog-page-hero__lead {
  max-width: 640px;
  margin: 0 auto 1rem;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #6b7280;
}
html body .blog-page-hero__cross {
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #64748b;
}
html body .blog-page-hero__cross a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html body .blog-page-hero__cross a:hover {
  color: #0369a1;
}
@media (max-width: 768px) {
  html body .blog-page-hero {
    padding-top: calc(50px + 4rem);
    padding-bottom: 3rem;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Blog: multi-category row + keyword block (separate from category links) */
html body .post-category-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0;
  margin-bottom: 0.35rem;
}
html body .post-cat-sep {
  opacity: 0.55;
  font-weight: 500;
  margin: 0 0.35rem;
  user-select: none;
}
html body .post-keywords-widget .post-keywords-plain {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--pms-muted, #64748b);
  margin: 0;
}

/* Blog index — left sidebar nav + wide post column (DOM order: aside, main) */
html body .blog-listing .container.blog-grid {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 1200px;
}

html body .blog-listing .posts {
  min-width: 0;
  max-width: none;
}

/* Single post — wide article + narrow sidebar (DOM order: main, aside) */
html body .blog-listing .container.blog-grid.blog-grid--article {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  max-width: 1120px;
}

html body .blog-listing--article .posts.post-article {
  max-width: none;
  min-width: 0;
}

html body .blog-listing--article .post-article .post-body {
  max-width: 720px;
  margin: 0;
}

html body .blog-listing--article .post-article .post-hero,
html body .blog-listing--article .post-article .post-hero img {
  max-width: 100%;
}

html body .blog-listing--article .post-article .post-body img,
html body .blog-listing--article .post-article .post-image img {
  max-width: 100%;
  height: auto;
}

html body .blog-listing .sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.25rem;
  min-width: 0;
}

html body .blog-listing .widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

html body .blog-listing .widget-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1rem;
}

html body .blog-listing .category-list {
  gap: 0.35rem;
}

html body .blog-listing .category-list a {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #334155;
  transition: background 0.15s ease, color 0.15s ease;
}

html body .blog-listing .category-list a:hover {
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
}

html body .blog-listing .sidebar-search {
  width: 100%;
}

html body .blog-listing .sidebar-search .input,
html body .blog-listing .sidebar-search .input.compact {
  width: 100%;
  box-sizing: border-box;
  line-height: normal;
}

html body .blog-listing .featured-list li a {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 0.75rem;
}

html body .blog-listing .featured-list li img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

html body .blog-listing .featured-list li a span {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: break-word;
}

html body .blog-listing .post-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

html body .blog-listing .post-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

html body .blog-listing .post-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
}

html body .blog-listing .post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html body .blog-listing .post-content {
  padding: 1.5rem;
}

html body .blog-listing .post-title {
  font-size: 1.35rem;
  line-height: 1.3;
}

html body .blog-listing .blog-controls {
  margin-bottom: 1.5rem;
}

html body .blog-listing .posts .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  box-sizing: border-box;
}

html body .blog-listing .pagination .page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  margin: 0;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

html body .blog-listing .pagination .page.current {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

html body .blog-listing .pagination .page.disabled {
  opacity: 0.45;
  pointer-events: none;
}

html body .blog-listing .pagination .page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: #94a3b8;
  font-weight: 600;
  user-select: none;
}

@media (max-width: 768px) {
  html body .blog-listing .container.blog-grid,
  html body .blog-listing .container.blog-grid.blog-grid--article {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  html body .blog-listing .posts {
    max-width: none;
  }

  html body .blog-listing .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  html body .blog-listing .post-media {
    aspect-ratio: 3 / 2;
  }
}
