/* Sheriff Bygg — guider stylesheet
   Extinde sbygg.css cu komponenter för bloggsidor
   Generated 2026-05-20
   ------------------------------------------------- */

/* ========== ARTICLE HERO ========== */

.guide-hero {
  padding: 40px 0 28px;
}

.guide-hero-inner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--muted);
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}

.guide-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.guide-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,27,25,0.05) 0%, rgba(28,27,25,0.45) 55%, rgba(28,27,25,0.85) 100%);
}

.guide-hero-content {
  position: relative;
  z-index: 2;
  padding: 54px;
  color: var(--white);
  max-width: 820px;
}

.guide-hero-content .eyebrow {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.guide-hero-content h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 18px;
}

.guide-hero-content .lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 22px;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  font-weight: 500;
}

.guide-meta .dot {
  opacity: 0.5;
}

/* ========== ARTICLE LAYOUT ========== */

.guide-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  padding: 32px 0 24px;
}

.guide-article {
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--foreground);
}

.guide-article > * {
  margin: 0;
}

.guide-article > * + * {
  margin-top: 1.4em;
}

.guide-article h2 {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 2.4em;
  scroll-margin-top: 110px;
  color: var(--foreground);
}

.guide-article h3 {
  font-size: 1.5rem;
  line-height: 1.18;
  margin-top: 1.8em;
  scroll-margin-top: 110px;
  color: var(--foreground);
}

.guide-article h2 + p,
.guide-article h3 + p {
  margin-top: 0.7em;
}

.guide-article p strong {
  color: var(--foreground);
  font-weight: 700;
}

.guide-article ul,
.guide-article ol {
  padding-left: 1.4em;
}

.guide-article li + li {
  margin-top: 0.5em;
}

.guide-article ul li::marker {
  color: var(--accent);
}

.guide-article a {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(45, 74, 62, 0.3);
  transition: border-color 0.2s;
}

.guide-article a:hover {
  border-bottom-color: var(--primary);
}

.guide-article blockquote {
  border-left: 4px solid var(--accent);
  background: var(--muted);
  margin: 1.8em 0;
  padding: 22px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--foreground);
}

.guide-article blockquote p {
  margin: 0;
}

/* TL;DR summary */
.guide-summary {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 0 !important;
}

.guide-summary h2 {
  font-size: 1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary) !important;
  margin-top: 0 !important;
  margin-bottom: 14px;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 800;
}

.guide-summary ul {
  margin: 0;
  padding-left: 1.2em;
}

.guide-summary li {
  line-height: 1.7;
}

/* ========== TABLE OF CONTENTS ========== */

.guide-toc {
  position: sticky;
  top: 110px;
  align-self: start;
}

.guide-toc-title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  font-weight: 800;
  margin-bottom: 16px;
}

.guide-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border);
}

.guide-toc li {
  margin: 0;
}

.guide-toc a {
  display: block;
  padding: 8px 0 8px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.92rem;
  color: var(--muted-foreground);
  line-height: 1.4;
  transition: color 0.2s, border-color 0.2s;
}

.guide-toc a:hover,
.guide-toc a.active {
  color: var(--primary);
  border-left-color: var(--accent);
  font-weight: 600;
}

.guide-toc li.level-3 a {
  padding-left: 28px;
  font-size: 0.86rem;
}

/* ========== COST TABLE ========== */

.cost-table {
  margin: 2em 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cost-table-head {
  background: var(--muted);
  padding: 18px 26px;
  border-bottom: 1px solid var(--border);
}

.cost-table-head h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 4px;
}

.cost-table-head p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin: 0;
}

.cost-table table {
  width: 100%;
  border-collapse: collapse;
}

.cost-table th,
.cost-table td {
  padding: 16px 26px;
  text-align: left;
  vertical-align: top;
}

