/* =========================================================
   SIDANS CSS
   Kundspecifik styling för den här CMS-sidan.
   ========================================================= */

/* Sidans skal
   --------------------------------------------------------- */
.main {
}

/* Bildslider
   --------------------------------------------------------- */
.top-background-img {
    background-repeat: no-repeat;
    background-size: cover;
}

.top-background-boxed {
    display: table;
}

/* HTML-sektioner
   --------------------------------------------------------- */
.main-container1 {
}

.main-container2 {
}

.main-container3 {
}

.main-container4 {
}

.main-container5 {
}

.main-container6 {
}

/* Bilonline-sektioner
   --------------------------------------------------------- */
/* Senast inkomna */
.main-container7 {
}

/* Lagerlista */
.main-container8 {
}

/* Personal */
.main-container9 {
}

/* Kontakt */
.main-container10 {
}

/* Karta */
.main-container11 {
}

/* Mobil
   --------------------------------------------------------- */
@media (max-width: 767px) {
    .top-background-boxed {
        width: 100%;
    }
}

/* Hörby Bilcentrum – startsida */
.hbc-home {
  --home-gutter: clamp(24px, 5.56vw, 80px);
  --home-section-space: 48px;
  background: var(--hbc-black);
  color: var(--hbc-white);
}
.hbc-home--surface { background: var(--hbc-surface); }
.hbc-home__inner { width: min(100%, 1440px); margin-inline: auto; padding-inline: var(--home-gutter); }
.hbc-home__section { padding-block: var(--home-section-space); }
.hbc-home__section .hbc-home__inner { display: grid; gap: 32px; }
.hbc-home h1, .hbc-home h2, .hbc-home h3, .hbc-home p { margin: 0; }
.hbc-home h2 { font-size: 30px; line-height: 38px; font-weight: 700; }
.hbc-home h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
.hbc-home p { color: var(--hbc-muted); line-height: 26px; }
.hbc-home .hbc-home__eyebrow {
  color: var(--hbc-focus);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
}
.hbc-home__heading { display: grid; justify-items: start; gap: 16px; }
.hbc-home__intro { max-width: 680px; }
.hbc-home__hero { isolation: isolate; position: relative; display: grid; align-items: center; min-height: 670px; padding-block: 64px; }
.hbc-home__hero-photo, .hbc-home__hero::after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hbc-home__hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(to bottom, rgba(9,10,11,.65), rgba(9,10,11,.9) 45%, rgba(9,10,11,.12));
}
.hbc-home__hero .hbc-home__eyebrow { color: var(--hbc-white); }
.hbc-home__hero-copy { display: grid; justify-items: start; gap: 24px; max-width: 680px; }
.hbc-home__hero h1 { font-size: clamp(29px, 10vw, 36px); line-height: 1.2222; font-weight: 700; }
.hbc-home__hero h1 span { display: block; }
.hbc-home__hero p { max-width: 525px; }
.hbc-home__actions { display: flex; flex-direction: column; align-items: start; gap: 16px; }
.hbc-home__rule { width: 48px; height: 2px; background: var(--hbc-red); }
.hbc-home .bo-btn { padding: 11px 23px; gap: 12px; min-block-size: 44px; font-size: 14px; line-height: 20px; justify-self: start; }
.hbc-home[aria-labelledby="hbc-fordonstyp"] .hbc-home__inner { gap: 12px; }
.hbc-home__tiles { display: grid; gap: 12px; }
.hbc-home__tile {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-height: 146px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--hbc-border);
  border-radius: 4px;
  color: var(--hbc-white);
  text-decoration: none;
}
.hbc-home__tile--wide { min-height: 154px; }
.hbc-home__tile > img:first-child, .hbc-home__tile::after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hbc-home__tile::after {
  content: "";
  z-index: -1;
  background: linear-gradient(to bottom, rgba(9,10,11,.95), rgba(9,10,11,.75) 42%, rgba(9,10,11,.22));
}
.hbc-home__tile:where(a):hover { color: var(--hbc-white); border-color: var(--hbc-muted); }
.hbc-home__tile > img:last-child { align-self: end; margin-block-end: 2px; }
.hbc-home__about { align-items: center; }
.hbc-home__about-photo { display: block; width: 100%; height: 320px; object-fit: cover; border-radius: 4px; }
.hbc-home__about .bo-btn { margin-block-start: 16px; }
.hbc-home__services { display: grid; gap: 24px; }
.hbc-home__service {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 24px;
  min-height: 297px;
  padding: 32px;
  border: 1px solid var(--hbc-border);
  border-radius: 4px;
  background: var(--hbc-surface);
}
.hbc-home__service .bo-btn { margin-top: auto; }
.hbc-home__service .hbc-home__rule { width: 32px; height: 1px; }
.hbc-home__cta { align-items: center; }
@media (min-width: 48rem) {
  .hbc-home__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .hbc-home__tile { min-height: 224px; padding: 24px; }
  .hbc-home__tile--wide { grid-column: 1 / -1; min-height: 216px; }
  .hbc-home__about, .hbc-home__cta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hbc-home__services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hbc-home[aria-labelledby="hbc-fordonstyp"] .hbc-home__inner { gap: 24px; }
}
@media (min-width: 64rem) {
  .hbc-home { --home-section-space: 80px; }
  .hbc-home h2 { font-size: 40px; line-height: 50px; }
  .hbc-home h3 { font-size: 24px; line-height: 34px; }
  .hbc-home__hero { min-height: 700px; padding-block: 96px 64px; }
  .hbc-home__hero h1 { font-size: clamp(52px, 5.28vw, 76px); line-height: 1.1579; font-weight: 800; }
  .hbc-home__hero-photo { width: 70.8333%; left: auto; }
  .hbc-home__hero::after { background: linear-gradient(to right, #090a0b, rgba(9,10,11,.9) 48%, rgba(9,10,11,.12)); }
  .hbc-home__actions { flex-direction: row; }
  .hbc-home[aria-labelledby="hbc-fordonstyp"] { --home-section-space: 64px; }
  .hbc-home__section .hbc-home__about { grid-template-columns: minmax(0, 550px) minmax(0, 600px); gap: 64px; }
  .hbc-home__about-photo { height: 460px; }
  .hbc-home__cta { grid-template-columns: minmax(0, 700px) auto; }
  .hbc-home__cta .bo-btn { justify-self: end; }
}

/* Redaktionell inramning runt Bilonlines fordonsblock */
.hbc-home__latest-intro { padding-block: var(--home-section-space) 32px; }
.hbc-home__latest-outro { padding-block: 32px var(--home-section-space); }
body:not(:has(#senastefordonsektion .bo-slider-card)) :is(.hbc-home__latest-intro, .hbc-home__latest-outro) { display: none; }
@media (max-width: 47.999rem) {
  .hbc-home__latest-intro { padding-inline: 12px; }
}
@media (min-width: 64rem) {
  .hbc-home__latest-intro { max-width: 1280px; margin-inline: auto; }
}

