/* ================================================================
   ATTEST XPRESS — Service, Blog, Country, City Page Styles
   Professional Corporate Edition
   ================================================================ */

/* ── Service Page Hero ── */
.service-hero {
  background: var(--white);
  padding: 120px 24px 64px;
  border-bottom: 1px solid var(--border-light);
}

/* When service-hero is on dark background */
.service-hero.section--dark {
  background: var(--charcoal-bg);
  border-bottom-color: transparent;
}

.service-hero .container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.service-hero-content {
  max-width: 680px;
}

/* Light hero: dark text (default) */
.service-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 700;
}

.service-hero h1 em {
  color: var(--gold);
  font-style: italic;
}

/* Dark hero: white text */
.service-hero.section--dark h1,
.section--dark .service-hero h1,
.section--dark.service-hero h1 {
  color: var(--text-on-dark) !important;
}

.service-hero.section--dark h1 em,
.section--dark .service-hero h1 em,
.section--dark.service-hero h1 em {
  color: var(--gold);
}

/* Section title inside service-hero — explicit override */
.service-hero .section-title {
  color: var(--charcoal);
}

.service-hero.section--dark .section-title,
.section--dark.service-hero .section-title {
  color: var(--text-on-dark) !important;
}

.service-hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 560px;
}

.service-hero.section--dark .service-hero-desc,
.section--dark.service-hero .service-hero-desc {
  color: var(--text-on-dark-muted);
}

.service-hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  margin-top: 20px;
}

.service-hero.section--dark .service-hero-trust {
  border-color: rgba(255,255,255,0.15);
}

.service-hero-trust span {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
}

.service-hero.section--dark .service-hero-trust span {
  color: var(--text-on-dark-muted);
}

.service-hero-trust strong {
  color: var(--gold);
}

.service-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Service Page Layout ── */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 0;
}

.service-content { min-width: 0; }

.service-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Content Typography ── */
.service-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--charcoal) !important;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.service-content h2:first-child { margin-top: 0; }

.service-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--charcoal) !important;
  margin-top: 32px;
  margin-bottom: 12px;
}

.service-content p {
  color: var(--text) !important;
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.service-content ul, .service-content ol {
  margin-bottom: 20px;
  padding-left: 0;
}

.service-content ul li, .service-content ol li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.service-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.service-content ol { counter-reset: ol-counter; }
.service-content ol li { counter-increment: ol-counter; }

.service-content ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.85rem;
}

.service-content strong { color: var(--charcoal); font-weight: 600; }

/* ── Tables ── */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.doc-table thead { background: var(--charcoal); }

.doc-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  font-family: var(--font-body);
}

.doc-table td {
  padding: 12px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.doc-table tr:nth-child(even) { background: var(--bg-light); }
.doc-table tr:last-child td { border-bottom: none; }

.doc-table .required-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
}

.doc-table .required-yes { background: rgba(37, 211, 102, 0.1); color: #128c7e; }
.doc-table .required-optional { background: var(--gold-light); color: var(--gold-muted); }

/* Fee Table */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.fee-table thead { background: var(--charcoal); }

.fee-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  font-family: var(--font-body);
}

.fee-table td {
  padding: 12px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.fee-table tr:nth-child(even) { background: var(--bg-light); }

.fee-note {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 8px;
}

/* ── FAQ Accordion ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.faq-item:last-child { border-bottom: none; }

.faq-item.active { background: var(--bg-light); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  transition: background var(--transition-fast);
  gap: 16px;
}

.faq-question:hover { background: var(--bg-light); }

.faq-question h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.4;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--muted);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon svg {
  stroke: var(--gold);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-answer-inner {
  padding: 0 20px 20px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer { max-height: 500px; }

/* ── Sidebar ── */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}

.sidebar-widget--dark {
  background: var(--charcoal-bg);
  border-color: transparent;
}

.sidebar-widget h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--font-body);
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.sidebar-widget--dark h4 { color: var(--white); }

.sidebar-cta { text-align: center; }

.sidebar-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.2rem;
}

.sidebar-widget--dark .sidebar-cta-icon { border-color: rgba(201,168,76,0.3); }

.sidebar-cta p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.sidebar-widget--dark .sidebar-cta p { color: var(--text-on-dark-muted); }

.sidebar-services-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-service-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sidebar-service-link:hover { background: var(--bg-light); color: var(--charcoal); }
.sidebar-service-link.active { background: var(--gold-light); color: var(--gold); }
.sidebar-service-link span { font-size: 0.9rem; }

/* ── Related Services ── */
.related-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  display: block;
}

.related-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.related-card-icon { font-size: 1.3rem; margin-bottom: 12px; }

.related-card h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; font-family: var(--font-body); }
.related-card p { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.55; }

/* ── Country Cards ── */
.country-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.country-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  text-align: center;
}

.country-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.country-card-flag { font-size: 2rem; margin-bottom: 12px; }
.country-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; font-family: var(--font-body); }
.country-card p { font-size: 0.78rem; color: var(--muted); }

/* ── Attestation Chain ── */
.chain-flow {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.chain-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--charcoal);
}

.chain-step-icon { font-size: 1rem; }

.chain-arrow {
  padding: 0 10px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  display: block;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  color: inherit;
}

.blog-card-img { width: 100%; height: 180px; object-fit: cover; }

.blog-card-body { padding: 24px; }

.blog-card-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.blog-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; font-family: var(--font-body); line-height: 1.4; color: var(--charcoal); }
.blog-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--subtle);
}

/* Blog Article */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--muted);
}

.article-content h2 { font-family: var(--font-heading); font-size: 1.5rem; margin-top: 48px; margin-bottom: 16px; color: var(--charcoal) !important; }
.article-content h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-top: 32px; margin-bottom: 12px; color: var(--charcoal) !important; }
.article-content p { font-size: 0.95rem; line-height: 1.9; margin-bottom: 18px; color: var(--text) !important; }
.article-content ul li, .article-content ol li { font-size: 0.92rem; line-height: 1.8; color: var(--text); }

/* Info Box */
.info-box {
  background: var(--bg-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  margin: 20px 0;
}

.info-box p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 0; }
.info-box--warning { border-left-color: var(--red); }

/* ── Service CTA ── */
.service-cta {
  background: var(--charcoal-bg);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  margin-top: 48px;
}

.service-cta h2 {
  font-family: var(--font-heading);
  color: var(--text-on-dark) !important;
  font-size: 1.6rem;
  margin-bottom: 10px;
  margin-top: 0;
}

.service-cta p {
  color: var(--text-on-dark-muted) !important;
  font-size: 0.9rem;
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.service-cta .cta-btns { justify-content: center; }

/* ── Hub Pages ── */
.hub-hero {
  background: var(--white);
  padding: 120px 24px 64px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.hub-hero .container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.hub-hero h1 { color: var(--charcoal) !important; margin-bottom: 16px; }
.hub-hero h1 em { color: var(--gold); font-style: italic; }

.hub-hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .service-layout { grid-template-columns: 1fr; gap: 40px; }
  .service-sidebar { position: static; }
  .related-services-grid { grid-template-columns: 1fr 1fr; }
  .country-cards-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .chain-flow { flex-direction: column; align-items: stretch; }
  .chain-arrow { text-align: center; transform: rotate(90deg); padding: 6px 0; }
}

@media (max-width: 600px) {
  .service-hero { padding: 100px 20px 48px; }
  .service-layout { padding: 40px 0; }
  .related-services-grid { grid-template-columns: 1fr; }
  .country-cards-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .service-cta { padding: 36px 24px; }
  .hub-hero { padding: 100px 20px 48px; }
}