.cost-table thead th {
  font-family: 'Manrope', sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  font-weight: 700;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.cost-table tbody tr {
  border-bottom: 1px solid rgba(216, 212, 199, 0.5);
}

.cost-table tbody tr:last-child {
  border-bottom: none;
}

.cost-table .row-label {
  font-weight: 600;
  color: var(--foreground);
}

.cost-table .row-note {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  font-weight: 400;
  line-height: 1.5;
}

.cost-table .row-price {
  text-align: right;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.cost-table-foot {
  padding: 14px 26px;
  background: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* ========== ROT INFO BOX ========== */

.rot-box {
  margin: 2em 0;
  background: linear-gradient(135deg, #F5EDE2 0%, #EBDBC8 100%);
  border: 1px solid rgba(197, 123, 87, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.rot-box-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
}

.rot-box-content {
  flex: 1;
}

.rot-box h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #6B3F25;
  margin: 0 0 10px;
  line-height: 1.3;
}

.rot-box p {
  margin: 0;
  color: #4A2D1C;
  line-height: 1.7;
  font-size: 0.98rem;
}

.rot-box p + p {
  margin-top: 0.9em;
}

.rot-box strong {
  color: #4A2D1C;
}

/* ========== CTA BOX ========== */

.guide-cta {
  margin: 2.4em 0;
  background: linear-gradient(180deg, var(--primary), #1f342b);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  text-align: center;
}

.guide-cta h2 {
  color: var(--white) !important;
  margin: 0 0 14px !important;
  font-size: 2rem !important;
  line-height: 1.1;
}

.guide-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin: 0 auto 24px;
  max-width: 520px;
  line-height: 1.65;
}

.guide-cta .btn-accent {
  background: var(--accent);
  color: var(--white);
}

.guide-cta .btn-accent:hover {
  background: #B26B49;
  transform: translateY(-1px);
}

/* ========== FAQ ACCORDION ========== */

.guide-faq {
  margin: 2.4em 0;
}

.guide-faq h2 {
  margin-bottom: 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 26px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--foreground);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1.2rem;
  transition: transform 0.3s, background 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--white);
}

.faq-item summary:hover {
  background: var(--muted);
}

.faq-answer {
  padding: 0 26px 22px;
  color: var(--muted-foreground);
  line-height: 1.75;
  font-size: 0.98rem;
}

.faq-answer p {
  margin: 0;
}

/* ========== GUIDE LIST PAGE ========== */

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 12px 0 60px;
}

.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.guide-card-media {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: var(--muted);
  position: relative;
}

.guide-card-category {
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 7px 12px;
  border-radius: 999px;
}

.guide-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-card-body h3 {
  font-size: 1.5rem;
  line-height: 1.18;
  margin-bottom: 12px;
  color: var(--foreground);
}

.guide-card-body p {
  color: var(--muted-foreground);
  line-height: 1.65;
  font-size: 0.95rem;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-meta {
  margin-top: auto;
  font-size: 0.84rem;
  color: var(--muted-foreground);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Guides hero (listing page) */
.guides-list-hero {
  padding: 60px 0 30px;
}

.guides-list-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  max-width: 820px;
}

.guides-list-hero .lead {
  font-size: 1.18rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  max-width: 680px;
}

/* Category pills */
.guides-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 8px;
}

.guides-filter a {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  transition: 0.2s;
}

.guides-filter a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.guides-filter a.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ========== RELATED GUIDES ========== */

.related-guides {
  padding: 60px 0;
  background: var(--muted);
  border-top: 1px solid var(--border);
}

.related-guides h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.related-guides .section-head p {
  color: var(--muted-foreground);
  margin-bottom: 28px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1100px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .guide-toc {
    display: none;
  }
  .guides-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .guide-hero-content {
    padding: 34px 28px;
  }
  .guide-hero-inner {
    min-height: 360px;
  }
  .guide-article {
    font-size: 1rem;
  }
  .cost-table th,
  .cost-table td {
    padding: 14px 18px;
  }
  .rot-box {
    padding: 24px;
    flex-direction: column;
    gap: 16px;
  }
  .guide-cta {
    padding: 34px 24px;
  }
  .guides-grid {
    grid-template-columns: 1fr;
  }
}
