/* ============================================
   HLT Service — Page Templates CSS
   Service pages, Brand pages, Area pages, Blog
   ============================================ */

/* ---------- SHARED ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

.btn { display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; transition: all 0.2s; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: #dc2626; color: white; border-color: #dc2626; }
.btn-primary:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-outline { background: transparent; color: #1f2937; border-color: #d1d5db; }
.btn-outline:hover { border-color: #1f2937; }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

.service-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.service-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
@media (max-width: 768px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- SERVICE PAGE ---------- */
.service-hero { background: var(--neutral-offwhite); color: var(--neutral-900); padding: 64px 0; border-bottom: 1px solid var(--neutral-200); }
.service-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; color: var(--neutral-900); }
.service-hero-subtitle { font-size: 17px; color: var(--neutral-600); max-width: 600px; }
.service-quick-facts { display: flex; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.service-fact { background: var(--neutral-white); padding: 12px 20px; border-radius: 8px; border: 1px solid var(--neutral-200); }
.service-fact-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--neutral-500); }
.service-fact-value { font-size: 18px; font-weight: 700; color: var(--neutral-900); }

.service-answer { padding: 40px 0; }
/* Legacy answer-box — overridden by landing-pages.css for new templates */
.answer-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 24px; }
.answer-icon { font-size: 28px; flex-shrink: 0; }
.answer-content { font-size: 15px; line-height: 1.7; color: #1e3a5f; }
.answer-content p:last-child { margin-bottom: 0; }

.service-content { padding: 48px 0; }
.service-main h2 { font-size: 24px; font-weight: 700; margin: 32px 0 12px; color: #111827; }
.service-main h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; color: #374151; }
.service-main p { font-size: 15px; line-height: 1.8; color: #4b5563; margin-bottom: 16px; }
.service-main ul, .service-main ol { margin: 12px 0 20px 20px; }
.service-main li { font-size: 15px; line-height: 1.7; color: #4b5563; margin-bottom: 6px; }

/* Sidebar cards */
.service-sidebar { display: flex; flex-direction: column; gap: 20px; }
.service-expert-card, .service-price-card, .service-trust-card, .area-services-card {
  background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; text-align: center;
}
.expert-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.expert-info { margin-bottom: 16px; }
.expert-info strong { display: block; font-size: 16px; color: #111827; }
.expert-info span { display: block; font-size: 13px; color: #6b7280; }

.service-price-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.price-range { margin-bottom: 12px; }
.price-from { display: block; font-size: 24px; font-weight: 800; color: #dc2626; }
.price-to { display: block; font-size: 14px; color: #6b7280; margin-top: 4px; }
.price-note { font-size: 12px; color: #9ca3af; }

.service-trust-card img { margin-bottom: 12px; }
.service-trust-card p { font-size: 13px; color: #6b7280; }

/* FAQ */
.service-faq { padding: 48px 0; background: #f9fafb; }
.service-faq h2 { font-size: 24px; font-weight: 800; margin-bottom: 24px; text-align: center; color: #111827; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: white; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-question { padding: 18px 24px; font-weight: 700; font-size: 15px; cursor: pointer; color: #111827; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 20px; color: #dc2626; font-weight: 700; transition: transform 0.2s; }
.faq-item[open] .faq-question::after { content: '−'; }
.faq-answer { padding: 0 24px 18px; font-size: 14px; line-height: 1.7; color: #4b5563; }

/* CTA bottom */
.service-cta-bottom { padding: 64px 0; background: var(--neutral-offwhite); color: var(--neutral-900); text-align: center; border-top: 1px solid var(--neutral-200); }
.service-cta-bottom h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; color: var(--neutral-900); }
.service-cta-bottom p { font-size: 16px; color: var(--neutral-600); margin-bottom: 24px; }

/* ---------- BRAND PAGE ---------- */
.brand-hero { background: var(--neutral-offwhite); color: var(--neutral-900); padding: 64px 0; text-align: center; border-bottom: 1px solid var(--neutral-200); }
.brand-hero h1 { font-size: 36px; font-weight: 800; color: var(--neutral-900); }
.brand-hero-subtitle { color: var(--neutral-600); font-size: 17px; margin-top: 8px; }
.brand-logo-hero { margin-bottom: 20px; filter: none; opacity: 0.85; }

.brand-expert { padding: 24px 0; border-bottom: 1px solid #e5e7eb; }
.expert-byline { display: flex; align-items: center; gap: 16px; }
.expert-byline-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.expert-byline strong { display: block; font-size: 15px; color: #111827; }
.expert-byline span { display: block; font-size: 13px; color: #6b7280; }
.expert-years { font-style: italic; color: #dc2626 !important; font-size: 12px !important; }

.brand-content { padding: 48px 0; }
.brand-issues { margin-top: 32px; }
.issue-card { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 20px; margin-bottom: 12px; }
.issue-card h3 { font-size: 16px; font-weight: 700; color: #dc2626; margin-bottom: 6px; }
.issue-card p { font-size: 14px; color: #4b5563; margin: 0; }

.brand-services-table table { width: 100%; border-collapse: collapse; }
.brand-services-table th { text-align: left; padding: 12px; font-size: 12px; text-transform: uppercase; color: #6b7280; border-bottom: 2px solid #e5e7eb; }
.brand-services-table td { padding: 12px; border-bottom: 1px solid #f3f4f6; font-size: 14px; }

/* ---------- AREA PAGE ---------- */
.area-hero { background: var(--neutral-offwhite); color: var(--neutral-900); padding: 64px 0; text-align: center; border-bottom: 1px solid var(--neutral-200); }
.area-hero h1 { font-size: 36px; font-weight: 800; color: var(--neutral-900); }
.area-hero-subtitle { color: var(--neutral-600); font-size: 17px; margin-top: 8px; }

.area-distance-card { background: var(--neutral-white); border: 1px solid var(--neutral-200); border-radius: 12px; padding: 24px; margin-top: 24px; display: inline-block; box-shadow: var(--shadow-sm); }
.area-distance-grid { display: flex; gap: 32px; }
.area-distance-item { text-align: center; }
.distance-icon { font-size: 24px; display: block; margin-bottom: 4px; }
.distance-value { font-size: 20px; font-weight: 800; display: block; color: var(--neutral-900); }
.distance-label { font-size: 12px; color: var(--neutral-500); }

.area-content { padding: 48px 0; }
.area-testimonial { background: #f0fdf4; border-left: 4px solid #16a34a; padding: 24px; border-radius: 0 10px 10px 0; margin: 32px 0; }
.area-testimonial p { font-size: 17px; font-style: italic; color: #1f2937; margin-bottom: 8px; }
.area-testimonial cite { font-size: 14px; color: #16a34a; font-style: normal; font-weight: 600; }

.area-map { margin-top: 32px; }
.map-container { border-radius: 12px; overflow: hidden; margin-top: 12px; }
.map-container iframe { width: 100%; height: 350px; border: 0; }

.area-benefits { list-style: none; padding: 0; }
.area-benefits li { padding: 8px 0 8px 24px; position: relative; font-size: 14px; color: #374151; }
.area-benefits li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }

.area-services-list { list-style: none; padding: 0; text-align: left; }
.area-services-list li { border-bottom: 1px solid #f3f4f6; }
.area-services-list li:last-child { border: none; }
.area-services-list a { display: block; padding: 10px 0; font-size: 14px; color: #1e40af; text-decoration: none; }
.area-services-list a:hover { color: #dc2626; }

/* ---------- BLOG ---------- */
.blog-hero { padding: 48px 0 24px; }
.blog-categories { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.blog-category-tag { display: inline-block; padding: 4px 12px; background: #dc2626; color: white; border-radius: 20px; font-size: 12px; font-weight: 600; text-decoration: none; }
.blog-hero h1 { font-size: 36px; font-weight: 800; color: #111827; letter-spacing: -0.5px; line-height: 1.2; }
.blog-meta { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; color: #6b7280; }
.meta-sep { color: #d1d5db; }

.blog-author-byline { padding: 16px 0; }
.author-byline-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: #f9fafb; border-radius: 10px; }
.author-byline-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-byline-card strong { display: block; font-size: 14px; color: #111827; }
.author-byline-card span { display: block; font-size: 13px; color: #6b7280; }
.author-experience { color: #dc2626 !important; font-size: 12px !important; }

.blog-featured-image { padding: 16px 0 32px; }
.blog-hero-img { width: 100%; height: auto; border-radius: 12px; }

.blog-content { padding: 0 0 48px; }
.blog-content h2 { font-size: 24px; font-weight: 700; margin: 36px 0 12px; color: #111827; }
.blog-content h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; color: #374151; }
.blog-content p { font-size: 16px; line-height: 1.8; color: #374151; margin-bottom: 18px; }
.blog-content img { border-radius: 10px; max-width: 100%; height: auto; margin: 20px 0; }
.blog-content ul, .blog-content ol { margin: 12px 0 20px 24px; }
.blog-content li { font-size: 16px; line-height: 1.7; color: #374151; margin-bottom: 6px; }
.blog-content blockquote { border-left: 4px solid #dc2626; padding: 16px 24px; background: #fef2f2; border-radius: 0 10px 10px 0; margin: 24px 0; }
.blog-content blockquote p { color: #991b1b; font-style: italic; }

.blog-author-box { padding: 48px 0; }
.author-box { display: flex; gap: 20px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px; }
.author-box-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.author-box-role { font-size: 14px; color: #dc2626; font-weight: 600; margin-bottom: 8px; }
.author-box-bio { font-size: 14px; color: #4b5563; line-height: 1.6; }

@media (max-width: 640px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .expert-byline { flex-direction: column; text-align: center; }
  .area-distance-grid { flex-direction: column; gap: 16px; }
  .service-quick-facts { flex-direction: column; gap: 12px; }
}

/* ---------- BREADCRUMBS (pill-style) ---------- */
.breadcrumbs { padding: 12px 0; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.breadcrumbs .container { /* backwards compat */ }

/* Inside hero-cl: transparent, no bar — blends with hero */
.hero-cl .breadcrumbs {
  background: transparent;
  border-bottom: none;
  padding: 0 0 8px;
}
.hero-cl .crumb-pill {
  background: rgba(0, 59, 92, 0.06);
  border-color: rgba(0, 59, 92, 0.10);
  font-size: 12px;
  padding: 3px 10px;
}
.hero-cl .crumb-pill:hover {
  background: rgba(0, 59, 92, 0.10);
  border-color: rgba(0, 59, 92, 0.18);
}
.hero-cl .crumb-current {
  font-size: 12px;
  font-weight: 500;
  color: var(--hlt-gray-500, #6b7280);
}

/* Pill nav — shared across all breadcrumbs */
.bil-breadcrumb-nav,
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bil-crumb-pill,
.crumb-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hlt-gray-500, #6b7280);
  background: #fff;
  border: 1px solid var(--hlt-gray-200, #e5e7eb);
  border-radius: 20px;
  text-decoration: none;
  transition: all .2s ease;
  line-height: 1;
}

.bil-crumb-pill:hover,
.crumb-pill:hover {
  color: var(--hlt-blue, #003b5c);
  border-color: var(--hlt-blue, #003b5c);
  background: rgba(0, 59, 92, 0.04);
}

.bil-crumb-pill svg,
.crumb-pill svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.bil-crumb-pill:hover svg,
.crumb-pill:hover svg {
  opacity: 0.8;
}

.bil-crumb-chevron,
.crumb-chevron {
  color: var(--hlt-gray-300, #d1d5db);
  flex-shrink: 0;
}

.bil-crumb-current,
.crumb-current {
  font-size: 13px;
  font-weight: 600;
  color: var(--hlt-dark, #1e293b);
  padding: 5px 0;
}

/* Dark hero variant — visible white pills on dark backgrounds */
.breadcrumb-nav--dark .crumb-pill,
.page-hero-v2 .crumb-pill {
  color: #fff;
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.breadcrumb-nav--dark .crumb-pill:hover,
.page-hero-v2 .crumb-pill:hover {
  color: #fff;
  background: rgba(255,255,255,0.45);
  border-color: rgba(255,255,255,0.55);
}
.breadcrumb-nav--dark .crumb-pill svg,
.page-hero-v2 .crumb-pill svg {
  opacity: 0.8;
}
.breadcrumb-nav--dark .crumb-pill:hover svg,
.page-hero-v2 .crumb-pill:hover svg {
  opacity: 1;
}
.breadcrumb-nav--dark .crumb-chevron,
.page-hero-v2 .crumb-chevron {
  color: rgba(255,255,255,0.5);
}
.breadcrumb-nav--dark .crumb-current,
.page-hero-v2 .crumb-current {
  color: #fff;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Legacy breadcrumb-list (for hlt_breadcrumbs() backwards compat) */
.breadcrumb-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.breadcrumb-item { display: inline-flex; align-items: center; font-size: 13px; }
.breadcrumb-link { color: #6b7280; text-decoration: none; }
.breadcrumb-link:hover { color: #dc2626; }
.breadcrumb-sep { margin: 0 8px; color: #d1d5db; font-size: 14px; }
.breadcrumb-current { color: #111827; font-weight: 600; }

/* ---------- ACCESSIBILITY ---------- */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 9999; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 20px; background: #dc2626; color: white; font-size: 14px; font-weight: 700; border-radius: 8px; text-decoration: none; z-index: 99999; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important; }

/* ---------- PAGINATION ---------- */
/* Scoped to .pagination to avoid conflicting with .navbar .nav-links */
.pagination .nav-links { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.pagination .nav-links a, .pagination .nav-links span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; color: #374151; transition: all 0.2s; }
.pagination .nav-links a:hover { border-color: #dc2626; color: #dc2626; }
.pagination .nav-links .current { background: #dc2626; border-color: #dc2626; color: white; }
.pagination .nav-links .prev, .pagination .nav-links .next { font-weight: 700; }

/* ---------- BLOG CARD HOVER ---------- */
.blog-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* ---------- OMRÅDER OVERVIEW ---------- */
.omraader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.omraade-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.omraade-card:hover {
  border-color: var(--hlt-blue, #003b5c);
  box-shadow: 0 4px 16px rgba(0, 59, 92, 0.08);
  transform: translateY(-2px);
}
.omraade-card__icon {
  font-size: 28px;
  flex-shrink: 0;
}
.omraade-card__body {
  flex: 1;
  min-width: 0;
}
.omraade-card__city {
  font-size: 18px;
  font-weight: 700;
  color: var(--hlt-dark, #1e293b);
  margin: 0 0 4px;
}
.omraade-card:hover .omraade-card__city {
  color: var(--hlt-blue, #003b5c);
}
.omraade-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--hlt-gray-500, #6b7280);
}
.omraade-card__arrow {
  font-size: 20px;
  font-weight: 700;
  color: var(--hlt-gray-300, #d1d5db);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.omraade-card:hover .omraade-card__arrow {
  color: var(--hlt-blue, #003b5c);
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .omraader-grid {
    grid-template-columns: 1fr;
  }
}
